/* OCR24 site: one style sheet (the order page, served as /static/site.css).
   Idea: the page speaks the logo's language, a Word table. Choices are cells with thin navy rules; the main page's
   order is one panel of four numbered steps (radio cards, a rounded yellow ORDER with bold navy text); the header
   and the footer are the site's frame, one step darker than the middle. Light and dark come from light-dark():
   the OS setting decides, data-theme="light|dark" on <html> overrides it. A browser without light-dark()
   gets the same tokens from the block "Tokens without light-dark()" below. */

@font-face {
  font-family: "DM Sans";
  src: url("/static/brand/dmsans-latin.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light dark;

  /* grounds */
  --ground: light-dark(#FFFFFF, #0F1530);
  --surface: light-dark(#F3F4F8, #161D3F);
  --surface-2: light-dark(#E4E6EE, #232B55);
  --row-hover: light-dark(#F7F8FB, #131A3A);
  /* the site-wide frame (header and footer): one clear step darker than the middle, the same step in light and in
     dark (OKLab lightness 0.105 / 0.103); the darkest light frame on which --ink, --ink-2 and --muted keep 4.5:1;
     the theme control's border on it is --muted (.theme) */
  --frame: light-dark(#D9DCE6, #02030D);
  /* the chosen choice's tint (the main page's radio cards) */
  --pick: light-dark(#EEF1FA, #1C2450);
  /* the video frame's screen */
  --screen: light-dark(#131A3A, #232B55);
  /* text */
  --ink: light-dark(#131A3A, #F4F5FA);
  --ink-2: light-dark(#3F4664, #C9CDDE);
  --muted: light-dark(#575E7A, #A4AAC4);
  /* lines */
  --rule: light-dark(#D9DCE6, #2C3560);
  --control: light-dark(#7D839C, #7880A6);
  /* strong cells (selected choice, main button) */
  --strong: light-dark(#131A3A, #F4F5FA);
  --on-strong: light-dark(#FFFFFF, #131A3A);
  /* the highlight: Word's yellow, as in the logo; only behind bold navy text */
  --hi: light-dark(#FFFF00, #FFFF00);
  --on-hi: light-dark(#131A3A, #131A3A);
  --hi-soft: light-dark(#FFFFB8, #2F3766);
  /* signals */
  --link: light-dark(#0B4FB3, #9DBDFF);
  --error: light-dark(#B3261E, #FF9C94);
  --error-soft: light-dark(#FCEDEC, #3A1D33);
  --ok: light-dark(#1D7A3E, #74D296);
  --focus: light-dark(#131A3A, #FFFF00);

  /* type scale (px): 13 14 16 18 21 hero */
  --fs-xs: 0.8125rem;
  --fs-s: 0.875rem;
  --fs-m: 1rem;
  --fs-l: 1.125rem;
  --fs-xl: 1.3125rem;
  --fs-hero: clamp(2rem, 0.9rem + 3.3vh, 3rem);

  --line: 1px;
  /* the main page's rounding (its middle only): the panel, its cards, its controls */
  --r-panel: 18px;
  --r-card: 12px;
  --r-ctl: 10px;
  --gap: clamp(16px, 2.2vh, 28px);
  --wrap: 1280px;
  --pad: clamp(16px, 3vw, 40px);
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

/* ---------- Tokens without light-dark() (browsers before 2024): the same colours, written twice ---------- */
@supports not (color: light-dark(#000000, #FFFFFF)) {
  :root {
    --ground: #FFFFFF; --surface: #F3F4F8; --surface-2: #E4E6EE; --row-hover: #F7F8FB;
    --frame: #D9DCE6; --pick: #EEF1FA; --screen: #131A3A;
    --ink: #131A3A; --ink-2: #3F4664; --muted: #575E7A; --rule: #D9DCE6; --control: #7D839C;
    --strong: #131A3A; --on-strong: #FFFFFF; --hi: #FFFF00; --on-hi: #131A3A; --hi-soft: #FFFFB8;
    --link: #0B4FB3; --error: #B3261E; --error-soft: #FCEDEC; --ok: #1D7A3E; --focus: #131A3A;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --ground: #0F1530; --surface: #161D3F; --surface-2: #232B55; --row-hover: #131A3A;
      --frame: #02030D; --pick: #1C2450; --screen: #232B55;
      --ink: #F4F5FA; --ink-2: #C9CDDE; --muted: #A4AAC4; --rule: #2C3560; --control: #7880A6;
      --strong: #F4F5FA; --on-strong: #131A3A; --hi: #FFFF00; --on-hi: #131A3A; --hi-soft: #2F3766;
      --link: #9DBDFF; --error: #FF9C94; --error-soft: #3A1D33; --ok: #74D296; --focus: #FFFF00;
    }
  }
  :root[data-theme="dark"] {
    --ground: #0F1530; --surface: #161D3F; --surface-2: #232B55; --row-hover: #131A3A;
    --frame: #02030D; --pick: #1C2450; --screen: #232B55;
    --ink: #F4F5FA; --ink-2: #C9CDDE; --muted: #A4AAC4; --rule: #2C3560; --control: #7880A6;
    --strong: #F4F5FA; --on-strong: #131A3A; --hi: #FFFF00; --on-hi: #131A3A; --hi-soft: #2F3766;
    --link: #9DBDFF; --error: #FF9C94; --error-soft: #3A1D33; --ok: #74D296; --focus: #FFFF00;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--ground);
  color: var(--ink);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-optical-sizing: auto;
  font-size: var(--fs-m);
  line-height: 1.45;
}
h1, h2, h3, p, ul, ol, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
a { color: var(--link); text-underline-offset: 0.18em; }
button, input, select { font: inherit; color: inherit; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: absolute; left: var(--pad); top: -100px;
  background: var(--strong); color: var(--on-strong);
  padding: 8px 14px; z-index: 10; text-decoration: none;
}
.skip:focus { top: 8px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---------- Buttons and fields ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px;
  padding: 6px 16px;
  border: var(--line) solid transparent;
  border-radius: 0;
  background: none;
  font-size: var(--fs-s);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
}
.btn--line { border-color: var(--strong); }
.btn--line:hover { background: var(--surface); }
.btn--quiet { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.btn--quiet:hover { text-decoration-thickness: 2px; }
.btn--strong { background: var(--strong); color: var(--on-strong); border-color: var(--strong); }
.btn--strong:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn--small { min-height: 32px; padding: 4px 12px; font-size: var(--fs-xs); }
.btn--wide { width: 100%; min-height: 48px; font-size: var(--fs-m); }
.btn:disabled, .btn--strong:disabled {
  background: var(--surface-2); border-color: var(--surface-2); color: var(--muted); cursor: not-allowed;
}

.select, .num, .text {
  min-height: 32px;
  border: var(--line) solid var(--control);
  border-radius: 0;
  background: var(--ground);
  padding: 3px 8px;
  font-size: var(--fs-s);
}
.select--small { min-height: 28px; font-size: var(--fs-xs); padding: 2px 6px; }
.num { width: 4.2em; padding-inline: 6px; }
/* Rounded controls on the main page's middle only (main.page--order): the header's buttons, the dialogs and every
   other page stay square */
.page--order .btn { border-radius: var(--r-ctl); }
.page--order .select, .page--order .text { border-radius: 8px; }
.page--order .seg { border-radius: 8px; overflow: hidden; }

/* The cell switch: a row of table cells, the chosen one filled. Used for every choice. */
.seg {
  display: inline-flex;
  max-width: 100%;
  border: var(--line) solid var(--control);
  background: var(--ground);
}
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.seg label {
  flex: 1 1 auto;
  display: flex; align-items: center; justify-content: center;
  min-height: 28px;
  padding: 3px 10px;
  border-left: var(--line) solid var(--control);
  font-size: var(--fs-s);
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
}
.seg input:first-child + label { border-left: 0; }
/* each cell reserves the width of its bold (chosen) text, so cells do not move when chosen */
.seg label[data-text] { flex-direction: column; }
.seg label[data-text]::after {
  content: attr(data-text);
  content: attr(data-text) / "";   /* empty alternative text: screen readers do not read it twice */
  height: 0; overflow: hidden; visibility: hidden;
  font-weight: 600;
  user-select: none; pointer-events: none;
}
.seg label:hover { background: var(--surface); }
.seg input:checked + label { background: var(--strong); color: var(--on-strong); font-weight: 600; }
.seg input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: 2px; position: relative; z-index: 1; }
.seg input:disabled + label {
  background: var(--surface); color: var(--muted); cursor: not-allowed;
  text-decoration: line-through; text-decoration-thickness: 1px;
}
.seg--wide { display: flex; width: 100%; }
/* a short choice ("Keep all") keeps its line when a long one beside it must take two: no cell narrower than 5em */
.seg--wide label { flex: 1 1 auto; padding-inline: 6px; min-width: min(5em, 100%); }

/* the ✓ (DM Sans has no check sign: drawn) */
.tick {
  display: inline-block;
  width: 0.38em; height: 0.72em;
  margin: 0 0.35em 0.12em 0.15em;
  border: solid currentColor;
  border-width: 0 0.15em 0.15em 0;
  transform: rotate(45deg);
  vertical-align: middle;
}
.tick--ok { color: var(--ok); }

/* ---------- Header ---------- */
/* the frame (every page): the header and the footer on --frame */
.top { border-bottom: var(--line) solid var(--rule); background: var(--frame); }
.top__in {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: clamp(60px, 9vh, 76px);
  padding-block: 10px;
}
.brand { display: block; flex: none; margin-right: auto; }
.logo { width: 157px; height: 40px; }
.logo--dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo--light { display: none; }
  :root:not([data-theme="light"]) .logo--dark { display: block; }
}
:root[data-theme="dark"] .logo--light { display: none; }
:root[data-theme="dark"] .logo--dark { display: block; }
.top__nav { display: flex; align-items: center; gap: 12px; }
/* The link of the page the visitor is on (site_pages.client_nav, row 342: aria-current="page"): a filled cell in
   --strong, the same pair as the Dashboard's open view name, so it reads "you are here", not a button to press */
.top__nav .btn[aria-current="page"],
.top__nav .btn[aria-current="page"]:hover {
  background: var(--strong); color: var(--on-strong); border-color: var(--strong);
  text-decoration: none; cursor: default;
}

/* The theme control (site_pages.THEME_CONTROL) at the header's right end: one square cell in the look of .seg, its
   pictogram in the text colour. The button holds three pictograms; only the one data-theme-icon on <html> names
   shows (theme.js sets it before the page draws). It shows only where theme.js runs (it sets data-theme-control on
   <html>), so a browser without scripts never sees a control that does nothing. Its border is --muted, not --control:
   it stands on the frame (the header), where --control falls under 3:1 in light. */
.theme { display: none; flex: none; position: relative; border: var(--line) solid var(--muted); background: var(--ground); }
:root[data-theme-control] .theme { display: inline-flex; }
.theme__cell {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; margin: 0; padding: 0;
  border: 0; border-radius: 0;
  background: none; color: var(--ink);
  cursor: pointer;
}
.theme__icon { display: none; width: 16px; height: 16px; }
:root[data-theme-icon="light"] .theme__icon--light,
:root[data-theme-icon="dark"] .theme__icon--dark,
:root[data-theme-icon="system"] .theme__icon--system { display: block; }
/* the hover fill only where the device can hover: a touch screen would keep it after a tap */
@media (hover: hover) {
  .theme__cell:hover { background: var(--surface); }
}
.theme__cell:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; position: relative; z-index: 1; }
/* the live region that says the new look after a press: read by screen readers, never seen */
.theme__said {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
@media (forced-colors: active) {
  .theme { border-color: ButtonText; }
  .theme__cell { color: ButtonText; }
}

/* ---------- Hero ---------- */
.page { padding-block: clamp(20px, 5vh, 52px) clamp(16px, 3vh, 32px); display: flex; flex-direction: column; gap: clamp(18px, 3.4vh, 36px); }
.hero {
  font-size: var(--fs-hero);
  line-height: 1.06;
  letter-spacing: -0.022em;
  font-weight: 700;
  max-width: 22ch;
  text-wrap: balance;
}
.hero span { display: block; }
.hero__l2 { font-weight: 400; color: var(--ink-2); }
/* the main page alone takes a wider stage (header, page and footer stay aligned through --wrap) */
body:has(#order) { --wrap: 1440px; }
/* the middle holds together: hero, panel and benefits as one group right under the header, the same small top space
   before and with files; the height the frame leaves falls below the group, so nothing is pushed down */
.page:has(#order) { justify-content: flex-start; padding-top: clamp(16px, 3vh, 36px); gap: clamp(18px, 4vh, 48px); }

/* ---------- The steps' heads: a small navy number and the step's words ---------- */
.ostep__no {
  display: inline-grid; place-items: center; flex: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--strong); color: var(--on-strong);
  font-size: var(--fs-xs); font-weight: 700; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.ostep__head {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 14px;
  font-size: var(--fs-m); font-weight: 700; letter-spacing: -0.005em; line-height: 1.25;
  color: var(--ink);
}
/* a legend as a step head: floated so it lays out as a block inside its fieldset */
legend.ostep__head { float: left; width: 100%; padding: 0; }
legend.ostep__head + * { clear: left; }

/* ---------- The order area: one panel, four steps in a row (1 drop, 2 settings, 3 deadline, 4 ORDER) ---------- */
.order {
  display: grid;
  grid-template-columns: minmax(300px, 1.15fr) minmax(210px, 0.56fr) minmax(0, 1.8fr);
  grid-template-areas: "drop mode checkout";
  column-gap: 0;
  row-gap: 0;
  align-items: stretch;
  border: var(--line) solid var(--rule);
  border-radius: var(--r-panel);
  background: var(--ground);
}
.drop { grid-area: drop; }
.files { grid-area: files; min-width: 0; }
.checkout { grid-area: checkout; }
.mode { grid-area: mode; }
.order > .drop, .order > .mode { padding: 22px 26px 24px; }
.order > .mode, .order > .checkout { border-left: var(--line) solid var(--rule); }

/* 1: the drop area: a grey page with a dashed edge, its own height */
.drop { display: flex; flex-direction: column; }
body:not(.has-files) .drop { align-self: stretch; }
.drop__zone {
  position: relative;
  flex: 1 1 auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  min-height: 306px;
  padding: 18px;
  border: 1.5px dashed var(--control);
  border-radius: 14px;
  background: var(--surface);
  text-align: center;
}
.drop__zone.is-over { background-color: var(--hi-soft); border-color: var(--ink); border-width: 2px; border-style: solid; }
.drop__title { font-size: var(--fs-m); font-weight: 700; letter-spacing: -0.005em; }
.drop__icon { width: 40px; height: 40px; color: var(--ink-2); }
.drop__pick { min-width: 132px; background: var(--ground); }
.drop__pick:hover { background: var(--pick); }
.drop__types { font-size: var(--fs-s); color: var(--muted); }
.drop__more, .drop__add { display: none; }

/* ---------- 3 and 4 share the checkout block: the deadline cards left, the ORDER column right ---------- */
.checkout {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(190px, 1fr);
  grid-template-rows: repeat(6, auto) 1fr;
  gap: 0;
  align-self: stretch;
}
.checkout__buy { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
/* 4: ORDER, a medium rounded button that reads ORDER, always (row 342: the amount stands beside it, at TOTAL): Word's
   yellow with bold navy text and a permanent 2 px border in our dark blue (--on-hi: #131A3A in both themes) once it can
   be pressed, so it holds its edge on the grey band; grey before (the border then takes the fill's colour, so the
   greyed look stays as it was). Hover: the dark blue fill with the yellow text (15.8 : 1); in the dark theme the border
   turns yellow too (a dark blue fill on the dark panel alone would vanish: 1.04 : 1). */
.orderbtn {
  display: flex; align-items: center; justify-content: center; gap: 0;
  width: 100%;
  min-height: 48px;
  padding: 0 22px;
  border: 2px solid var(--on-hi);
  border-radius: var(--r-ctl);
  background: var(--hi); color: var(--on-hi);
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}
.orderbtn__go {
  display: flex; align-items: center; justify-content: center;
  flex: none;
  padding: 0;
  background: none; color: inherit;
  font-size: var(--fs-m); font-weight: 700; letter-spacing: 0.08em;
}
.orderbtn:not(:disabled):hover { background: var(--on-hi); color: var(--hi); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .orderbtn:not(:disabled):hover { border-color: var(--hi); }
}
:root[data-theme="dark"] .orderbtn:not(:disabled):hover { border-color: var(--hi); }
.orderbtn:focus-visible { outline-offset: 3px; }
.orderbtn:disabled { cursor: not-allowed; border-color: transparent; background: var(--surface-2); color: var(--muted); box-shadow: none; }
.orderbtn:disabled .orderbtn__go { background: none; color: var(--muted); }
.checkout__hint { font-size: var(--fs-xs); color: var(--muted); }
/* the hint right under ORDER, the currency last */
.checkout__buy .checkout__hint { order: 2; font-size: var(--fs-xs); line-height: 1.4; }
.checkout__buy .currency { order: 3; }
/* the free-text lines under ORDER wrap inside the column: only the button widens it */
.checkout__hint, #buyer-hint { contain: inline-size; }
body:not(.has-files) .checkout > :not(.checkout__buy) { contain: inline-size; }
.currency { display: flex; align-items: center; gap: 8px; font-size: var(--fs-xs); color: var(--ink-2); }

.total { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-end; gap: 2px 12px; }
.total__label { font-size: var(--fs-s); font-weight: 700; letter-spacing: 0.06em; }
.total__sum { font-size: var(--fs-xl); font-weight: 700; font-variant-numeric: tabular-nums; }
/* row 342 (D9): what the balance pays, under the sum ("You pay 52 pages from your balance", "You pay £19.80 + 30
   pages"): the words the ORDER button alone carried before */
.total__pay { flex-basis: 100%; text-align: right; font-size: var(--fs-s); font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }

.package {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 14px;
  border: var(--line) solid var(--rule);
  border-left: 4px solid var(--strong);
  background: var(--surface);
  font-size: var(--fs-s);
}
.package p { flex: 1; }
/* the checkout's grid: step 3 (the deadline cards) in the left column, step 4 (ORDER and its lines) in the right */
.checkout > * { grid-column: 2; padding-inline: 26px; }
.checkout > .when {
  grid-column: 1; grid-row: 1 / -1;
  padding: 22px 26px 24px;
  border-right: var(--line) solid var(--rule);
}
.checkout > .ostep__head--order { padding-top: 22px; }

/* ---------- 3: the two deadlines before a file, as stacked radio cards (row 335A) ----------
   Each card: a round dot, the deadline and its price per page, under them when it holds. The chosen card has a navy
   frame, a filled dot and a light tint (--pick); a card that cannot be chosen is dashed and grey, its deadline and
   price struck through. With files the choices go: each file's urgency is chosen in its row. */
.when { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.has-files .when { display: none; }
.when input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.when__row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  grid-template-areas: "dot pick price" ". cond cond";
  column-gap: 12px; row-gap: 3px;
  margin: 1px;
  padding: 12px 16px 12px 14px;
  border: var(--line) solid var(--control);
  border-radius: var(--r-card);
  background: var(--ground);
  cursor: pointer;
}
.when__head { display: contents; align-items: stretch; min-height: 50px; }
.when__pick {
  grid-area: pick;
  display: contents; align-items: center; gap: 12px; flex: 1 1 auto; min-width: 0;
  padding: 8px 14px;
  font-size: var(--fs-l); font-weight: 700; letter-spacing: -0.01em; line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.when__pick > span:last-child { grid-area: pick; align-self: center; font-size: var(--fs-l); font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; font-variant-numeric: tabular-nums; }
.when__dot {
  grid-area: dot; align-self: center;
  flex: none; display: grid; place-items: center;
  width: 20px; height: 20px;
  border: 1.5px solid var(--control); border-radius: 50%;
  color: var(--strong); background: var(--ground);
}
.when__price {
  grid-area: price; align-self: center;
  display: flex; align-items: center; flex: none;
  padding: 0;
  border: 0;
  font-size: var(--fs-m); font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; text-align: right;
  font-variant-numeric: tabular-nums;
}
.when__cond {
  grid-area: cond;
  display: block;
  padding: 0;
  border: 0;
  font-size: var(--fs-xs); line-height: 1.4; color: var(--muted);
}
.when__max { display: block; }
.when__row:hover { background: var(--pick); }
.when__row:hover .when__pick { background: none; }
.when input:checked + .when__row { margin: 0; padding: 12px 17px 12px 15px; border: 2px solid var(--strong); background: var(--pick); }
.when input:checked + .when__row .when__pick { background: none; color: var(--ink); }
.when input:checked + .when__row .when__dot { border: 6px solid var(--strong); }
.when input:checked + .when__row .when__price { border: 0; background: none; color: var(--ink); }
.when input:checked + .when__row .when__cond { border: 0; color: var(--ink-2); }
.when input:focus-visible + .when__row { outline: 2px solid var(--focus); outline-offset: 3px; }
.when input:disabled + .when__row { cursor: not-allowed; background: var(--surface); color: var(--muted); border-style: dashed; }
.when input:disabled + .when__row .when__dot { background: var(--surface-2); border-color: var(--control); }
.when input:disabled + .when__row .when__pick > span:last-child,
.when input:disabled + .when__row .when__price { text-decoration: line-through; text-decoration-thickness: 1px; }
.when input:disabled + .when__row:hover { background: var(--surface); }
.when input:disabled + .when__row:hover .when__pick { background: none; }
/* the paused note under the cards (.paused draws it; the selector outweighs .paused's padding) */
.paused.when__paused { margin-top: 0; border-radius: 0 8px 8px 0; padding: 6px 10px; }

/* the brand's highlight in running text (the first benefit line's place): bold navy on the yellow (the rule of --hi) */
.hi { padding: 0 0.1em; background: var(--hi); color: var(--on-hi); font-weight: 700; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* ---------- 2: Settings mode (before a drop): Optimal | Manual as two radio rows ---------- */
.mode { display: flex; flex-direction: column; align-items: stretch; flex-wrap: wrap; gap: 12px; }
.mode__set { display: block; align-items: center; gap: 12px; }
.mode__legend { float: left; margin-right: 12px; font-weight: 600; }
.mode .mode__legend { margin: 0 0 14px; font-weight: 700; }
.mode .seg { display: flex; flex-direction: column; gap: 8px; border: 0; border-radius: 0; overflow: visible; background: none; }
.mode .seg label,
.mode__set .seg label {
  flex: none;
  flex-direction: row; justify-content: flex-start; gap: 12px;
  min-width: 0; min-height: 44px;
  padding: 8px 14px;
  border: var(--line) solid var(--control);
  border-radius: var(--r-card);
  background: var(--ground);
  font-size: var(--fs-m); font-weight: 600; text-align: left;
}
.mode .seg input:first-child + label { border-left: var(--line) solid var(--control); }
.mode .seg label[data-text]::after { display: none; }
.mode .seg label::before {
  content: ""; flex: none;
  width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid var(--control);
  background: var(--ground);
}
.mode .seg label:hover { background: var(--pick); }
.mode .seg input:checked + label {
  margin: -1px; border: 2px solid var(--strong);
  background: var(--pick); color: var(--ink); font-weight: 700;
}
.mode .seg input:checked + label::before { border: 5.5px solid var(--strong); }
.mode__hint { font-size: var(--fs-xs); line-height: 1.45; color: var(--muted); }

/* ---------- The file list (after a drop) ---------- */
/* 1: the narrow drop column beside the file table; 4: the order band across the panel's foot */
.has-files .order {
  grid-template-columns: 156px minmax(0, 1fr);
  column-gap: 0;
  grid-template-areas:
    "drop files"
    "checkout checkout";
  align-items: stretch;
  row-gap: 0;
}
.has-files .order > .files { padding: 22px 26px 18px; border-left: var(--line) solid var(--rule); }
.has-files .order > .drop { padding: 22px 16px 18px; }
.has-files .ostep__head--drop { margin-bottom: 12px; }
.has-files .mode { display: none; }
.has-files .page { padding-top: clamp(16px, 3vh, 36px); gap: clamp(14px, 2.6vh, 28px); }
.has-files .hero { font-size: clamp(1.75rem, 0.55rem + 2.9vh, 2.5rem); }
.has-files .drop { align-self: stretch; }
.has-files .drop__icon { width: 30px; height: 30px; }
.has-files .drop__zone { height: 100%; min-height: 0; padding: 20px 10px; gap: 8px; }
.has-files .drop__title, .has-files .drop__pick { display: none; }
.has-files .drop__more { display: block; font-size: var(--fs-s); font-weight: 700; line-height: 1.3; }
.has-files .drop__add { display: inline-flex; }
.has-files .drop__types { font-size: var(--fs-xs); line-height: 1.35; }

.has-files .checkout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: none;
  grid-template-areas: "head buy" "notes buy" "pay pay" "open open" "package package" "bhint bhint";
  align-items: start;
  gap: 4px 32px;
  padding: 18px 26px 20px;
  border-left: 0;
  border-top: var(--line) solid var(--rule);
  border-radius: 0 0 var(--r-panel) var(--r-panel);
  background: var(--surface);
}
.has-files .checkout > * { grid-column: auto; padding-inline: 0; }
.has-files .checkout > .ostep__head--order { grid-area: head; padding-top: 0; margin: 0; }
.has-files .checkout__notes { grid-area: notes; }
/* the hint takes the band's full width (its own width counts 0 under contain), its text ends under ORDER */
.has-files #buyer-hint { grid-area: bhint; justify-self: stretch; text-align: right; }
.has-files .checkout__buy {
  grid-area: buy;
  display: grid;
  grid-template-columns: auto auto minmax(240px, max-content);
  grid-template-areas: "cur total btn";
  align-self: center;
  align-items: center;
  gap: 6px 24px;
}
.has-files .total { grid-area: total; }
.has-files .orderbtn { grid-area: btn; min-height: 50px; padding: 0 24px; }
.has-files .currency { grid-area: cur; justify-content: flex-end; }
.has-files .checkout__hint { display: none; }
.has-files .package { grid-area: package; }
.checkout__notes { font-size: var(--fs-xs); color: var(--muted); line-height: 1.5; }
/* row 342 (D8): "Invoice to: <organisation>, VAT <tax number> · Change" for a client whose account has a type: its own
   row of the band, right above ORDER, its words ending under ORDER's right edge (its own width counts 0, as the hint's:
   a long organisation wraps inside the ORDER column). "Change" is a quiet text button. */
.invoiceto { font-size: var(--fs-s); line-height: 1.4; color: var(--ink-2); }
.invoiceto__text { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.invoiceto__sep { color: var(--muted); }
.invoiceto__change {
  min-height: 24px; padding: 0; border: 0; background: none;
  font: inherit; font-weight: 600; color: var(--ink);
  text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px;
  cursor: pointer;
}
.invoiceto__change:hover { text-decoration-thickness: 2px; }
.has-files .checkout:has(> .invoiceto:not([hidden])) {
  grid-template-areas: "head inv" "notes buy" "pay pay" "open open" "package package" "bhint bhint";
}
.has-files .invoiceto { grid-area: inv; justify-self: stretch; align-self: end; text-align: right; contain: inline-size; }

.ftable {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-s);
  font-variant-numeric: tabular-nums;
}
.ftable th {
  padding: 0 10px 6px;
  border-bottom: 2px solid var(--strong);
  text-align: left;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--ink-2);
  white-space: nowrap;
  vertical-align: middle;
}
/* a heading on two lines (the paused note) keeps the others on its first line */
.ftable th.c-urg { vertical-align: top; }
/* the table's step numbers, in the Settings and Urgency heads */
.ftable th .ostep__no { width: 20px; height: 20px; margin-right: 8px; font-size: 0.6875rem; vertical-align: middle; }
.ftable td {
  padding: 7px 10px;
  border-bottom: var(--line) solid var(--rule);
  vertical-align: middle;
}
.ftable tbody tr:hover { background: var(--row-hover); }
.ftable .c-pages, .ftable .c-price { text-align: right; white-space: nowrap; }
.ftable .c-name { width: 24%; }
/* row 342 (D10): the row stays still when Standard / Urgent is switched: each Price cell holds, unseen, the widest
   price one document can show in the shown currency (data-reserve: order.js, from pricing.widest_price; the digits of
   equal width), so the column's smallest and widest widths never follow the price shown, in any currency (the urgent
   price is twice the standard one; a width alone would not do: the table, short of room, shrinks a column to its
   text); each urgency label stays on one line (order.js fitRows draws a shorter form where the full one does not fit,
   and lets them wrap only where even the shortest does not: .is-wrap). The phone keeps its stacked labels (its own
   rules below). */
.ftable .c-price::after {
  content: attr(data-reserve);
  content: attr(data-reserve) / "";   /* empty alternative text: screen readers do not read it */
  display: block; height: 0; overflow: hidden; visibility: hidden;
}
.ftable .c-urg .seg label { white-space: nowrap; }
.ftable.is-wrap .c-urg .seg label { white-space: normal; }
/* the name keeps a readable width */
.ftable td.c-name { font-weight: 600; overflow-wrap: anywhere; min-width: 8em; }
/* a file's name on every page: a break chance after "_" and "-" (<wbr>), its extension (".pdf") on one line;
   overflow-wrap: anywhere breaks only the stem, as the last resort (site_pages._name_html, order.js and paid.js
   nameNodes) */
.name-ext { white-space: nowrap; }
.ftable .c-rm { width: 40px; padding-inline: 0; text-align: right; }
.ftable .c-set .seg label { white-space: nowrap; }
.rm {
  width: 32px; height: 32px; min-height: 0; padding: 0;
  border: var(--line) solid transparent;
  font-size: 1.25rem; font-weight: 400; line-height: 1;
}
.rm:hover { border-color: var(--control); }
.ftable tr.is-refused td { background: var(--error-soft); }
/* a refusal of two sentences (one per line): the second line starts under the first one's words, not under the mark
   (the mark: 1em wide, 8px after it) */
.refusal { color: var(--error); font-weight: 600; display: inline-block; padding-left: calc(1em + 8px); text-indent: calc(-1em - 8px); }
.refusal::before { content: "!"; display: inline-grid; place-items: center; width: 1.25em; height: 1.25em; margin-right: 8px; border: 1.5px solid currentColor; font-size: 0.8em; font-weight: 700; text-indent: 0; }
.pending { color: var(--muted); }
/* the paused note sits in the Urgency heading, beside the choice it concerns: the word floats left and the note
   takes the rest of the cell (a block of its own beside the float), so it wraps inside the cell at every width */
.ftable th .c-urg__word { float: left; margin-right: 10px; display: inline-flex; align-items: center; }
.paused {
  display: flow-root;
  width: fit-content;
  text-wrap: balance;
  line-height: 1.3;
  padding: 1px 8px;
  border-left: 3px solid var(--strong);
  background: var(--surface);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ink);
  white-space: normal;
}
/* an image set's note under its name; a row whose upload stopped */
.c-name__note { display: block; font-weight: 400; font-size: var(--fs-xs); color: var(--muted); }
.drop.is-off .drop__zone { opacity: 0.6; }

/* ---------- Below: the benefits, the video frame, data protection and FAQ ---------- */
.facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 272px minmax(0, 330px);
  grid-template-areas: "benefits video side";
  column-gap: 44px;
  row-gap: 14px;
  align-items: start;
}
.benefits {
  grid-area: benefits;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
  max-width: 72ch;
  font-size: var(--fs-m);
  line-height: 1.35;
}
.benefits li { position: relative; padding-left: 22px; }
.benefits li::before {
  content: ""; position: absolute; left: 2px; top: 0.25em;
  width: 0.36em; height: 0.7em;
  border: solid var(--ink); border-width: 0 0.14em 0.14em 0;
  transform: rotate(45deg);
}
.benefits li:first-child { font-weight: 700; }
.facts__side { grid-area: side; display: flex; flex-direction: column; gap: 10px; }
.privacy { font-size: var(--fs-s); color: var(--ink-2); }
.facts__buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.playmark {
  width: 0; height: 0;
  border-style: solid; border-width: 5px 0 5px 9px;
  border-color: transparent transparent transparent currentColor;
}
/* the explainer film's frame (row 360B): a small 16:9 frame with the film's cover, a play disc and the words; it opens
   the film's pop-up. The cover (yellow, a dark blue band at its bottom for the words) is the same in the light and the
   dark look; the screen colour shows only until it is in. */
.vframe {
  grid-area: video;
  position: relative;
  display: grid; place-items: center;
  width: 272px; aspect-ratio: 16 / 9;
  padding: 0;
  border: 0; border-radius: 14px;
  box-shadow: 0 0 0 1px var(--rule);   /* the frame's edge: its dark band would melt into the dark look's ground */
  background: var(--screen); color: #FFFFFF;
  font: inherit;
  cursor: pointer;
  overflow: hidden;
}
.vframe__cover {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
/* the white disc gets a thin dark blue ring: white alone hardly stands out on the cover's yellow */
.vframe__play {
  position: relative;
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: #FFFFFF; color: #131A3A;
  box-shadow: 0 0 0 2px #131A3A;
  padding-left: 4px;
}
.vframe__play .playmark { border-width: 8px 0 8px 13px; }
/* the words stand in the middle of the cover's dark band: its bottom 17.65% (81 of 459 pixels) */
.vframe__label {
  position: absolute; left: 14px; bottom: 0; height: 17.65%;
  display: flex; align-items: center;
  font-size: var(--fs-xs); font-weight: 600; color: #FFFFFF;
}
.vframe:hover .vframe__play { transform: scale(1.06); }
.vframe:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

/* the holding page's one line of what the service does, under its heading */
.hold__line { font-size: var(--fs-l); color: var(--ink-2); }

/* ---------- Footer ---------- */
.foot { border-top: var(--line) solid var(--rule); background: var(--frame); }
.foot__in {
  display: flex; align-items: center; justify-content: space-between; gap: 8px 32px; flex-wrap: wrap;
  padding-block: 12px;
  font-size: var(--fs-xs);
  color: var(--muted);
}
.foot__company { max-width: 80ch; }
.foot__links { display: flex; gap: 16px; flex-wrap: wrap; }
.foot__links a { color: var(--ink-2); }

/* ---------- The settings form (the settings pop-up) ---------- */
.sform { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 28px; }
.sform__col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.sgroup__title { font-size: var(--fs-s); font-weight: 700; padding-bottom: 4px; border-bottom: 2px solid var(--strong); margin-bottom: 6px; }
.sgroup__list { display: flex; flex-direction: column; gap: 8px; }
.setting { min-width: 0; }
.setting__head { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; font-size: var(--fs-s); font-weight: 600; }
.setting__note { font-size: var(--fs-xs); color: var(--muted); margin-top: 3px; }
.help-btn {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px; padding: 0;
  border: var(--line) solid var(--control);
  background: var(--ground);
  font-size: var(--fs-xs); font-weight: 700; line-height: 1;
  cursor: pointer;
}
.help-btn[aria-expanded="true"] { background: var(--strong); color: var(--on-strong); border-color: var(--strong); }
.margins { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 4px 10px; }
.margins label { display: flex; flex-direction: column; font-size: var(--fs-xs); color: var(--ink-2); gap: 2px; }

/* The hints: each setting's "?" in the settings pop-up opens one large window beside the setting's column (order.js
   placeHint sets its place) and keeps it open, shown and hidden at once, with no motion. */
.hintwin {
  position: absolute; z-index: 5;
  container-type: inline-size;
  padding: 18px 22px 20px;
  border: 2px solid var(--strong);
  background: var(--ground);
  color: var(--ink);
  box-shadow: 0 10px 28px rgb(0 0 0 / 0.22);
  overflow-wrap: anywhere;
}
.hintwin[data-place="below"] { padding: 14px 16px 16px; }
.hintwin:not(.is-pinned) { pointer-events: none; }
.hintwin__close {
  display: none;
  position: absolute; top: 6px; right: 6px;
  width: 32px; height: 32px; padding: 0;
  border: var(--line) solid var(--control); background: var(--ground); color: var(--ink);
  font-size: 1.25rem; line-height: 1; cursor: pointer;
}
.hintwin.is-pinned .hintwin__close { display: grid; place-items: center; }
.hint { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "text"; gap: 10px 32px; align-items: start; }
.hint[hidden] { display: none; }
.hint__title { grid-area: title; justify-self: start; padding: 1px 6px; background: var(--hi); color: var(--on-hi); font-size: var(--fs-l); font-weight: 700; line-height: 1.3; }
.hintwin.is-pinned .hint__title { margin-right: 36px; }
.hint__text { grid-area: text; font-size: var(--fs-s); line-height: 1.5; color: var(--ink); }
.hint__text > * + * { margin-top: 8px; }
/* the words of a hint (the hint window): each choice on its own line, its name in bold */
.hint__choices { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.hint__choices li { padding-left: 10px; border-left: 3px solid var(--rule); }
.hint__name { display: flex; align-items: baseline; gap: 8px; }
.hint__optimal { padding: 0 5px; border: var(--line) solid var(--control); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.02em; color: var(--ink-2); }
.hint__says { display: block; }

/* The hints' films (hint_anim.js): one picture of 16:10 that plays once, without sound. Its world keeps its own
   colours in both themes, like a film: the scan lies on the dark scanner glass (the logo's navy), the Word page on
   Word's pale desk, and what the setting is about is marked in the logo's yellow. The scan layer lies under the Word
   layer; the yellow bar's crossing is the Word layer's clip. The head line over the picture says "Scan"; the same clip
   turns it into "Word". Before each choice's part a card over the whole picture names the choice. After the film's
   end its last picture stays, and the button "Play again" lies over it. A hint whose film is not there (no answer
   from the film file) shows its words alone. */
.hint--film { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); grid-template-areas: "film title" "film text"; grid-template-rows: auto 1fr; gap: 10px 24px; }
.hint--film:has(> .film:empty) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "text"; }
.hint--film .film { grid-area: film; align-self: start; }
.film:empty { display: none; }
@container (max-width: 620px) {
  .hint--film { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "film" "text"; grid-template-rows: auto; }
  .hint--film .film { max-width: 440px; }   /* the whole hint stays in a laptop's screen and in the pop-up */
}
.ha { position: relative; }
.ha__stage { overflow: hidden; border: var(--line) solid var(--strong); background: #131A3A; outline: 0; }
.ha__head, .ha__headword {
  display: flex; align-items: center;
  padding: 3px 9px; min-height: 26px;
  font-size: var(--fs-xs); font-weight: 700; line-height: 1.3;
}
.ha__head { position: relative; background: #131A3A; color: #FFFFFF; }
.ha__headword { position: absolute; inset: 0; background: #FFFFFF; color: #131A3A; border-bottom: 1px solid #131A3A; clip-path: inset(0 100% 0 0); }
.ha__frame { position: relative; }
.ha__pic { position: relative; overflow: hidden; isolation: isolate; aspect-ratio: 16 / 10; container-type: inline-size; }
.ha__layer { position: absolute; inset: 0; overflow: hidden; }
.ha__layer > svg { display: block; width: 100%; height: 100%; transform-origin: 0 0; }
.ha__word { background: #E9EBF1; clip-path: inset(0 100% 0 0); }
.ha__bar { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.ha__bar::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 13%;
  background: linear-gradient(to right, rgb(255 255 0 / 0.34), rgb(255 255 0 / 0));
}
.ha__bar::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -3px; width: 6px;
  background: #FFFF00; box-shadow: 0 0 14px 2px rgb(255 255 0 / 0.6);
}
.ha__cover { position: absolute; inset: 0; background: #131A3A; pointer-events: none; }
/* a choice's card: "Option 1" and, marked like a line in Word, the choice's name as it stands on its selector */
.ha__card {
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.2cqw;
  padding: 6cqw;
  background: #131A3A; color: #FFFFFF; text-align: center;
}
.ha__cardno { font-size: clamp(0.8125rem, 4.2cqw, 1.25rem); font-weight: 500; line-height: 1.2; }
.ha__cardname { padding: 0.08em 0.4em; background: #FFFF00; color: #131A3A; font-size: clamp(1.125rem, 7.4cqw, 2.125rem); font-weight: 700; line-height: 1.25; }
/* after the film's end: "Play again", over the last picture */
.ha__end {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 10px;
  background: rgb(19 26 58 / 0.38);
  animation: ha-end 0.3s ease-out both;
}
@keyframes ha-end { from { opacity: 0; } }
.ha__again {
  display: inline-flex; align-items: center; gap: 8px;
  max-width: 100%; min-height: 40px; padding: 7px 16px 7px 12px;
  border: 2px solid #131A3A; background: #FFFF00; color: #131A3A;
  font-size: var(--fs-s); font-weight: 700; line-height: 1.25; text-align: left;
  box-shadow: 0 4px 14px rgb(0 0 0 / 0.3);
  cursor: pointer;
}
.ha__again svg { flex: none; width: 20px; height: 20px; }
.ha__again:hover { background: #131A3A; color: #FFFFFF; }
.ha__again:hover svg * { stroke: #FFFFFF; }
.ha__again:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 2px; }
/* a hint opened by the mouse takes no mouse (.hintwin), but its picture does once the film has ended (the button)
   and while the mouse is on it */
.hintwin:not(.is-pinned) .ha.is-ended .ha__stage, .hintwin:not(.is-pinned) .ha.is-held .ha__stage { pointer-events: auto; }
/* the choice whose film shows: its name marked like the setting's own name */
.hint__choices li.is-now .hint__name b { background: var(--hi); color: var(--on-hi); box-shadow: -4px 0 0 var(--hi), 4px 0 0 var(--hi); }

/* ---------- Dialogs ---------- */
.dlg {
  width: min(640px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 2px solid var(--strong);
  border-radius: 0;
  background: var(--ground);
  color: var(--ink);
  overflow: hidden;
}
.dlg::backdrop { background: rgb(15 21 48 / 0.55); }
.dlg__frame { display: flex; flex-direction: column; max-height: calc(100dvh - 36px); }
.dlg__head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 20px;
  border-bottom: var(--line) solid var(--rule);
}
.dlg__head h2 { font-size: var(--fs-xl); letter-spacing: -0.01em; }
.dlg__body { overflow: auto; padding: 16px 20px 20px; }

/* settings pop-up */
.dlg--settings { width: min(1280px, calc(100vw - 32px)); }
.set-head {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 20px;
  border-bottom: var(--line) solid var(--rule);
  background: var(--surface);
}
.saved { min-width: 80px; font-size: var(--fs-s); font-weight: 700; color: var(--ok); }
.presets { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: var(--fs-s); }
.set-for {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 18px;
  padding: 12px 20px 0;
}
/* the pop-up for the files to come (MANUAL before a file): its title is for screen readers only */
.set-for:has(> .set-for__title.vh) { padding-top: 0; }
.set-for__title { font-size: var(--fs-l); font-weight: 400; }
.set-for__file { font-weight: 700; overflow-wrap: anywhere; }
.set-for__applied { flex-basis: 100%; font-size: var(--fs-s); color: var(--ink-2); overflow-wrap: anywhere; }
.set-error { flex-basis: 100%; font-size: var(--fs-s); font-weight: 600; color: var(--error); }
.preset-name { display: flex; align-items: center; gap: 8px; }
.preset-name .text { min-height: 28px; width: 12em; font-size: var(--fs-xs); }
.dlg--settings .dlg__body { padding-top: 12px; position: relative; }   /* the hint window of a "?" lies in it */

/* free test */
.dlg--test { width: min(620px, calc(100vw - 24px)); }
/* a space under the last block in every state (the steps, the confirmation, the closed notice) */
.dlg--test .dlg__frame { padding-bottom: 16px; }
/* the steps scroll inside the frame when the window is too low (the dialog itself hides overflow) */
.steps { counter-reset: none; padding: 6px 20px 0; min-height: 0; overflow-y: auto; }
.step {
  display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 14px; row-gap: 8px;
  padding: 12px 0;
  border-bottom: var(--line) solid var(--rule);
}
.step > :not(.step__no) { grid-column: 2; }
.step__no {
  grid-row: 1;
  display: grid; place-items: center;
  width: 28px; height: 28px;
  border: var(--line) solid var(--strong);
  font-size: var(--fs-s); font-weight: 700;
}
.step--done .step__no { background: var(--strong); color: var(--on-strong); }
.step__title { font-weight: 600; align-self: center; }
.step__hint { font-size: var(--fs-xs); color: var(--muted); }
.test-drop {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 60px; padding: 10px;
  border: var(--line) dashed var(--control);
  background: var(--surface);
  font-size: var(--fs-s);
}
.test-when { padding: 12px 20px 0; font-size: var(--fs-s); color: var(--ink-2); }
.test-drop.is-over { background: var(--hi-soft); border-color: var(--ink); }
.test-drop.is-off { opacity: 0.6; }
.test-file { font-size: var(--fs-s); }
.test-file__name { font-weight: 600; overflow-wrap: anywhere; }
.test-closed, .test-done { margin: 12px 20px 0; padding: 10px 12px; border-left: 4px solid var(--strong); background: var(--surface); font-size: var(--fs-s); }
.test-done ul { list-style: disc; padding-left: 1.3em; margin-top: 4px; }
.test-msg { font-size: var(--fs-s); font-weight: 600; color: var(--error); }
/* row 342 (D12): the free test's "Choose settings" above Start: its words, then the two cells of the order's choice
   (Optimal | Manual, the chosen one filled), the hint under them */
.test-mode__legend { float: left; margin: 4px 12px 0 0; font-size: var(--fs-s); font-weight: 600; }
.test-mode .seg label { min-width: 6.5em; }
.test-mode__hint { clear: left; margin-top: 6px; font-size: var(--fs-xs); color: var(--muted); }

/* the small message pop-up (ORDER's answer, a refused change) */
.dlg--msg { width: min(480px, calc(100vw - 24px)); }
.dlg--msg .dlg__body p { max-width: 60ch; }

/* the explainer film's pop-up (row 360B): the largest 16:9 film that fits about 94% of the window's width and 90% of
   its height, under the head with the title and Close (its height fixed, --film-head, so the sum is exact; 4px: the
   pop-up's two borders). So Close stays in view on every window. */
.dlg--video {
  --film-head: 52px;
  width: min(94vw, calc((90vh - var(--film-head) - 4px) * 16 / 9 + 4px));
  width: min(94vw, calc((90dvh - var(--film-head) - 4px) * 16 / 9 + 4px));
  max-width: none;   /* the browser's own limit of a pop-up (the window less 2em and 6px) would make it narrower on a phone */
  max-height: none;
}
.dlg--video .dlg__frame { max-height: none; }
.dlg--video .dlg__head { height: var(--film-head); padding-block: 0; }
/* its own class: .film is the hints' films (order.js loadFilms) */
.filmplay { display: block; width: 100%; aspect-ratio: 16 / 9; background: #131A3A; }

/* FAQ */
.dlg--faq { width: min(720px, calc(100vw - 24px)); }
.faq details { border-bottom: var(--line) solid var(--rule); }
.faq summary { padding: 10px 0; font-weight: 600; cursor: pointer; }
.faq details p { padding: 0 0 12px; color: var(--ink-2); max-width: 70ch; }

/* ---------- Payments (row 278C): the balance, the mixed line, the open payment page, the thank-you page ---------- */
/* the header's balance: "Balance: 1,100 pages · see more" */
.balance { display: flex; align-items: center; gap: 6px; font-size: var(--fs-s); white-space: nowrap; font-variant-numeric: tabular-nums; }
.balance__pages { font-weight: 700; }
.balance__more { min-height: 32px; padding-inline: 4px; }
.balance-lots { display: flex; flex-direction: column; border-top: var(--line) solid var(--rule); font-variant-numeric: tabular-nums; }
.balance-lots li { padding: 7px 0; border-bottom: var(--line) solid var(--rule); }
.balance-note { margin-top: 12px; font-size: var(--fs-s); color: var(--ink-2); }
.balance-link { margin-top: 8px; font-size: var(--fs-s); }
/* the mixed mode's line under the total */
.payline { font-size: var(--fs-s); font-weight: 600; text-align: right; color: var(--ink-2); }
/* the open payment page: Continue to payment, Change order */
.openpay {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px;
  padding: 10px 14px;
  border: var(--line) solid var(--rule);
  border-left: 4px solid var(--strong);
  background: var(--hi-soft);
  font-size: var(--fs-s);
}
.openpay p { flex: 1 1 16em; font-weight: 600; }
.has-files .payline { grid-area: pay; }
.has-files .openpay { grid-area: open; }
/* the message pop-up keeps the line breaks of its text and may carry one link */
.dlg--msg #msg-text { white-space: pre-line; overflow-wrap: anywhere; }
/* One sentence per line: the notices of the order page and the thank-you page keep the line breaks of their text
   (order.js perLine, paid.js say) */
.refusal, #test-file-state, .test-msg, .test-closed, .set-error, .ref__msg, #order-hint, .payline, #package-text,
#open-pay-text, .paid__text { white-space: pre-line; }
.msg-link { margin-top: 12px; }
/* the thank-you page */
.paid { max-width: 880px; }
.paid__title { font-size: clamp(1.75rem, 0.9rem + 2.4vh, 2.5rem); line-height: 1.1; letter-spacing: -0.02em; }
.paid__text { font-size: var(--fs-l); }
.paid__docs { display: flex; flex-direction: column; border-top: 2px solid var(--strong); font-variant-numeric: tabular-nums; }
.paid__docs li { padding: 8px 10px; border-bottom: var(--line) solid var(--rule); }
.paid__name { font-weight: 700; overflow-wrap: anywhere; }
.paid__invoices { font-size: var(--fs-m); font-weight: 600; }
.paid__more { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
/* the account page: its plain sections, forms and tables in the site's look (site_pages.account_page) */
/* min-width 0: the body's grid column never grows to a wide table's width; the table scrolls in its own box */
.acct { max-width: 880px; min-width: 0; }
.acct h1 { font-size: clamp(1.75rem, 0.9rem + 2.4vh, 2.5rem); line-height: 1.1; letter-spacing: -0.02em; }
.acct h2 { font-size: var(--fs-xl); line-height: 1.2; margin-bottom: 10px; }
.acct h3 { font-size: var(--fs-l); margin: 14px 0 6px; }
.acct section, .acct form { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.acct section > table, .acct section > ul { align-self: stretch; }
.acct ul { list-style: disc; padding-left: 1.3em; }
.acct li { padding-block: 2px; }
.acct li > button { margin-left: 8px; }
.acct dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 16px; }
.acct dt { font-weight: 600; }
.acct dd { margin: 0; overflow-wrap: anywhere; }
.acct label { display: flex; flex-direction: column; gap: 4px; font-size: var(--fs-s); font-weight: 600; }
.acct fieldset label { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; font-size: var(--fs-m); }
/* The sign-in page's tick "Keep me signed in": the box and its words on one line. */
.acct label.keep { display: inline-flex; flex-direction: row; align-items: center; gap: 8px; font-weight: 400; font-size: var(--fs-m); }
.acct form > label, .acct fieldset label { align-self: stretch; }
.acct fieldset { display: flex; flex-direction: column; gap: 6px; border: var(--line) solid var(--rule); padding: 10px 14px 12px;
  align-self: stretch; max-width: 32rem; }
.acct fieldset:has(input:not([type="checkbox"]), textarea) label { flex-direction: column; align-items: stretch; gap: 4px; font-weight: 600; font-size: var(--fs-s); }
.acct legend { font-weight: 700; padding: 0 6px; }
/* A choice in cells on the account page (the colour theme: site_pages.account_page): its name in the look of the
   form's other labels, its cells in the look of .seg (the form's label and input rules do not reach them). */
.acct fieldset.pick { border: 0; padding: 0; gap: 4px; max-width: 28rem; }
.acct fieldset.pick legend { padding: 0; margin-bottom: 4px; font-size: var(--fs-s); font-weight: 600; }
.acct .pick .seg input { width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; }
.acct fieldset.pick:has(input) .seg label {
  flex-direction: column; align-items: center; align-self: auto; gap: 0; font-size: var(--fs-s); font-weight: 400;
}
.acct fieldset.pick:has(input) .seg input:checked + label { font-weight: 600; }
.acct input:not([type="checkbox"]), .acct textarea, .acct select {
  min-height: 36px; width: min(28rem, 100%); max-width: 100%;
  border: var(--line) solid var(--control); border-radius: 0; background: var(--ground); color: var(--ink);
  padding: 5px 8px; font: inherit; font-weight: 400;
}
.acct input[type="number"] { width: 7em; }
.acct input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: var(--strong); }
.acct button {
  min-height: 38px; padding: 6px 16px; border: var(--line) solid var(--strong); border-radius: 0;
  background: none; color: var(--ink); font-size: var(--fs-s); font-weight: 600; cursor: pointer;
}
.acct button:hover { background: var(--surface); }
.acct button[type="submit"] { background: var(--strong); color: var(--on-strong); }
.acct button[type="submit"]:hover { background: var(--ink-2); border-color: var(--ink-2); }
.acct table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.acct th, .acct td { text-align: left; padding: 6px 8px; border-bottom: var(--line) solid var(--rule); vertical-align: top; }
.acct th { border-bottom: 2px solid var(--strong); font-size: var(--fs-s); }
.acct .error, .acct .field-error { color: var(--error); }
.acct .field-error { display: block; font-weight: 400; }
/* The legal pages: a long text of headings, paragraphs and lists. A heading sits closer to its own text than to the
   text before it. */
.legal { gap: 12px; }
.legal h2 { margin: 22px 0 0; }
.legal h3 { margin: 12px 0 0; }
.acct .note { color: var(--ok); }
.acct #account-message:empty { display: none; }
/* a past order (row 278D): its row's number opens the row under it (static/orders.js); the details block is the
   same on the account page and on a guest's order page /o/<code> */
.acct .orow__open {
  min-height: 0; padding: 0; border: 0; background: none; color: var(--link); font-size: inherit; font-weight: 700;
  text-decoration: underline; text-underline-offset: 0.2em;
}
.acct .orow__open:hover { background: none; text-decoration-thickness: 2px; }
.acct .orow__open::before { content: "▸ "; display: inline-block; width: 1em; text-decoration: none; }
.acct .orow__open[aria-expanded="true"]::before { content: "▾ "; }
.acct .odetail-row > td { background: var(--surface); padding: 14px 16px 16px; }
.odetail { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.odetail__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: var(--fs-l); }
.ostatus { display: inline-block; padding: 2px 8px; background: var(--strong); color: var(--on-strong); font-size: var(--fs-s); font-weight: 700; }
.acct .oref { gap: 4px; }
.oref__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.acct .oref__row input { width: min(24rem, 100%); }
.oref__note { font-size: var(--fs-s); color: var(--muted); }
.acct .odocs { font-size: var(--fs-s); }
.acct .odocs th { font-size: var(--fs-xs); }
/* break-word, not anywhere: the column is as wide as the file's name allows ("k2_2p.pdf" never splits as "k2_2p.pd f");
   a name too long for the box still wraps */
.odocs__name { font-weight: 700; overflow-wrap: break-word; }
.odocs__set { color: var(--ink-2); max-width: 18rem; }
.odocs a { color: var(--link); white-space: nowrap; }
/* an image set's photo names (a camera's or a messenger's name can be 40 letters): they wrap, the table keeps its width */
.odocs a.odocs__file { white-space: normal; overflow-wrap: anywhere; }
.ofiles { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.ofiles__why { font-size: var(--fs-s); color: var(--muted); }
/* the files' line(s) in normal weight, one under the other ("Files are kept for N days." and how to delete them) */
.ofiles__lines { display: flex; flex-direction: column; gap: 2px; }
.ofiles__confirm { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 600; }
.ofiles__confirm[hidden] { display: none; }
.acct button.ofiles__go { background: var(--error); border-color: var(--error); color: var(--ground); }
.acct button.ofiles__go:hover { background: var(--ink-2); border-color: var(--ink-2); }
.omsg { flex-basis: 100%; font-size: var(--fs-s); font-weight: 600; }
.omsg:empty { display: none; }
.omsg.error { color: var(--error); }
.omsg.note { color: var(--ok); }
.guest-note { font-size: var(--fs-s); color: var(--muted); }
/* the EU withdrawal (session 303): the order details' small link; the withdrawal page's form and receipt */
.owithdraw { font-size: var(--fs-s); }
/* the owner's short note under the link: its own line, smaller and quieter */
.owithdraw__note { display: block; margin-top: 2px; font-size: var(--fs-xs); color: var(--muted); }
/* width 100%: the page's form column (.acct form, align-items flex-start) would shrink it to its button */
.wform { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; width: 100%; max-width: 28rem; }
.wform[hidden] { display: none; }
/* the owner's short note right under "Confirm withdrawal": the same quiet type as the order's note (the form's gap,
   8px by .acct form, pulled in to 2px, so it reads as the button's own line) */
.wform__note { margin: -6px 0 0; font-size: var(--fs-xs); color: var(--muted); }
.wform label { align-self: stretch; }
.wform input[readonly] { background: var(--surface); }
.wreceipt dd { margin: 0; }
/* row 349: the order band's "Your reference" line, under "Urgent orders take at most 100 pages.": a bold, underlined
   text button (in the ink colour, as "Change" of the "Invoice to" line), the field opening to its right in the same
   line (on a phone: under it, full width), "Your reference: <it>" with a quiet "Change" once saved */
.oref-line {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 8px;
  font-size: var(--fs-s); line-height: 1.4; color: var(--ink);
}
.oref-line[hidden], .oref-line [hidden] { display: none; }
.oref-line__add, .oref-line__change {
  min-height: 28px; padding: 0; border: 0; background: none;
  font: inherit; font-weight: 700; color: var(--ink);
  text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px;
  cursor: pointer;
}
.oref-line__add:hover, .oref-line__change:hover { text-decoration-thickness: 2px; }
.oref-line__saved { min-width: 0; color: var(--ink-2); overflow-wrap: anywhere; }
.oref-line__value { font-weight: 700; color: var(--ink); }
.oref-line__change { margin-left: 6px; font-weight: 600; color: var(--ink-2); }
.oref-line__box { flex: 0 1 26rem; min-width: 0; }
.oref-line__input { width: 100%; min-height: 34px; padding: 4px 10px; font-size: var(--fs-s); color: var(--ink); }
.oref-line .ref__msg { margin: 0; }
@media (max-width: 760px) {
  .oref-line__box { flex-basis: 100%; }
}
/* the buyer's rows above ORDER ("Who orders?", a business's name and tax number) keep the look of row 278D's
   reference row */
.ref { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 14px; font-size: var(--fs-s); }
.ref[hidden] { display: none; }
.ref label { font-weight: 700; }
.ref__input { width: min(24rem, 100%); color: var(--ink); }
.ref__note { color: var(--muted); }
.ref__msg { font-weight: 600; color: var(--ok); }
.ref__msg.is-error { color: var(--error); }
.ref__msg:empty { display: none; }
/* the business's name and tax number: each label beside its own box, the tax note under the tax box */
.ref--pairs { display: grid; grid-template-columns: max-content minmax(0, 24rem); align-items: center; gap: 8px 12px; }
.ref--pairs .ref__input { width: 100%; }
.ref--pairs .ref__note { grid-column: 2; }
/* Who orders?: two radio choices side by side (the look of the main page's radio rows) */
#buyer-seg { gap: 8px; border: 0; border-radius: 0; overflow: visible; background: none; }
#buyer-seg label {
  flex-direction: row; justify-content: flex-start; gap: 10px; text-align: left;
  min-height: 36px; padding: 6px 14px 6px 12px;
  border: var(--line) solid var(--control); border-radius: var(--r-ctl);
  background: var(--ground);
}
#buyer-seg input:first-child + label { border-left: var(--line) solid var(--control); }
#buyer-seg label[data-text]::after { display: none; }
#buyer-seg label::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--control); background: var(--ground); }
#buyer-seg input:checked + label { margin: -1px; border: 2px solid var(--strong); background: var(--pick); color: var(--ink); font-weight: 700; }
#buyer-seg input:checked + label::before { border: 5px solid var(--strong); }

/* ---------- Narrow screens ---------- */
@media (max-width: 1180px) {
  /* the main page's steps in two rows: 1 2 / 3 4 */
  .order {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    grid-template-areas: "drop mode" "checkout checkout";
  }
  .order > .checkout { border-left: 0; border-top: var(--line) solid var(--rule); }
  .facts { grid-template-columns: minmax(0, 1fr) 272px; grid-template-areas: "benefits video" "benefits side"; }
}
@media (max-width: 1100px) {
  .sform { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  /* one column, a rule between the steps */
  .order, .has-files .order {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "drop" "files" "mode" "checkout";
  }
  .order > .mode { border-left: 0; border-top: var(--line) solid var(--rule); }
  .order > .drop, .order > .mode { padding: 18px 18px 20px; }
  .checkout { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .checkout > * { grid-column: 1; padding-inline: 18px; }
  .checkout > .when { grid-row: auto; padding: 18px 18px 20px; border-right: 0; border-bottom: var(--line) solid var(--rule); }
  .checkout > .ostep__head--order { padding-top: 18px; }
  .checkout > :last-child { padding-bottom: 20px; }
  .drop__zone { min-height: 150px; }
  .has-files .drop__zone { flex-direction: row; flex-wrap: wrap; min-height: 0; justify-content: space-between; text-align: left; background: var(--surface); }
  .has-files .drop__types { flex-basis: 100%; }
  .has-files .order > .files { border-left: 0; border-top: var(--line) solid var(--rule); padding: 16px 18px; }
  .has-files .order > .drop { padding: 16px 18px; }
  .has-files .ostep__head--drop { display: none; }
  .has-files .drop__icon { display: none; }
  .facts { grid-template-columns: minmax(0, 1fr); grid-template-areas: "benefits" "video" "side"; }
  .vframe { width: 100%; max-width: 420px; }
  .benefits { grid-template-columns: minmax(0, 1fr); }
  .has-files .checkout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "head" "buy" "pay" "open" "package" "bhint" "notes";
    padding: 16px 18px 18px;
  }
  .has-files .checkout__buy { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "cur total" "btn btn"; }
  .has-files #buyer-hint { text-align: left; }
  .has-files .checkout:has(> .invoiceto:not([hidden])) {
    grid-template-areas: "head" "inv" "buy" "pay" "open" "package" "bhint" "notes";
  }
  .has-files .invoiceto { text-align: left; }
  .package { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 760px) {
  /* the file table becomes one block per file */
  /* the headings go; only the paused note stays, above the files */
  .ftable, .ftable tbody, .ftable thead { display: block; }
  .ftable thead tr { display: block; padding: 0; border: 0; }
  .ftable thead th { display: none; }
  .ftable thead th.c-urg:has(.paused:not([hidden])) { display: block; padding: 0 0 6px; border: 0; white-space: normal; }
  .ftable thead .c-urg__word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ftable thead .paused { margin-left: 0; display: block; padding: 6px 10px; }
  .ftable tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas: "name name rm" "pages price price" "set set set" "urg urg urg";
    gap: 6px 12px;
    padding: 10px 0;
    border-bottom: var(--line) solid var(--rule);
  }
  .ftable tr.is-refused { grid-template-areas: "name name rm" "msg msg msg"; padding-inline: 10px; background: var(--error-soft); }
  .ftable td { display: block; padding: 0; border: 0; }
  .ftable tr.is-refused td { background: none; }
  .ftable td.c-name { grid-area: name; width: auto; align-self: center; }
  .ftable td.c-pages { grid-area: pages; text-align: left; }
  .ftable td.c-pages::after { content: " pages"; }
  .ftable td.c-pages.is-one::after { content: " page"; }
  /* a provisional count: "3 pages" first, the upload's mark after it */
  .ftable td.c-pages.is-counting { display: flex; gap: 0.3em; }
  .ftable td.c-pages.is-counting::after { order: 1; }
  .ftable td.c-pages.is-counting .pending { order: 2; }
  .ftable td.c-price { grid-area: price; text-align: right; font-weight: 700; }
  .ftable td.c-price::after { display: none; }
  .ftable td.c-set { grid-area: set; }
  .ftable td.c-urg { grid-area: urg; }
  .ftable td.c-msg { grid-area: msg; }
  .ftable td.c-rm { grid-area: rm; width: auto; }
  .ftable td.c-set .seg, .ftable td.c-urg .seg { display: flex; width: 100%; }
  .ftable td.c-urg .seg { flex-direction: column; }
  .ftable td.c-urg .seg label { border-left: 0; border-top: var(--line) solid var(--control); align-items: flex-start; text-align: left; white-space: normal; }
  .ftable td.c-urg .seg input:first-child + label { border-top: 0; }
  /* a label keeps the height of its bold (chosen) form: its words (.seg__words, order.js urgLabel) and the hidden bold
     copy share one grid cell, so a long label that wraps one line more in bold never moves the rows below on a switch */
  .ftable td.c-urg .seg label[data-text] { display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; align-items: center; justify-items: start; }
  .ftable td.c-urg .seg label[data-text] > .seg__words,
  .ftable td.c-urg .seg label[data-text]::after { grid-area: 1 / 1; }
  .ftable td.c-urg .seg label[data-text]::after { height: auto; }
  .ftable td.c-set .seg label { flex: 1 1 0; }
}
@media (max-width: 760px) {
  /* a past order's details (the account page's details row; a guest's order page): one block per document, each
     value beside its column's word (the words of site_pages.order_detail's headings, in their order). The account's
     Orders table itself: its own phone rules under .acct--home (the end of this file) */
  .acct .odocs, .acct .odocs > tbody, .acct .odocs tr, .acct .odocs td { display: block; }
  .acct .odocs { overflow-x: visible; }
  .acct .odocs > thead { display: none; }
  .acct .odocs tr { padding: 8px 0; border-bottom: var(--line) solid var(--rule); }
  .acct .odocs td { position: relative; padding: 2px 0 2px 6.5rem; border: 0; max-width: none; }
  .acct .odocs td.odocs__name { padding-left: 0; overflow-wrap: anywhere; }
  .acct .odocs td::before { position: absolute; left: 0; width: 6rem; color: var(--muted); font-weight: 600; }
  .acct .odocs td:nth-child(2)::before { content: "Pages"; }
  .acct .odocs td:nth-child(3)::before { content: "Urgency"; }
  .acct .odocs td:nth-child(4)::before { content: "Deadline"; }
  .acct .odocs td:nth-child(5)::before { content: "Settings"; }
  .acct .odocs td:nth-child(6)::before { content: "PDF"; }
  .acct .odocs td:nth-child(7)::before { content: "DOCX"; }
}
/* The order page's corner up to a tablet's width: its cells wrap onto a second row (the theme control last, at the
   right), so nothing leaves the screen; the nav's cells join the header's own rows (display: contents) */
@media (max-width: 820px) {
  .top__in:has(> .top__nav .theme) { flex-wrap: wrap; justify-content: flex-end; column-gap: 12px; row-gap: 4px; }
  .top__in:has(> .top__nav .theme) > .top__nav { display: contents; }
  .top__nav .theme { order: 4; }
}
@media (max-width: 560px) {
  .top__in { gap: 6px; }
  .top__nav { gap: 4px; min-width: 0; }
  .top__nav .btn { padding-inline: 5px; font-size: var(--fs-xs); }
  .top__nav .btn--quiet { padding-inline: 2px; }
  .top__nav .btn--quiet[aria-current="page"] { padding-inline: 5px; }   /* the filled cell keeps room round its word */
  /* row 342 (F1): a phone keeps the header's cells on ONE line with the theme control (390 and 360 px: "New order",
     "Dashboard" on a client page; "Free 1-page test", "Dashboard" or "Sign in" on the order page): the logo gives way
     first, from 141 px down to 96 px wide (its height follows), and the cells' side padding and the gaps are tight.
     Only the balance (a signed-in client's pages) takes a short second row of its own, at the right. */
  .brand { flex: 1 1 0; min-width: 96px; max-width: 141px; }
  .top__in { flex-wrap: wrap; justify-content: flex-end; row-gap: 4px; }
  .top__in:has(> .top__nav .theme) { column-gap: 4px; }
  .top__nav .theme { order: 2; }
  .balance { order: 3; flex-basis: 100%; justify-content: flex-end; font-size: var(--fs-xs); gap: 3px; }
  .balance__word { display: none; }
  .balance__more { min-height: 24px; }
  .logo { width: 100%; height: auto; }
  .mode__set { flex-wrap: wrap; }
  .mode__set .seg label { min-width: 0; }
  .sform { grid-template-columns: minmax(0, 1fr); }
  /* a phone: each label above its own box */
  .ref--pairs { grid-template-columns: minmax(0, 1fr); row-gap: 6px; }
  .ref--pairs .ref__note { grid-column: auto; }
  .presets { margin-left: 0; flex-wrap: wrap; flex-basis: 100%; }
  .set-head { flex-wrap: wrap; }
  .ostep__head { margin-bottom: 12px; }
  .foot__in { flex-direction: column; align-items: flex-start; }
  /* the account page's wide tables scroll inside their own box */
  .acct table { display: block; overflow-x: auto; }
  .acct dl { grid-template-columns: minmax(0, 1fr); }
  .acct dd { margin-bottom: 4px; }
  .dlg__head, .set-head, .set-for, .steps, .test-when { padding-inline: 14px; }
  .test-closed, .test-done { margin-inline: 14px; }
  .dlg__body { padding-inline: 14px; }
}

@media (prefers-reduced-motion: no-preference) {
  .dlg[open] { animation: dlg-in 140ms ease-out; }
  @keyframes dlg-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}

/* ========== The account page (row 336; site_pages.account_page: <main class="… acct acct--home">) ==========
   Only this page carries .acct--home: the shared .acct (880 px) and its other pages stay as they are. These rules
   stand last, so they win over the shared .acct rules above of the same weight. */

/* ---------- The frame: names column + view; this page alone 1600 px wide (the owner's A12) ---------- */
/* a short view and the long Orders view keep the page in the same place (no jump when the scroll bar comes) */
html:has(.acct--home) { scrollbar-gutter: stable; }
.acct.acct--home { max-width: var(--wrap); }
/* The header, the page and the footer all take their width from --wrap (.wrap), so they stay aligned; the header's
   markup is not changed, and every other page keeps 1280 px. */
body:has(> main.acct--home) { --wrap: 1600px; }
.acct-home {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  column-gap: 40px;
  align-items: start;
}

/* ---------- The section names: the .seg cells turned upright ---------- */
.acct-side { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 14px; }
.acct-nav ul { list-style: none; padding: 0; margin: 0; border: var(--line) solid var(--control); background: var(--ground); }
.acct-nav li { padding: 0; }
.acct-nav li + li { border-top: var(--line) solid var(--control); }
.acct-nav a {
  display: block;
  padding: 9px 14px;
  color: var(--ink);
  font-size: var(--fs-m);
  line-height: 1.3;
  text-decoration: none;
}
@media (hover: hover) {
  .acct-nav a:hover { background: var(--surface); }
}
.acct-nav a:focus-visible { outline-offset: -3px; }
/* the open name: filled navy, as a chosen .seg cell; drawn from the address (:target), so it needs no script. With
   no view in the address: the default view's name (the server's acct-nav__default; a refused save's own section) */
.acct-home:not(:has(.view:target, .view :target)) .acct-nav a.acct-nav__default,
.acct-home:has(#orders:target, #orders :target) .acct-nav a[href="#orders"],
.acct-home:has(#balance:target) .acct-nav a[href="#balance"],
.acct-home:has(#billing:target) .acct-nav a[href="#billing"],
.acct-home:has(#notifications:target) .acct-nav a[href="#notifications"],
.acct-home:has(#storage:target) .acct-nav a[href="#storage"],
.acct-home:has(#conversion:target) .acct-nav a[href="#conversion"],
.acct-home:has(#theme:target) .acct-nav a[href="#theme"],
.acct-home:has(#delete:target) .acct-nav a[href="#delete"] {
  background: var(--strong); color: var(--on-strong); font-weight: 600;
}
/* ---------- The top line (row 342): the heading "Dashboard" at the left; the client's email and Sign out under it at
   the right, level with the heading. A narrow screen: the email block wraps under the heading (still at the right);
   a long email breaks inside its own block, never past the page's edge. ---------- */
.acct.acct--home .acct-top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px;
  margin-bottom: 22px;
}
.acct.acct--home .acct-top > h1 { margin: 0; }
.acct.acct--home .acct-who {
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
  min-width: 0; max-width: 100%; margin-left: auto; text-align: right;
}
.acct.acct--home .acct-who__email { margin: 0; font-size: var(--fs-m); font-weight: 600; overflow-wrap: anywhere; }
/* Sign out: quiet, under the email */
.acct.acct--home .acct-signout button {
  min-height: 0; padding: 0; border: 0; background: none; color: var(--ink-2);
  font-size: var(--fs-s); font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em;
}
.acct.acct--home .acct-signout button:hover { background: none; color: var(--ink); text-decoration-thickness: 2px; }

/* ---------- The views: one open at a time, chosen by the address ---------- */
.views { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.acct.acct--home .view { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-width: 0;
  /* a jump to #view keeps the page at its top (the margin is taller than the view's distance from the top) */
  scroll-margin-top: 100vh; }
/* Only the hiding rules use :has. A browser without :has drops them and shows every view one under the other; a bare
   ".view:not(:target)" rule is never written, because it would hide Orders for #od-<n>. */
.acct.acct--home .views:has(.view:target, .view :target) > .view:not(:target):not(:has(:target)) { display: none; }
.acct.acct--home .views:not(:has(.view:target, .view :target)) > .view:not(.view--default) { display: none; }
.acct.acct--home .view > h2 { margin-bottom: 0; }
.acct.acct--home .view > form { align-self: stretch; gap: 10px; }
.acct.acct--home .view > form > button[type="submit"] { margin-top: 4px; }
.acct.acct--home .view__note { font-size: var(--fs-s); color: var(--muted); }
/* running text keeps a readable line */
.acct.acct--home .view > p, .acct.acct--home .view > form > p { max-width: 70ch; }
.acct.acct--home .view h3 { margin: 6px 0 0; }

/* Client Details and Billing (row 342): the two fixed facts, then ONE form: the client type, three groups under plain
   headings (who you are; where we bill you; how we bill you), labels above their fields, one Save at the end */
.acct.acct--home .facts-dl { gap: 6px 24px; padding: 12px 16px; border: var(--line) solid var(--rule); align-self: stretch; max-width: 28rem; }
.acct.acct--home .facts-dl dt { font-weight: 400; color: var(--muted); }
.acct.acct--home .facts-dl dd { font-weight: 600; }
.acct.acct--home .view > form:has(.cdb__type) { gap: 22px; max-width: 28rem; }
.acct.acct--home .cdb__type { max-width: none; }
.acct.acct--home .cdb__type .seg { align-self: flex-start; }
.acct.acct--home .cdb__type .seg label { min-width: 8.5em; padding-inline: 16px; }
.acct.acct--home fieldset.cdb__group { border: 0; padding: 0; gap: 12px; max-width: none; }
.acct.acct--home fieldset.cdb__group > legend {
  padding: 0 0 6px; margin-bottom: 2px; width: 100%;
  font-size: var(--fs-m); font-weight: 700; border-bottom: var(--line) solid var(--rule);
}
.acct.acct--home fieldset.cdb__group label .view__note { font-weight: 400; }
/* each group's label above its field, also in a group with a drop-down alone ("How we bill you": the currency; the
   rule .acct fieldset:has(input...) above stacks only a group that holds a text box) */
.acct.acct--home fieldset.cdb__group label { flex-direction: column; align-items: stretch; gap: 4px; font-weight: 600; font-size: var(--fs-s); }
/* the question before a saved type changes: one line with its two buttons, as DELETE NOW's question */
.acct.acct--home .cdb__ask {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 6px;
  padding: 10px 12px; background: var(--surface); border-left: 3px solid var(--strong); font-weight: 600; max-width: 100%;
}
.acct.acct--home .cdb__ask > span { flex: 1 1 100%; }  /* the words on their row, the two buttons together under them */
.acct.acct--home .cdb__ask button { min-height: 32px; }
.acct.acct--home .cdb__ask button.cdb__yes { background: var(--strong); color: var(--on-strong); }
.acct.acct--home .cdb__ask button.cdb__yes:hover { background: var(--ink-2); border-color: var(--ink-2); }

/* Balance (only while a money switch is on or pages are held): its two small tables at their own width */
.acct.acct--home #balance-lots { max-width: 32rem; }
.acct.acct--home #balance-ledger { max-width: 44rem; }

/* Conversion settings: the presets as rows of a small table */
.acct.acct--home .presets-list { list-style: none; padding: 0; border-top: var(--line) solid var(--rule); align-self: stretch; max-width: 32rem; }
.acct.acct--home .presets-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 6px 0; border-bottom: var(--line) solid var(--rule); }
.acct.acct--home .presets-list li > button { margin-left: 0; }

/* the small outlined button of a table line (DELETE, DELETE NOW) */
.acct.acct--home button.mini {
  min-height: 28px; padding: 3px 10px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.02em; white-space: nowrap;
}

/* ---------- The Orders table ---------- */
.acct.acct--home .otable { align-self: stretch; font-size: var(--fs-s); }
.acct.acct--home .otable th { font-size: var(--fs-s); vertical-align: bottom; line-height: 1.25; }
.acct.acct--home .otable td { border-bottom: 0; padding: 4px 8px; line-height: 1.45; }
.acct.acct--home .otable .c-pages { text-align: right; }
/* one order = one row group; a rule of the control's colour between orders, none between its PDF lines */
.acct.acct--home .otable tbody.ord { border-top: var(--line) solid var(--control); }
.acct.acct--home .otable thead + tbody.ord { border-top: 0; }
.acct.acct--home .otable tbody.ord > tr:first-child > td { padding-top: 9px; }
.acct.acct--home .otable tbody.ord > tr:last-child > td { padding-bottom: 9px; }
.acct.acct--home .otable tbody.ord > tr > td[rowspan] { padding-bottom: 9px; }
/* the order's own cells never break */
.acct.acct--home .otable .orow__open, .acct.acct--home .ord__inv, .acct.acct--home .ord__num { white-space: nowrap; }
.acct.acct--home .ord__num { font-weight: 700; }
.acct.acct--home .ord__date { display: block; font-size: var(--fs-xs); color: var(--muted); padding-left: 1em; white-space: nowrap; }
.acct.acct--home .ord__num + .ord__date { padding-left: 0; }
.acct.acct--home .ord__mark { display: block; font-size: var(--fs-xs); color: var(--ink-2); padding-left: 1em; white-space: nowrap; }
.acct.acct--home .ord__num ~ .ord__mark { padding-left: 0; }
/* a PDF's and a Word file's name (a break chance after "_" and "-", written by the server; "anywhere" the last resort) */
.acct.acct--home .otable .c-name, .acct.acct--home .otable .c-docx { overflow-wrap: anywhere; }
.acct.acct--home .otable .is-urgent .c-name { color: var(--error); font-weight: 600; }
/* each name is its file's download: in the type of its line (an urgent PDF's in red), underlined */
.acct.acct--home .otable a.ord__file { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
.acct.acct--home .otable a.ord__file:hover { text-decoration-color: currentColor; text-decoration-thickness: 2px; }
.acct.acct--home .ord__photos { display: flex; flex-wrap: wrap; gap: 0 10px; font-size: var(--fs-xs); }
.acct.acct--home .c-name__why, .acct.acct--home .c-pages__wait { display: block; font-size: var(--fs-xs); color: var(--muted); font-weight: 400; }
/* "Download all as zip": the order block's first line, above its PDFs and above its Word files */
.acct.acct--home .ord__ziplink { font-weight: 600; text-underline-offset: 0.2em; }
.acct.acct--home .ord__ziplink:hover { text-decoration-thickness: 2px; }
.acct.acct--home .c-files__days { display: block; white-space: nowrap; }
.acct.acct--home .c-files__days--gone { color: var(--muted); }
.acct.acct--home .c-files .mini { margin-top: 4px; }
.acct.acct--home .c-files__why { display: block; font-size: var(--fs-xs); color: var(--muted); margin-top: 4px; }
/* See more (N more): a quiet link-like button on its own line in the PDFs column */
.acct.acct--home .ord__more button {
  min-height: 0; padding: 0; border: 0; background: none; color: var(--link);
  font-size: var(--fs-s); font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em;
}
.acct.acct--home .ord__more button:hover { background: none; text-decoration-thickness: 2px; }

/* row 349: the column "Your reference": the reference as text (a long one wraps inside the column) and a quiet "Add"
   or "Edit"; a press turns the cell into its field, Save and Cancel, and for an order with an invoice the note that
   the invoice keeps its reference */
.acct.acct--home .otable .c-ref { overflow-wrap: anywhere; }
.acct.acct--home .cref { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; min-width: 0; }
.acct.acct--home .cref__text { min-width: 0; }
.acct.acct--home .cref__text:empty, .acct.acct--home .cref [hidden] { display: none; }
.acct.acct--home .cref button.cref__edit, .acct.acct--home .cref button.cref__cancel {
  min-height: 0; padding: 0; border: 0; background: none; color: var(--link);
  font-size: var(--fs-xs); font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em;
}
.acct.acct--home .cref button.cref__edit:hover, .acct.acct--home .cref button.cref__cancel:hover {
  background: none; text-decoration-thickness: 2px;
}
.acct.acct--home .cref__form { display: flex; flex-direction: column; align-items: stretch; gap: 6px; width: 100%; }
.acct.acct--home .cref__form input { width: 100%; min-height: 32px; padding: 3px 8px; font-size: var(--fs-s); }
.acct.acct--home .cref__buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.acct.acct--home .cref__note { font-size: var(--fs-xs); line-height: 1.35; color: var(--muted); }
.acct.acct--home .cref .omsg { font-size: var(--fs-xs); }

/* The DRAFT line: the page's one yellow cell (as the logo's 24) */
.acct.acct--home tbody.ord--draft { cursor: pointer; }
.acct.acct--home tbody.ord--draft:hover > tr > td { background: var(--row-hover); }
.acct.acct--home .ord__tag {
  display: inline-block; padding: 1px 8px; font-weight: 700; letter-spacing: 0.04em; text-decoration: none; white-space: nowrap;
}
.acct.acct--home .ord__tag--draft { background: var(--hi); color: var(--on-hi); }
.acct.acct--home .ord__tag--test { border: var(--line) solid var(--strong); color: var(--ink); }
.acct.acct--home .ord__open { display: block; margin-top: 4px; font-size: var(--fs-xs); white-space: nowrap; }

/* the line under an order: DELETE NOW's (or DELETE's) question, the held draft's note */
.acct.acct--home .otable tbody.ord-after > tr > td { padding: 0 8px 10px; border: 0; }
.acct.acct--home .ord-after .confirm {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  padding: 10px 12px; background: var(--error-soft); border-left: 3px solid var(--error); font-weight: 600;
}
.acct.acct--home .ord-after .confirm > span:first-child { margin-right: auto; }
.acct.acct--home .ord-after .held { padding: 8px 12px; background: var(--surface); border-left: 3px solid var(--strong); }
.acct.acct--home button.ofiles__go { min-height: 32px; }
.acct.acct--home .ord-after button:not(.ofiles__go) { min-height: 32px; }

/* the details row (A1: date, amount and payment in its head line) */
.acct.acct--home .otable .odetail-row > td { padding: 14px 16px 16px; border-bottom: 0; }
.acct.acct--home .otable .odocs { font-size: var(--fs-s); }
.acct.acct--home .otable .odocs td { padding: 6px 8px; border-bottom: var(--line) solid var(--rule); }

/* wider than 1100 px: the order's own columns keep exactly these widths, and the PDFs and their Word files share the
   rest in equal halves (a DOCX's name is its PDF's; a long name wraps in its own half, never widens its column) */
@media (min-width: 1101px) {
  .acct.acct--home .otable { table-layout: fixed; }
  .acct.acct--home .otable th.c-num { width: 128px; }
  .acct.acct--home .otable th.c-ref { width: 14%; }
  .acct.acct--home .otable th.c-pages { width: 56px; }
  .acct.acct--home .otable th.c-urg { width: 80px; }
  .acct.acct--home .otable th.c-status { width: 130px; }
  .acct.acct--home .otable th.c-inv { width: 130px; }
  .acct.acct--home .otable th.c-files { width: 160px; }
}
/* row 349: up to 1535 px the column "Your reference" takes 10 % and Urgency, Status and "Files will be deleted in"
   give up a little width ("Deleted on dd.mm.yyyy" may take two lines), so the PDFs and Word files keep about 150 px
   each from 1101 px on (the names above the view up to 1399 px, beside it from 1400 px) */
@media (min-width: 1101px) and (max-width: 1535px) {
  .acct.acct--home .otable th.c-ref { width: 10%; }
  .acct.acct--home .otable th.c-urg { width: 76px; }
  .acct.acct--home .otable th.c-status { width: 100px; }
  .acct.acct--home .otable th.c-files { width: 124px; }
  .acct.acct--home .c-files__days { white-space: normal; }
}

/* ---------- up to 1399 px: the names in a wrapping row above the view, so the eight columns get the full width
   (measured beside the names: PDFs and Word files 33 and 32 px at 1101 px, 136 and 97 px at 1280 px) ---------- */
@media (max-width: 1399px) {
  /* the details row's documents table may wrap its names and links, so it never widens the page */
  .acct.acct--home .otable .odocs__name { overflow-wrap: anywhere; }
  .acct.acct--home .otable .odocs a { white-space: normal; }
  /* eight columns in the window's width: "Deleted on dd.mm.yyyy" may take two lines */
  .acct.acct--home .c-files__days { white-space: normal; }
  .acct-home { grid-template-columns: minmax(0, 1fr); row-gap: 20px; }
  .acct-side { position: static; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
  .acct-nav ul { display: flex; flex-wrap: wrap; border: 0; background: none; gap: 0; }
  .acct-nav li, .acct-nav li + li { border: var(--line) solid var(--control); margin: 0 -1px -1px 0; }
  .acct-nav a { padding: 5px 12px; font-size: var(--fs-s); }
}

/* ---------- A phone (up to 760 px): the table becomes one block per order ---------- */
@media (max-width: 760px) {
  .acct.acct--home .otable, .acct.acct--home .otable > tbody { display: block; overflow-x: visible; }
  .acct.acct--home .otable > thead { display: none; }
  /* the block's grid: every cell is placed by its class, never by the row it sits in */
  .acct.acct--home .otable > tbody.ord {
    display: grid; grid-template-columns: auto auto minmax(0, 1fr); column-gap: 14px; row-gap: 1px;
    padding: 12px 0;
  }
  .acct.acct--home .otable > tbody.ord > tr { display: contents; }
  .acct.acct--home .otable > tbody.ord > tr[hidden] { display: none; }
  .acct.acct--home .otable > tbody.ord > tr > td { display: block; padding: 0; }
  .acct.acct--home .otable > tbody.ord > tr:first-child > td,
  .acct.acct--home .otable > tbody.ord > tr:last-child > td,
  .acct.acct--home .otable > tbody.ord > tr > td[rowspan] { padding: 0; }
  /* first line: the number and its date (a DRAFT line: its one status at the right) */
  .acct.acct--home .otable .c-num { grid-row: 1; grid-column: 1 / -1; margin-bottom: 4px; }
  .acct.acct--home .otable tbody.ord--draft .c-num { grid-column: 1 / 3; }
  .acct.acct--home .otable .c-status--draft { grid-row: 1; grid-column: 3; text-align: right; font-weight: 600; }
  /* row 349: the reference under the number, after its column's word (an empty cell: no line) */
  .acct.acct--home .otable > tbody.ord > tr > td.c-ref { grid-row: 2; grid-column: 1 / -1; display: flex;
    flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin-bottom: 4px; }
  .acct.acct--home .otable > tbody.ord > tr > td.c-ref:empty { display: none; }
  .acct.acct--home .otable .c-ref::before { content: "Your reference"; color: var(--muted); font-size: var(--fs-xs); }
  .acct.acct--home .otable .c-ref > .cref { flex: 1 1 12rem; }
  /* the zip links on a line of their own, each with its column's word */
  .acct.acct--home .otable > tbody.ord > tr > td.c-zipgap,
  .acct.acct--home .otable > tbody.ord > tr > td.c-zip:empty,
  .acct.acct--home .otable > tbody.ord > tr > td.c-docx:empty { display: none; }
  .acct.acct--home .otable .c-zip { font-size: var(--fs-xs); }
  .acct.acct--home .otable .c-name.c-zip::before { content: "PDFs: "; color: var(--muted); }
  .acct.acct--home .otable .c-docx.c-zip::before { content: "Word files: "; color: var(--muted); }
  /* then per PDF: its name on a line of its own, its Word file under it, and pages | urgency | status */
  .acct.acct--home .otable .c-name { grid-column: 1 / -1; margin-top: 6px; }
  .acct.acct--home .otable .c-docx { grid-column: 1 / -1; }
  .acct.acct--home .otable .c-pages { grid-column: 1; text-align: left; }
  .acct.acct--home .otable .c-urg { grid-column: 2; }
  .acct.acct--home .otable .c-status:not(.c-status--draft) { grid-column: 3; text-align: right; }
  .acct.acct--home .otable .c-pages, .acct.acct--home .otable .c-urg, .acct.acct--home .otable .c-status:not(.c-status--draft) {
    font-size: var(--fs-xs); color: var(--ink-2);
  }
  .acct.acct--home .otable .c-pages::after { content: " pages"; }
  .acct.acct--home .otable .c-pages.is-one::after { content: " page"; }
  .acct.acct--home .otable .c-pages:empty::after { content: none; }
  .acct.acct--home .otable .c-pages { white-space: nowrap; }
  .acct.acct--home .otable .ord__more > td { grid-column: 1 / -1; margin-top: 6px; }
  /* then the invoice and the files' days with DELETE NOW, after every PDF line */
  .acct.acct--home .otable > tbody.ord > tr > td.c-inv,
  .acct.acct--home .otable > tbody.ord > tr > td.c-files { order: 1; grid-column: 1 / -1; margin-top: 8px; }
  .acct.acct--home .otable > tbody.ord > tr > td.c-inv:empty,
  .acct.acct--home .otable > tbody.ord > tr > td.c-files:empty { display: none; }
  .acct.acct--home .otable > tbody.ord > tr > td.c-inv:not(:empty) + td.c-files { margin-top: 2px; }
  .acct.acct--home .otable > tbody.ord > tr > td.c-files { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
  .acct.acct--home .otable .c-files::before { content: "Files:"; color: var(--muted); }
  .acct.acct--home .otable .c-files.is-due::before { content: "Files will be deleted in"; }
  .acct.acct--home .otable .c-files.is-empty::before { content: none; }
  .acct.acct--home .otable .c-files .mini { margin-top: 0; }
  .acct.acct--home .otable .c-files__why { margin-top: 0; }
  .acct.acct--home .otable .c-inv::before { content: "Invoice "; color: var(--muted); }
  .acct.acct--home .otable > tbody.ord-after > tr > td { display: block; padding: 0 0 12px; }
  .acct.acct--home .otable > tbody.ord-after > tr[hidden] { display: none; }
  .acct.acct--home .otable > tbody.ord-after > tr { display: block; }
  .acct.acct--home .ord__date, .acct.acct--home .ord__mark,
  .acct.acct--home .ord__num + .ord__date, .acct.acct--home .ord__num ~ .ord__mark { display: inline; padding-left: 8px; }
  .acct.acct--home .ord__open { display: inline; margin: 0 0 0 10px; }
  /* the details row's documents: each value beside its column's word, as on a guest's page (the shared rules above) */
  .acct.acct--home .otable .odocs td { padding: 2px 0 2px 6.5rem; border: 0; }
  .acct.acct--home .otable .odocs td.odocs__name { padding-left: 0; }
  .acct.acct--home .otable .odetail-row > td { padding: 14px 12px 16px; }
}
