/* ============================================================================
   WALKAROUND'S OWN LOOK: a printout of your own site with a red pen on it.

   This file is loaded AFTER /themes.css on every page of the app: the React
   board (index.html), the server-rendered sign-in, account, billing and error
   pages, and the landing page. It does not replace the scaffold's plumbing — it
   repaints it. /themes.css still declares the --app-* contract twice, once per
   mode, and /theme.js still resolves the viewer's light or dark onto
   <html data-app-mode> before first paint. This file re-states those SAME
   custom properties with our own values, on the same three selectors, and then
   restates the shape of the app-* classes so no screen keeps a radius, a shadow
   or a colour of its own.

   Two rules the rest of the app depends on:

     - every value is a --app-* (or --wa-*) custom property, so light and dark
       both come out of one declaration;
     - class names are the scaffold's, unchanged. Only values move.

   The identity, in one line: paper and ink, hairline rules, monospace for
   anything evidential (paths, quotes, counts, chips), and red only where
   something is wrong.
   ========================================================================== */

:root {
  color-scheme: light;

  /* --- surfaces and ink (light: paper) -------------------------------- */
  --app-bg: #F1EDE3;            /* the paper the whole app is printed on */
  --app-surface: #FCFAF5;       /* a sheet lying on it */
  --app-surface-2: #F6F2E7;     /* a quote block, a footer rule, a rail */
  --app-border: #D8D0BE;        /* the hairline rule */
  --app-border-strong: #B9AE96; /* a rule that has to hold a control */
  --app-text: #191713;          /* ink */
  --app-text-muted: #494339;    /* ink, one step off */
  /* A caption in the margin. The identity's own value is #7A7263, which reads
     at 4.07:1 on the paper — under AA for 13-14px text, and the captions that
     use it are exactly that size. Three percent darker clears 4.5:1 on every
     ground in the app (paper 4.57, sheet 5.13, quote 4.78) and is
     indistinguishable from the approved value at a glance. */
  --app-text-subtle: #726A5B;

  /* The accent is INK, not a colour: a primary button here is a filled
     rectangle of ink, the way a stamp is. Red is reserved for wrongness
     (--app-danger) and never used to say "click me". */
  --app-accent: #191713;
  --app-accent-hover: #332E26;
  --app-accent-text: #8E2B14;   /* the darker step, for small text that needs it */
  --app-on-accent: #FCFAF5;

  --app-success: #3D6B49;
  --app-warning: #8A5A12;
  --app-danger: #BE331B;
  /* the mark's ink: the design sheet's red. The mark says "this was checked",
     not "something is wrong", so it does not take the danger red. */
  --mark-ink: #C14046;
  --app-info: #4E5C66;

  /* --- type: the system sans for prose, the system mono for evidence --- */
  --app-font-head: ui-sans-serif, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --app-font-body: ui-sans-serif, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --app-font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  /* Two the board's own stylesheet asks for and the scaffold never declared.
     `border: 1px solid var(--app-line)` with no --app-line is invalid at
     computed-value time, so those rules drew no line at all — the report's
     sections were running together. Declared here, where the identity lives. */
  --app-line: var(--app-border);
  --app-text-sm: 0.875rem;

  /* --- shape: 2-3px, one depth idiom --------------------------------- */
  --app-radius: 2px;
  --app-radius-lg: 3px;
  --app-shadow: none;

  --app-chart-1: #191713;
  --app-chart-2: #BE331B;
  --app-chart-3: #7A7263;
  --app-chart-4: #3D6B49;
  --app-chart-5: #8A5A12;
  --app-chart-6: #4E5C66;

  /* --- ours, for the things the scaffold has no name for -------------- */
  --wa-dot: rgba(25, 23, 19, 0.05);          /* the dot grain in the paper */
  --wa-red-wash: rgba(190, 51, 27, 0.10);    /* a red pen pressed hard */
  --wa-sheet-shadow: 0 1px 0 rgba(25, 23, 19, 0.04), 0 18px 40px -22px rgba(25, 23, 19, 0.32);
  --wa-lift: 0 6px 18px rgba(25, 23, 19, 0.16);
  --wa-ease: cubic-bezier(0.22, 0.68, 0, 1);
}

/* The same family in coal. Three selectors, exactly as /themes.css declares
   them: the system preference (until /theme.js has spoken), the explicit
   choice, and nothing else. */
@media (prefers-color-scheme: dark) {
  :root:not([data-app-mode]) {
    color-scheme: dark;
    --app-bg: #141310;
    --app-surface: #1B1A15;
    --app-surface-2: #221F19;
    --app-border: #332F28;
    --app-border-strong: #5A5245;
    --app-text: #F2EDE2;
    --app-text-muted: #D3CBBA;
    --app-text-subtle: #A39A88;
    --app-accent: #F2EDE2;
    --app-accent-hover: #FFFFFF;
    --app-accent-text: #F0A18E;
    --app-on-accent: #141310;
    --app-success: #86B394;
    --app-warning: #D9A24E;
    --app-danger: #E2563A;
  --mark-ink: #E8737A;
    --mark-ink: #E8737A;
    --app-info: #9BAAB5;
    --app-chart-1: #F2EDE2;
    --app-chart-2: #E2563A;
    --app-chart-3: #A39A88;
    --app-chart-4: #86B394;
    --app-chart-5: #D9A24E;
    --app-chart-6: #9BAAB5;
    --wa-dot: rgba(242, 237, 226, 0.055);
    --wa-red-wash: rgba(226, 86, 58, 0.14);
    --wa-sheet-shadow: 0 1px 0 rgba(0, 0, 0, 0.35), 0 18px 40px -22px rgba(0, 0, 0, 0.7);
    --wa-lift: 0 6px 20px rgba(0, 0, 0, 0.5);
  }
}

:root[data-app-mode="dark"] {
  color-scheme: dark;
  --app-bg: #141310;
  --app-surface: #1B1A15;
  --app-surface-2: #221F19;
  --app-border: #332F28;
  --app-border-strong: #5A5245;
  --app-text: #F2EDE2;
  --app-text-muted: #D3CBBA;
  --app-text-subtle: #A39A88;
  --app-accent: #F2EDE2;
  --app-accent-hover: #FFFFFF;
  --app-accent-text: #F0A18E;
  --app-on-accent: #141310;
  --app-success: #86B394;
  --app-warning: #D9A24E;
  --app-danger: #E2563A;
  --app-info: #9BAAB5;
  --app-chart-1: #F2EDE2;
  --app-chart-2: #E2563A;
  --app-chart-3: #A39A88;
  --app-chart-4: #86B394;
  --app-chart-5: #D9A24E;
  --app-chart-6: #9BAAB5;
  --wa-dot: rgba(242, 237, 226, 0.055);
  --wa-red-wash: rgba(226, 86, 58, 0.14);
  --wa-sheet-shadow: 0 1px 0 rgba(0, 0, 0, 0.35), 0 18px 40px -22px rgba(0, 0, 0, 0.7);
  --wa-lift: 0 6px 20px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   The paper itself
   ========================================================================== */

:root body {
  background-color: var(--app-bg);
  /* The grain of a sheet of paper, at the density the landing page prints it. */
  background-image: radial-gradient(var(--wa-dot) 0.7px, transparent 0.7px);
  background-size: 4px 4px;
  font-size: 17px;
  line-height: 1.55;
}

:root h1,
:root h2,
:root h3,
:root h4 {
  font-family: var(--app-font-head);
  font-weight: 620;
  letter-spacing: -0.03em;
  color: var(--app-text);
}

:root h1 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.3rem); line-height: 1.06; }
:root h2 { font-size: clamp(1.2rem, 1.02rem + 0.7vw, 1.5rem); }
:root h3 { font-size: 1.06rem; }
:root h4 { font-size: 0.96rem; }

:root a {
  color: var(--app-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  text-decoration-color: var(--app-border-strong);
}
:root a:hover { text-decoration-color: var(--app-text); }
:root a.app-btn,
:root a.app-built-with { text-decoration: none; }

:root ::selection {
  background: var(--wa-red-wash);
  color: var(--app-text);
}

/* ==========================================================================
   The sheet: a card here is a page lying on the desk, not a floating panel
   ========================================================================== */

:root .app-card {
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: 3px;
  box-shadow: var(--wa-sheet-shadow);
  padding: 20px 22px;
  gap: 14px;
}

:root .app-shell {
  max-width: 1120px;
  padding: 24px 22px;
}

/* ==========================================================================
   Controls: a 3px rectangle of ink, a hairline, nothing glassy
   ========================================================================== */

:root .app-btn {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--app-border-strong);
  border-radius: 3px;
  background: transparent;
  color: var(--app-text);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 560;
  box-shadow: none;
  transition: background 120ms linear, border-color 120ms linear, transform 120ms var(--wa-ease);
}
:root .app-btn:hover {
  background: var(--app-surface-2);
  border-color: var(--app-text);
}
:root .app-btn:active { transform: scale(0.99); }
:root .app-btn:focus-visible { outline: 2px solid var(--app-text); outline-offset: 2px; }
:root .app-btn[disabled] { opacity: 0.45; }

:root .app-btn.primary {
  background: var(--app-text);
  border-color: var(--app-text);
  color: var(--app-on-accent);
}
:root .app-btn.primary:hover {
  background: var(--app-accent-hover);
  border-color: var(--app-accent-hover);
  box-shadow: var(--wa-lift);
}

:root .app-btn.ghost {
  background: transparent;
  border-color: transparent;
}
:root .app-btn.ghost:hover {
  background: var(--app-surface-2);
  border-color: var(--app-border);
}

:root .app-input,
:root .app-textarea {
  border: 1px solid var(--app-border-strong);
  border-radius: 2px;
  background: var(--app-surface);
  color: var(--app-text);
  font-family: inherit;
  font-size: 1rem;
}
:root .app-input:focus-visible,
:root .app-textarea:focus-visible {
  outline: 2px solid var(--app-text);
  outline-offset: 1px;
  border-color: var(--app-text);
}

:root .app-label {
  font-family: var(--app-font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--app-text-subtle);
}

:root .app-field { gap: 7px; }

/* A badge is a chip stamped on the sheet: mono, uppercase, 2px. */
:root .app-badge {
  border-radius: 2px;
  border: 1px solid var(--app-border);
  background: transparent;
  color: var(--app-text-subtle);
  font-family: var(--app-font-mono);
  font-size: 0.71rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 2px 7px;
  box-shadow: none;
}
:root .app-badge.success { color: var(--app-success); border-color: currentColor; }
:root .app-badge.warning { color: var(--app-warning); border-color: currentColor; }
:root .app-badge.info { color: var(--app-info); border-color: currentColor; }
:root .app-badge.danger,
:root .app-badge.critical,
:root .app-badge.high {
  color: var(--app-danger);
  border-color: currentColor;
  background: var(--wa-red-wash);
}

:root .app-theme-toggle {
  width: 40px;
  height: 40px;
  border: 1px solid var(--app-border);
  border-radius: 3px;
  background: transparent;
  color: var(--app-text-subtle);
}
:root .app-theme-toggle:hover {
  color: var(--app-text);
  border-color: var(--app-text);
}
:root .app-theme-toggle:focus-visible { outline: 2px solid var(--app-text); outline-offset: 2px; }

:root .app-segmented {
  padding: 2px;
  border-radius: 3px;
  border: 1px solid var(--app-border);
  background: transparent;
}
:root .app-segmented button {
  border-radius: 2px;
  color: var(--app-text-subtle);
}
:root .app-segmented button:hover { color: var(--app-text); }
:root .app-segmented button[aria-pressed="true"] {
  background: var(--app-surface);
  color: var(--app-text);
  box-shadow: none;
  border: 1px solid var(--app-border);
}

/* ==========================================================================
   Tables and figures: a column of numbers reads as a column
   ========================================================================== */

:root .app-table {
  font-variant-numeric: tabular-nums;
}
:root .app-table th {
  font-family: var(--app-font-mono);
  font-size: 0.71rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--app-text-subtle);
  padding: 8px 12px;
  border-bottom: 1px solid var(--app-border-strong);
}
:root .app-table td {
  padding: 12px;
  border-bottom: 1px solid var(--app-border);
  font-variant-numeric: tabular-nums;
}
:root .app-table tbody tr:hover { background: var(--app-surface-2); }

:root .app-metric {
  font-family: var(--app-font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: -0.02em;
  font-weight: 500;
}
:root .app-metric-label {
  font-family: var(--app-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--app-text-subtle);
}

:root .app-mono {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

:root .app-bar {
  background: var(--app-text);
  border-radius: 1px;
}

:root .app-footer {
  font-family: var(--app-font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.01em;
  color: var(--app-text-subtle);
  border-top: 1px solid var(--app-border);
  padding-top: 14px;
}

:root .app-muted { color: var(--app-text-muted); }
:root .app-subtle { color: var(--app-text-subtle); }

/* The credit is a plain line in the footer, so nothing here wears a pill. */

/* ==========================================================================
   A phone: the same sheet, one column
   ========================================================================== */

@media (max-width: 640px) {
  :root .app-shell { padding: 16px; }
  :root .app-card { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  :root * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   THE SIGNED-IN PAGES: one shell, a list of sites, a site, a report

   The same sheet of paper as the board and the landing page, held together by
   one bar. Everything here is a value from the tokens above, so both
   appearances come out of one declaration, and nothing has a radius or a
   shadow that the identity does not have.
   ========================================================================== */

.wa-signed {
  background: var(--app-bg);
  color: var(--app-text);
  font-family: var(--app-font-body);
  margin: 0;
  min-height: 100vh;
}

/* --- the bar every signed-in page wears ---------------------------------- */

.wa-bar {
  background: var(--app-surface-2);
  border-bottom: 1px solid var(--app-border);
}
.wa-bar-in {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.wa-mark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--app-text);
  text-decoration: none;
  margin-right: 4px;
}
/* THE MARK. A red ink stamp with the W struck into it, drawn once by
   src/vendor/mark.ts so the header, the browser tab, the report and the printed
   sheet are the same drawing rather than four copies that drift apart. The frame
   is tilted six degrees, so its box sits a touch high against the words: the two
   pixels below put the ink, not the box, on the words' middle. */
.wa-mark svg {
  display: block;
  flex: 0 0 auto;
  color: var(--mark-ink);
  margin-bottom: 2px;
}
/* On the top of a report the stamp is the point of the head, so it sits beside
   the word REPORT and the site's address, on the same top edge. The pair is one
   box, so the head's own space-between still puts a chip on the right where it
   used to go. */
.wa-head-id {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}
.wa-head-id > .mark-stamp {
  color: var(--mark-ink);
  flex: 0 0 auto;
  margin-top: 1px;
}
.wa-nav {
  display: flex;
  gap: 2px;
  margin-right: auto;
  flex-wrap: wrap;
}
.wa-nav a {
  padding: 7px 11px;
  font-size: 0.95rem;
  color: var(--app-text-muted);
  text-decoration: none;
  border-radius: 2px;
}
.wa-nav a:hover { background: var(--app-bg); color: var(--app-text); }
.wa-nav a.on {
  color: var(--app-text);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--app-text);
  border-radius: 0;
}
.wa-bar-end {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--app-text-subtle);
  flex-wrap: wrap;
}
.wa-who {
  font-family: var(--app-font-mono);
  overflow-wrap: anywhere;
}
.wa-bar-end form { margin: 0; }

/* A quiet second button, for the bar and for the small controls. */
.wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--app-border-strong);
  background: var(--app-surface);
  color: var(--app-text);
  font: inherit;
  font-size: 0.875rem;
  border-radius: 2px;
  cursor: pointer;
}
.wa-btn:hover { border-color: var(--app-text); }
.wa-btn.is-on { background: var(--app-text); color: var(--app-on-accent); border-color: var(--app-text); }
.wa-btn:focus-visible { outline: 2px solid var(--app-text); outline-offset: 2px; }

/* The standing permission under the window button: a quiet line and a quiet
   button, because opening a window by hand is the ordinary case. */
.wa-standing {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--app-border);
}
.wa-standing p { margin: 0 0 8px; }
.wa-btn-quiet { height: 30px; font-size: 0.8125rem; }

/* --- the page ------------------------------------------------------------ */

.wa-page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px 64px;
}
.wa-trying {
  margin: 20px 0 0;
  padding: 11px 14px;
  border: 1px solid var(--app-warning);
  border-left: 3px solid var(--app-warning);
  background: var(--app-surface);
  color: var(--app-text-muted);
  font-size: 0.875rem;
}
.wa-back { margin: 20px 0 0; font-size: 0.875rem; }
.wa-back a { color: var(--app-text-muted); text-decoration: none; border-bottom: 1px solid var(--app-border-strong); }
.wa-back a:hover { color: var(--app-text); border-color: var(--app-text); }

.wa-pagehead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin: 34px 0 22px;
}
.wa-pagehead h1 {
  font-family: var(--app-font-head);
  font-size: 1.85rem;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 6px;
  font-weight: 650;
}
/* The address is the heading of a site's own page, and it is set in the mono
   face because an address is evidence. Same size and weight as every other
   signed-in heading, so the pages read as one set.

   An address has no spaces, so it used to break wherever the line ran out:
   `featherbed.walkaround.de` on a phone, then a lone `v` beneath it. The markup
   marks the places an address breaks (a `<wbr>` after each dot, hyphen and
   slash), and these rules use those marks: break-word fills the line up to the
   next marked point, and only splits a word when one segment is longer than the
   whole line. On a phone the type steps down as well, so an ordinary host stays
   on one line. */
.wa-pagehead h1.wa-addr-h1 {
  font-family: var(--app-font-mono);
  font-weight: 600;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
  word-break: normal;
}
/* The proof chip sits at the top of the head, not on the last line of it. */
.wa-pagehead > .wa-chip { align-self: flex-start; margin-top: 4px; }
.wa-lede { margin: 0; color: var(--app-text-muted); font-size: 0.9375rem; max-width: 60ch; overflow-wrap: break-word; }
.wa-label {
  display: block;
  font-family: var(--app-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--app-text-subtle);
  margin: 0 0 6px;
  font-weight: 500;
}
.wa-plain { margin: 0 0 12px; font-size: 0.9375rem; color: var(--app-text-muted); max-width: 68ch; }
.wa-note { margin: 0 0 10px; font-size: 0.875rem; color: var(--app-text-subtle); max-width: 68ch; }

/* THE FORM THAT SAYS WHAT IT IS. The team's test form, and the live form a marked
   account asked for, each carry one sentence about what the card in front of them
   does. It sits in the text column under the plan's lines, before the form, with a
   wash that lifts it off the paper: a reader about to type a card should not have
   to look for the sentence that says whether it is charged. It sits in the sheet,
   over the button, because that is where the finger goes. */
.wa-paybox .wa-testform,
.wa-paybox .wa-liveform {
  margin-top: 0;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius);
  background: var(--app-surface-2);
  color: var(--app-text);
}
.wa-paybox .wa-testform b,
.wa-paybox .wa-liveform b { font-weight: 600; }
.wa-paybox .wa-testform a,
.wa-paybox .wa-liveform a { color: var(--app-accent); text-decoration: underline; }
/* THE STEPS A BREAK-IN ATTEMPT TOOK, in the endnotes under the sentence that says
   how far it got. Read as a sequence, so it is a numbered list and each step
   keeps the request in the boxed mono line a reproduction step uses, with what
   came back beneath it in plain ink. Same measure as the sentences above it. */
.wa-trail {
  margin: 0 0 14px;
  padding-left: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  max-width: 68ch;
}
.wa-trail li { font-size: 0.9375rem; color: var(--app-text-muted); }
.wa-trail li::marker { color: var(--app-text-subtle); }
.wa-trail-req {
  display: block;
  padding: 7px 9px;
  border: 1px solid var(--app-border);
  background: var(--app-surface);
  font-family: var(--app-font-mono);
  font-size: 0.8125rem;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--app-text);
}
.wa-trail-said { display: block; margin-top: 5px; font-size: 0.8125rem; color: var(--app-text-subtle); }
/* WHAT TOUCHED YOUR SITE: one block for each test that sent the site more than a
   read, the test's own name from the list over the count of requests it sent.
   The walk's steps and the records it read hang under its block, so the sheet
   never has to be tied back to the trail by hand. The rule down the left is the
   same hairline the rest of the printed page uses, so the block reads as a note
   in the margin rather than as another card. */
.wa-touched-one {
  margin: 0 0 16px;
  padding: 0 0 0 12px;
  border-left: 2px solid var(--app-border);
}
.wa-touched-one:last-child { margin-bottom: 0; }
.wa-touched-one h3 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 620;
}
.wa-touched-one > p:last-child { margin-bottom: 0; }
.wa-touched-one .wa-trail,
.wa-touched-one .wa-records { margin-top: 10px; }

/* EVERY REAL RECORD THE WALK READ. A list rather than prose: a customer scrolls
   it looking for one order or one account, and each line leads with the record's
   own reference so that is what the eye lands on. The kinds of value beside it
   are set quieter, because they are the same on most lines. */
.wa-records {
  margin: 0 0 14px;
  padding-left: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  max-width: 68ch;
}
.wa-records li { font-size: 0.9375rem; color: var(--app-text-muted); }
.wa-records li::marker { color: var(--app-text-subtle); }
.wa-record-label {
  font-family: var(--app-font-mono);
  font-size: 0.8125rem;
  color: var(--app-text);
  border: 1px solid var(--app-border);
  background: var(--app-surface);
  border-radius: 4px;
  padding: 1px 5px;
}
.wa-record-where, .wa-record-kinds { color: var(--app-text-subtle); }
@media (max-width: 640px) {
  .wa-trail-req { font-size: 0.75rem; padding: 6px 8px; }
}
/* The plan, when one is running and nothing is waiting to be paid for: a line,
   not a band. It states what is on and which step comes next, for somebody who
   paid before they had a site to pay for. */
.wa-plan-on {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-left: 2px solid var(--app-accent);
  background: var(--app-bg);
  font-size: 0.9375rem;
  max-width: 68ch;
}
.wa-bad { margin: 0 0 12px; font-size: 0.9375rem; color: var(--app-danger); }
/* A check that stopped, above the last one that finished. It is the one thing on
   this page a customer must not miss, so it carries the red pen: a wash, a rule
   down the left, and the first words in ink rather than red — the sentence about
   their site is what they read, and a paragraph set in red is read as shouting.
   Same measure as the sentences it sits above, so the page keeps one column. */
.wa-stopped {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid var(--app-danger);
  border-left: 3px solid var(--app-danger);
  background: var(--wa-red-wash);
  font-size: 0.9375rem;
  max-width: 74ch;
}
.wa-stopped b { display: block; margin: 0 0 5px; color: var(--app-text); }
.wa-stopped p { margin: 0 0 6px; color: var(--app-text); }
.wa-stopped p:last-child { margin-bottom: 0; }
.wa-stopped .wa-stopped-when { color: var(--app-text-muted); font-size: 0.875rem; }
/* The stopped-check email, shown as it is sent, on the example page that says
   what a stopped check looks like. Same sheet, same ink: the subject is a line
   of its own and the body keeps its blank lines as spacing. */
.wa-email-preview {
  max-width: 74ch;
  padding: 14px 16px;
  border: 1px solid var(--app-border);
  background: var(--app-surface-2);
}
.wa-email-preview .wa-email-subject {
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--app-border);
  font-size: 0.9375rem;
  color: var(--app-text);
}
.wa-email-preview .wa-email-subject .wa-label { display: block; margin-bottom: 3px; }
.wa-email-preview p { margin: 0 0 10px; font-size: 0.9375rem; line-height: 1.55; color: var(--app-text); overflow-wrap: anywhere; }
.wa-email-preview p:last-child { margin-bottom: 0; }
.wa-notice {
  margin: 0 0 14px;
  padding: 10px 13px;
  border: 1px solid var(--app-border);
  border-left: 3px solid var(--app-success);
  background: var(--app-surface);
  font-size: 0.9375rem;
  color: var(--app-text-muted);
}
.wa-h3 { font-size: 0.95rem; margin: 16px 0 8px; }

/* --- add a site ---------------------------------------------------------- */

.wa-addform { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.wa-field { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.wa-addform .wa-field { min-width: 240px; }
.wa-addform .app-input { min-width: 240px; }

/* --- a site card --------------------------------------------------------- */

.wa-stack { display: flex; flex-direction: column; gap: 18px; }
.wa-sitecard {
  background: var(--app-surface);
  border: 1px solid var(--app-border);
}
.wa-sitecard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 16px;
}
.wa-addr {
  margin: 0;
  font-family: var(--app-font-mono);
  font-size: 1rem;
  /* An address on a card breaks at its own dots and hyphens (the `<wbr>` marks
     `breakable()` puts in), and splits a segment only if one is longer than the
     card. On a phone the card is narrower than the address, which is how a
     32-character URL used to end with a lone `v` on a line of its own. */
  overflow-wrap: break-word;
  color: var(--app-text);
}
.wa-sub { margin: 6px 0 0; font-size: 0.875rem; color: var(--app-text-subtle); }
.wa-chip {
  flex: none;
  font-family: var(--app-font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 5px 8px;
  border: 1px solid var(--app-border-strong);
  color: var(--app-text-muted);
  white-space: nowrap;
}
.wa-chip.ok { border-color: var(--app-success); color: var(--app-success); }
.wa-chip.wait { border-color: var(--app-warning); color: var(--app-warning); }
.wa-rowacts {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 22px;
  border-top: 1px solid var(--app-border);
  background: var(--app-surface-2);
}
.wa-rowacts form, .wa-rowacts .wa-btn { margin: 0; }
.wa-link {
  font-size: 0.875rem;
  color: var(--app-text-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--app-border-strong);
  padding-bottom: 1px;
  margin-right: 4px;
}
.wa-link:hover { color: var(--app-text); border-color: var(--app-text); }

.wa-empty {
  border: 1px dashed var(--app-border-strong);
  padding: 24px 24px 18px;
  background: transparent;
}
.wa-empty h2 { font-size: 1.05rem; margin: 0 0 10px; }
.wa-empty p { margin: 0 0 10px; font-size: 0.9375rem; color: var(--app-text-muted); max-width: 66ch; }

/* --- a sheet on the site page -------------------------------------------- */

.wa-sheet {
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  padding: 20px 22px 22px;
  margin: 0 0 18px;
}
.wa-sheet h2 {
  font-family: var(--app-font-head);
  font-size: 1.05rem;
  margin: 0 0 10px;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.wa-sheet-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.wa-sheet-head h2 { margin: 0; }
.wa-sheet-acts { margin: 0; display: flex; gap: 14px; flex-wrap: wrap; }

.wa-way {
  border: 1px solid var(--app-border);
  background: var(--app-bg);
  padding: 12px 14px;
  margin: 0 0 10px;
}
.wa-way code {
  display: block;
  font-family: var(--app-font-mono);
  font-size: 0.8125rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
  color: var(--app-text);
}
.wa-way .wa-note { margin: 8px 0 0; }

.wa-checkform { margin: 14px 0 0; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
/* STOP THIS CHECK. It sits under the line that says a check is going, on the
   site's page and on the run's own page, and it is deliberately NOT the page's
   main button: stopping is the quiet choice beside starting one, so it keeps the
   calm outline and the note under it says what pressing it does. */
.wa-stopcheck { margin: 0 0 14px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wa-stopcheck .wa-note { margin: 0; }
@media (max-width: 560px) {
  .wa-stopcheck { align-items: flex-start; flex-direction: column; gap: 8px; }
}
.wa-login { width: 100%; border: 1px solid var(--app-border); background: var(--app-bg); padding: 12px 14px; }
.wa-login summary { cursor: pointer; font-size: 0.9375rem; color: var(--app-text); }
.wa-login[open] summary { margin-bottom: 10px; }
.wa-login .wa-field { margin: 0 0 10px; max-width: 420px; }
.wa-saved { margin: 0 0 10px; font-size: 0.9375rem; color: var(--app-text-muted); }
.wa-saved + form { margin: 0 0 14px; }
.wa-planstate { margin: 0 0 10px; font-size: 0.9375rem; color: var(--app-text-muted); }

/* --- THE PAYING PAGE: the plan on the paper, the money in one sheet ---------
   The page that takes the card has been two wrong shapes. First one wide sheet
   with everything stacked down it, with Stripe's embedded form under a void
   reserved by a min-height. Then one sheet with the plan in a left column and a
   right column holding nothing but the button, so a hole as tall as the
   paragraph beside it stood under the button, and the site's address was
   printed twice.

   Now: two columns on the paper. The left is prose — what the plan gives, and
   what happens after the press — set in the page's own type with no box round
   it. The right is one sheet holding the money: the plan's name and what it
   covers, the figure, the tax, the plan's state when it has one, the one
   button, and the two lines about stopping and adding a site. Nothing here has
   a fixed height.

   On a phone the sheet comes FIRST, above the two lists: the price and the
   button are what the reader came for, and they should not sit a scroll below
   two lists they can read at leisure. */

.wa-paygrid { margin: 0 0 18px; display: grid; gap: 22px; }
.wa-pay-text { min-width: 0; }
/* The labels over the two lists: the same mono caption the page head uses, with
   the second one given room to separate it from the list above it. */
.wa-pay-text .wa-label { margin: 0 0 2px; }
.wa-pay-text .wa-pay-next { margin-top: 22px; }
.wa-pay-text > :last-child { margin-bottom: 0; }

/* What the plan buys, ruled off rather than boxed: the same three lines the
   prices section prints. */
.wa-pay-includes {
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--app-border);
}
.wa-pay-includes li {
  padding: 9px 0;
  border-top: 1px solid var(--app-border);
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--app-text);
}

/* What happens next: numbered in the margin, in the mono face, so the three
   steps read as a sequence rather than as three more sentences. */
.wa-pay-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: pay-step;
}
.wa-pay-steps li {
  position: relative;
  counter-increment: pay-step;
  margin: 0 0 9px;
  padding: 0 0 0 30px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--app-text-muted);
  max-width: 52ch;
}
.wa-pay-steps li:last-child { margin-bottom: 0; }
.wa-pay-steps li::before {
  content: counter(pay-step);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--app-font-mono);
  font-size: 0.75rem;
  line-height: 1.75;
  color: var(--app-text-subtle);
}

/* THE SHEET WITH THE MONEY IN IT. */
.wa-paybox {
  min-width: 0;
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  box-shadow: var(--wa-sheet-shadow);
  padding: 18px 20px 16px;
  align-self: start;
}
/* The plan's name, in a box, with what it covers beside it: "WEEKLY [1 SITE]". */
.wa-paybox-plan {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-family: var(--app-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--app-text-subtle);
}
/* The figure, large, with the period beside it and the same figures' width
   whether or not the price has a 9 in it. */
.wa-paybox .wa-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  flex-wrap: wrap;
}
.wa-paybox .wa-price b {
  font-family: var(--app-font-head);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--app-text);
  font-variant-numeric: tabular-nums;
}
.wa-paybox .wa-price .wa-price-period {
  font-size: 0.9375rem;
  color: var(--app-text-muted);
}
/* The red pen mark under the price: a short, slightly tipped line, the way a
   person underlines a figure on a printed page. */
.wa-pen {
  width: 94px;
  height: 2px;
  margin: 7px 0 9px;
  background: var(--app-danger);
  border-radius: 2px;
  transform: rotate(-0.9deg);
  transform-origin: left center;
  opacity: 0.85;
}
.wa-paybox .wa-tax {
  margin: 0 0 14px;
  font-size: 0.8125rem;
  color: var(--app-text-subtle);
}
.wa-paybox .wa-planstate { margin: 0 0 12px; }
.wa-paybox .wa-plain { margin: 0; }

/* Paying: the button that sends the buyer to Stripe's own card form. The form
   itself is on Stripe's page, so nothing here reserves a height for it. */
.wa-pay-go { margin: 0 0 10px; }
.wa-pay-go .app-btn {
  width: 100%;
  /* The button is an anchor, so it needs the box its sibling controls get from
     being a <button>: full width, the label centred, and no underline. */
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
}
.wa-paybox .wa-pay-said { margin: 0; font-size: 0.8125rem; }

/* The two things a buyer wants to know before pressing, under a dashed rule:
   the terms, and what a second site costs. */
.wa-pay-dash {
  border: 0;
  border-top: 1px dashed var(--app-border-strong);
  margin: 14px 0 10px;
}
.wa-pay-small {
  margin: 0 0 5px;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--app-text-subtle);
  max-width: none;
}
.wa-pay-small:last-child { margin-bottom: 0; }

@media (min-width: 860px) {
  .wa-paygrid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 372px);
    align-items: start;
    gap: 0 clamp(32px, 4vw, 64px);
  }
}

/* On a phone the sheet is met first: the price and the button, then the two
   lists. It keeps its own frame, so the reader can still see where the money
   part of the page begins and ends. */
@media (max-width: 859px) {
  .wa-paybox { order: -1; }
}

.wa-checks { list-style: none; margin: 0; padding: 0; }
.wa-checks li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  flex-wrap: wrap;
  padding: 10px 0;
  border-top: 1px solid var(--app-border);
  font-size: 0.9375rem;
}
.wa-checks li:first-child { border-top: 0; }
.wa-check-when {
  font-family: var(--app-font-mono);
  font-size: 0.8125rem;
  color: var(--app-text-subtle);
  min-width: 88px;
}
.wa-check-found { font-weight: 600; }
.wa-check-summary { color: var(--app-text-subtle); font-size: 0.875rem; }

/* Past checks fold away under the newest one, so a site checked every day keeps
   one readable sentence at the top and its history one press below. */
.wa-earlier { margin: 0; }
.wa-earlier > summary {
  cursor: pointer;
  padding: 10px 0 4px;
  border-top: 1px solid var(--app-border);
  font-size: 0.875rem;
  color: var(--app-text-subtle);
}
.wa-earlier > summary:hover { color: var(--app-text); }
.wa-earlier[open] > summary { margin-bottom: 2px; }

/* The two plans, offered before there is a site to pay for. The words take the
   room and the button keeps a column, so the two buttons line up on a desktop
   and each row stacks on a phone (the same flex row, wrapped). */
.wa-plans li > span:first-child { flex: 1 1 auto; min-width: 0; }
.wa-plans li > .app-btn { flex: 0 0 auto; }

/* --- who else reads this account ----------------------------------------- */
/*
   One sheet at the foot of the owner's page: the addresses that can read the
   reports, each with its Remove, and the box that adds one. The list rows are
   the page's ordinary check rows (`.wa-checks`), so the addresses line up with
   every other list in the app and the Remove keeps a column of its own on the
   right, at either width.
*/
.wa-people li > .wa-addr { flex: 1 1 220px; min-width: 0; overflow-wrap: anywhere; }
.wa-people li > .wa-check-summary { flex: 2 1 260px; }
.wa-invite-remove { margin: 0; }
.wa-invite-resend { margin: 0; }
.wa-invite { margin: 18px 0 0; }
.wa-invite .wa-label { display: block; margin-bottom: 8px; }
.wa-invite-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.wa-invite-row .app-input { flex: 1 1 260px; min-width: 0; }
.wa-invite-row .app-btn { flex: 0 0 auto; }
.wa-sub-h {
  margin: 26px 0 12px;
  font-size: 1.0625rem;
  letter-spacing: 0.01em;
}

.wa-cadence { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 12px 0 0; }
.wa-cadence .wa-note { margin: 0; }
/* The window's length sits beside its button, so the two line up in height and
   the select is not a browser default wedged into the row. */
.wa-cadence select.app-input { height: 34px; padding: 0 8px; font-size: 0.875rem; min-width: 170px; }
.wa-cadence .wa-field .wa-label { margin: 0 0 3px; }

/* --- runs: the record and the list --------------------------------------- */

.wa-steps { list-style: none; margin: 0; padding: 0; }
.wa-step {
  display: flex;
  gap: 10px;
  align-items: baseline;
  flex-wrap: wrap;
  padding: 10px 0;
  border-top: 1px solid var(--app-border);
  font-size: 0.9375rem;
}
.wa-step:first-child { border-top: 0; }
.wa-step-title { font-weight: 600; }
.wa-step-line { color: var(--app-text-muted); font-size: 0.875rem; flex: 1 1 22ch; min-width: 0; }
.wa-step[data-state="failed"] .wa-step-line { color: var(--app-danger); }
.wa-step[data-state="pending"] .wa-step-title { color: var(--app-text-subtle); font-weight: 500; }

.wa-runwrap { overflow-x: auto; }
.wa-runs { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.wa-runs th {
  text-align: left;
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--app-text-subtle);
  padding: 0 12px 6px 0;
  border-bottom: 1px solid var(--app-border);
  white-space: nowrap;
}
.wa-runs td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--app-border); vertical-align: baseline; }
.wa-runs tr:last-child td { border-bottom: 0; }
.wa-run-host { color: var(--app-text-muted); font-size: 0.875rem; overflow-wrap: anywhere; }

/* --- the report ---------------------------------------------------------- */

.wa-counts { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; }
.wa-count {
  font-family: var(--app-font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 8px;
  border: 1px solid var(--app-border);
  color: var(--app-text-muted);
  background: var(--app-surface);
}
.wa-count.danger { border-color: var(--app-danger); color: var(--app-danger); }
.wa-count.warning { border-color: var(--app-warning); color: var(--app-warning); }

.wa-section { margin: 30px 0 0; }
.wa-section-head { display: flex; align-items: baseline; gap: 10px; border-bottom: 1.5px solid var(--app-text); padding-bottom: 6px; }
.wa-section-head h2 { font-family: var(--app-font-head); font-size: 1.2rem; margin: 0; }
.wa-section-count { font-family: var(--app-font-mono); font-size: 0.8125rem; color: var(--app-text-subtle); }
.wa-section-note { margin: 8px 0 4px; font-size: 0.875rem; color: var(--app-text-subtle); }
.wa-findings { list-style: none; margin: 0; padding: 0; counter-reset: finding; }

/* --- a finding in a list of them ----------------------------------------- */
/* Two drawings of the same data, so each one keeps its own rules rather than
   fighting the other.
   The run record's list is a log: compact rows one after another, the quote
   with a hairline down its left margin. The selectors are held off the report's
   own list (`.wa-report-findings`, added by the report page) because there a
   finding is the document itself: a sheet with the pen on it, drawn below. */
.wa-findings:not(.wa-report-findings) .wa-finding { padding: 18px 0; border-bottom: 1px solid var(--app-border); }
.wa-findings:not(.wa-report-findings) .wa-finding-title {
  font-family: var(--app-font-head);
  font-size: 1.0625rem;
  margin: 0 0 6px;
  font-weight: 650;
}
.wa-findings:not(.wa-report-findings) .wa-finding-where {
  margin: 0 0 10px;
  display: flex;
  gap: 10px;
  align-items: baseline;
  flex-wrap: wrap;
}
.wa-findings:not(.wa-report-findings) .wa-finding-url {
  font-size: 0.8125rem;
  overflow-wrap: anywhere;
  color: var(--app-text-muted);
}
.wa-findings:not(.wa-report-findings) .wa-also {
  margin: 0 0 10px;
  font-size: 0.8125rem;
  color: var(--app-text-subtle);
}
.wa-findings:not(.wa-report-findings) .wa-also ul {
  margin: 6px 0 0;
  padding-left: 18px;
  font-family: var(--app-font-mono);
}
.wa-also summary { cursor: pointer; }
.wa-why, .wa-fix { margin: 0 0 10px; font-size: 0.9375rem; color: var(--app-text-muted); max-width: 74ch; }
.wa-findings:not(.wa-report-findings) .wa-quote {
  border-left: 2px solid var(--app-border-strong);
  padding: 4px 0 4px 12px;
  margin: 10px 0 0;
}
.wa-findings:not(.wa-report-findings) .wa-quote .wa-label { margin-bottom: 4px; }
.wa-findings:not(.wa-report-findings) .wa-quote pre {
  margin: 0;
  font-family: var(--app-font-mono);
  font-size: 0.8125rem;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--app-text);
}

/* --- one finding, on the report page ------------------------------------- */
/* A finding is a sheet lying on the paper: the report lists several of them, so
   each is a page of its own with the pen on it. */
.wa-report-findings .wa-finding {
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-lg);
  box-shadow: var(--wa-sheet-shadow);
  padding: 1.625rem;
  margin: 0 0 1.125rem;
}
.wa-report-findings .wa-finding-head {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  flex-wrap: wrap;
  margin: 0 0 0.9375rem;
}
/* A bordered chip, not a filled one: the border and the word carry the colour. */
.wa-report-findings .wa-finding .wa-finding-sev { background: transparent; }
.wa-report-findings .wa-finding-path {
  font-family: var(--app-font-mono);
  font-size: 0.8125rem;
  color: var(--app-text-subtle);
  overflow-wrap: anywhere;
}
.wa-report-findings .wa-finding-title {
  font-family: var(--app-font-head);
  font-size: clamp(1.3125rem, 1.1rem + 0.7vw, 1.625rem);
  line-height: 1.22;
  letter-spacing: -0.012em;
  font-weight: 700;
  margin: 0;
  overflow-wrap: anywhere;
}
/* WHICH TEST FOUND IT, under the title and above the quote: one quiet line, in
   the same small size as the rest of the finding's furniture, so it is read
   when a reader wants it and does not compete with the title. */
.wa-report-findings .wa-finding-testedby {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  color: var(--app-text-subtle);
}
.wa-report-findings .wa-finding-where {
  margin: 1.25rem 0 0;
  display: flex;
  gap: 10px;
  align-items: baseline;
  flex-wrap: wrap;
}
.wa-report-findings .wa-finding-url { font-size: 0.8125rem; color: var(--app-text-subtle); }
.wa-report-findings .wa-also { margin: 0.75rem 0 0; font-size: 0.8125rem; color: var(--app-text-subtle); }
.wa-report-findings .wa-also ul { margin: 6px 0 0; padding-left: 18px; font-family: var(--app-font-mono); }
.wa-report-findings .wa-finding-rule { border: 0; border-top: 1px dashed var(--app-border); margin: 1.25rem 0 0.875rem; }
.wa-report-findings .wa-fix { margin: 0; line-height: 1.58; }

/* --- the quote ------------------------------------------------------------ */
/* The label used to clear the 13px the hand-drawn ring overshot above the
   strip. The ring is gone (see the note in signed-in-pages.ts), so the label
   sits over the strip the way every other label sits over what it names. */
.wa-report-findings .wa-quote { margin: 1.5rem 0 0; }
.wa-report-findings .wa-quote .wa-label { margin: 0 0 0.625rem; }
/* The strip hugs its own text: a page of the customer's own answer, printed on
   a slightly darker sheet. The right padding no longer reserves room for a
   stroke beyond it, so the strip is even on both sides. */
.wa-report-findings .wa-quote-mark {
  position: relative;
  display: inline-block;
  vertical-align: top;
  max-width: 100%;
  padding: 1rem 1.25rem;
  background: var(--app-surface-2);
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius);
}
.wa-report-findings .wa-quote-mark pre {
  position: relative;
  z-index: 2;
  margin: 0;
  font-family: var(--app-font-mono);
  font-size: 0.9375rem;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--app-text);
}
/* Two elliptical strokes used to be drawn here, round the quote, one per
   finding. They are gone: the owner read our own published example and said
   the ring was annoying, and it was the same stamp eight times down a page.
   Nothing replaces it. Red on this page now means what it has always meant
   here: the severity of the thing, and nothing else. */
/* --- how to reproduce it ---------------------------------------------------
   Under the fix: the requests this scan made, in order, and what to look for
   in the answer. Every line a reader could copy and use takes its own line in
   the mono face, on the app's own paper, because that is what this app does
   with anything evidential. No red in here: this block is not wrongness, it is
   the proof, and it has to read as something a person can follow. */
.wa-report-findings .wa-repro {
  margin: 1.25rem 0 0;
  padding: 0.875rem 1rem 1rem;
  border: 1px solid var(--app-border);
  background: var(--app-bg);
}
.wa-report-findings .wa-repro .wa-label { margin: 0 0 0.625rem; }
.wa-report-findings .wa-repro-lines {
  margin: 0;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--app-text-muted);
}
.wa-report-findings .wa-repro-lines li { padding-left: 0.125rem; }
/* A request the scan made: the boxed line a reader types. */
.wa-report-findings .wa-repro-req {
  display: block;
  padding: 7px 9px;
  border: 1px solid var(--app-border);
  background: var(--app-surface);
  font-family: var(--app-font-mono);
  font-size: 0.875rem;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--app-text);
}
/* A value the line before it introduces — the address a form posts to, the tag
   that came back, the message that was sent. Same mono face, but set inline and
   unboxed, so it reads as a thing to find in the answer rather than a request
   to make. */
.wa-report-findings .wa-repro-val {
  display: inline-block;
  max-width: 100%;
  padding: 1px 5px;
  border-radius: var(--app-radius);
  background: var(--app-surface);
  font-family: var(--app-font-mono);
  font-size: 0.8125rem;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--app-text);
}
.wa-endnotes { margin-top: 30px; }
.wa-takeaway { margin: 16px 0 0; }

/* --- the account's own page ---------------------------------------------- */

.wa-form { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; margin: 0; }
.wa-form .wa-field { width: 100%; max-width: 420px; }
.wa-check { display: flex; gap: 9px; align-items: flex-start; font-size: 0.9375rem; color: var(--app-text-muted); }
.wa-check input { margin-top: 3px; }
.wa-list { margin: 0 0 12px; padding-left: 18px; font-size: 0.9375rem; color: var(--app-text-muted); }
.wa-list li { margin-bottom: 4px; }
.wa-secret {
  border: 1px solid var(--app-border-strong);
  background: var(--app-bg);
  padding: 12px 14px;
  margin: 0 0 12px;
}
.wa-secret code {
  display: block;
  font-family: var(--app-font-mono);
  font-size: 0.875rem;
  overflow-wrap: anywhere;
  user-select: all;
  color: var(--app-text);
}
.wa-secret .wa-note { margin: 8px 0 0; }

/* --- the foot ------------------------------------------------------------ */

.wa-foot { border-top: 1px solid var(--app-border); }
.wa-foot-in {
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 32px 40px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--app-text-subtle);
}
.wa-foot-in nav { display: flex; gap: 18px; flex-wrap: wrap; }
.wa-foot-in a { color: var(--app-text-muted); text-decoration: none; border-bottom: 1px solid transparent; }
.wa-foot-in a:hover { color: var(--app-text); border-color: var(--app-text); }

/* --- a narrower screen --------------------------------------------------- */

@media (max-width: 860px) {
  .wa-bar-in { gap: 12px; padding: 10px 18px; }
  .wa-page { padding: 0 18px 48px; }
  .wa-foot-in { padding: 16px 18px 32px; }
  .wa-pagehead { margin: 24px 0 18px; }
  .wa-pagehead h1 { font-size: 1.5rem; }
  /* An address cannot fit a phone line at heading size: at 390 wide a
     25-character host comes out a hair wider than the page, which is how the
     break in the middle of a word happened. It steps down with the screen, so
     an ordinary host stays on one line (measured: 25 characters of mono fit the
     298px box at 19.5px), and a longer one wraps at its dots. */
  .wa-pagehead h1.wa-addr-h1 { font-size: clamp(1.125rem, 5vw, 1.3125rem); }
  /* The same for an address on a card, a step smaller so `https://` plus a
     host of 25 characters keeps to one line on a phone. */
  .wa-addr { font-size: 0.9375rem; }
  .wa-addform, .wa-addform .wa-field, .wa-addform .app-input { width: 100%; min-width: 0; }
  .wa-addform .app-btn { width: 100%; }
  .wa-nav { width: 100%; order: 3; margin-right: 0; }
  .wa-bar-end { margin-left: auto; }
  .wa-sitecard-head { flex-direction: column; }
  .wa-runs thead { display: none; }
  .wa-runs, .wa-runs tbody, .wa-runs tr, .wa-runs td { display: block; width: 100%; }
  .wa-runs tr { border-bottom: 1px solid var(--app-border); padding: 12px 0; }
  .wa-runs td { border: 0; padding: 2px 0; display: flex; gap: 10px; }
  .wa-runs td::before {
    content: attr(data-label);
    flex: 0 0 84px;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--app-text-subtle);
  }
  .wa-chip { align-self: flex-start; }

  /* The finding card on a phone: a smaller sheet, and the quote at the same
     width as the text above it. */
  .wa-report-findings .wa-finding { padding: 1.125rem; }
  .wa-report-findings .wa-finding-title { font-size: 1.3125rem; }
  .wa-report-findings .wa-quote .wa-label { margin-bottom: 0.5rem; }
  .wa-report-findings .wa-quote-mark { padding: 0.875rem 1rem; }
  .wa-report-findings .wa-quote-mark pre { font-size: 0.875rem; }
  .wa-report-findings .wa-repro { padding: 0.875rem 0.875rem 1rem; }
  .wa-report-findings .wa-repro-lines { padding-left: 1.125rem; font-size: 0.9375rem; }
  .wa-report-findings .wa-repro-req { font-size: 0.8125rem; }
  .wa-report-findings .wa-repro-val { font-size: 0.75rem; }
}

/* ==========================================================================
   THE ADD-A-SITE SCREEN

   Built from .bolter/mockups/scan-start-screen.html, the sheet the owner read
   and said was right. Every measurement, rule and space below is that file's;
   the only things that move are the ones this app cannot avoid:

     - its colours point at the --app-* tokens instead of holding hex values, so
       the sheet has a dark mode like every other screen here;
     - its type is the app's own (sans for prose, mono for anything evidential)
       rather than the mockup's Georgia, because every other signed-in page is
       sans and this screen sits among them;
     - its "Copy" control is not drawn: there is no script on these pages, and a
       button that copies nothing is worse than the value being selectable;
     - two steps and a bottom row are drawn differently when there is no site
       waiting to be proved, because the mockup assumes a site already exists.
   ========================================================================== */

.wa-start {
  background: var(--app-surface);
  /* the ruling of a sheet: a hairline every 32px, as the mockup prints it */
  background-image: repeating-linear-gradient(to bottom, transparent 0 31px,
    color-mix(in srgb, var(--app-text) 7%, transparent) 31px 32px);
  border: 1px solid var(--app-border);
  box-shadow: var(--wa-sheet-shadow);
  padding: 30px 38px 38px;
  margin: 0 0 36px;
  /* A long address is one of the things this screen prints, so the sheet wraps
     rather than pushing the page sideways at 390. */
  overflow-wrap: anywhere;
}

/* the strip: what this is, and the state it is in */
.wa-start-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--app-text);
  padding-bottom: 9px;
  margin: 0 0 24px;
}
.wa-start-kicker {
  font-family: var(--app-font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--app-text);
}
.wa-start-meta {
  font-family: var(--app-font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--app-text-subtle);
}

:root .wa-start-h {
  font-family: var(--app-font-head);
  font-size: 1.9375rem;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  color: var(--app-text);
}
.wa-start-sub {
  color: var(--app-text-subtle);
  font-size: 0.9375rem;
  line-height: 1.5;
  margin: 0 0 28px;
  max-width: 560px;
}

.wa-start-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 288px;
  gap: 52px;
}

/* --- one numbered step --------------------------------------------------- */

.wa-start-group { margin: 0; }
.wa-start-step {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 16px;
  padding: 0 0 26px;
  margin: 0 0 26px;
  border-bottom: 1px dashed var(--app-border);
}
/* the last step of the whole column carries no rule under it */
.wa-start-steps > :last-child > .wa-start-step:last-child {
  border-bottom: 0;
  margin-bottom: 8px;
}
.wa-start-num {
  font-family: var(--app-font-mono);
  font-size: 0.75rem;
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--app-text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--app-text);
}
:root .wa-start-h3 {
  font-family: var(--app-font-head);
  font-size: 1.125rem;
  font-weight: 400;
  letter-spacing: -0.005em;
  margin: 2px 0 5px;
  color: var(--app-text);
}
.wa-start-hint {
  font-size: 0.84375rem;
  line-height: 1.5;
  color: var(--app-text-subtle);
  margin: 0 0 14px;
  max-width: 62ch;
}
/* WHAT A SECOND SITE COSTS. The same size as the hint above it and darker,
   because it is a price and the words around it are guidance. */
.wa-start-hint.wa-extra-note {
  color: var(--app-text);
  margin-top: 6px;
}

/* --- a code to type in: one field and one button, on one line ----------- */

.wa-code-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}
.wa-code-input {
  font-family: var(--app-font-mono);
  letter-spacing: 0.08em;
  max-width: 20ch;
}
/* On a phone the field takes the width it is given and the button sits under it
   at the same width. Side by side there, the field kept its 20 characters and the
   button dropped below on its own, which read as a mistake rather than a choice. */
@media (max-width: 640px) {
  .wa-code-form {
    align-items: stretch;
  }
  .wa-code-input {
    max-width: none;
    width: 100%;
  }
  .wa-code-form .app-btn {
    width: 100%;
  }
}
/* The code just made, on the admin page: the one moment its plain value exists. */
.wa-code-made {
  font-family: var(--app-font-mono);
  font-size: 1.4rem;
  letter-spacing: 0.12em;
  color: var(--app-text);
  background: var(--app-sheet-sunk, rgba(0,0,0,.05));
  border: 1px solid var(--app-border);
  border-radius: 6px;
  padding: 12px 14px;
  margin: 10px 0 8px;
  user-select: all;
  word-break: break-all;
}

/* The accounts that pay with a test card, on the admin page: one line each, with
   the way to put one back on the live form beside it. */
.wa-pay-who {
  list-style: none;
  margin: 10px 0 14px;
  padding: 0;
}
.wa-pay-who li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--app-border);
}
.wa-pay-who li:last-child { border-bottom: 0; }
.wa-pay-who form { margin: 0; }
.app-btn.wa-small {
  padding: 5px 10px;
  font-size: 0.8125rem;
}

/* --- a field: a label in small capitals, an underline to write on -------- */

.wa-start-label {
  display: block;
  font-family: var(--app-font-mono);
  font-size: 0.65625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--app-text-subtle);
  margin: 0 0 6px;
}
.wa-start-input {
  width: 100%;
  min-width: 0;
  font-family: var(--app-font-mono);
  font-size: 0.875rem;
  color: var(--app-text);
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--app-text);
  border-radius: 0;
  padding: 8px 2px;
  appearance: none;
}
.wa-start-input::placeholder { color: var(--app-text-subtle); opacity: 0.75; }
.wa-start-input:focus-visible { outline: 2px solid var(--app-text); outline-offset: 3px; }

/* The address and the button that sends it, drawn as one control: it is typed
   and sent in the same place, at every width, so no one has to find the button
   somewhere else on the sheet. */
.wa-start-addrow {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin: 4px 0 0;
}
.wa-start-addrow .wa-start-input { flex: 1 1 auto; }
.wa-start-addrow .wa-start-btn { flex: 0 0 auto; white-space: nowrap; }

/* The address already on the list and waiting to be proved: a square of ink and
   the host, the sheet's way of saying which one is in hand. */
.wa-start-taken {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 6px 0 8px;
  font-family: var(--app-font-mono);
  font-size: 0.875rem;
  color: var(--app-text);
  overflow-wrap: anywhere;
}
.wa-start-taken::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  background: var(--app-text);
}

/* A second site can be added without leaving the sheet, and without a second
   field competing with the one that matters. */
.wa-start-more { margin: 10px 0 0; }
.wa-start-more summary {
  width: fit-content;
  cursor: pointer;
  font-family: var(--app-font-mono);
  font-size: 0.71875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--app-text-muted);
  padding: 4px 0;
}
.wa-start-more summary:hover { color: var(--app-text); }
.wa-start-more[open] summary { margin-bottom: 4px; }
.wa-start-more .wa-start-addrow { margin-top: 0; }
/* ON THE SITES PAGE, where a second site is added below the list: the same
   disclosure, given the room a page-level control needs, with the sheet it
   opens landing under it. */
.wa-add-more { margin: 26px 0 30px; }
.wa-add-more summary {
  padding: 6px 0;
  font-size: 0.75rem;
}
.wa-add-more[open] summary { margin-bottom: 14px; }
.wa-start-suffix {
  font-family: var(--app-font-mono);
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--app-text-subtle);
  margin: 7px 0 0;
}
/* THE ONE TICK: the permission for break-in attempts on this site, given on the
   form that adds it. The box comes first and the plain words follow, because the
   words are what is being agreed to. It sits directly above the button that adds
   the site, so the address and the answer are one action. */
/* WHAT THE TICK IS AGREEING TO. The whole list of what a check may try, in a
   disclosure directly above the one permission line, so the permission and the
   thing being permitted are read in the same glance. Closed by default: the
   form still asks one question, and the answer is one click away. */
.wa-start-may-try { margin: 16px 0 0; }
.wa-start-may-try summary { padding: 2px 0; }
.wa-start-may-try-intro {
  margin: 6px 0 8px;
  font-size: 0.78125rem;
  line-height: 1.65;
  color: var(--app-text-muted);
  max-width: 62ch;
}
.wa-start-may-try-list {
  margin: 0;
  padding-left: 16px;
  font-size: 0.78125rem;
  line-height: 1.65;
  color: var(--app-text-muted);
  max-width: 62ch;
}
.wa-start-may-try-list li { margin-bottom: 7px; }
.wa-start-may-try-list strong { color: var(--app-text); font-weight: 600; }
/* WHAT THE TICK LETS A CHECK READ, in one sentence directly above the tick: the
   same size as the list, darker, because it is the thing being agreed to rather
   than a detail of how. */
.wa-start-reads {
  margin: 14px 0 0;
  font-size: 0.78125rem;
  line-height: 1.65;
  color: var(--app-text-muted);
  max-width: 62ch;
}
.wa-start-reads:last-child { margin-bottom: 0; }

.wa-start-tick {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--app-border);
  background: var(--app-surface-2);
  cursor: pointer;
}
.wa-start-tick input {
  flex: none;
  width: 15px;
  height: 15px;
  margin: 3px 0 0;
  accent-color: var(--app-text);
}
.wa-start-tick span {
  font-size: 0.78125rem;
  line-height: 1.65;
  color: var(--app-text-muted);
}

.wa-start-note {
  font-family: var(--app-font-mono);
  font-size: 0.71875rem;
  line-height: 1.7;
  color: var(--app-text-subtle);
  margin: 14px 0 0;
  max-width: 62ch;
}
.wa-start-note .app-mono { color: var(--app-text-muted); overflow-wrap: anywhere; }

/* --- the token box ------------------------------------------------------- */

.wa-start-tokenbox {
  margin-top: 16px;
  border: 1px solid var(--app-border);
  background: var(--app-surface-2);
  padding: 12px 14px;
  font-family: var(--app-font-mono);
  font-size: 0.78125rem;
  line-height: 1.7;
}
.wa-start-path { color: var(--app-text-subtle); overflow-wrap: anywhere; }
.wa-start-path b { color: var(--app-text); font-weight: 400; }
.wa-start-val { color: var(--app-text); overflow-wrap: anywhere; user-select: all; }
.wa-start-wait { margin: 0; color: var(--app-text-subtle); font-size: 0.75rem; line-height: 1.7; }

/* --- a row of controls, the buttons, and the pen round one of them ------- */

.wa-start-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 16px;
}
.wa-start-foot { margin-top: 28px; }
.wa-start-btn {
  font-family: var(--app-font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 11px 20px;
  border: 1.5px solid var(--app-text);
  border-radius: 2px;
  background: transparent;
  color: var(--app-text);
  cursor: pointer;
  transition: background 120ms linear, border-color 120ms linear;
}
.wa-start-btn:hover { background: var(--app-surface-2); }
.wa-start-btn:focus-visible { outline: 2px solid var(--app-text); outline-offset: 2px; }
.wa-start-btn.is-dark {
  background: var(--app-text);
  border-color: var(--app-text);
  color: var(--app-on-accent);
}
.wa-start-btn.is-dark:hover { background: var(--app-accent-hover); border-color: var(--app-accent-hover); }
.wa-start-circle {
  position: relative;
  display: inline-block;
  padding: 10px 6px;
  color: var(--app-danger);
}
.wa-start-circle svg {
  position: absolute;
  inset: -9px -14px;
  width: calc(100% + 28px);
  height: calc(100% + 18px);
  pointer-events: none;
}
.wa-start-circle .wa-start-btn { position: relative; z-index: 1; }

/* the state of the next thing to happen: red when something is missing */
.wa-start-state {
  font-family: var(--app-font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--app-danger);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.wa-start-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--app-danger); flex: none; }
.wa-start-state.is-quiet { color: var(--app-text-subtle); }
.wa-start-state.is-quiet .wa-start-dot { background: var(--app-text-subtle); }

/* a note in the margin, in the pen's own hand */
.wa-start-margin {
  font-family: var(--app-font-mono);
  font-size: 0.71875rem;
  line-height: 1.6;
  color: var(--app-danger);
  transform: rotate(-1.6deg);
  margin: 16px 0 0;
  max-width: 420px;
}

.wa-start-twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* --- the margin: the stamp and the two lists ----------------------------- */

.wa-start-aside {
  border-left: 1px solid var(--app-border);
  padding-left: 24px;
}
.wa-start-stamp {
  display: inline-block;
  transform: rotate(-3.2deg);
  border: 2px solid var(--app-danger);
  color: var(--app-danger);
  font-family: var(--app-font-mono);
  font-size: 0.65625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 9px;
  margin: 0 0 16px;
}
:root .wa-start-aside h3 {
  font-family: var(--app-font-mono);
  font-size: 0.65625rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--app-text-subtle);
  margin: 0 0 14px;
}
.wa-start-aside ul {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  font-size: 0.84375rem;
  line-height: 1.55;
  color: var(--app-text-muted);
}
.wa-start-aside li { position: relative; padding-left: 16px; margin-bottom: 11px; }
.wa-start-aside li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--app-text);
}
.wa-start-fine {
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--app-text-subtle);
  border-top: 1px dashed var(--app-border);
  padding-top: 14px;
  margin: 0;
}

/* --- a narrow screen: the same sheet, one column -------------------------- */

@media (max-width: 860px) {
  .wa-start { padding: 22px 18px 26px; }
  :root .wa-start-h { font-size: 1.5rem; }
  .wa-start-sub { margin-bottom: 24px; }
  .wa-start-cols { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .wa-start-aside {
    border-left: 0;
    border-top: 1px dashed var(--app-border);
    padding-left: 0;
    padding-top: 20px;
  }
  .wa-start-step { grid-template-columns: 24px minmax(0, 1fr); gap: 12px; padding-bottom: 22px; margin-bottom: 22px; }
  .wa-start-num { width: 22px; height: 22px; font-size: 0.6875rem; }
  .wa-start-twocol { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .wa-start-margin { max-width: none; }
  .wa-start-btn { padding: 11px 16px; }
  /* The address and its button stack in one column: side by side, the field is
     too narrow to read an address in on a phone. */
  .wa-start-addrow { flex-direction: column; align-items: stretch; gap: 12px; }
  .wa-start-addrow .wa-start-btn { width: 100%; }
  /* The pen clears the button by 14px either side, which a 390px screen does not
     have to spare: it is pulled in with the sheet's own padding. */
  .wa-start-circle svg { inset: -8px -10px; width: calc(100% + 20px); height: calc(100% + 16px); }
}

/* --- the line in the page head -------------------------------------------- */
/*
   Built from .bolter/mockups/prove-nocode-app.html, the screen drawn for
   somebody whose app sits on Lovable, Replit or v0. The layout is that file's:
   one sheet per step, the label above the step's name, the line in a block of
   its own, a Copy beside it, and the button that reads the page back under the
   sentence that explains it. What moves is what this app cannot carry:

     - the colours are the --app-* tokens, so the screen has a dark mode like
       every other signed-in page;
     - the line's block is a tint of the page rather than the mockup's near-black,
       which in dark mode would be a hole in the sheet;
     - the button is the app's own `.app-btn`, full width on a phone the way the
       mockup draws it, and its own width from 861px up.
*/
.wa-tagline {
  display: block;
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--app-border-strong);
  border-radius: 10px;
  background: color-mix(in srgb, var(--app-text) 7%, var(--app-bg));
  color: var(--app-text);
  font-family: var(--app-font-mono);
  font-size: 0.8125rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
  /* the whole line is copied, so a selection dragged across it stays one run */
  user-select: all;
}
.wa-copyrow { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 10px 0 0; }
.wa-copyrow .wa-note { flex: 1 1 200px; margin: 0; }
.wa-copyrow .app-btn { flex: 0 0 auto; }
.wa-prove-card .wa-label { margin-bottom: 6px; }
.wa-prove-card .wa-bad { margin: 14px 0 0; }
/* The one box on the page that states where things stand: a flat tint with a
   quiet rule down its left, the same shape the account page uses for the plan. */
.wa-state {
  margin: 0;
  padding: 12px 14px;
  border-left: 3px solid var(--app-border-strong);
  border-radius: 8px;
  background: var(--app-bg);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--app-text);
  max-width: 68ch;
}
.wa-state p { margin: 0; }
.wa-state b { font-weight: 640; }
.wa-state + .wa-state { margin-top: 10px; }
.wa-prove-where { margin: 14px 0 0; }
.wa-prove-check { margin: 14px 0 0; }
.wa-prove-check .app-btn { display: block; width: 100%; text-align: center; }
.wa-prove-other {
  margin: 0 0 18px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--app-text-muted);
  max-width: 68ch;
}
@media (min-width: 861px) {
  .wa-prove-check .app-btn { display: inline-block; width: auto; }
}

/* --- what is new, what is still open, what closed ------------------------- */
/* A report is read week after week, so the one thing a returning customer needs
   before anything else is which lines they have already seen. The two words sit
   beside the severity, small and in the mono face like the other stamps on the
   page, and only the new one is allowed any colour: everything else on a report
   that shouts makes nothing shout. */
.wa-life {
  font-family: var(--app-font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--app-text-subtle);
  border: 1px solid var(--app-border);
  padding: 2px 6px;
}
.wa-life.is-new { color: var(--app-accent, #2d73c4); border-color: currentColor; }
.wa-life.is-closed { color: var(--app-success); border-color: currentColor; }
.wa-life.is-waved { color: var(--app-text-muted); border-style: dashed; }
.wa-life.is-just { color: var(--app-accent, #2d73c4); border-color: currentColor; }

/* WHAT THE LAST PRESS DID (3 Nov 2026).

   Waving a finding away and bringing one back both change a list near the foot
   of a long report, and the page came back at the top, so the press looked like
   it had done nothing. The redirect now lands on the list that changed, and this
   line says which row moved, in the same ink as the rest of the page. */
.wa-acted {
  margin: 12px 0 4px;
  padding: 9px 12px;
  border-left: 3px solid var(--app-accent, #2d73c4);
  background: var(--app-surface-2, #f2f1ec);
  font-size: 0.9375rem;
}
.wa-closed-row.is-just { background: var(--app-surface-2, #f2f1ec); }

/* The closed list is a record, not a list to work through, so it is quiet:
   one line each, the title first, the address after it. */
.wa-section.wa-closed .wa-section-head { border-bottom-color: var(--app-border); }
.wa-closed-list { list-style: none; margin: 10px 0 0; padding: 0; }
.wa-closed-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--app-border);
  font-size: 0.9375rem;
}
.wa-closed-title { font-weight: 600; }
.wa-closed-row .wa-finding-path { margin-left: auto; color: var(--app-text-subtle); }

/* Waving one away is a correction to the list, so it is drawn as a small aside
   at the foot of a finding rather than as a primary action beside the fix. */
.wa-wave { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin: 14px 0 0; }
.wa-wave-btn {
  font: inherit;
  font-size: 0.8125rem;
  color: var(--app-text-muted);
  background: none;
  border: 1px solid var(--app-border);
  padding: 4px 10px;
  cursor: pointer;
}
.wa-wave-btn:hover { color: var(--app-text); border-color: var(--app-text-muted); }
.wa-wave-why { font-size: 0.8125rem; color: var(--app-text-subtle); }
.wa-waved h2 { font-family: var(--app-font-head); font-size: 1.1rem; margin: 0 0 6px; }

/*
  WHICH SITES ONE INVITE OPENS (3 Nov 2026).

  An invite is a person plus a pick, so the pick sits under the address box as a
  list of ticked hosts, and the same list is folded open under a person to change
  it later. The rows wrap rather than scroll, because a host is a word a phone
  cannot split, and the label wraps the box with its host so a press anywhere on
  the row ticks it.
*/
.wa-picks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 10px 0 0; }
.wa-pick {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  font-size: 0.9375rem;
  color: var(--app-text);
  cursor: pointer;
}
.wa-pick input { margin: 0; accent-color: var(--red); flex: 0 0 auto; }
.wa-pick-host { overflow-wrap: anywhere; }
.wa-pick-more { flex: 1 1 100%; margin: 0; }
.wa-pick-more > summary {
  cursor: pointer;
  padding: 6px 0 2px;
  font-size: 0.875rem;
  color: var(--app-text-subtle);
}
.wa-pick-more > summary:hover { color: var(--app-text); }
.wa-pick-form { margin: 4px 0 10px; }
.wa-pick-form .app-btn { margin-top: 10px; }
.wa-invite .wa-note { margin: 10px 0 0; }
/* The invite's own button, under the sites it will open. */
.wa-invite-go { margin: 14px 0 0; }
.wa-invite-go .app-btn { flex: 0 0 auto; }

/* --- what the scan got back ------------------------------------------------
   Under the quote: the status the scan's own request got and the headers that
   came back, then one line a person can paste into a browser with what they
   should see if the hole is real. It is the same paper-and-ink as the block
   above it and no red, for the same reason: this is the proof, not wrongness.
   The status is one sentence in the reading face; the headers are evidential
   and take the mono face on their own lines, the way every other value this
   app prints does. */
.wa-report-findings .wa-proof {
  margin: 0.875rem 0 0;
  padding: 0.75rem 1rem 0.875rem;
  border: 1px solid var(--app-border);
  border-left: 2px solid var(--app-border-strong);
  background: var(--app-surface);
}
.wa-report-findings .wa-proof .wa-label { margin: 0 0 0.375rem; }
.wa-report-findings .wa-proof-status {
  margin: 0 0 0.625rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--app-text);
}
.wa-report-findings .wa-proof-head {
  margin: 0 0 0.375rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--app-text-muted);
}
.wa-report-findings .wa-proof-headers {
  margin: 0 0 0.75rem;
  padding: 0.5rem 0.625rem;
  box-sizing: border-box;
  max-width: 100%;
  border: 1px solid var(--app-border);
  background: var(--app-bg);
  font-family: var(--app-font-mono);
  font-size: 0.8125rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--app-text);
}
.wa-report-findings .wa-proof-try {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--app-text-muted);
  max-width: 68ch;
}
.wa-report-findings .wa-proof-try:last-child { margin-bottom: 0; }
@media (max-width: 640px) {
  .wa-report-findings .wa-proof { padding: 0.625rem 0.75rem 0.75rem; }
  .wa-report-findings .wa-proof-headers { font-size: 0.75rem; }
}

/* ============================================================================
   THE WEEK PAGE: the daily plan's one report a week, each day added to it.

   The page the owner answered on 11 November 2026 ("This reads right"): the
   seven days as a list of rows, then what is still open, what closed, and what
   the week covered. It reuses the report's own blocks (.wa-sheet, .wa-finding,
   .wa-closed-list) and adds only what a week has and a report does not: a row
   that is one day, and the day a closed hole was last read.
   ========================================================================== */

.wa-week-days { list-style: none; margin: 0; padding: 0; }
.wa-week-days li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--app-border);
}
.wa-week-days li:last-child { border-bottom: 0; }
.wa-week-day {
  font-family: var(--app-font-mono);
  font-size: 0.8125rem;
  color: var(--app-text-muted);
  min-width: 92px;
}
.wa-week-what {
  flex: 1 1 240px;
  font-size: 0.9375rem;
  color: var(--app-text);
  overflow-wrap: anywhere;
}
.wa-week-days li[data-future="1"] .wa-week-what { color: var(--app-text-subtle); }
/* The chip's colours are the report's own: red for something new, green for a
   clear day, ink for a day that changed nothing but took something away. */
.wa-week-tag {
  font-family: var(--app-font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 8px;
  border: 1px solid var(--app-border-strong);
  color: var(--app-text-muted);
  white-space: nowrap;
}
.wa-week-tag.new { color: var(--app-danger); border-color: var(--app-danger); background: rgba(190, 51, 27, 0.08); }
.wa-week-tag.clear { color: var(--app-success); border-color: var(--app-success); }

/* A hole the week closed: the row, then the two days the claim rests on. */
.wa-week-closed-when {
  list-style: none;
  margin: -4px 0 10px;
  padding: 0 0 0 2px;
  font-size: 0.8125rem;
  color: var(--app-text-subtle);
}

/* The open list on a week page is drawn from the report's finding block, which
   is scoped to the report's own list. These three rules give the week's rows the
   same paper without the report page's sheet, because the week already holds
   them in one. */
.wa-week-hole { padding: 18px 0; border-bottom: 1px solid var(--app-border); }
.wa-week-hole:last-child { border-bottom: 0; padding-bottom: 0; }
.wa-week-hole .wa-finding-head { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin: 0 0 0.625rem; }
.wa-week-hole .wa-finding-path { font-family: var(--app-font-mono); font-size: 0.8125rem; color: var(--app-text-subtle); overflow-wrap: anywhere; }
.wa-week-hole .wa-finding-title { font-family: var(--app-font-head); font-size: 1.125rem; line-height: 1.25; font-weight: 650; margin: 0 0 0.75rem; overflow-wrap: anywhere; }
.wa-week-hole .wa-quote { margin: 0; }
.wa-week-hole .wa-quote .wa-label { margin: 0 0 0.5rem; }
.wa-week-hole .wa-quote-mark { background: var(--app-bg); border-left: 2px solid var(--app-border-strong); padding: 10px 12px; }
.wa-week-hole .wa-quote-mark pre { margin: 0; font-family: var(--app-font-mono); font-size: 0.8125rem; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--app-text); }
.wa-week-hole .wa-finding-rule { border: 0; border-top: 1px dashed var(--app-border); margin: 14px 0 0.75rem; }
.wa-week-hole .wa-fix { margin: 0; font-size: 0.9375rem; color: var(--app-text-muted); line-height: 1.58; max-width: 74ch; }

.wa-week-acts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 14px 0 0; }

/* ON A PHONE the row becomes two lines with the day and its chip on the first,
   so the reader sees which day and what it did before reading the sentence. The
   flex row above would otherwise push the chip below the text. */
@media (max-width: 640px) {
  .wa-week-days li {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
    align-items: baseline;
  }
  .wa-week-day { min-width: 0; grid-column: 1; grid-row: 1; }
  .wa-week-tag { grid-column: 2; grid-row: 1; justify-self: end; }
  .wa-week-what { grid-column: 1 / -1; grid-row: 2; flex-basis: auto; }
}
