/* ==========================================================================
   Zatila front door: /login, /signup, /verify, /reset (public/auth.html, G6).
   - Built on /css/theme.css (which imports tokens.css). Reads role tokens
     only; no brand hex here. Prefix: au-.
   - The approved login design (docs/design/screens/login.png, preview.css §3):
     an Ink brand panel with paper tickets on a rail, and a light panel with
     two large choices. Below 1024 px the brand panel folds away and the
     logo moves into the top bar.
   - Follows the device's light or dark setting; the brand panel is always
     dark. Motion per MOTION-AND-POLISH: transform and opacity only, no
     ease-in, press 0.97, views enter with a short fade and rise.
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. Page frame
   -------------------------------------------------------------------------- */
html { -webkit-tap-highlight-color: transparent; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body.auth {
  margin: 0;
  font: var(--t-body);
  color: var(--text);
  background: var(--bg);
}
:where(body.auth) :where(h1, h2, h3, p, ul, ol, fieldset, legend) { margin: 0; }
:where(body.auth) :where(ul, ol) { padding: 0; list-style: none; }
:where(body.auth) :where(img, svg) { display: block; }
body.auth :is(button, a, [role="button"], label) { touch-action: manipulation; }
body.auth button { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
body.auth p, body.auth li { text-wrap: pretty; }
[hidden] { display: none !important; }

.au-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
}
@media (min-width: 64rem) {
  .au-page { grid-template-columns: clamp(26rem, 44vw, 40rem) minmax(0, 1fr); }
}

/* Loading mark from auth.html, before the script runs */
.au-boot { display: grid; place-items: center; min-height: 100vh; min-height: 100dvh; }
.au-boot__logo { width: 48px; height: 48px; opacity: 0.9; }
.au-noscript { max-width: 32rem; margin: var(--s-48) auto; padding: 0 var(--s-16); display: grid; gap: var(--s-12); }


/* --------------------------------------------------------------------------
   2. Brand panel (wide screens only): Ink, paper tickets on a Cream rail
   -------------------------------------------------------------------------- */
.au-brand {
  display: none;
  position: sticky; top: 0;
  height: 100vh; height: 100dvh;
  container-type: inline-size;
  flex-direction: column; justify-content: space-between; gap: var(--s-32);
  padding: var(--s-48);
  background: var(--bg); color: var(--text);
  overflow: hidden;
}
@media (min-width: 64rem) { .au-brand { display: flex; } }
/* On dark devices both panels are Ink: a hairline keeps them apart. */
.au-brand { box-shadow: inset -1px 0 0 var(--line); }

.au-brand__logo { align-self: flex-start; border-radius: var(--radius-sm); }
.au-brand__logo img { width: auto; height: 2.3125rem; }

.au-rail { position: relative; padding-top: 0.375rem; }
.au-rail__bar {
  position: absolute; z-index: 1; left: -1.5rem; right: -1.5rem; top: 0;
  height: 0.875rem; border-radius: var(--radius-full); background: var(--paper);
}
.au-tickets { display: flex; justify-content: space-between; gap: var(--s-16); }
.au-ticket {
  --tooth: 16px;
  flex: 0 1 10.5rem; min-width: 0;
  padding-bottom: calc(var(--s-20) + var(--tooth) / 2);
  background: var(--paper); color: var(--text);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--tooth) 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--tooth) 100%;
}
.au-ticket--b { align-self: flex-start; }
.au-ticket__strip {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-8);
  height: 2.75rem; padding: 0 var(--s-12); margin-top: 0.5rem;
  font: 700 1rem/1 var(--font-mono); letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1, "calt" 0, "liga" 0;
}
.au-ticket__strip--new { background: var(--new); color: var(--on-new); }
.au-ticket__strip--ready { background: var(--ready); color: var(--on-ready); }
.au-ticket__strip--neutral { background: var(--fill-secondary); color: var(--text); }
.au-ticket__lines { display: grid; gap: var(--s-4); padding: var(--s-12) var(--s-12) 0; font: 500 1rem/1.5rem var(--font-sans); }
.au-ticket--b .au-ticket__lines { padding-bottom: var(--s-24); }
/* Narrow brand panel: two tickets read better than three squeezed ones. */
@container (max-width: 30rem) { .au-ticket--c { display: none; } .au-tickets { justify-content: flex-start; } }

.au-brand__copy { display: grid; gap: var(--s-12); }
.au-brand__tag { font: 700 clamp(2.25rem, 3.4vw, 3rem)/1.05 var(--font-sans); letter-spacing: var(--ls-display); text-wrap: balance; }
.au-brand__sub { max-width: 32ch; font: var(--t-body-web); color: var(--text-2); }
.au-brand__facts { display: grid; gap: var(--s-8); margin-top: var(--s-8); font: var(--t-body); color: var(--text-2); }
.au-brand__facts li { display: flex; align-items: center; gap: var(--s-8); }
.au-brand__facts .au-ic { width: 1.125rem; height: 1.125rem; color: var(--accent-text); }


/* --------------------------------------------------------------------------
   3. Main column: top bar, panel, footer
   -------------------------------------------------------------------------- */
.au-main {
  display: flex; flex-direction: column; min-width: 0;
  min-height: 100vh; min-height: 100dvh;
  padding: max(var(--s-12), env(safe-area-inset-top)) max(var(--s-16), env(safe-area-inset-right))
    max(var(--s-12), env(safe-area-inset-bottom)) max(var(--s-16), env(safe-area-inset-left));
}
@media (min-width: 40rem) { .au-main { padding: var(--s-24) var(--s-32); } }
@media (min-width: 64rem) { .au-main { padding: var(--s-32) var(--s-48); } }

.au-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-16); min-height: var(--a-target); }
.au-top__logo { display: inline-flex; border-radius: var(--radius-sm); }
.au-top__logo img { width: auto; height: 2rem; }
@media (min-width: 64rem) {
  .au-top { justify-content: flex-end; }
  .au-top__logo { display: none; }
}

.au-help {
  display: inline-flex; align-items: center; gap: var(--s-8);
  min-height: var(--a-target); padding: 0 var(--s-8); margin-right: calc(-1 * var(--s-8));
  border-radius: var(--radius-sm);
  font: var(--t-button); color: var(--text); text-decoration: none;
  transition: background-color var(--dur-quick) ease;
}

.au-panel {
  width: 100%; max-width: 30rem;
  margin: 0 auto; padding: var(--s-32) 0 var(--s-48);
  flex: 1 0 auto;
  display: flex; flex-direction: column; justify-content: center;
}
.au-page--signup .au-panel { max-width: 34rem; justify-content: flex-start; }
@media (max-width: 39.99rem) { .au-panel { justify-content: flex-start; padding-top: var(--s-40); } }
@media (min-width: 64rem) { .au-panel { padding: var(--s-48) 0; } }

.au-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4) var(--s-16);
  font: var(--t-footnote); color: var(--text-3);
}
.au-foot__links { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-left: calc(-1 * var(--s-8)); }
.au-foot a {
  display: inline-flex; align-items: center; min-height: var(--a-target); padding: 0 var(--s-8);
  border-radius: var(--radius-sm); color: var(--text-3); text-decoration: none;
  transition: color var(--dur-quick) ease;
}

@media (hover: hover) and (pointer: fine) {
  .au-help:hover { background: var(--fill-secondary); }
  .au-foot a:hover { color: var(--text); text-decoration: underline; }
}


/* --------------------------------------------------------------------------
   4. Views: title, lead, entry motion
   -------------------------------------------------------------------------- */
.au-view { display: grid; gap: var(--s-24); animation: au-enter var(--dur-base) var(--ease-out) both; }
@keyframes au-enter { from { opacity: 0; transform: translateY(var(--rise-reveal)); } }

.au-head { display: grid; gap: var(--s-8); }
.au-title { font: var(--t-title-1); letter-spacing: var(--ls-title); text-wrap: balance; }
.au-title:focus { outline: none; box-shadow: none; }   /* focus moves here after a view change, for screen readers only */
.au-lead { font: var(--t-body-web); color: var(--text-2); }
@media (max-width: 39.99rem) {
  .au-title { font: var(--t-title-2); letter-spacing: var(--ls-title); }
  .au-lead { font: var(--t-body); }
}

.au-back {
  justify-self: start;
  display: inline-flex; align-items: center; gap: var(--s-8);
  min-height: var(--a-target); padding: 0 var(--s-8); margin: calc(-1 * var(--s-12)) 0 calc(-1 * var(--s-8)) calc(-1 * var(--s-8));
  border-radius: var(--radius-sm);
  font: var(--t-button); color: var(--text-2); text-decoration: none;
  transition: color var(--dur-quick) ease, background-color var(--dur-quick) ease;
}
.au-back .au-ic { width: 1.125rem; height: 1.125rem; }
@media (hover: hover) and (pointer: fine) { .au-back:hover { color: var(--text); background: var(--fill-secondary); } }

.au-more { font: var(--t-body); color: var(--text-2); }
div.au-more { display: grid; gap: var(--s-8); }
.au-quiet { font: var(--t-callout); color: var(--text-3); }
.au-email { font-weight: 600; color: var(--text); overflow-wrap: anywhere; }

.au-loading { display: grid; place-items: center; min-height: 12rem; }


/* --------------------------------------------------------------------------
   5. Icons, numbers, links
   -------------------------------------------------------------------------- */
.au-ic {
  width: var(--a-icon); height: var(--a-icon); flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.au-num {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  font-variant-ligatures: none; font-feature-settings: "tnum" 1, "calt" 0, "liga" 0;
}

.au-link {
  color: var(--text); font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.2em;
  border-radius: 4px;
}
.au-link--quiet { font-weight: 500; color: var(--text-2); }
.au-link--small { font: var(--t-label); font-weight: 600; }
.au-link--button { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; cursor: pointer; }
/* Inline links keep a 44 px target without changing the line box. */
.au-link { position: relative; }
.au-link::before { content: ""; position: absolute; inset: -0.5rem -0.25rem; }
@media (hover: hover) and (pointer: fine) {
  .au-link:hover { text-decoration-thickness: 2.5px; }
}


/* --------------------------------------------------------------------------
   6. The chooser: two large cards, each one target (preview.css §3)
   -------------------------------------------------------------------------- */
.au-choices { display: grid; gap: var(--s-16); }
.au-choice {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s-20);
  min-height: 7.5rem; padding: var(--s-20) var(--s-24) var(--s-20) var(--s-20);
  border-radius: var(--radius-lg);
  background: var(--surface); color: var(--text); text-decoration: none;
  box-shadow: var(--e1), inset 0 0 0 1px var(--line);
  transition: transform var(--dur-press) var(--ease-out);
}
.au-choice__icon {
  display: grid; place-items: center; width: 4rem; height: 4rem;
  border-radius: var(--radius-md); background: var(--bg-well); color: var(--text);
}
.au-choice__icon .au-ic { width: 1.75rem; height: 1.75rem; }
.au-choice__text { display: grid; gap: var(--s-4); }
.au-choice__title { font: var(--t-title-3); }
.au-choice__desc { font: var(--t-callout); color: var(--text-2); }
.au-choice__chev { width: 1.5rem; height: 1.5rem; color: var(--text-3); transition: transform var(--dur-quick) var(--ease-out); }
@media (max-width: 39.99rem) {
  .au-choice { min-height: 6.5rem; gap: var(--s-16); padding: var(--s-16) var(--s-16) var(--s-16) var(--s-16); border-radius: var(--radius-md); }
  .au-choice__icon { width: 3.25rem; height: 3.25rem; border-radius: var(--radius-sm); }
  .au-choice__icon .au-ic { width: 1.5rem; height: 1.5rem; }
  .au-choice__title { font: var(--t-headline); }
}


/* --------------------------------------------------------------------------
   7. Press feedback (100 ms in, 160 ms out, scale 0.97 + 6 % darker)
   -------------------------------------------------------------------------- */
:is(.au-btn, .au-choice, .au-stepper__btn, .au-type__box)::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: var(--press-tint); opacity: 0; pointer-events: none;
  transition: opacity var(--dur-quick) ease;
}
:is(.au-btn, .au-choice, .au-stepper__btn):active:not(:disabled) {
  transform: scale(var(--press-scale)); transition-duration: var(--dur-instant);
}
:is(.au-btn, .au-choice, .au-stepper__btn):active:not(:disabled)::after { opacity: 1; transition-duration: var(--dur-instant); }
@media (hover: hover) and (pointer: fine) {
  :is(.au-btn, .au-choice, .au-stepper__btn):hover:not(:disabled)::after { opacity: 0.5; }
  .au-choice:hover .au-choice__chev { transform: translateX(2px); }
}


/* --------------------------------------------------------------------------
   8. Signed in already
   -------------------------------------------------------------------------- */
.au-signed {
  display: grid; gap: var(--s-16);
  padding: var(--s-20);
  border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: var(--e1), inset 0 0 0 1px var(--line);
  animation: au-enter var(--dur-base) var(--ease-out) both;
}
.au-signed__who { display: flex; align-items: center; gap: var(--s-12); min-width: 0; }
.au-avatar {
  display: grid; place-items: center; flex: none; width: 2.75rem; height: 2.75rem;
  border-radius: var(--radius-full); background: var(--inverse); color: var(--on-inverse);
  font: var(--t-headline);
}
.au-signed__text { min-width: 0; }
.au-signed__name { font: var(--t-headline); overflow-wrap: anywhere; }
.au-signed__sub { font: var(--t-callout); color: var(--text-2); overflow-wrap: anywhere; }
.au-signed__actions { display: flex; flex-wrap: wrap; gap: var(--s-8); }
.au-signed__actions .au-btn--primary { flex: 1 1 14rem; }


/* --------------------------------------------------------------------------
   9. Buttons: Saffron primary (one per view), secondary, quiet
   -------------------------------------------------------------------------- */
.au-btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-8);
  min-height: var(--a-target); padding: 0 var(--s-20);
  border: 0; border-radius: var(--radius-md);
  font: var(--t-button); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform var(--dur-press) var(--ease-out), background-color var(--dur-quick) ease, color var(--dur-quick) ease;
}
.au-btn .au-ic { width: 1.125rem; height: 1.125rem; }
.au-btn--primary { background: var(--accent); color: var(--on-accent); }
.au-btn--secondary { background: var(--fill-secondary); color: var(--text); }
.au-btn--quiet { background: transparent; color: var(--text); }
.au-btn--block { display: flex; width: 100%; min-height: 3rem; }
.au-btn--web { min-height: var(--w-cta); font: var(--t-headline); }
.au-btn:disabled { cursor: not-allowed; }
.au-btn:disabled:not([aria-disabled="true"]) { opacity: 0.5; }
/* "Resend in 0:24" is information: keep it readable (Ink-500 on the fill, 5.1:1) instead of fading it. */
.au-btn--secondary:disabled:not([aria-disabled="true"]) { opacity: 1; color: var(--text-3); }
.au-btn[aria-disabled="true"] { cursor: progress; }
@media (hover: hover) and (pointer: fine) {
  .au-btn--quiet:hover:not(:disabled) { background: var(--fill-secondary); }
}

.au-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-8); }
.au-actions--stack { display: grid; justify-content: stretch; margin-top: var(--s-8); }

/* Spinner: a ring that turns. With Reduce Motion it stays still and the label carries the meaning. */
.au-spinner {
  width: 1.125rem; height: 1.125rem; flex: none;
  border-radius: var(--radius-full);
  border: 2px solid currentColor; border-right-color: transparent;
  animation: au-spin 0.8s linear infinite;
}
.au-spinner--lg { width: 2rem; height: 2rem; border-width: 3px; }
@keyframes au-spin { to { transform: rotate(360deg); } }


/* --------------------------------------------------------------------------
   10. Forms: label above (14/500), hint below (13), error with icon and fix
   -------------------------------------------------------------------------- */
.au-form { display: grid; gap: var(--s-20); }
.au-form--inline { gap: var(--s-12); text-align: left; }

.au-group { display: grid; gap: var(--s-20); }
.au-group + .au-group { padding-top: var(--s-24); border-top: 1px solid var(--line); }
.au-group__title { font: var(--t-eyebrow); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--eyebrow); }

.au-field { display: grid; gap: var(--s-8); min-width: 0; }
.au-field__top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-12); }
.au-label { font: var(--t-label); color: var(--text); }

.au-input {
  width: 100%; min-height: 3rem; padding: 0 var(--s-16);
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-md);
  background: var(--surface); color: var(--text);
  font: 400 1rem/1.5rem var(--font-sans);   /* 16 px: phones do not zoom in */
  transition: border-color var(--dur-quick) ease, box-shadow var(--dur-quick) ease;
}
.au-input::placeholder { color: var(--text-3); opacity: 1; }
.au-input:focus { border-color: var(--text); }
.au-input[aria-invalid="true"] { border-color: var(--late-text); }
.au-input[aria-invalid="true"]:focus { border-color: var(--late-text); }
.au-select {
  appearance: none; -webkit-appearance: none; padding-right: 2.75rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat;
}

.au-hint { font: var(--t-footnote); color: var(--text-3); }
.au-hint .au-link { color: var(--text-2); }
.au-err {
  display: flex; align-items: flex-start; gap: 0.375rem;
  font: 600 0.8125rem/1.125rem var(--font-sans); color: var(--late-text);
}
.au-err .au-ic { width: 1rem; height: 1rem; margin-top: 0.0625rem; }

/* Password: the Show / Hide button sits inside the field, 44 px square */
.au-pw { position: relative; }
.au-input--pw { padding-right: 3.5rem; }
.au-pw__toggle {
  position: absolute; top: 50%; right: 0.125rem; transform: translateY(-50%);
  display: grid; place-items: center; width: var(--a-target); height: var(--a-target);
  border: 0; border-radius: var(--radius-sm); background: none; color: var(--text-2); cursor: pointer;
  transition: color var(--dur-quick) ease, background-color var(--dur-quick) ease;
}
@media (hover: hover) and (pointer: fine) { .au-pw__toggle:hover { color: var(--text); background: var(--fill-secondary); } }
.au-input--pw::-ms-reveal { display: none; }

/* The rule under a new password: count, then a check */
.au-rule { display: flex; align-items: flex-start; gap: var(--s-8); }
.au-rule__count {
  display: inline-grid; place-items: center; flex: none; min-width: 2.75rem; height: 1.25rem; padding: 0 0.375rem;
  border-radius: var(--radius-sm); background: var(--fill-secondary); color: var(--text-2);
  font-size: 0.75rem; line-height: 1;
  transition: background-color var(--dur-quick) ease, color var(--dur-quick) ease;
}
.au-rule__count.is-ok { background: var(--ready-tint); color: var(--on-ready-tint); }
.au-rule__count .au-ic { width: 0.875rem; height: 0.875rem; stroke-width: 3; }

/* Kind of restaurant: radio tiles */
.au-fieldset { display: grid; gap: var(--s-8); min-width: 0; padding: 0; border: 0; }
.au-fieldset > legend { padding: 0; margin-bottom: var(--s-8); }
.au-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-8); }
.au-type { position: relative; display: block; cursor: pointer; }
.au-type input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.au-type__box {
  position: relative; isolation: isolate;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-8);
  min-height: 3rem; padding: var(--s-8) var(--s-12) var(--s-8) var(--s-16);
  border-radius: var(--radius-md);
  background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-strong);
  font: 500 0.9375rem/1.25rem var(--font-sans); color: var(--text);
  transition: box-shadow var(--dur-quick) ease, background-color var(--dur-quick) ease;
}
.au-type__check { width: 1.125rem; height: 1.125rem; opacity: 0; stroke-width: 2.5; transition: opacity var(--dur-quick) ease; }
.au-type input:checked + .au-type__box { box-shadow: inset 0 0 0 2px var(--text); background: var(--fill-secondary); font-weight: 600; }
.au-type input:checked + .au-type__box .au-type__check { opacity: 1; }
.au-type input:focus-visible + .au-type__box { outline: var(--focus-w) solid var(--th-action); outline-offset: 2px; }
.au-type input:active + .au-type__box::after { opacity: 1; transition-duration: var(--dur-instant); }
.au-fieldset.is-invalid .au-type__box { box-shadow: inset 0 0 0 1.5px var(--late-text); }
@media (hover: hover) and (pointer: fine) { .au-type:hover .au-type__box::after { opacity: 0.5; } }

/* Number of locations: − field + */
.au-stepper { display: flex; align-items: stretch; gap: var(--s-8); max-width: 14rem; }
.au-stepper__btn {
  position: relative; isolation: isolate; flex: none;
  display: grid; place-items: center; width: 3rem; min-height: 3rem;
  border: 0; border-radius: var(--radius-md); background: var(--fill-secondary); color: var(--text); cursor: pointer;
  transition: transform var(--dur-press) var(--ease-out);
}
.au-stepper__btn:disabled { opacity: 0.4; cursor: not-allowed; }
.au-stepper__input { text-align: center; font-family: var(--font-mono); font-weight: 600; padding: 0 var(--s-8); }

.au-tz__line { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-12); font: var(--t-callout); color: var(--text-2); }
.au-tz__line strong { color: var(--text); font-weight: 600; }

/* Terms checkbox */
.au-check {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; column-gap: var(--s-12); row-gap: var(--s-8);
  font: var(--t-callout); color: var(--text-2);
}
.au-check input {
  width: 1.375rem; height: 1.375rem; margin: 0; accent-color: var(--text); cursor: pointer;
}
.au-check label { cursor: pointer; padding-top: 0.0625rem; }
.au-check .au-err { grid-column: 2; }

/* A tick with a hint ("Trust this device", login.js Tick): the label spans the row under the box, so the whole
   44 px row is the target; the box sits at its start, and the hint lines up with the label's words. */
.au-check--row { grid-template-columns: 1.375rem minmax(0, 1fr); row-gap: 0; }
.au-check--row input { grid-area: 1 / 1; align-self: center; position: relative; z-index: 1; }
.au-check--row label {
  grid-area: 1 / 1 / 2 / 3; display: flex; align-items: center; min-height: var(--a-target);
  padding: 0 0 0 calc(1.375rem + var(--s-12)); font: var(--t-label); color: var(--text);
}
.au-check--row .au-hint { grid-column: 2; }

/* The honeypot: off screen, out of the tab order, ignored by screen readers */
.au-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.au-hidden-user { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* Plan chosen on the pricing page */
.au-plan {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-8) var(--s-12);
  padding: var(--s-12) var(--s-16); border-radius: var(--radius-md);
  background: var(--fill-secondary); font: var(--t-callout); color: var(--text-2);
}
.au-plan__tag {
  display: inline-flex; align-items: center; height: var(--a-chip); padding: 0 0.625rem;
  border-radius: var(--radius-sm); background: var(--new); color: var(--on-new);
  font: var(--t-eyebrow); letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
}


/* --------------------------------------------------------------------------
   11. Notices and result screens
   -------------------------------------------------------------------------- */
.au-notice {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-12); align-items: start;
  padding: var(--s-12) var(--s-16); border-radius: var(--radius-md);
  font: var(--t-callout); text-align: left;
  animation: au-enter var(--dur-base) var(--ease-out) both;
}
.au-notice__ic { margin-top: 0.0625rem; }
.au-notice__body { display: grid; gap: var(--s-4); min-width: 0; }
.au-notice__title { font-weight: 600; }
.au-notice--error { background: var(--late-tint); color: var(--text); }
.au-notice--error .au-notice__ic { color: var(--late-text); }
.au-notice--success { background: var(--ready-tint); color: var(--text); }
.au-notice--success .au-notice__ic { color: var(--ready-text); }
.au-notice--info { background: var(--fill-secondary); color: var(--text); }
.au-notice--info .au-notice__ic { color: var(--text-2); }
.au-notice a { color: inherit; font-weight: 600; }

.au-state { display: grid; justify-items: center; gap: var(--s-16); text-align: center; }
.au-state__tile {
  display: grid; place-items: center; width: 4.5rem; height: 4.5rem; margin-bottom: var(--s-4);
  border-radius: var(--radius-lg); background: var(--bg-well); color: var(--text);
}
.au-state__tile .au-ic { width: 2rem; height: 2rem; }
.au-state__tile--ready { background: var(--ready-tint); color: var(--ready-text); }
.au-state__tile--late { background: var(--late-tint); color: var(--late-text); }
.au-state__body { display: grid; gap: var(--s-16); width: 100%; font: var(--t-body); color: var(--text-2); }
.au-state__body > p { max-width: 34ch; margin-inline: auto; }
.au-state__body > .au-quiet { max-width: 40ch; }
.au-state .au-form--inline { margin-top: var(--s-8); padding-top: var(--s-24); border-top: 1px solid var(--line); }


/* --------------------------------------------------------------------------
   12. Focus: always visible on keyboard focus (theme.css draws the ring)
   -------------------------------------------------------------------------- */
/* Keep theme.css's 2 px Ink ring under the Saffron outline (Saffron alone is 1.65:1 on Cream). */
.au-choice:focus-visible { box-shadow: var(--e1), inset 0 0 0 1px var(--line), 0 0 0 2px var(--z-ink); }
.au-type input:focus-visible + .au-type__box { box-shadow: inset 0 0 0 1.5px var(--line-strong), 0 0 0 2px var(--z-ink); }
.au-type input:checked:focus-visible + .au-type__box { box-shadow: inset 0 0 0 2px var(--text), 0 0 0 2px var(--z-ink); }


/* --------------------------------------------------------------------------
   13. Preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  /* --rise-reveal is 0 and durations are 150 ms here (tokens.css): views only fade. */
  .au-spinner { animation: none; border-right-color: currentColor; opacity: 0.55; }
  .au-choice:hover .au-choice__chev { transform: none; }
}
@media (prefers-contrast: more) {
  .au-choice, .au-signed { box-shadow: inset 0 0 0 2px var(--line-strong); }
  .au-notice { box-shadow: inset 0 0 0 1px currentColor; }
  /* Tints turn into solid Tomato and Basil here (theme.css): Ink on them is 3.5:1, White is 5.2 and 5.0. */
  .au-notice--error, .au-notice--error .au-notice__ic { color: var(--on-late-tint); }
  .au-notice--success, .au-notice--success .au-notice__ic { color: var(--on-ready-tint); }
  .au-state__tile--late { color: var(--on-late-tint); }
  .au-state__tile--ready { color: var(--on-ready-tint); }
  .au-hint, .au-foot, .au-foot a { color: var(--text-2); }
}
@media (forced-colors: active) {
  .au-choice, .au-signed, .au-notice, .au-type__box, .au-btn, .au-stepper__btn { border: 1px solid CanvasText; }
  .au-type input:checked + .au-type__box { border-width: 3px; }
}
