/* The holder frame (templates/holder/base.html; CONTRACT §13), the one sheet its pages link after
   tokens.css: the holder space, the sign-in pages, the claim and account deletion pages, the old
   card's page and the order pages. It carries OuiCard's own identity (DESIGN.md), never the Theme
   row's: a buyer who taps « Commander » on the green order page lands on the same green.
   It was app.css's section 4 until 11/11/2026: the holder pages then downloaded the whole admin
   skin, 24 KB gzip of which about 3 KB was theirs (UI audit P2-1).
   Sections: 1. tokens and sizes  2. the shared components the holder pages use, restated from
   app.css section 3 (tests/web/theme/test_holder_frame.py keeps each one equal)  3. the frame
   4. components (messages, buttons, fields)  5. layout steps.
   Every rule of sections 3 to 5 is scoped under the holder's body (.holder): Django names an admin
   row and a list cell after their field (div.form-row.field-note, td.field-label), which the
   holder's .field-* rules would turn into blocks (tests/web/theme/test_interaction_contrast.py
   keeps the scope). The sheet reads no Django variable: the OS dark scheme remaps those, and the
   frame is light only. */

/* 1. Tokens and sizes. */

/* The headline face, Schibsted Grotesk ExtraBold (SIL OFL 1.1, checkout/assets/fonts/OFL.txt): the
   order page's own file, one weight, subset to Latin and French, so a buyer coming from that page
   has it cached. `swap`: the system sans shows first on a slow network, never blank text. */
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../checkout/assets/fonts/schibsted-grotesk-800.ffd6a811c7d1.woff2") format("woff2");
  font-weight: 700 800;
  font-style: normal;
  font-display: swap;
}

/* The two target sizes (WCAG 2.5.8; DESIGN.md, the 44px Tap Rule) and the Small step's leading,
   restated from app.css section 1, which the admin pages read. */
:root {
  --target-pointer: 24px;
  --target-finger: 2.75rem;
  --leading-small: 1.35;
}

/* OuiCard's palette (DESIGN.md « Colors ») on the token names the holder rules and holder.css
   read, pinned on the body: a Theme rule on :root cannot reach the frame, and the custom
   properties inherit from here. Each text pair is AA: muted 4.64:1 on the page, 5.02:1 on white;
   links and the focus ring 4.6:1 and 4.98:1; the alert 6.54:1 on white, 5.72:1 on its wash; a field
   border 3.35:1 on white (WCAG 1.4.11). */
body.holder {
  --colour-primary: #16804A;
  --colour-primary-strong: #0F6A3C;
  --colour-primary-soft: #E7F4EC;
  --colour-link: #16804A;
  --colour-on-primary: #FFFFFF;
  --colour-accent: #2CAC64;
  --colour-page: #F3F7F4;
  --colour-surface: #FFFFFF;
  --colour-ink: #0E1511;
  --colour-ink-secondary: #44504A;
  --colour-muted: #66726B;
  --colour-line: #E3E9E5;
  --colour-line-strong: #C9D3CD;
  --colour-control-border: #848F89;
  --colour-selection: #BFE6CD;
  --colour-success: #0F6A3C;
  --colour-success-bg: #E7F4EC;
  --colour-alert: #B3261E;
  --colour-alert-bg: #FDECEA;
  --font-display: "Schibsted Grotesk", var(--font-system);
  --radius: 28px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --shadow: 0 1px 2px rgba(14, 21, 17, .06), 0 4px 14px -6px rgba(14, 21, 17, .10);
  --shadow-action: 0 1px 1px rgba(14, 21, 17, .12), 0 8px 20px -10px rgba(22, 128, 74, .7);
  --halo: 0 0 0 4px rgba(44, 172, 100, .2);
  --halo-alert: 0 0 0 4px rgba(179, 38, 30, .15);
  --focus-ring: 3px solid var(--colour-primary);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  /* DESIGN.md « Typography »: Body 17px, Label 15px, Button 1.05rem, and the page title between
     the Headline's floor and a little under its ceiling, the frame's titles being a form's. */
  --size-body: 1.0625rem;
  --size-label: .9375rem;
  --size-button: 1.05rem;
  --size-title: clamp(1.75rem, 1.35rem + 1.6vw, 2.35rem);
  --button-height: 3.375rem;
  --field-height: 3.25rem;
}

/* 2. Shared components, restated from app.css section 3. */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.pill {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}
.pill--warning { color: var(--colour-warning); background: var(--colour-warning-bg); }
.pill--alert { color: var(--colour-alert); background: var(--colour-alert-bg); }
.pill--success { color: var(--colour-success); background: var(--colour-success-bg); }

/* The alert mark (CONTRACT log, 12/10/2026, P1-Public, item b): an error or a destructive action is
   told from the primary by its shape, not by its red alone (WCAG 1.4.1). A ring drawn by its border,
   then a bar and a dot drawn by two gradients, all in the text colour. Restated in
   templates/holder/_presentation.css for the QR error (tests/web/holder/test_presentation.py keeps
   the two equal). */
.message--error::before, .field-errors li::before, .holder .button--danger::before {
  content: "";
  display: inline-block;
  flex: none;
  box-sizing: border-box;
  width: 1.125em;
  height: 1.125em;
  margin-right: .5em;
  border: 2px solid currentColor;
  border-radius: 50%;
  background-image: linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor);
  background-position: 50% 20%, 50% 80%;
  background-size: 2px 40%, 2px 2px;
  background-repeat: no-repeat;
  vertical-align: -.1875em;
}
/* Forced colours drop a gradient (CSS Color Adjustment §3.1): the mark opts out to keep its bar and
   dot, in the system text colour so it still shows on the forced background. */
@media (forced-colors: active) {
  .message--error::before, .field-errors li::before, .holder .button--danger::before {
    forced-color-adjust: none;
    color: CanvasText;
  }
}

/* 3. The frame. */
.holder *, .holder *::before, .holder *::after { box-sizing: border-box; }
body.holder {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--colour-page);
  color: var(--colour-ink);
  font: var(--size-body)/1.55 var(--font-system);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  accent-color: var(--colour-primary);
  caret-color: var(--colour-primary);
  color-scheme: only light;
}
.holder ::selection { background: var(--colour-selection); color: var(--colour-ink); }
.holder img { max-width: 100%; }
.holder a {
  color: var(--colour-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.holder a:hover { color: var(--colour-primary-strong); }
/* One ring for every control (DESIGN.md, the Visible Focus Rule): 3px Action Green, 3:1 and more on
   the white header and panels and on the page's soft ground. */
.holder a:focus-visible, .holder button:focus-visible, .holder input:focus-visible,
.holder select:focus-visible, .holder textarea:focus-visible, .holder summary:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 3px;
}
.holder .skip-link {
  position: absolute;
  left: var(--space-2);
  top: -4rem;
  display: inline-flex;
  align-items: center;
  min-height: var(--target-finger);
  padding: 0 var(--space-4);
  background: var(--colour-surface);
  border: 1px solid var(--colour-line);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow);
  font-weight: 600;
  z-index: 10;
}
.holder .skip-link:focus { top: var(--space-2); }

/* The header is OuiCard's (DESIGN.md, the Solid Header Rule): an opaque white bar with a hairline,
   the logo at 118px (104px on a small phone), the space's name beside it in Label type, and the
   sign-out as a quiet pill. Not sticky: the nav and the page start right under it, and a sticky
   bar would cover the field a keyboard user tabs to (WCAG 2.4.11). It wraps, so that at 200 % text
   the sign-out moves under the logo instead of widening the page (WCAG 1.4.10; UI audit P2-3). */
.holder .holder-header { background: var(--colour-surface); border-bottom: 1px solid var(--colour-line); }
.holder .holder-header-inner, .holder .holder-nav-inner, .holder .holder-main,
.holder .holder-footer-inner {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}
.holder .holder-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-3);
  min-height: 60px;
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
}
.holder .holder-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 var(--space-3);
  min-width: 0;
  margin: 0;
  line-height: 1.25;
}
.holder .holder-brand a, .holder .holder-brand-name {
  display: inline-flex;
  align-items: center;
  min-height: var(--target-finger);
  text-decoration: none;
}
.holder .holder-brand img { display: block; width: 118px; height: auto; }
.holder .holder-brand-space {
  padding-left: var(--space-3);
  border-left: 1px solid var(--colour-line-strong);
  color: var(--colour-ink-secondary);
  font-size: var(--size-label);
  font-weight: 600;
}
.holder .holder-logout { margin: 0; }

.holder .holder-nav { background: var(--colour-surface); border-bottom: 1px solid var(--colour-line); }
.holder .holder-nav-inner {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  margin: 0 auto;
  list-style: none;
}
.holder .holder-nav a {
  display: flex;
  align-items: center;
  min-height: var(--target-finger);
  padding: var(--space-2) var(--space-1);
  color: var(--colour-ink-secondary);
  font-weight: 600;
  font-size: var(--size-label);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.holder .holder-nav a:hover { color: var(--colour-ink); }
/* The tab of the page, or of its parent on a child page (aria-current="true", holder/base.html):
   by its ink and its Action Green rule, not by a colour alone. */
.holder .holder-nav a[aria-current] { color: var(--colour-ink); border-bottom-color: var(--colour-primary); }
/* The nav scrolls sideways, which clips anything drawn outside it: the ring goes inside the link. */
.holder .holder-nav a:focus-visible { outline-offset: -3px; }

/* A word too long for its line breaks, not the page (re-audit N2, N3). */
.holder .holder-main { flex: 1; padding-top: var(--space-5); padding-bottom: var(--space-7); overflow-wrap: break-word; }
/* Headings in the display face, heavy and tight (DESIGN.md, the Heavy and Tight Rule), balanced: no
   lone word or guillemet left at a line end (« Professionnel »). The h1 can quote a profile label
   (« Modifier le profil « … » »): an unbroken one wraps inside the page, at a hyphen (N3). */
.holder .holder-main h1 {
  margin: 0 0 var(--space-5);
  font-family: var(--font-display);
  font-size: var(--size-title);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.022em;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: auto;
}
/* The lead under a page's title, such as the sign-in code step's « Un code vient d’être envoyé
   par SMS au … » (owner's answer of 12/11/2026, P3): the number wraps inside the page at 320 px
   and 200 % text instead of pushing it sideways. */
.holder .holder-main > h1 + p { overflow-wrap: anywhere; }
.holder .holder-main h2 {
  margin: var(--space-6) 0 var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.015em;
  text-wrap: balance;
}

.holder .holder-footer { border-top: 1px solid var(--colour-line); background: var(--colour-surface); }
.holder .holder-footer-inner { padding-top: var(--space-4); padding-bottom: var(--space-4); color: var(--colour-muted); font-size: var(--text-sm); }
.holder .holder-footer-inner p { margin: 0; }
/* The legal notice's link under the footer line (holder/base.html), a finger's target as the order
   page footer's links are. */
.holder .holder-footer-inner p + p { margin-top: var(--space-1); }
.holder .holder-footer-inner a { display: inline-flex; align-items: center; min-height: var(--target-finger); color: var(--colour-ink-secondary); }
/* The buy path's FR | EN links (checkout/_frame.html), each a finger's width too; the current
   language reads as plain text. */
.holder .holder-footer-inner .lang { margin-top: var(--space-1); }
.holder .holder-footer-inner .lang a { justify-content: center; min-width: var(--target-finger); }
.holder .holder-footer-inner .lang a[aria-current] { color: var(--colour-ink); text-decoration: none; }

/* 4. Components. */

/* A container (DESIGN.md « Cards / Containers »): white on the soft page, a hairline, the resting
   shadow, the 28px corner. */
.holder .panel {
  margin: 0 0 var(--space-4);
  padding: clamp(1.25rem, 1rem + 1.2vw, 2rem);
  background: var(--colour-surface);
  border: 1px solid var(--colour-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.holder .panel > :first-child { margin-top: 0; }
.holder .panel > :last-child { margin-bottom: 0; }
/* A form panel opens on its hidden fields (the CSRF token, the step, `next`), so its first visible
   child is no :first-child and kept its 1em top margin: 32px of gap instead of the panel's padding
   (UI audit P3-12). */
.holder .panel > input[type="hidden"] + :not(input[type="hidden"]) { margin-top: 0; }
.holder .panel--band { position: relative; overflow: hidden; padding-top: var(--space-6); }
.holder .panel--band::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: var(--band, var(--colour-primary));
}

.holder .messages { margin: 0 0 var(--space-4); padding: 0; list-style: none; }
/* Restated in templates/holder/_presentation.css (as .message and .message--error): the offline
   presentation page links no stylesheet. tests/web/holder/test_presentation.py keeps them equal, so
   their look changes here only through the tokens above. */
.holder .message {
  margin: 0 0 var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  border: 1px solid var(--colour-line);
  background: var(--colour-surface);
}
.holder .message--success { border-color: var(--colour-success); background: var(--colour-success-bg); color: var(--colour-success); }
/* An error takes a 2px border, which forced colours keep, and the alert mark (section 2); its padding
   gives back the pixel the border takes, so it keeps the size of the other messages. */
.holder .message--error {
  padding: calc(var(--space-3) - 1px) calc(var(--space-4) - 1px);
  border-width: 2px;
  border-color: var(--colour-alert);
  background: var(--colour-alert-bg);
  color: var(--colour-alert);
}
/* The mark stands in its own column, so a second line starts under the first, not under the mark
   (UI audit P3-12); `.messages >` leaves the rule above as presentation mode restates it. */
.holder .messages > .message--error { display: flex; align-items: flex-start; }
.holder .messages > .message--error::before { margin-top: .2em; }
.holder .message--warning { border-color: var(--colour-warning); background: var(--colour-warning-bg); color: var(--colour-warning); }
.holder .message--info { border-color: var(--colour-primary); background: var(--colour-surface); color: var(--colour-primary); }
/* A refusal's reference and help link (claiming/_refusal.html) sit under its message. */
.holder .messages > .field-note, .holder .messages > .link-row { margin: var(--space-2) 0 0; }

/* Buttons (DESIGN.md « Buttons », the Pill Action Rule): a full pill, 54px tall, a heavy label that
   centres and balances when a long French label wraps, a gentle press. */
.holder .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--button-height);
  padding: .85rem 1.5rem;
  border: 1.5px solid var(--colour-primary);
  border-radius: var(--radius-pill);
  background: var(--colour-primary);
  color: var(--colour-on-primary);
  box-shadow: var(--shadow-action);
  font: 700 var(--size-button)/1.2 var(--font-system);
  letter-spacing: -.005em;
  text-align: center;
  text-wrap: balance;
  /* A long French word may break rather than widen a phone's page at 200 % text (WCAG 1.4.10). */
  overflow-wrap: anywhere;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s var(--ease-out), border-color .2s var(--ease-out), transform .2s var(--ease-out);
}
.holder a.button { color: var(--colour-on-primary); }
.holder .button:hover { border-color: var(--colour-primary-strong); background: var(--colour-primary-strong); color: var(--colour-on-primary); }
.holder .button:active { transform: scale(.98); }
@media (prefers-reduced-motion: reduce) {
  .holder .button { transition: none; }
  .holder .button:active { transform: none; }
}
/* Outlined: white with ink text and a Strong Hairline border, the label naming it a control. */
.holder .button--secondary, .holder a.button--secondary {
  border-color: var(--colour-line-strong);
  background: var(--colour-surface);
  color: var(--colour-ink);
  box-shadow: none;
}
.holder .button--secondary:hover, .holder a.button--secondary:hover {
  border-color: var(--colour-muted);
  background: var(--colour-page);
  color: var(--colour-ink);
}
/* The header's sign-out: a quiet pill of the header's Label type, a finger's target. Its words may
   wrap on a phone at a large text size, where they would widen the page (UI audit P2-3). */
.holder .button--on-primary {
  min-height: var(--target-finger);
  padding: var(--space-1) var(--space-4);
  border-color: var(--colour-line-strong);
  background: var(--colour-surface);
  color: var(--colour-ink);
  box-shadow: none;
  font-size: var(--size-label);
  font-weight: 600;
  white-space: nowrap;
}
.holder .button--on-primary:hover { border-color: var(--colour-muted); background: var(--colour-page); color: var(--colour-ink); }
@media (max-width: 30rem) {
  .holder .button--on-primary { white-space: normal; }
  /* On a phone the space's name goes under the logo, so the sign-out stays on the logo's line. */
  .holder .holder-brand { flex-direction: column; align-items: flex-start; }
  .holder .holder-brand-space { margin-top: -.5rem; padding-left: 0; border-left: 0; font-size: var(--text-sm); }
}
/* The destructive action: outlined, told from the secondary by a 2px border and the alert mark
   (section 2) as well as its red. Its padding gives back what the border takes. */
.holder .button--danger {
  padding: calc(.85rem - .5px) calc(1.5rem - .5px);
  border-width: 2px;
  border-color: var(--colour-alert);
  background: var(--colour-surface);
  color: var(--colour-alert);
  box-shadow: none;
}
.holder .button--danger:hover { border-color: var(--colour-alert); background: var(--colour-alert-bg); color: var(--colour-alert); }
/* The button's gap already spaces the mark from the words: the mark's own margin would double it. */
.holder .button--danger::before { margin-right: 0; }
/* A disabled button reads as one (UI audit P2-13): the page's ground, muted text (4.64:1, kept
   readable though WCAG exempts it), a line border, no lift and no pointer. */
.holder .button:disabled, .holder .button:disabled:hover {
  border-color: var(--colour-line-strong);
  background: var(--colour-page);
  color: var(--colour-muted);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

/* A link that stands alone on its line, an action rather than words in a sentence (« Recevoir
   plutôt un lien par e-mail », the WhatsApp help link): a finger's target (DESIGN.md, the 44px Tap
   Rule; UI audit P2-2). A link inside a sentence is exempt and keeps its line. */
.holder .link-row { margin: var(--space-3) 0 0; }
.holder .link-row a { display: inline-flex; align-items: center; min-height: var(--target-finger); font-weight: 600; overflow-wrap: anywhere; }
/* A link row's action that must POST (the sign-in code step's « Changer de numéro », ata-platform
   0.7.0) is a classless button drawn as the row's link: same colour, underline and finger target. */
.holder .link-row button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  min-height: var(--target-finger);
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  color: var(--colour-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.holder .link-row button:hover { color: var(--colour-primary-strong); }

/* Form rows (include holder/_field_state.html and holder/_form_field.html). */
.holder .field { margin: 0 0 1.15rem; }
.holder .field label, .holder .field-label { display: block; margin: 0 0 var(--space-2); font-size: var(--size-label); font-weight: 600; }
.holder .field input[type="text"], .holder .field input[type="email"],
.holder .field input[type="tel"], .holder .field input[type="url"],
.holder .field input[type="password"], .holder .field input[type="number"],
.holder .field input[type="date"], .holder .field select, .holder .field textarea {
  width: 100%;
  min-height: var(--field-height);
  padding: .8rem .95rem;
  border: 1px solid var(--colour-control-border);
  border-radius: var(--radius-sm);
  background: var(--colour-surface);
  color: var(--colour-ink);
  font: inherit;
  transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
/* The states below leave out the radios, boxes and file input, which draw no field border, and an
   invalid field, which keeps its alert border under the pointer and on focus (the rules after). */
.holder .field input:not([type="radio"]):not([type="checkbox"]):not([type="file"]):not([aria-invalid="true"]):hover,
.holder .field select:not([aria-invalid="true"]):hover,
.holder .field textarea:not([aria-invalid="true"]):hover { border-color: var(--colour-ink-secondary); }
/* Focus: the Action Green border doubled by an inner line, the Logo Green halo around it, and the
   ring (section 3) a keyboard user also sees. */
.holder .field input:not([type="radio"]):not([type="checkbox"]):not([type="file"]):not([aria-invalid="true"]):focus,
.holder .field select:not([aria-invalid="true"]):focus,
.holder .field textarea:not([aria-invalid="true"]):focus {
  border-color: var(--colour-primary);
  box-shadow: inset 0 0 0 1px var(--colour-primary), var(--halo);
}
/* An invalid field (Django sets aria-invalid) is drawn in the alert colour as well as named by its
   error under it (UI audit P3-12), at rest, under the pointer and on focus, where the Danger halo
   joins it (DESIGN.md « Inputs / Fields »). Its radios and boxes draw no field border. */
.holder .field input[aria-invalid="true"]:not([type="radio"]):not([type="checkbox"]):not([type="file"]),
.holder .field select[aria-invalid="true"],
.holder .field textarea[aria-invalid="true"] { border-color: var(--colour-alert); box-shadow: inset 0 0 0 1px var(--colour-alert); }
.holder .field input[aria-invalid="true"]:not([type="radio"]):not([type="checkbox"]):not([type="file"]):focus,
.holder .field select[aria-invalid="true"]:focus,
.holder .field textarea[aria-invalid="true"]:focus { box-shadow: inset 0 0 0 1px var(--colour-alert), var(--halo-alert); }
/* A select loses the platform's arrow for the design's chevron (DESIGN.md « Inputs / Fields »), in
   Secondary Ink, drawn as an inline image the holder CSP allows (img-src data:). */
.holder .field select {
  appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2344504A' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right .85rem center;
  background-size: 20px;
  background-repeat: no-repeat;
}
/* Radios and boxes (UI audit P2-4): 20px, in Action Green (the body's accent-color), each beside its
   words on a finger's row; a choice label reads in regular weight under its group's bold legend. */
.holder input[type="checkbox"], .holder input[type="radio"] { flex: none; width: 1.25rem; height: 1.25rem; margin: 0; }
.holder .field label:has(> input[type="radio"]), .holder .field label:has(> input[type="checkbox"]) {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: var(--target-finger);
  margin: 0;
  font-size: var(--size-body);
  font-weight: 400;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.holder fieldset.field { min-width: 0; margin: 0 0 1.15rem; padding: 0; border: 0; }
.holder fieldset.field > legend { margin: 0 0 var(--space-2); padding: 0; font-size: var(--size-label); font-weight: 600; }
/* The file input: its button drawn as an outlined pill (DESIGN.md), the chosen file's name beside. */
.holder .field input[type="file"] { width: 100%; min-height: var(--target-finger); color: var(--colour-muted); font: inherit; font-size: var(--text-sm); }
.holder .field input[type="file"]::file-selector-button {
  min-height: var(--target-finger);
  margin-right: var(--space-3);
  padding: 0 1.1rem;
  border: 1.5px solid var(--colour-line-strong);
  border-radius: var(--radius-pill);
  background: var(--colour-surface);
  color: var(--colour-ink);
  font: 700 var(--size-label)/1.2 var(--font-system);
  cursor: pointer;
}
.holder .field input[type="file"]::file-selector-button:hover { border-color: var(--colour-muted); background: var(--colour-page); }
.holder .field-value {
  margin: 0;
  padding: .8rem .95rem;
  border: 1px dashed var(--colour-line-strong);
  border-radius: var(--radius-sm);
  background: var(--colour-page);
  overflow-wrap: anywhere;
}
.holder .field-note { margin: var(--space-2) 0 0; color: var(--colour-muted); font-size: var(--text-sm); line-height: var(--leading-small); }
/* A note that holds its own paragraph (the reference line, public/_error_reference.html). */
.holder .field-note > p { margin: 0; }
/* A page-level note (under the statistics tiles) before a panel. */
.holder .holder-main > .field-note { margin: var(--space-2) 0 var(--space-4); }
.holder .field-errors { margin: var(--space-2) 0 0; padding: 0; list-style: none; color: var(--colour-alert); font-size: var(--text-sm); font-weight: 600; }
.holder .field-errors li { display: flex; align-items: flex-start; }
.holder .field-errors li::before { margin-top: .1em; }

/* An order's status as a pill (checkout/commande.html; UI audit P2-11): a long French status may
   wrap inside it on a phone. */
.holder .order-status { margin: 0 0 var(--space-3); }
.holder .order-status .pill { padding: var(--space-1) var(--space-3); font-size: var(--text-sm); white-space: normal; }
/* The order's facts, term beside value: muted terms, values that may break anywhere (a long
   landmark); one column on the narrowest phones. */
.holder .order-facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: var(--space-2) var(--space-4);
  margin: var(--space-4) 0;
  padding: var(--space-4) 0;
  border-top: 1px solid var(--colour-line);
  border-bottom: 1px solid var(--colour-line);
}
.holder .order-facts dt { color: var(--colour-muted); }
.holder .order-facts dd { margin: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
@media (max-width: 22.5rem) {
  .holder .order-facts { grid-template-columns: 1fr; gap: 0; }
  .holder .order-facts dd + dt { margin-top: var(--space-2); }
}
/* The success page's QR (checkout/payee.html; UI audit P3-9): centred with its caption, without the
   browser's 40px figure indent. Its SVG keeps its own size: it has no viewBox to scale by. */
.holder .qr { display: grid; justify-items: center; gap: var(--space-2); margin: var(--space-5) 0; }
.holder .qr svg { display: block; }
.holder .qr figcaption { color: var(--colour-muted); font-size: var(--text-sm); text-align: center; }

/* 5. Layout steps. */
@media (max-width: 26.25rem) {
  .holder .holder-brand img { width: 104px; }
  .holder .button { padding-left: var(--space-4); padding-right: var(--space-4); font-size: var(--text-md); }
  .holder .button--danger { padding-left: calc(var(--space-4) - .5px); padding-right: calc(var(--space-4) - .5px); }
  .holder .button--on-primary { font-size: var(--text-sm); }
}
@media (min-width: 48rem) {
  .holder .holder-main { padding-top: var(--space-6); }
}
