/* theme.css: Rulecart design tokens and fonts for the hosted dashboard. Generated by scripts/hosted/sync-tokens.mjs
   from the design engine's theme (hub/src/styles/theme.css). Do not edit by hand. Light mode only. */
@font-face { font-family: "Gabarito Variable"; font-style: normal; font-display: swap; font-weight: 400 900; src: url("/hosted/fonts/gabarito-latin-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Gabarito Variable"; font-style: normal; font-display: swap; font-weight: 400 900; src: url("/hosted/fonts/gabarito-latin-ext-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible Next Variable"; font-style: normal; font-display: swap; font-weight: 200 800; src: url("/hosted/fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible Next Variable"; font-style: normal; font-display: swap; font-weight: 200 800; src: url("/hosted/fonts/atkinson-hyperlegible-next-latin-ext-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible Mono Variable"; font-style: normal; font-display: swap; font-weight: 200 800; src: url("/hosted/fonts/atkinson-hyperlegible-mono-latin-wght-normal.woff2") format("woff2-variations"); }
:root {
  color-scheme: light;
  --radius: 12px;
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-slow: 320ms;
  --dur-exit: 240ms;
  --dur-spring: 471ms;
  --font-features: "kern";
  --background: #fbf8ee;
  --foreground: #0b2f3a;
  --card: #ffffff;
  --card-foreground: #0b2f3a;
  --popover: #ffffff;
  --popover-foreground: #0b2f3a;
  --primary: #0b2f3a;
  --primary-foreground: #ffffff;
  --secondary: #f6ecc6;
  --secondary-foreground: #0b2f3a;
  --muted: #f4efdc;
  --muted-foreground: #3f5f68;
  --accent: #f2e3a8;
  --accent-foreground: #0b2f3a;
  --brand: #ffd23f;
  --brand-foreground: #0b2f3a;
  --destructive: #b8301c;
  --success: #167a43;
  --warning: #8f560a;
  --border: #e5dbb6;
  --input: #55808a;
  --ring: #0b2f3a;
  --chart-1: #ffd23f;
  --chart-2: #b8860b;
  --chart-3: #0b2f3a;
  --chart-4: #167a43;
  --chart-5: #55808a;
  --sidebar: #f4efdc;
  --sidebar-foreground: #0b2f3a;
  --sidebar-primary: #0b2f3a;
  --sidebar-primary-foreground: #ffffff;
  --sidebar-accent: #f2e3a8;
  --sidebar-accent-foreground: #0b2f3a;
  --sidebar-border: #e5dbb6;
  --sidebar-ring: #0b2f3a;
  --shadow-sm-value: 0 2px 0 0 #0b2f3a;
  --shadow-md-value: 0 4px 0 0 #0b2f3a;
  --shadow-lg-value: 0 0 0 2px #0b2f3a, 0 6px 0 2px #0b2f3a;
  --shadow-btn-value: none;
  --font-sans: "Atkinson Hyperlegible Next Variable", ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: "Gabarito Variable", ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: "Atkinson Hyperlegible Mono Variable", ui-monospace, 'SF Mono', Menlo, monospace;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-btn: 14px;
  --radius-cta: 18px;
  --radius-card: 24px;
  --text-display: clamp(2.8125rem, 2.0543rem + 3.37vw, 4.75rem);
  --text-display--line-height: 0.98;
  --text-display--letter-spacing: -0.028em;
  --text-display--font-weight: 800;
  --text-h1: clamp(2.125rem, 1.6848rem + 1.96vw, 3.25rem);
  --text-h1--line-height: 1.02;
  --text-h1--letter-spacing: -0.025em;
  --text-h1--font-weight: 800;
  --text-h2: clamp(1.625rem, 1.4293rem + 0.87vw, 2.125rem);
  --text-h2--line-height: 1.08;
  --text-h2--letter-spacing: -0.018em;
  --text-h2--font-weight: 800;
  --text-h3: clamp(1.3125rem, 1.288rem + 0.11vw, 1.375rem);
  --text-h3--line-height: 1.2;
  --text-h3--letter-spacing: -0.01em;
  --text-h3--font-weight: 700;
  --text-body: 1.125rem;
  --text-body--line-height: 1.5;
  --text-body--letter-spacing: 0em;
  --text-body--font-weight: 400;
  --text-small: 0.9375rem;
  --text-small--line-height: 1.45;
  --text-small--letter-spacing: 0em;
  --text-small--font-weight: 400;
  --text-caption: 0.8125rem;
  --text-caption--line-height: 1.4;
  --text-caption--letter-spacing: 0.01em;
  --text-caption--font-weight: 500;
  --default-transition-duration: 200ms;
  --default-transition-timing-function: cubic-bezier(0.3, 0.1, 0.2, 1);
  --ease-standard: cubic-bezier(0.3, 0.1, 0.2, 1);
  --ease-enter: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: linear(0, 0.041, 0.141, 0.272, 0.413, 0.549, 0.672, 0.777, 0.863, 0.929, 0.977, 1.01, 1.031, 1.042, 1.046, 1.045, 1.041, 1.035, 1.029, 1.022, 1.016, 1.011, 1.007, 1.004, 1.002, 1, 0.999, 0.998, 0.998, 0.998, 0.998, 0.998, 1);
  --spacing-control: 3rem;
  --spacing-control-lg: 3.5rem;
  --spacing-pad: 1.25rem;
  --spacing-card: clamp(1.3125rem, 1.1413rem + 0.76vw, 1.75rem);
  --spacing-gap: 1rem;
  --spacing-section: clamp(3.5rem, 2.1304rem + 6.09vw, 7rem);
}

/* hosted.css: the hosted dashboard of Rulecart: Cancel Button. Tokens only (theme.css, generated from the
   design system); no colour or size of its own that the system defines. Signatures follow design/DESIGN.md:
   press keys, one yellow main key per view, the yellow marker under the law's own words, stamps. Light mode. */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--spacing-control-lg); }
body { margin: 0; min-height: 100svh; background: var(--background); color: var(--foreground); font-family: var(--font-sans); font-feature-settings: var(--font-features); font-size: var(--text-body); line-height: var(--text-body--line-height); display: flex; flex-direction: column; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); text-wrap: balance; overflow-wrap: break-word; hyphens: manual; }
h1 { font-size: var(--text-h2); line-height: var(--text-h2--line-height); letter-spacing: var(--text-h2--letter-spacing); font-weight: var(--text-h2--font-weight); }
h2 { font-size: var(--text-h3); line-height: var(--text-h3--line-height); letter-spacing: var(--text-h3--letter-spacing); font-weight: var(--text-h3--font-weight); }
h3 { font-size: var(--text-body); line-height: 1.3; font-weight: 700; }
h4 { margin: 0; font-family: var(--font-display); font-size: var(--text-small); line-height: 1.3; font-weight: 700; }
p { margin: 0; overflow-wrap: break-word; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2.5px; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: var(--radius-sm); }
::selection { background: var(--accent); }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 0.92em; }
.muted { color: var(--muted-foreground); }
.small { font-size: var(--text-small); line-height: var(--text-small--line-height); }
.nowrap { white-space: nowrap; }
/* A piece that stays whole (an address part, a word of code): it moves to the next line as one, and breaks inside only when it is longer than the line. */
.tok { display: inline-block; max-width: 100%; overflow-wrap: anywhere; vertical-align: baseline; }
/* Every formatted date: mono so digits line up, with the mono face's wide word gap pulled in. */
.date { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 0.92em; word-spacing: -0.3em; white-space: nowrap; }
/* A key that cannot be pressed: a pale, flat picture of a key. Yellow only marks a key that works. */
.key[disabled], .key--main[disabled] { background: var(--muted); color: var(--muted-foreground); border-color: var(--border); box-shadow: none; translate: none; cursor: default; }
.break { overflow-wrap: anywhere; }
svg.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Layout ---------- */
.bar { border-bottom: 2px solid var(--foreground); background: var(--card); }
.bar__in { max-width: 72rem; margin: 0 auto; padding: 0.625rem var(--spacing-pad); display: flex; align-items: center; gap: 0.5rem 1.5rem; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; font-family: var(--font-display); font-size: var(--text-h3); font-weight: 800; letter-spacing: -0.01em; text-decoration: none; }
.logo svg { width: 1.3em; height: 1.3em; flex: none; }
.logo__face { fill: var(--brand); stroke: var(--foreground); }
.logo__ink { fill: var(--foreground); }
.bar__shop { font-size: var(--text-small); color: var(--muted-foreground); max-width: 16rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar__end { margin-inline-start: auto; display: flex; align-items: center; gap: 0.25rem 0.75rem; }
/* Below the wide layout the logo, the shop, the language key and "sign out" share one row: the shop's name takes
   what is left and ends in "…", so the keys never drop to a row of their own. */
@media (max-width: 55.99rem) { .bar__in { column-gap: 0.75rem; } .bar__shop { flex: 1 1 0; min-width: 0; } }
/* French "Se déconnecter" is long: on a phone the shop's name would shrink to one letter, so it gives way there. */
@media (max-width: 25rem) { .bar__in:lang(fr) .bar__shop { display: none; } }

/* The language menu: the same control as on rulecart.com (shared/shell/shell.tsx, LanguageMenu; language-menu.test.ts
   keeps the words and the parts equal). One key that shows the language ("EN" on a phone, "English" from 40rem),
   a list of every language in its own name, the current one ticked. No flags, nothing on hover only. */
.lang { position: relative; }
.lang > summary { list-style: none; display: inline-flex; align-items: center; justify-content: center; gap: 0.25rem; min-height: 2.75rem; min-width: 2.75rem; padding: 0 0.5rem; border-radius: var(--radius-sm); font-family: var(--font-display); font-size: var(--text-small); line-height: var(--text-small--line-height); font-weight: 700; white-space: nowrap; cursor: pointer; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.lang > summary::-webkit-details-marker { display: none; }
.lang > summary:hover { text-decoration-line: underline; }
.lang__name { display: none; }
@media (min-width: 40rem) { .lang__short { display: none; } .lang__name { display: inline; } }
.lang__chevron { width: 1rem; height: 1rem; }
.lang[open] .lang__chevron { rotate: 180deg; }
@media (prefers-reduced-motion: no-preference) { .lang__chevron { transition: rotate var(--dur-fast) var(--ease-standard); } }
.lang__list { position: absolute; top: 100%; right: 0; z-index: 30; margin: 0.5rem 0 0; padding: 0.25rem; list-style: none; display: flex; flex-direction: column; min-width: 12rem; max-height: min(70dvh, 32rem); overflow-y: auto; border-radius: var(--radius-md); background: var(--popover); color: var(--popover-foreground); box-shadow: var(--shadow-lg-value); }
.lang__list a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.75rem; padding: 0 0.75rem; border-radius: var(--radius-sm); font-family: var(--font-display); font-size: var(--text-small); font-weight: 700; text-decoration: none; }
.lang__list a:hover { background: var(--accent); }
.lang__list a[aria-current="true"] { background: var(--muted); }
.lang__list .icon { width: 1rem; height: 1rem; }
/* One row on every size. On a narrow phone it scrolls sideways and snaps; a cut label shows there is more. */
.nav { order: 3; flex: 1 0 100%; display: flex; gap: 0 0.25rem; margin: 0 calc(-1 * var(--spacing-pad)) -0.625rem; padding: 0 calc(var(--spacing-pad) - 0.625rem); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { flex: none; scroll-snap-align: start; white-space: nowrap; }
@media (max-width: 25rem) { .nav { gap: 0; scroll-padding-inline: calc(var(--spacing-pad) - 0.625rem); } .nav a { padding-inline: 0.5rem; } }
.nav a, .linkbtn { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 0.625rem; font-size: var(--text-small); font-weight: 600; text-decoration: none; border-radius: var(--radius-sm); }
.nav a { border-bottom: 3px solid transparent; border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.nav a:hover { background: var(--muted); }
.nav a[aria-current="page"] { border-bottom-color: var(--foreground); }
.linkbtn { padding-inline: 0; background: none; border: 0; color: inherit; font: inherit; font-size: var(--text-small); cursor: pointer; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; font-weight: 400; }
.linkbtn:hover { text-decoration-thickness: 2.5px; }
.linkbtn--target { min-width: 2.75rem; }
/* A 44px target that does not push the row: the extra height reaches into the row's padding. */
.keys__row .linkbtn { min-height: 2.75rem; margin-block: -0.6875rem; }
@media (min-width: 56rem) {
  .nav { order: 0; flex: 0 1 auto; margin: 0 0 0 0.5rem; padding: 0; align-self: stretch; overflow: visible; }
  .nav a { margin-bottom: -0.625rem; padding-bottom: 0.625rem; }
  .bar__end { order: 1; }
}

main { flex: 1; width: 100%; max-width: 72rem; margin: 0 auto; padding: clamp(1.5rem, 1rem + 2.5vw, 3rem) var(--spacing-pad) 4rem; }
main.narrow { max-width: 34rem; }
main.medium { max-width: 46rem; }
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--spacing-gap); align-content: start; }
.stack--lg { gap: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem); }
.stack--sm { gap: 0.5rem; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; }
.row--between { justify-content: space-between; }
.row--tight { gap: 0.25rem 0.625rem; }
.lead { font-size: var(--text-body); color: var(--muted-foreground); max-width: 38rem; }
/* The bottom padding keeps room for the help button (hosted/feedback.server), so it never covers a footer link. */
.foot { max-width: 72rem; width: 100%; margin: 0 auto; padding: 1rem var(--spacing-pad) 5.5rem; display: flex; flex-wrap: wrap; gap: 0 0.25rem; font-size: var(--text-small); color: var(--muted-foreground); }
/* Every footer link gets the same side padding: a 44px target for "AGB" and "Terms", and the same 20px
   between all words (a minimum width would centre short words and make the gaps uneven). */
.foot a { display: inline-flex; align-items: center; justify-content: flex-start; min-height: 2.75rem; padding-inline: 0.5rem; }
/* Every line of links starts at the page edge, also a second line on a phone: the links' padding reaches into the gutter. */
.foot { padding-inline-start: calc(var(--spacing-pad) - 0.5rem); }

/* ---------- Cards ---------- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-card); padding: var(--spacing-card); }
.card--flat { border-radius: var(--radius-lg); }
.card > h2 + p { margin-top: 0.375rem; }
.card__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1rem; margin-bottom: 1rem; }

/* ---------- Press keys (signature 1 and 2) ---------- */
.key { --key-depth: 4px; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: var(--spacing-control); padding: 0.5rem 1.25rem; margin: 0 0 var(--key-depth); border: 2px solid var(--foreground); border-radius: var(--radius-btn); box-shadow: 0 var(--key-depth) 0 0 var(--foreground); background: var(--card); color: var(--foreground); font-family: var(--font-display); font-size: var(--text-body); font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; user-select: none; -webkit-user-select: none; }
.key:active, .key[aria-busy="true"] { translate: 0 calc(var(--key-depth) - 1px); box-shadow: 0 1px 0 0 var(--foreground); }
.key--main { background: var(--brand); color: var(--brand-foreground); }
.key--lg { min-height: var(--spacing-control-lg); padding-inline: 1.5rem; }
.key--block { width: 100%; }
.key[disabled] { cursor: default; }
.key[hidden], .linkbtn[hidden] { display: none; }
.key[aria-busy="true"] { cursor: progress; }
@media (hover: hover) {
  .key:hover { background: var(--secondary); }
  .key--main:hover { background: color-mix(in oklab, var(--brand) 82%, var(--card)); }
}
@media (prefers-reduced-motion: no-preference) {
  .key { transition: translate var(--dur-spring) var(--ease-spring), box-shadow var(--dur-spring) var(--ease-spring); }
  .key:active { transition-duration: var(--dur-fast); transition-timing-function: var(--ease-standard); }
}

/* ---------- Forms ---------- */
.field { display: grid; gap: 0.375rem; }
.field > label, .legend { font-weight: 700; }
.hint { font-size: var(--text-small); color: var(--muted-foreground); }
.input, .select, .textarea { width: 100%; min-height: var(--spacing-control); padding: 0.5rem 0.875rem; border: 2px solid var(--input); border-radius: var(--radius-md); background: var(--card); color: var(--foreground); font: inherit; line-height: 1.4; }
.textarea { min-height: 6rem; resize: vertical; }
.select { appearance: none; -webkit-appearance: none; padding-inline-end: 2.5rem; background-image: linear-gradient(45deg, transparent 50%, var(--foreground) 50%), linear-gradient(135deg, var(--foreground) 50%, transparent 50%); background-position: calc(100% - 1.25rem) 50%, calc(100% - 0.875rem) 50%; background-size: 0.375rem 0.375rem; background-repeat: no-repeat; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--foreground); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: 2px solid var(--ring); outline-offset: 1px; border-color: var(--foreground); border-radius: var(--radius-md); }
/* A field in error keeps a petrol frame, one step heavier; red stays inside the icon of its message (DESIGN.md: status colours only in stamps and icons). */
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--destructive); box-shadow: inset 0 0 0 1px var(--destructive); }
.input--code { font-family: var(--font-mono); font-size: var(--text-h3); font-weight: 600; letter-spacing: 0.35em; text-align: center; padding-inline: 0.5rem 0.15em; font-variant-numeric: tabular-nums; }
/* The sans zero: the mono one has a slash and six of them read as a row of Ø. */
.input--code::placeholder { color: var(--input); opacity: 0.55; font-family: var(--font-sans); }
.error { display: flex; gap: 0.5rem; align-items: flex-start; font-size: var(--text-small); font-weight: 600; }
.error svg { color: var(--destructive); margin-top: 0.15em; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }

/* A choice in the key shape: a native checkbox or radio inside; the chosen one stays down and turns petrol. */
.choices { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11.5rem), 1fr)); }
.choice { --key-depth: 4px; position: relative; display: grid; grid-template-columns: auto 1fr; gap: 0.125rem 0.75rem; align-items: center; align-content: center; min-height: var(--spacing-control-lg); padding: 0.625rem 1rem; margin-bottom: var(--key-depth); border: 2px solid var(--foreground); border-radius: var(--radius-btn); box-shadow: 0 var(--key-depth) 0 0 var(--foreground); background: var(--card); cursor: pointer; }
/* The native input lies over the whole key, so its own focus ring frames the key; the box is drawn beside it. */
.choice input { position: absolute; inset: -2px; margin: 0; appearance: none; -webkit-appearance: none; border: 0; border-radius: var(--radius-btn); background: transparent; cursor: pointer; }
.choice input:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: var(--radius-btn); }
.choice__box { grid-row: 1 / span 2; align-self: center; width: 1.375rem; height: 1.375rem; border: 2px solid currentColor; border-radius: 0.375rem; display: grid; place-content: center; }
.choice input[type="radio"] ~ .choice__box { border-radius: 50%; }
.choice__box::before { content: ""; width: 0.75rem; height: 0.75rem; scale: 0; background: currentColor; clip-path: polygon(14% 52%, 0 67%, 38% 100%, 100% 22%, 84% 8%, 38% 68%); }
.choice input[type="radio"] ~ .choice__box::before { clip-path: circle(42%); }
.choice input:checked ~ .choice__box::before { scale: 1; }
.choice:has(input:checked) { translate: 0 calc(var(--key-depth) - 1px); box-shadow: 0 1px 0 0 var(--foreground); background: var(--foreground); color: var(--background); }
.choice__title { font-family: var(--font-display); font-weight: 700; line-height: 1.2; }
.choice__note { grid-column: 2; font-size: var(--text-small); opacity: 0.85; }
@media (prefers-reduced-motion: no-preference) {
  .choice { transition: translate var(--dur-spring) var(--ease-spring), box-shadow var(--dur-spring) var(--ease-spring); }
  .choice__box::before { transition: scale var(--dur-fast) var(--ease-standard); }
}

/* A plain tick box with its sentence: the box is big enough to hit, the sentence wraps beside it. */
.check { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.75rem; align-items: start; min-height: 2.75rem; padding-block: 0.375rem; cursor: pointer; }
/* The native input lies over the whole sentence: a big target, and its focus ring frames the row. Links stay on top. */
.check input { position: absolute; inset: 0 -0.5rem; margin: 0; appearance: none; -webkit-appearance: none; border: 0; border-radius: var(--radius-sm); background: transparent; cursor: pointer; }
.check a { position: relative; z-index: 1; }
.check__box { width: 1.75rem; height: 1.75rem; border: 2px solid var(--foreground); border-radius: var(--radius-sm); background: var(--card); display: grid; place-content: center; }
.check__box::before { content: ""; width: 1rem; height: 1rem; scale: 0; background: var(--background); clip-path: polygon(14% 52%, 0 67%, 38% 100%, 100% 22%, 84% 8%, 38% 68%); }
.check input:checked ~ .check__box { background: var(--foreground); }
.check input:checked ~ .check__box::before { scale: 1; }
.check__text { padding-top: 0.05rem; }
@media (prefers-reduced-motion: no-preference) { .check__box::before { transition: scale var(--dur-fast) var(--ease-standard); } }
/* A field with its key on one line: the key's face stands level with the field (its base hangs below). */
.inline { display: grid; gap: 0.75rem; align-items: end; }
.inline > .key { margin-bottom: 0; }
.inline:has(.error) > .key { align-self: center; }
@media (min-width: 36rem) { .inline { grid-template-columns: minmax(0, 1fr) auto; } .inline--start { grid-template-columns: minmax(0, 18rem) auto; } }

/* A card that folds: rarely needed settings stay closed until asked for. */
.fold > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: start; list-style: none; cursor: pointer; border-radius: var(--radius-md); }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary > svg { width: 1.5rem; height: 1.5rem; margin-top: 0.15rem; rotate: 90deg; }
.fold[open] > summary > svg { rotate: -90deg; }
.fold > summary:hover h2 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
.fold__body { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
@media (prefers-reduced-motion: no-preference) { .fold > summary > svg { transition: rotate var(--dur-base) var(--ease-standard); } }
.keys { list-style: none; margin: 0; padding: 0; display: grid; }
.keys__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.25rem 1rem; align-items: start; padding: 0.625rem 0; border-top: 1px solid var(--border); }
.keys > li:last-child .keys__row { border-bottom: 1px solid var(--border); }
/* A list that ends a card: no rule above the card's own padding. */
.keys--open > li:last-child .keys__row, .card > .keys:last-child > li:last-child .keys__row { border-bottom: 0; padding-bottom: 0; }
/* Name and date in a narrow list: the date goes under the name. */
@media (max-width: 36rem) { .keys--stack .keys__row { grid-template-columns: minmax(0, 1fr); } }
.keys__meta { display: grid; gap: 0.125rem; }
@media (min-width: 36rem) { .keys__meta { display: flex; flex-wrap: wrap; gap: 0 0.75rem; } }
/* French labels are long: on a phone both dates stand under their labels, so the pair has one shape. */
@media (max-width: 36rem) { .keys__meta:lang(fr) .date { display: block; } }
.danger { display: grid; gap: 0.75rem; justify-items: start; padding-top: 1rem; border-top: 1px solid var(--border); }

/* ---------- The law's own words (signature 3) ---------- */
/* The brand yellow, like a highlighter pen, on paper and on white cards (founder, 16 Nov 2026). */
.marker { background-image: linear-gradient(var(--brand), var(--brand)); background-repeat: no-repeat; background-size: 100% 0.7em; background-position: 0 82%; -webkit-box-decoration-break: clone; box-decoration-break: clone; padding-inline: 0.14em; margin-inline: -0.14em; }
.quote { display: grid; gap: 0.25rem; }
.quote__words { font-family: var(--font-display); font-size: var(--text-h3); font-weight: 700; line-height: 1.35; }
.quote__source { font-family: var(--font-mono); font-size: var(--text-caption); color: var(--muted-foreground); letter-spacing: 0.01em; }
.quote__ours { font-size: var(--text-small); color: var(--muted-foreground); }

/* ---------- Stamps (signature 5): an icon and a word in a frame; the colour is never alone ---------- */
.stamp { display: inline-flex; align-items: center; gap: 0.375rem; height: 2rem; padding: 0 0.625rem; border: 2px solid var(--foreground); border-radius: var(--radius-sm); background: var(--card); font-family: var(--font-display); font-size: var(--text-small); font-weight: 700; white-space: nowrap; rotate: -2deg; }
.stamp svg { width: 1rem; height: 1rem; stroke-width: 3; }
.stamp--new { border-color: var(--warning); }
.stamp--new svg { color: var(--warning); }
.stamp--done { border-color: var(--success); }
.stamp--done svg { color: var(--success); }
.stamp--alert { border-color: var(--destructive); }
.stamp--alert svg { color: var(--destructive); }
.stamp--filled { background: var(--foreground); color: var(--background); }
.tag { display: inline-flex; align-items: center; min-height: 1.5rem; padding: 0.125rem 0.5rem; border: 1.5px solid var(--foreground); border-radius: 0.375rem; font-family: var(--font-mono); font-size: var(--text-caption); font-weight: 600; letter-spacing: 0.01em; line-height: 1.3; }
@media (prefers-reduced-motion: no-preference) {
  .land { animation: rc-land var(--dur-spring) var(--ease-spring) both; }
}
@keyframes rc-land { from { scale: 1.15; opacity: 0; } }

/* ---------- Banners ---------- */
.banner { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 0.75rem; align-items: start; padding: 0.875rem 1rem; border: 2px solid var(--foreground); border-radius: var(--radius-lg); background: var(--card); }
.banner > svg { margin-top: 0.2em; }
.banner__body { display: grid; gap: 0.5rem; justify-items: start; }
/* Every notice has the same petrol frame; its colour is in the icon alone. */
.banner--warn > svg { color: var(--warning); }
.banner--alert > svg { color: var(--destructive); }
.banner--ok > svg { color: var(--success); }
/* Several things to say are lines of one box, never a stack of boxes. */
.notices { border: 2px solid var(--foreground); border-radius: var(--radius-lg); background: var(--card); }
.notices > ul { list-style: none; margin: 0; padding: 0; }
.notices li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.25rem 0.75rem; align-items: start; padding: 0.875rem 1rem; }
@media (min-width: 56rem) { .notices li:has(.notices__body > .key, .notices__body > form) { align-items: center; } .notices li:has(.notices__body > .key, .notices__body > form) > svg { margin-top: 0; } }
.notices li + li { border-top: 1px solid var(--border); }
.notices li > svg { margin-top: 0.2em; }
.notices [data-kind="warn"] > svg { color: var(--warning); }
.notices [data-kind="alert"] > svg { color: var(--destructive); }
.notices [data-kind="ok"] > svg { color: var(--success); }
.notices__body { display: grid; gap: 0.5rem 1.5rem; justify-items: start; }
/* A readable line; on a wide screen the key sits at the end of the same row. */
@media (min-width: 56rem) { .notices__body:has(> .key, > form) { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }
/* A link at the end of a sentence: as big a target as a line allows, without moving the lines. */
.textlink { display: inline-block; padding-block: 0.6rem; margin-block: -0.6rem; font-weight: 600; }
.banner--quiet { border: 1px solid var(--border); background: var(--muted); }
/* Test mode: the same notice frame as everywhere, with the flask. One notice look. */
.banner--test > svg { color: var(--muted-foreground); }

/* ---------- Setup list ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; counter-reset: step; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 1rem; padding: var(--spacing-card); background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-card); }
.step__mark { counter-increment: step; width: 2.25rem; height: 2.25rem; display: grid; place-content: center; border: 2px solid var(--foreground); border-radius: 50%; font-family: var(--font-display); font-weight: 800; }
.step__mark::before { content: counter(step); }
.step--done .step__mark { background: var(--foreground); color: var(--background); }
.step--done .step__mark::before { content: ""; width: 1rem; height: 1rem; background: currentColor; clip-path: polygon(14% 52%, 0 67%, 38% 100%, 100% 22%, 84% 8%, 38% 68%); }
.step__body { display: grid; gap: 0.625rem; justify-items: start; align-content: start; padding-top: 0.25rem; min-width: 0; }
.step--done h2 { color: var(--muted-foreground); }
.step--open { border: 2px solid var(--foreground); }
.progress { display: flex; align-items: center; gap: 0.75rem; font-family: var(--font-mono); font-size: var(--text-small); }
.progress__dots { display: inline-flex; gap: 0.375rem; }
.progress__dots i { width: 0.625rem; height: 0.625rem; border: 2px solid var(--foreground); border-radius: 50%; }
.progress__dots i[data-on] { background: var(--foreground); }

/* ---------- Status switch and filters ---------- */
/* Three keys of which one stays down: the views of the list, each with its count. */
.switch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
.switch .key { padding-inline: 0.375rem; gap: 0.375rem; font-size: var(--text-small); white-space: nowrap; }
.switch .key b { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 600; opacity: 0.8; }
.switch .key[aria-current="true"], .tiles .tile[aria-current="true"] { translate: 0 calc(var(--key-depth) - 1px); box-shadow: 0 1px 0 0 var(--foreground); background: var(--foreground); color: var(--background); }
@media (min-width: 44rem) { .switch { grid-template-columns: repeat(3, max-content); } .switch .key { padding-inline: 1.25rem; font-size: var(--text-body); } }
/* The export key sits beside the title on a wide screen and after the list on a phone, where the list comes first. */
.only-wide { display: none; }
@media (min-width: 44rem) { .only-wide { display: inline-flex; } .only-narrow { display: none; } }
/* The filter switch of the phone layout: a checkbox and its label, no script. */
.filtertoggle { position: absolute; width: 1px; height: 1px; opacity: 0; }
@media (min-width: 44rem) { .filtertoggle { display: none; } }
.filtertoggle__label { display: none; }
@media (max-width: 43.99rem) {
  .filtertoggle__label { margin-block: -0.5rem; display: inline-flex; align-items: center; gap: 0.5rem; min-height: var(--spacing-control); justify-self: start; font-weight: 700; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
  .filtertoggle:checked + .filtertoggle__label { text-decoration: none; }
  .filtertoggle:focus-visible + .filtertoggle__label { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: var(--radius-sm); }
  .filtertoggle:not(:checked) ~ .filters { display: none; }
}
.filters { display: grid; gap: 0.75rem; grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.filters .field--search { grid-column: 1 / -1; }
.filters .key { margin-bottom: 0; align-self: start; }
.filters .field label { font-size: var(--text-small); }
@media (max-width: 43.99rem) { .filters .field:not(.field--search) label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } }
@media (min-width: 44rem) { .filters { grid-template-columns: minmax(12rem, 1fr) auto auto; } .filters .field--search { grid-column: auto; } .filters .key { align-self: end; margin-bottom: 0; } }

/* ---------- The list: one grid for all rows; cards when its box is narrow ---------- */
.listbox { container-type: inline-size; }
.list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: max-content minmax(8rem, 1.3fr) minmax(6rem, 1fr) minmax(7rem, max-content) 10.5rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; }
.list > li, .list__head, .list__row { display: grid; grid-template-columns: subgrid; grid-column: 1 / -1; }
.list__head, .list__row { column-gap: 1.25rem; align-items: center; padding: 0.75rem var(--spacing-card); }
.list__head { font-size: var(--text-caption); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted-foreground); border-bottom: 1px solid var(--border); }
.list__row { min-height: 3.75rem; border-bottom: 1px solid var(--border); text-decoration: none; }
.list > li:last-child .list__row { border-bottom: 0; }
.list__row:hover { background: var(--muted); }
.list__row:focus-visible { outline: 2px solid var(--ring); outline-offset: -3px; border-radius: var(--radius-md); }
.list > li:nth-child(2) .list__row:focus-visible, .list > li:last-child .list__row:focus-visible { border-radius: var(--radius-lg); }
.list__cell { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list__cell--when { white-space: nowrap; }
.list__cell--status { overflow: visible; }
.list__cell--name { font-weight: 700; }
@container (max-width: 46rem) {
  .list { grid-template-columns: minmax(0, 1fr) auto; }
  .list > .list__head { display: none; }
  /* Each row its own two columns: a short stamp leaves the name its room. A name that still does not fit breaks at its own hyphen, never inside a word. */
  .list__row { grid-template-columns: minmax(0, 1fr) auto; column-gap: 1rem; row-gap: 0.125rem; padding-block: 0.875rem; }
  /* A card: the name with its stamp, then the date and the contract on full lines. Nothing is cut. */
  .list__cell--name { grid-column: 1; grid-row: 1; white-space: normal; overflow-wrap: break-word; }
  .list__cell--status { grid-column: 2; grid-row: 1; align-self: start; }
  .list__cell--when { grid-column: 1 / -1; grid-row: 2; font-size: var(--text-small); color: var(--muted-foreground); white-space: nowrap; }
  .list__cell--contract { grid-column: 1 / -1; grid-row: 3; font-size: var(--text-small); color: var(--muted-foreground); white-space: normal; overflow-wrap: anywhere; }
  .list__cell--end { display: none; }
  /* A withdrawal has no end: its mark stays on the card, on a line of its own. */
  .list__cell--withdrawal { display: block; grid-column: 1 / -1; grid-row: 4; margin-top: 0.375rem; }
}
@container (max-width: 18rem) {
  .list__cell--name { grid-column: 1 / -1; }
  .list__cell--status { grid-column: 1; grid-row: 4; justify-self: start; margin-top: 0.375rem; }
  .list__cell--withdrawal { grid-row: 5; }
}
.empty { display: grid; gap: 0.75rem; justify-items: start; padding: clamp(1.5rem, 1rem + 3vw, 3rem) var(--spacing-card); background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-card); }
.pager { display: flex; justify-content: space-between; gap: 1rem; }

/* ---------- Detail ---------- */
.back { display: inline-flex; align-items: center; gap: 0.375rem; min-height: 2.75rem; font-size: var(--text-small); font-weight: 600; }
.facts { margin: 0; display: grid; grid-template-columns: minmax(8rem, max-content) minmax(0, 1fr); }
.facts dt, .facts dd { margin: 0; padding: 0.625rem 0; border-bottom: 1px solid var(--border); }
.facts dt { padding-inline-end: 1.5rem; font-weight: 700; }
.facts dd { overflow-wrap: anywhere; white-space: pre-wrap; }
.facts dd a { display: inline-block; padding-block: 0.6rem; margin-block: -0.6rem; }
.facts > :nth-last-child(-n + 2) { border-bottom: 0; }
/* The first row sits as close to the card's head as the rows sit to each other. */
.facts > :nth-child(-n + 2) { padding-top: 0; }
@media (max-width: 30rem) { .facts { grid-template-columns: 1fr; } .facts dt { padding-bottom: 0; border-bottom: 0; } .facts dd { padding-top: 0.125rem; } .facts > :nth-last-child(2) { border-bottom: 0; } }
.log { list-style: none; margin: 0; padding: 0; display: grid; }
.log li { position: relative; display: grid; gap: 0; padding: 0 0 1rem 1.75rem; }
.log li::before { content: ""; position: absolute; left: 0.3125rem; top: 0.5em; width: 0.625rem; height: 0.625rem; border-radius: 50%; background: var(--foreground); }
.log li::after { content: ""; position: absolute; left: 0.5625rem; top: 1.2em; bottom: -0.3em; width: 2px; background: var(--border); }
.log li:last-child { padding-bottom: 0; }
.log li:last-child::after { content: none; }
.log li[data-open]::before { background: var(--card); border: 2px solid var(--input); }
.log time { font-family: var(--font-mono); font-size: var(--text-small); color: var(--muted-foreground); font-variant-numeric: tabular-nums; word-spacing: -0.3em; white-space: nowrap; }
/* A record: on a phone the one thing to do comes first, then the notice, then the proof. */
.split { display: grid; gap: var(--spacing-gap); align-items: start; grid-template-columns: minmax(0, 1fr); grid-template-areas: "todo" "notice" "proof"; }
.split__todo { grid-area: todo; }
.split__notice { grid-area: notice; }
.split__proof { grid-area: proof; }
@media (min-width: 56rem) { .split { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); grid-template-areas: "notice todo" "notice proof"; grid-template-rows: auto 1fr; } }

/* ---------- Place it ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.tabs .key[aria-current="true"] { translate: 0 calc(var(--key-depth) - 1px); box-shadow: 0 1px 0 0 var(--foreground); background: var(--foreground); color: var(--background); }
/* Equal tiles for a choice between pages: a title and one note, like the country tiles. */
.tiles { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.tile { --key-depth: 4px; display: grid; gap: 0.125rem; align-content: start; min-height: var(--spacing-control-lg); padding: 0.625rem 1rem; margin-bottom: var(--key-depth); border: 2px solid var(--foreground); border-radius: var(--radius-btn); box-shadow: 0 var(--key-depth) 0 0 var(--foreground); background: var(--card); text-decoration: none; }
.tile b { font-family: var(--font-display); font-weight: 700; line-height: 1.2; }
.tile span { font-size: var(--text-small); opacity: 0.85; }
@media (hover: hover) { .tile:not([aria-current="true"]):hover { background: var(--secondary); } }
@media (prefers-reduced-motion: no-preference) { .tile { transition: translate var(--dur-spring) var(--ease-spring), box-shadow var(--dur-spring) var(--ease-spring); } }
.code { position: relative; display: grid; gap: 0.75rem; padding: 1rem; background: var(--muted); border: 1px solid var(--border); border-radius: var(--radius-lg); }
/* Breaks come at the <wbr> chances first; "anywhere" is only the last resort for one long word (a secret key). */
.code pre { margin: 0; padding-block: 0.625rem; white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--font-mono); font-size: var(--text-small); line-height: 1.55; border-radius: var(--radius-sm); }
/* A style rule: one line that scrolls, never a break inside a selector. */
.code--rule { grid-template-columns: minmax(0, 1fr); }
.code--rule pre { min-width: 0; white-space: pre-wrap; overflow-wrap: normal; word-break: normal; overflow-x: auto; }
@media (max-width: 26rem) { .code--rule pre { font-size: var(--text-caption); } }
/* A code a seller copies and nobody reads: its first characters and "…" (views/ui.tsx, CodeBox `cut`). */
.code__cut { margin: 0; padding-block: 0.625rem; white-space: pre-wrap; word-break: break-all; font-family: var(--font-mono); font-size: var(--text-small); line-height: 1.55; }
.stack--xs { display: grid; gap: 0.125rem; }
/* Where the code goes: one closed block per shop system, all alike (equal choices, equally loud). */
.guides { display: grid; gap: 0.5rem; width: 100%; }
.guide { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); }
.guide > summary { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; min-height: 2.75rem; padding: 0.5rem 1rem; font-weight: 700; cursor: pointer; list-style: none; border-radius: var(--radius-lg); }
.guide > summary::-webkit-details-marker { display: none; }
.guide > summary::after { content: ""; width: 0.6rem; height: 0.6rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-0.15rem); flex: none; }
.guide[open] > summary::after { transform: rotate(-135deg) translateY(-0.15rem); }
.guide > summary:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }
.guide ol { margin: 0; padding: 0 1rem 1rem 2.25rem; display: grid; gap: 0.375rem; }
.code__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; }
.code__label { font-size: var(--text-caption); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted-foreground); }
.numbered { margin: 0; padding: 0; list-style: none; counter-reset: n; display: grid; gap: 1.25rem; }
.numbered > li { counter-increment: n; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.5rem 0.875rem; }
/* Outlined: a step to do. A filled circle means "done" and belongs to the setup list alone. */
.numbered > li::before { content: counter(n); width: 1.75rem; height: 1.75rem; display: grid; place-content: center; border: 2px solid var(--foreground); border-radius: 50%; font-family: var(--font-display); font-size: var(--text-small); font-weight: 800; }
.numbered > li > div { display: grid; gap: 0.625rem; min-width: 0; padding-top: 0.05rem; }
.dns { display: grid; grid-template-columns: max-content minmax(0, 1fr) auto; gap: 0.375rem 1rem; align-items: center; margin: 0; font-size: var(--text-small); }
.dns dt { font-weight: 700; }
.dns dd { margin: 0; font-family: var(--font-mono); overflow-wrap: anywhere; }
.dns .linkbtn { grid-column: 3; }
.dns dd:not(:has(+ .linkbtn)) { grid-column: 2 / -1; }
/* Narrow: the label stands above its value, so a long target keeps the full line. */
@media (max-width: 36rem) { .dns { grid-template-columns: minmax(0, 1fr) auto; gap: 0 1rem; } .dns dt { grid-column: 1 / -1; margin-top: 0.5rem; } .dns dt:first-child { margin-top: 0; } .dns dd, .dns dd:not(:has(+ .linkbtn)) { grid-column: 1 / -1; } .dns .linkbtn { grid-column: 1 / -1; justify-self: start; } }

/* ---------- Plan page: three plans side by side, the current one in the heavy frame ---------- */
.plans { display: grid; gap: 1rem; align-items: stretch; }
@media (min-width: 56rem) { .plans--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .plans--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Side by side, the tiles share their four rows (name, price, list, key), so the keys of the paid tiles sit on one line. */
@media (min-width: 56rem) { .plans--2 > .plan, .plans--3 > .plan { grid-row: span 4; grid-template-rows: subgrid; row-gap: 0.75rem; } }
.plan { display: grid; gap: 0.75rem; align-content: start; grid-template-rows: auto auto 1fr auto; }
.plan--current { border: 2px solid var(--foreground); }
/* The plan the reader came for stands first on a phone. */
@media (max-width: 36rem) { .plan--needed { order: -1; } .plans:has(.plan--needed) .plan--current { order: 1; } }
.plan > .row { min-height: 2.25rem; }
.plan h3 { font-size: var(--text-h3); line-height: var(--text-h3--line-height); font-weight: var(--text-h3--font-weight); }
.price { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.375rem; }
.price__amount { font-family: var(--font-display); font-size: var(--text-h3); font-weight: 800; line-height: 1.1; white-space: nowrap; }
.price__rest { font-size: var(--text-small); color: var(--muted-foreground); }
.plan__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; align-content: start; font-size: var(--text-small); }
.plan__list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.5rem; align-items: start; }
.plan__list svg { margin-top: 0.2em; color: currentColor; }
.plan__list--more svg { color: var(--muted-foreground); }
.plan__base { font-weight: 700; }
.plan__action { margin-top: 0.25rem; }
/* Yearly billing (D147): the period switch above the tiles, and what a year saves under a paid tile's price. */
.period { display: grid; gap: 0.5rem; justify-items: start; }
.period .tabs { flex-wrap: nowrap; gap: 0.5rem; }
.period p { margin: 0; font-weight: 700; }
.plan__price { display: grid; gap: 0.125rem; }
.plan__saving { margin: 0; font-weight: 700; }
.plan__saving--held { visibility: hidden; }
/* The small print under the tiles: from the width where the tiles stand side by side, each paragraph spans the whole
   tile row, one under the other (founder, 20 Nov 2026: "Each small paragraph full width"). */

/* ---------- Sign-in ---------- */
.door { display: grid; gap: 1.5rem; padding-top: clamp(0.5rem, 6vh, 4rem); }
/* A plain card: an outline with a base would say "press me", and a card cannot be pressed. */
.door .card { display: grid; gap: 1.25rem; }
.door .quotes { display: grid; gap: 0.75rem; padding-block: 0.25rem; }

/* ---------- Legal texts ---------- */
.prose { max-width: 42rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.875rem; }
.prose p { overflow-wrap: anywhere; }
.prose h2 { margin-top: 1rem; }

/* ---------- Page change: one calm cross-fade, only when motion is welcome ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: var(--dur-base); animation-timing-function: var(--ease-standard); }
}
@media print { .bar, .foot, .key, .nav { display: none; } body { background: var(--card); } }

/* ---------- Proof pack and reminders (views/proof.tsx, views/reminders.tsx, the section row in views/layout.tsx) ---------- */
/* "Cancellations" is the section on its three pages: the tab keeps its line. */
.nav a[aria-current="true"] { border-bottom-color: var(--foreground); }
/* The row of the section: the list, the proof pack, reminders. */
/* One line also with four entries on a phone: it scrolls sideways like the main tabs, it never wraps. */
.subnav { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; white-space: nowrap; gap: 0 1.25rem; margin-bottom: clamp(1rem, 0.75rem + 1vw, 1.5rem); border-bottom: 1px solid var(--border); }
.subnav::-webkit-scrollbar { display: none; }
.subnav a { flex: none; display: inline-flex; align-items: center; min-height: 2.75rem; font-size: var(--text-small); font-weight: 600; text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.subnav a:hover { border-bottom-color: var(--border); }
.subnav a[aria-current="page"] { border-bottom-color: var(--foreground); }
/* Phones: four entries do not fit. Without the script the row wraps. With it (data-scroll), it is one scrolling line that shows the current entry and fades where more follows. A mask reads only the alpha, so any solid token works. */
@media (max-width: 36rem) {
  .subnav { flex-wrap: wrap; white-space: normal; overflow-x: visible; gap: 0 1rem; }
  .subnav[data-scroll] { flex-wrap: nowrap; white-space: nowrap; overflow-x: auto; scroll-padding-inline: 1.5rem; -webkit-mask-image: linear-gradient(to right, transparent, var(--foreground) var(--fade-before, 0px), var(--foreground) calc(100% - var(--fade-after, 0px)), transparent); mask-image: linear-gradient(to right, transparent, var(--foreground) var(--fade-before, 0px), var(--foreground) calc(100% - var(--fade-after, 0px)), transparent); }
  .subnav[data-before] { --fade-before: 1.5rem; }
  .subnav[data-after] { --fade-after: 1.5rem; }
}
.bullets { margin: 0; padding-inline-start: 1.25rem; display: grid; gap: 0.5rem; }
.bullets .mono { font-size: var(--text-small); }
/* The period: a preset, and two dates only for "Custom dates" (without :has they always show). */
.period { display: grid; gap: 0.75rem; max-width: 24rem; }
.period__dates { display: grid; gap: 0.75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.period__dates .field, .period__dates .input { min-width: 0; }
@media (max-width: 36rem) { .period__dates { grid-template-columns: minmax(0, 1fr); } }
/* Proof pack and reminders use the wide page, so the section row stays at the page edge; their content keeps a reading width. */
.section-body { max-width: 46rem; }
/* A reminder recipient: address, state and "Remove" on the head line; the code form below takes the full width. */
.recipient { display: grid; gap: 0.625rem; padding: 0.75rem 0; border-top: 1px solid var(--border); }
.keys > li:last-child .recipient { border-bottom: 1px solid var(--border); }
.recipient__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.625rem 1rem; }
.recipient__head .linkbtn { min-height: 2.75rem; margin-block: -0.5rem; }
/* The pack list on a phone: one column, the key under its pack. The fingerprint is two lines of 32, or four of 16 at 320px. */
@media (max-width: 36rem) { .keys--packs .keys__row { grid-template-columns: minmax(0, 1fr); } .keys--packs .keys__row > :not(:first-child) { justify-self: start; } }
.fingerprint { display: block; max-width: 33ch; overflow-wrap: normal; margin-block-end: 0.25rem; }
.period:has(option[value="custom"]:not(:checked)) .period__dates { display: none; }
/* A preset alone: its key stands beside the select. */
@media (min-width: 36rem) { .period:has(option[value="custom"]:not(:checked)) { grid-template-columns: minmax(0, 18rem) auto; align-items: end; max-width: none; justify-content: start; } }
/* "More than [ 3 ] days": a field for two digits, its unit beside it. */
.days { display: inline-flex; align-items: center; gap: 0.625rem; }
.days__input { width: 5rem; text-align: center; font-variant-numeric: tabular-nums; }
/* Autopilot (views/autopilot.tsx): a run's result is a stamp and a quiet line; a row's one press stays beside it, under it on a phone. */
.ap-result { gap: 0.5rem 0.75rem; }
.ap-row > form { align-self: center; }
@media (max-width: 36rem) { .ap-row > form { margin-top: 0.375rem; } }
/* The name opens the case: a 44px target without moving the lines around it. */
.ap-name { display: flex; align-items: center; min-height: 2.75rem; margin-block: -0.5625rem; }
@media (max-width: 36rem) { .ap-row { grid-template-columns: minmax(0, 1fr); } .ap-row > form { justify-self: start; } }
.ap-back { display: inline-flex; gap: 0.375rem; min-height: 2.75rem; font-weight: 600; }
.ap-back svg { width: 1.125rem; height: 1.125rem; }
/* The browser's own marker shows that it opens. */
.ap-log details > summary { cursor: pointer; display: list-item; box-sizing: border-box; min-height: 2.75rem; padding-block: 0.6875rem; margin-block: -0.375rem; }
.ap-log .mono { overflow-wrap: anywhere; }
