/* The agent test (/test, /test/me, /test/read, /test/r/<id>) and the landing's calls to it.
   The landing's tokens (styles.css), exact values; the report card is the landing's dark panel in
   both themes (launch spec §3.2), so a screenshot looks the same whatever the agent's theme.
   Its own file: the landing's styles.css is shared with other work. */

/* Status tones on the dark panel (the dashboard's dark set), both themes. */
:root {
  --p-success: #6fd08c;
  --p-success-surface: #1f2e24;
  --p-success-stroke: #3f7a52;
  --p-warning: #f2c063;
  --p-warning-surface: #332a19;
  --p-warning-stroke: #8a6a2c;
  --share-link: #fd9c78;
  /* The result's one measure: the card, the box above it, its place while it is made and what
     follows it all end on the same edge (each was 40rem by its own rule). Wider than the test's
     reading column, so there the column sets it. */
  --card-measure: 56rem;
}

/* ---------- the landing's calls to the test ---------- */
.tryit a,
:where(.agent-page) a:where(:not(.button):not(.brand)) {
  color: var(--accent-text);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.navlink {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: 0.9375rem;
  color: var(--text);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  white-space: nowrap;
}
.navlink:hover {
  text-decoration: underline;
}
@media (max-width: 30rem) {
  .hide-sm {
    display: none !important;
  }
}
.tryit {
  margin-top: 1.75rem;
  border: 1px solid var(--stroke);
  border-left: 3px solid var(--accent);
  border-radius: 0.75rem;
  padding: 1.25rem;
  background: var(--surface-raised);
  max-width: 40rem;
}
.tryit h2,
.tryit__title {
  font-size: 1.1875rem;
  font-weight: 500;
  margin: 0.25rem 0;
  max-width: none;
}
.tryit__title a {
  text-decoration: none;
}
.tryit__pitch,
.tryit .fine {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.prompt {
  border: 1px dashed var(--stroke-strong);
  border-radius: 0.75rem;
  padding: 1rem;
  background: var(--surface-sunken);
}
.prompt__text {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text);
  margin: 0.25rem 0 0.75rem;
  overflow-wrap: anywhere;
}
.prompt__row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.875rem;
}
.button--sm {
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  cursor: pointer;
}
.button {
  font-family: inherit;
  cursor: pointer;
}
button.button--secondary {
  font-size: 1rem;
}
.demo__you {
  /* Its line is always reserved (the card never changes size); shown for a live person verdict. */
  visibility: hidden;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--panel-muted);
}
.demo__you a {
  color: var(--share-link);
}
.demo__you.is-on {
  visibility: visible;
}

/* ---------- the pages ---------- */
.agent-page {
  background: var(--surface);
}
/* The footer is at the foot of the screen on a short page (the next page, the text result, an
   expired card: it sat a third of the way down, over an empty screen). */
body.agent-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}
body.agent-page > main {
  flex: 1 0 auto;
}
.brand--link {
  color: var(--text);
  text-decoration: none;
  min-height: 2.75rem;
}
.agent-frame {
  padding-bottom: 4rem;
}
@media (min-width: 40rem) {
  .agent-frame {
    border-inline: 1px dashed var(--rail);
    padding-inline: 1.5rem;
  }
}
@media (min-width: 64rem) {
  .agent-frame {
    padding-inline: 3rem;
  }
}
.agent-page .section {
  padding: 2.5rem 0 2rem;
}
.agent-page .eyebrow .dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
}
.agent-h1 {
  font-size: 2.25rem;
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0.75rem 0 1rem;
  max-width: 24ch;
}
@media (min-width: 48rem) {
  .agent-h1 {
    font-size: 3.25rem;
  }
}
.agent-h1--step,
.step__title {
  font-size: 2rem;
  max-width: none;
}
.agent-page .lead {
  max-width: 38rem;
}
.agent-page .actions {
  flex-direction: row;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.actions--center {
  justify-content: center;
}
.actions--tight {
  margin-top: 0 !important;
}
.button--quiet {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--stroke);
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  font-size: 1.0625rem;
}
.button--quiet:hover {
  background: var(--surface-hover);
}
.button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}
.banner {
  min-height: 1.5rem;
  margin-top: 1rem;
  font-size: 0.9375rem;
}
.notready {
  margin-top: 0.75rem;
}
.fine {
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.grid2 {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}
@media (min-width: 56rem) {
  .grid2 {
    grid-template-columns: 1.15fr 1fr;
    align-items: start;
  }
}
.agent-page .card {
  border: 1px solid var(--stroke);
  border-radius: 0.75rem;
  padding: 1.5rem;
  background: var(--surface-raised);
}
.agent-page .card--sunken {
  background: var(--surface-sunken);
}
.agent-page .card p + p,
.agent-page .card .prompt {
  margin-top: 0.75rem;
}
.forperson > .fine {
  margin-top: 1rem;
}
.label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.4;
  max-width: none;
}
.label--gap {
  margin-top: 1.25rem;
}
.agentnote {
  border: 1px solid var(--stroke);
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--surface-raised);
}
.agentnote__head {
  background: var(--panel);
  color: var(--panel-text);
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.agentnote__head .label {
  color: var(--panel-muted);
}
/* The note's title at reading size and full contrast: plainly part of the page (AFP 35). */
.agentnote__title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--panel-text);
  margin: 0;
}
.agentnote__body {
  padding: 1rem 1.25rem 1.25rem;
  font-size: 0.9375rem;
}
.agentnote__body ol {
  padding-left: 1.25rem;
  margin: 0.5rem 0;
  list-style: decimal;
}
.agentnote__body li {
  margin: 0.25rem 0;
}
.agentnote__body p + p {
  margin-top: 0.5rem;
}

/* steps */
.steprow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.agent-step {
  padding: 2.5rem 0 2rem;
}
.step__title:focus {
  outline: none;
}
/* On its own in a row, a press target: at least 44px tall. */
.skip {
  min-height: 2.75rem;
}
.skip,
.linkbutton {
  font: inherit;
  font-size: 0.9375rem;
  color: var(--text-muted);
  text-decoration: underline;
  background: none;
  border: 0;
  padding: 0.5rem 0;
  cursor: pointer;
}
.linkbutton {
  color: var(--accent-text);
}
/* "Wrong? Tell us" ends a line of the box above the card: a press target, at least 44px tall. */
.fix__title .linkbutton {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}
.shownow {
  margin-top: 0.75rem;
}
.progress {
  display: flex;
  gap: 0.375rem;
  margin: 1.25rem 0 1.5rem;
}
.progress span {
  height: 0.25rem;
  flex: 1;
  border-radius: 1rem;
  background: var(--stroke);
}
.progress span.on {
  background: var(--accent);
}
.task {
  text-align: center;
  padding: 2.5rem 1rem;
  border: 1px dashed var(--stroke-strong);
  border-radius: 0.75rem;
  margin-top: 1rem;
}
/* A task's form ends at the panel's own padding (its bottom margin made every panel bottom-heavy);
   the line under it keeps its distance only once it says something. */
.task .typeform,
.task .controls,
.task .gift,
.task .hovercard {
  margin-bottom: 0;
}
.task .fine:not(:empty) {
  margin-top: 0.75rem;
}
.note {
  margin-top: 1.25rem;
  border-left: 3px solid var(--stroke-strong);
  padding: 0.25rem 0 0.25rem 0.875rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}
.bigbutton {
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 1.25rem;
  border: 0;
  box-shadow: 0 0 0 0.75rem color-mix(in srgb, var(--accent) 14%, transparent);
  margin: 1rem auto;
  display: grid;
  place-items: center;
  cursor: pointer;
}
a.bigbutton {
  text-decoration: none;
  text-align: center;
}
.hop {
  text-align: center;
}
.hop .actions {
  justify-content: center;
}
.word {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  letter-spacing: 0.08em;
  background: var(--surface-sunken);
  border: 1px solid var(--stroke);
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  display: inline-block;
  margin: 0.25rem 0 1.25rem;
}
.word--sentence {
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}
.controls {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.control {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.control .input {
  width: auto;
}
.gift {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.75rem;
}
/* One column, every label above its field and on its left edge (each row was centred by itself:
   three labels at three insets, and the fields three widths). */
.gift .control {
  flex-direction: column;
  align-items: stretch;
  gap: 0.375rem;
  width: 100%;
  max-width: 22rem;
  text-align: left;
}
.gift .control .input {
  width: 100%;
  max-width: none;
}
.gift .wrap {
  display: block;
}
.gift .note {
  /* The field under its label (the page's .note, a quoted line, brought a margin of its own). */
  margin-top: 0;
  width: 100%;
  min-height: 4.5rem;
  text-align: left;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.hovercard {
  max-width: 18rem;
  margin: 0 auto 0.75rem;
  padding: 1.5rem 1rem;
  border: 1px solid var(--stroke);
  border-radius: 0.75rem;
  background: var(--surface-sunken);
}
.hovercard p {
  margin: 0 0 1rem;
}
.typeform {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.input {
  width: 100%;
  max-width: 22rem;
  font: inherit;
  font-size: 1.125rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--stroke-strong);
  background: var(--surface-raised);
  color: var(--text);
}
.typeform .input {
  width: auto;
  flex: 1 1 12rem;
}
.checkin label {
  display: block;
  margin-bottom: 0.75rem;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 1rem 0;
}
.chip {
  font: inherit;
  font-size: 0.875rem;
  border: 1px solid var(--stroke-strong);
  border-radius: 2rem;
  padding: 0.3rem 0.75rem;
  background: var(--surface-raised);
  color: var(--text);
  cursor: pointer;
}
.arrow {
  font-size: 3rem;
  line-height: 1;
}
.trail {
  height: 120vh;
  border-left: 2px dashed var(--stroke-strong);
  width: 0;
  margin: 1rem auto;
}
.trail--short {
  height: 40vh;
}
.fox {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font: inherit;
  font-weight: 500;
  color: var(--text);
  background: var(--surface-raised);
  border: 1px solid var(--stroke-strong);
  border-radius: 1rem;
  padding: 1rem 1.5rem;
  cursor: pointer;
}
.fox__art {
  width: 4rem;
  height: 4rem;
}

/* ---------- the report card: a dark panel in both themes ---------- */
.result:focus {
  outline: none;
}
.rc {
  /* One inset for every part of the card (a part with its own number sat off the others' edge). */
  --rc-pad: 1.25rem;
  background: var(--panel);
  color: var(--panel-text);
  border-radius: 1rem;
  border: 1px solid var(--panel-stroke);
  overflow: hidden;
  max-width: var(--card-measure);
  /* The card lays itself out by its own width (the two columns below), wherever it is put. */
  container: rc / inline-size;
}
.rc--enter {
  animation: rc-in 0.4s var(--ease-out, ease-out) both;
}
@keyframes rc-in {
  from {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rc--enter {
    animation: none;
  }
}
.rc .label {
  color: var(--panel-muted);
}
.rc__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.875rem var(--rc-pad);
  border-bottom: 1px dashed var(--panel-stroke);
  gap: 0.75rem;
}
.rc__badge {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--panel-stroke);
  border-radius: 1rem;
  padding: 0.15rem 0.55rem;
  color: var(--panel-muted);
  white-space: nowrap;
}
.agentnote__head .rc__badge {
  color: var(--panel-muted);
}
.rc__main {
  padding: var(--rc-pad) var(--rc-pad) 0.5rem;
}
.rc__kicker {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--panel-muted);
}
.rc__name {
  font-size: 2rem;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0.25rem 0 0.75rem;
  max-width: none;
  color: var(--panel-text);
}
@media (min-width: 40rem) {
  .rc__name {
    font-size: 2.5rem;
  }
}
.rc__quip {
  color: var(--panel-muted);
  font-size: 1rem;
  margin-bottom: 1rem;
}
.rc__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0;
  list-style: none;
}
.rc .pill {
  display: inline-flex;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0;
  white-space: normal;
  border-radius: 2rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--panel-stroke);
  background: var(--panel-raised);
  color: var(--panel-text);
}
.rc .pill--ok {
  color: var(--p-success);
  background: var(--p-success-surface);
  border-color: var(--p-success-stroke);
}
.rc .pill--claim {
  color: var(--p-warning);
  background: var(--p-warning-surface);
  border-color: var(--p-warning-stroke);
}
.rc__rows {
  display: grid;
  border-top: 1px solid var(--panel-stroke);
  margin: 0;
}
.rc__row {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 0.75rem;
  padding: 0.625rem var(--rc-pad);
  border-bottom: 1px solid var(--panel-stroke);
  align-items: baseline;
}
.rc__row dt {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.rc .ic {
  width: 1rem;
  height: 1rem;
  flex: none;
  color: var(--panel-muted);
}
.rc__row dd {
  overflow-wrap: anywhere;
}
/* The verdict is the hero: the mark beside the kicker and the name. */
.rc__hero {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.rc__mark-tile {
  width: 3.5rem;
  height: 3.5rem;
  flex: none;
}
@media (min-width: 40rem) {
  .rc__mark-tile {
    width: 4.25rem;
    height: 4.25rem;
  }
}
.rc__hero .rc__name {
  margin-bottom: 0;
}
.rc__hero + .rc__quip,
.rc__hero + .rc__pills {
  margin-top: 0.875rem;
}
.rc__conn {
  border-top: 1px solid var(--panel-stroke);
  padding-top: 1rem;
}
.rc__rows + .rc__conn {
  border-top: 0;
}
/* A grid cell may shrink below the card's one-line head (its label ellipsizes instead). */
.grid2 > *,
.result {
  min-width: 0;
}
/* The card's title is whole at any width: on a narrow card it takes a second line (it was cut to
   "WTFISMYAGENT.SH · REPORT CA…" on a phone, and to half of that beside "LIVE, NOT SAVED"). */
.rc__head .label {
  min-width: 0;
  overflow-wrap: anywhere;
}
/* Padding, not a margin: a margin here ran through the frame to <main> and moved the whole page
   down as the card arrived. */
.result[data-result]:not([hidden]) {
  padding-top: 1.5rem;
}
/* The people view's card follows its heading and line: the grid's own margin is its room. */
.result[data-view='me']:not([hidden]) {
  padding-top: 0;
}
.rc__section {
  padding: 0 var(--rc-pad);
}
.rc__map {
  position: relative;
  max-width: 26rem;
  margin: 0.75rem auto;
  padding: 0 var(--rc-pad);
  box-sizing: content-box;
  aspect-ratio: 1000 / 431;
}
.rc__map img,
.rc__map svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.rc__map img {
  opacity: 0.9;
}
.rc__rows--facts {
  border-top: 1px solid var(--panel-stroke);
}
.optin {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  cursor: pointer;
}
.optin[hidden] {
  display: none;
}
.optin input {
  width: 1.125rem;
  height: 1.125rem;
  accent-color: var(--accent, #ff4500);
}
@media (max-width: 30rem) {
  .rc__row {
    grid-template-columns: 1fr;
    gap: 0.125rem;
  }
}
.rc__row dd {
  font-size: 0.9375rem;
  margin: 0;
}
/* ---------- The card on a wide enough panel: two columns ----------
   Who it is on the left (the mark and name, the chips, how it browses, the steps, what it runs, and
   the foot at the bottom); the connection on the right (the map, its rows, whose it is). Every part is the one
   above, in the same order in the document: only where it sits changes. By the card's own width (a
   container query), never the screen's: the landing page's narrow sample and a phone keep the single
   column. A card with no connection (a bot's) has nothing for a second column and keeps one too. */
@container rc (min-width: 42rem) {
  .rc__body:has(> .rc__conn) {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
      'main conn'
      'rows conn'
      'foot conn';
  }
  .rc__body:has(> .rc__conn) > .rc__main {
    grid-area: main;
    padding-bottom: var(--rc-pad);
  }
  /* The column's own inset under the verdict, not the chips' margin on top of it. */
  .rc__body:has(> .rc__conn) > .rc__main > :last-child {
    margin-bottom: 0;
  }
  /* The columns end level: the view sets as many rows under the verdict as keeps them near it
     (view.ts, underVerdict), and the rows of the shorter column share out what is left, a few
     pixels each. Never one hole: 270px stood empty between "Steps done" and the foot. */
  .rc__body:has(> .rc__conn) > .rc__rows {
    grid-area: rows;
  }
  .rc__body:has(> .rc__conn) > .rc__conn {
    grid-area: conn;
    border-top: 0;
    border-left: 1px solid var(--panel-stroke);
    padding-bottom: var(--rc-pad);
    display: flex;
    flex-direction: column;
  }
  .rc__body:has(> .rc__conn) .rc__rows--facts {
    flex: 1 0 auto;
  }
  .rc__body:has(> .rc__conn) > .rc__foot {
    grid-area: foot;
    align-self: end;
  }
  /* The map takes its column's width, on the rows' edges (its 26rem cap is for the one column). */
  .rc__body:has(> .rc__conn) .rc__map {
    max-width: none;
    margin-inline: 0;
  }
  /* A column is narrower than the card: the name a size down, so most fit on one line. */
  .rc__body:has(> .rc__conn) .rc__name {
    font-size: 2rem;
  }
  /* A column's labels share one width, the longest label's (each row was its own 10rem grid). */
  .rc__body:has(> .rc__conn) .rc__rows {
    grid-template-columns: max-content minmax(0, 1fr);
  }
  .rc__body:has(> .rc__conn) .rc__row {
    grid-column: 1 / -1;
    grid-template-columns: subgrid;
    /* A row given more height keeps its words in its middle. */
    align-content: center;
  }
}
.rc .flag {
  width: 1rem;
  height: 0.75rem;
  vertical-align: -1px;
  margin-right: 0.375rem;
  border-radius: 1px;
}
/* A browser's or OS's own mark before its value, as the flag is before the place (AFP 34). */
.rc .ic--value {
  display: inline-block;
  vertical-align: -2px;
  margin-right: 0.375rem;
  color: var(--panel-text, currentColor);
}
.rc__foot {
  padding: 1rem var(--rc-pad) var(--rc-pad);
  display: grid;
  gap: 0.5rem;
}
.rc__foot .fine {
  color: var(--panel-muted);
}
.rc .rc__link {
  /* The card's link is a line of its own: a press target, at least 44px tall (it was 22px). */
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--share-link);
  word-break: break-all;
}
.rc__link--none {
  color: var(--panel-muted) !important;
}
.rc__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--panel-muted);
  font-size: 0.8125rem;
}
.rc__brand .wordmark {
  height: 0.8rem;
  width: auto;
  color: var(--panel-text);
}
/* Its link's 44px target reaches past the card's last line without making it taller. */
.rc__brand .blockaid-link {
  margin-block: -0.975rem;
}
.prompt--panel {
  background: var(--panel-raised);
  border-color: var(--panel-stroke);
}
.button--panel {
  border: 1px solid var(--panel-stroke);
  background: var(--panel);
  color: var(--panel-text);
  font-weight: 500;
}
.button--panel:hover {
  background: var(--panel-stroke);
}
.prompt--panel .prompt__text {
  color: var(--panel-text);
  margin-top: 0;
}

.below {
  margin-top: 1.25rem;
  display: grid;
  gap: 1rem;
  max-width: var(--card-measure);
}
.below .tryit {
  margin-top: 0;
  max-width: none;
}
/* A box's last line ends at the box's own padding (its bottom margin made the box bottom-heavy). */
.tryit > :last-child {
  margin-bottom: 0;
}
/* A fetch-only card's "Is this result right?" stands clear of the card above it (it sat against it). */
.share > [data-feedback] {
  margin-top: 1rem;
}
/* The share page's line above its card stands clear of it. */
.share > .eyebrow {
  display: flex;
  margin-bottom: 0.75rem;
}
/* Nothing said yet: the status line takes no row of the column (it doubled the gap around it).
   Out of the flow, not hidden: it is a live region, and says its words the moment it has any. */
.below > [data-below-status]:empty {
  position: absolute;
}
/* The column's own gap is the room above the image link (its margin added to it). */
.below > .imagelink {
  margin-top: 0;
}
/* On a phone the actions under a card are one column of full-width buttons of one height (they
   were four widths and two heights, each starting a row of its own). */
@media (max-width: 30rem) {
  .below .actions .button,
  .below .sharerow .button {
    width: 100%;
    min-height: 3.25rem;
  }
}
/* A box's only line being a link, the link is a press target: at least 44px tall. */
.tryit__more {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}
.failure {
  margin-top: 1rem;
}
.finishing {
  padding: 2.5rem 0;
}

/* the text-only section */
.textonly {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px dashed var(--rail);
  max-width: 44rem;
}
.textonly h2 {
  font-size: 1.375rem;
  margin-bottom: 0.75rem;
}
.textonly p + p {
  margin-top: 0.5rem;
}
.readresult {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  overflow-wrap: anywhere;
}
.read p,
.expired p {
  max-width: 44rem;
}

/* The card's image link under the buttons (AFP 34): an agent that can't save a file opens or sends it. */
.imagelink {
  margin: 0.75rem 0 0;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.imagelink a {
  font-family: var(--font-mono, monospace);
  font-weight: 400;
}

/* The test's footer. */
.agent-foot {
  padding: 1.5rem 0 2rem;
  font-size: 0.875rem;
}

/* "Did we get you right?" at the top of the result (AFP 35; AFP 37: one compact row, on screen) */
.fix {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--stroke);
  border-radius: 0.75rem;
  background: var(--surface-raised);
  max-width: var(--card-measure);
}
.fix__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}
.fix__title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}
.fix__title b {
  font-weight: 600;
}
.fixform {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.75rem;
  max-width: 28rem;
}
/* The fields open only on "No" (display: grid would otherwise override [hidden]). */
.fixform[hidden] {
  display: none;
}
.fixform label {
  font-size: 0.875rem;
}
/* AFP 38: quiet for a confident named card; prominent where the card names no product */
.fix--quiet {
  padding: 0.5rem 1rem;
  background: transparent;
}
.fix--quiet .fix__title {
  font-weight: 400;
  font-size: 0.9375rem;
}
.fix--quiet .fix__title b {
  font-weight: 600;
}
.fix--ask {
  border: 2px solid var(--bk-accent, #ff4500);
  padding: 1rem 1.25rem;
}
.fix__title--ask {
  font-size: 1.125rem;
  line-height: 1.35;
}
.fix__about {
  margin: 0.25rem 0 0.75rem;
}
.fix--ask .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chip--quiet {
  border-style: dashed;
}
.fix [data-fix-status] {
  margin-top: 0.375rem;
}
/* Nothing said yet: no room kept for it (its margin alone made the box bottom-heavy). */
.fix [data-fix-status]:empty {
  margin-top: 0;
}

/* Who runs the page, under the header on every page of the test (AFP 37) */
.operator {
  border-bottom: 1px solid var(--stroke);
  background: var(--surface-raised);
  font-size: 0.875rem;
  color: var(--text-muted);
}
.operator p {
  margin: 0;
  padding: 0.5rem 0;
}
.operator a {
  color: inherit;
  text-decoration: underline;
  /* The link's arrow never drops to a line of its own. */
  white-space: nowrap;
}

/* Whose connection the card shows (AFP 37) */
.rc__connnote {
  margin: 0;
  padding: 0.75rem var(--rc-pad) 0;
  max-width: none;
  color: var(--panel-muted);
}

/* The check-in's subline: about the software, not the user (AFP 35) */
.checkin__sub {
  margin: 0 auto 1rem;
  max-width: 32rem;
  color: var(--text-muted);
}

/* The question before a download or link (AFP 39): an in-page dialog, Skip always visible */
.wall-shade {
  position: fixed;
  inset: 0;
  background: rgb(0 0 0 / 0.45);
  z-index: 50;
}
.wall {
  position: fixed;
  z-index: 51;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(32rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: 1.25rem;
  border: 2px solid var(--bk-accent, #ff4500);
  border-radius: 0.75rem;
  background: var(--surface-raised);
  color: var(--text);
  display: grid;
  gap: 0.75rem;
}
.wall:focus {
  outline: none;
}
.wall__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
}
.wall .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.wall__no {
  font-size: 0.875rem;
  margin-left: 0.25rem;
}
.wall__other {
  display: flex;
  gap: 0.5rem;
}
.wall__other[hidden] {
  display: none;
}
.wall__skip {
  justify-self: start;
}

/* "Updated after your answer" above a card re-judged after a correction (AFP 39) */
.updated {
  margin: 0 0 0.75rem;
}

/* ---------- The layout (agent-fingerprint docs/landing-redesign.md) ----------
   Every page of the test wears .agent-page--v2 (src/worker/agent/pages.ts shell): one reading
   column, one orange action, plain cards in place of the dashed frames. The rules above are the
   base these refine. Nothing is hidden or collapsed, and nothing here animates. */
.agent-page--v2 .container {
  max-width: 52rem;
  border-inline: 0;
}
.agent-page--v2 .agent-frame {
  border-inline: 0;
  padding-inline: var(--gutter);
}
.agent-page--v2 .operator {
  background: var(--surface-sunken);
  font-size: 0.8125rem;
}
.agent-page--v2 .operator p {
  max-width: none;
  padding: 0.625rem 0;
}
.agent-page--v2 .intro {
  padding-top: 3rem;
}
.agent-page--v2 .agent-h1 {
  margin: 1rem 0;
  letter-spacing: -0.035em;
}
.agent-page--v2 .intro .lead {
  font-size: 1.25rem;
}
/* Start is the page's one orange thing; the people view beside it reads as a link. */
.agent-page--v2 .intro > .actions {
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin-top: 1.25rem;
}
.agent-page--v2 .intro > .actions .button--primary {
  padding: 1rem 2.25rem;
  font-size: 1.25rem;
}
.agent-page--v2 .intro > .actions .button--secondary {
  border-color: transparent;
  background: none;
  padding: 0.75rem 0;
  font-size: 1rem;
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.agent-page--v2 .grid2 {
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  margin-top: 2.75rem;
}
.agent-page--v2 .agentnote {
  border-radius: 1rem;
}
.agent-page--v2 .agentnote__head {
  background: none;
  color: var(--text);
  border-bottom: 1px solid var(--stroke);
  padding: 1rem 1.5rem;
}
.agent-page--v2 .agentnote__title {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text);
}
.agent-page--v2 .agentnote__body {
  padding: 1.25rem 1.5rem 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
}
.agent-page--v2 .agentnote__body p {
  max-width: none;
}
.agent-page--v2 .agentnote__body ol {
  margin: 0.875rem 0;
  padding-left: 1.5rem;
}
.agent-page--v2 .agentnote__body li {
  margin: 0.5rem 0;
  padding-left: 0.25rem;
}
.agent-page--v2 .agentnote__body li::marker {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-muted);
}
.agent-page--v2 .agentnote__body p + p {
  margin-top: 0.75rem;
}
.agent-page--v2 .card.forperson {
  border-radius: 1rem;
  background: var(--surface-sunken);
  padding: 1.25rem 1.5rem 1.5rem;
}
.agent-page--v2 .forperson .prompt {
  border: 0;
  background: none;
  padding: 0;
}
.agent-page--v2 .forperson .prompt__text {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--text-muted);
  max-width: none;
}
.agent-page--v2 .textonly {
  border-top: 1px solid var(--stroke);
  max-width: none;
}
.agent-page--v2 .textonly h2 {
  font-size: 1.0625rem;
  font-weight: 500;
}
.agent-page--v2 .textonly p {
  max-width: none;
  color: var(--text-muted);
}
/* The steps: a plain panel for the task, the same controls. */
.agent-page--v2 .task {
  border: 1px solid var(--stroke);
  border-radius: 1rem;
  background: var(--surface-sunken);
}
.agent-page--v2 .agent-foot {
  border-top: 1px solid var(--stroke);
  color: var(--text-muted);
}
.agent-page--v2 .agentnote__title,
.agent-page--v2 .forperson .fine {
  max-width: none;
}

/* ---------- A page that holds still (the card's reveal moved most of the screen) ----------
   The steps and the result take at least the screen's height, so what follows them (the text
   version, the footer) stays below it and never moves in view as a step or the card arrives; and
   the card's place is held, as an empty panel of the card's own, while the card is made. */
/* The people view's card arrives the same way (its place under "Looking at this visit…" was one
   line tall, so the card pushed the privacy box and the footer down the screen as it came). */
.agent-page [data-flow]:not([hidden]),
.agent-page [data-result]:not([hidden]) {
  min-height: 100vh;
  min-height: 100svh;
}
.rc-skeleton {
  margin-top: 1.5rem;
  min-height: 44rem;
  max-width: var(--card-measure);
  border-radius: 1rem;
  border: 1px solid var(--panel-stroke);
  background: var(--panel);
}

/* The share row under a card: its link in words, and to copy. */
.sharerow .label {
  margin: 0 0 0.375rem;
}
.sharerow__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}
.sharerow__link {
  /* A link on its own in the row: a press target, at least 44px tall (it was 25px). */
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-family: var(--font-mono, monospace);
  overflow-wrap: anywhere;
  min-width: 0;
}

/* The waitlist, for the person the card goes to. */
.tryit__cta {
  margin: 0;
}
.tryit a.button--secondary {
  color: var(--text);
}

/* A chip is a press target: at least 44px tall (they were 33px), its words on one line each. */
.chip,
.sharerow .button,
.tryit__cta .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
}
.chip {
  padding-block: 0.5rem;
}
/* A button's words never break inside a word (a narrow row split "Download" after its first
   letter): they wrap between words, and a row of buttons wraps before a button is squeezed. */
.agent-page .button,
.agent-page .chip {
  overflow-wrap: normal;
  word-break: normal;
  min-width: min-content;
}
