/* Generated by site/build.py from site/_src/flows/css/. Do not edit by hand. */
/* ---------- Flow player: controls, step timer, the cursor and its actions ---------- */

/* Controls: icon buttons (play/pause, again). Their names are in aria-label and title. */
.flow-ctrl {
  display: inline-grid; place-items: center;
  width: 2.75rem; height: 2.75rem;
  border: 1px solid var(--color-forest); border-radius: var(--radius-sm);
  background: transparent; color: var(--color-forest);
  cursor: pointer;
  transition: background-color var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}
.flow-ctrl:first-child { background: var(--color-forest); color: var(--color-on-forest); }
.flow-ctrl:hover { background: var(--color-paper-2); }
.flow-ctrl:first-child:hover { background: var(--color-forest-hover); }
.flow-ctrl:active { transform: translateY(1px); }
.flow-ctrl:focus-visible { outline: 2px solid var(--color-ink); outline-offset: 2px; }
.flow-ctrl .ico { width: 1.25rem; height: 1.25rem; }

/* Under the screen, like a video player: the controls left, the line about this step beside them */
.flow-foot { display: flex; align-items: flex-start; gap: var(--space-sm); margin-top: var(--space-sm); }
.flow-foot .flow-ctrls { margin-left: 0; }
.flow-foot .flow-caption { flex: 1; min-width: 0; margin-top: 0; padding-top: 0.7rem; }
/* The bar on top only holds "Stap x van 4" on phones; on wide screens the step labels say it */
@media (min-width: 60rem) { .flow-bar { display: none; } }

/* The step timer: a hairline that fills while a step plays */
.flow-timer { height: 2px; margin-top: var(--space-2xs); border-radius: 1px; background: var(--color-rule); overflow: hidden; visibility: hidden; }
.flow-timer.is-on { visibility: visible; }
.flow-timer i { display: block; height: 100%; background: var(--color-forest); transform-origin: left center; animation: sc-grow-x var(--d, 3s) linear both; }
.flow-timer.is-paused i { animation-play-state: paused; }

/* Every screen fills the reserved height (measured in player.js), so the window keeps one size
   from step to step and the grey stage never shows an empty band under it */
.flow-stage > .sc > .ui { min-height: var(--ui-min, 0px); }

/* The cursor: travels between targets, rings when it clicks */
.sc { position: relative; }
.act-cursor {
  position: absolute; left: 0; top: 0; z-index: 3;
  pointer-events: none; color: var(--color-ink); opacity: 0;
  transition: transform var(--dur-cursor) var(--ease-in-out), opacity var(--dur-short) var(--ease-out);
}
.act-cursor.is-on { opacity: 1; }
.act-cursor .ico { display: block; width: 1.6rem; height: 1.6rem; margin: -0.25rem 0 0 -0.3rem; }
.act-cursor .ico path { stroke: var(--color-surface); stroke-width: 14px; stroke-linejoin: round; paint-order: stroke; }
.act-cursor::before {
  content: ""; position: absolute; left: -0.8rem; top: -0.8rem;
  width: 1.6rem; height: 1.6rem; border-radius: 50%;
  border: 2px solid var(--color-forest); opacity: 0;
}
.act-cursor.is-click::before { animation: act-ring var(--dur-long) var(--ease-out); }
.act-cursor.is-click .ico { animation: act-dip var(--dur-short) var(--ease-out); }
@keyframes act-ring { from { opacity: 0.9; transform: scale(0.3); } to { opacity: 0; transform: scale(1.5); } }
@keyframes act-dip { 50% { transform: scale(0.86); } }

/* What the cursor does to things */
.is-press { transform: translateY(1px); filter: brightness(0.94); }
.is-drag { position: relative; z-index: 2; transition: transform var(--dur-cursor) var(--ease-in-out); box-shadow: var(--shadow-whisper); }
.is-gone { visibility: hidden; }
.is-typing::after { content: ""; display: inline-block; width: 1.5px; height: 1em; margin-left: 1px; vertical-align: -0.15em; background: currentColor; }

/* ---------- UI kit additions (head.js) ---------- */

/* The phone screen, drawn like an iPhone: dark bezel, status bar with the island, home indicator */
.ui--phone {
  grid-template-rows: auto auto 1fr auto;
  border: 6px solid var(--color-ink);
  border-radius: 2.25rem;
  box-shadow: var(--shadow-whisper);
}
.ui-status {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: var(--space-2xs) var(--space-md) 0;
  min-height: 1.9rem;
  font-size: var(--text-ui-s); font-weight: 700; color: var(--color-ink);
  font-variant-numeric: tabular-nums;
}
.ui-island { width: 4.25rem; height: 1.15rem; border-radius: 999px; background: var(--color-ink); }
.ui-sys { display: flex; justify-content: flex-end; gap: 0.2rem; }
.ico--xs { width: 0.8rem; height: 0.8rem; }
.ui-appfoot { display: grid; gap: var(--space-xs); justify-items: center; }
.ui-appfoot .ui-btn { justify-self: stretch; }
.ui-homebar { width: 5rem; height: 0.25rem; border-radius: 999px; background: var(--color-ink); }

/* Text that grows (WCAG 1.4.12 text spacing, or a larger font) wraps inside the screen instead of
   being cut off by its frame: the screen's one column never gets wider than the frame, the website
   header lets its button drop to a second line, and a sidebar item may wrap. */
.ui--site, .ui--phone { grid-template-columns: minmax(0, 1fr); }
.site-head { flex-wrap: wrap; row-gap: var(--space-2xs); }
.ui-nav-item > span { min-width: 0; overflow-wrap: break-word; }

/* The website header in a narrow stage: a little tighter, so logo and button fit at 320 px */
@container (max-width: 22rem) {
  .site-head { gap: var(--space-xs); }
  .site-head .ui-btn { padding-inline: var(--space-xs); }
}

/* A web app on a phone: the logo bar keeps its own height, the reserved room goes to the content */
@container (max-width: 33.99rem) { .ui--app { grid-template-rows: auto 1fr; } }
/* "Een mens beslist" under a step stays on one line, like the step label above it */
.flow-human { white-space: nowrap; }

/* ---------- Eén beeld uit losse gegevens (products/bi.js) ---------- */

/* Connector switches: off is the base, the cursor turns them on */
.ui-connector .ui-switch { background: var(--color-rule); transition: background-color var(--dur-short) var(--ease-out); }
.ui-connector .ui-switch::after { left: 0.15rem; transition: transform var(--dur-short) var(--ease-out); }
.ui-connector .ui-switch.is-on { background: var(--color-forest); }
.ui-connector .ui-switch.is-on::after { transform: translateX(1rem); }
/* What a connected source brings in, counted up */
.bi-rows { grid-column: 2 / -1; font-size: var(--text-ui-s); font-weight: 700; font-variant-numeric: tabular-nums; }
@container (min-width: 34rem) { .bi-rows { grid-column: 1 / -1; } }

/* Code mapping: the counter, and the proposal that the cursor drags into place */
.bi-maphead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2xs) var(--space-xs); }
.bi-suggest { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs); min-height: 1.75rem; font-size: var(--text-ui-s); font-weight: 650; color: var(--color-forest); }
.bi-got { animation: sc-pop var(--dur-enter) var(--ease-out) both; }

/* The chart: a clicked week stays dark, the others step back, its value shows in the bar */
.bars .bar i { position: relative; transition: background-color var(--dur-short) var(--ease-out); }
.bars.has-sel .bar i { background: var(--color-sage-2); }
.bars.has-sel .bar.is-sel i { background: var(--color-forest); }
.bars.has-sel .bar.is-sel span { color: var(--color-ink); font-weight: 700; }
.bi-val { font-style: normal; position: absolute; left: 0; right: 0; top: var(--space-2xs); text-align: center; font-size: var(--text-ui-s); font-weight: 700; color: var(--color-on-forest); font-variant-numeric: tabular-nums; opacity: 0; transition: opacity var(--dur-short) var(--ease-out); }
.bars .bar.is-sel .bi-val { opacity: 1; }

/* The comment: typed over an invisible copy of itself, so the box never changes height */
.bi-comment { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; transition: border-color var(--dur-short) var(--ease-out); }
.bi-comment.is-edit { border-color: var(--color-forest); }
.bi-say { display: grid; min-width: 0; padding-top: 0.05rem; }
.bi-say > span { grid-area: 1 / 1; }
.bi-ghost { visibility: hidden; }
.bi-hold { color: var(--color-muted); }
.bi-share { align-self: center; gap: var(--space-2xs); min-width: 6rem; }
/* Phone: the button goes under the comment, so the text keeps its width */
@container (max-width: 26rem) {
  .bi-comment { grid-template-columns: auto minmax(0, 1fr); }
  .bi-share { grid-column: 2; justify-self: start; }
}

/* ---------- Product: Wij bouwen je website (build.js) ---------- */

/* Two looks in one place: the sketch (grey lines) and the real thing. Both keep their room. */
.bw .bw-sw { display: inline-grid; min-width: 0; }
.bw .bw-sw > * { grid-area: 1 / 1; min-width: 0; }
.bw .bw-sw:not(.is-on) > .bw-r, .bw .bw-sw.is-on > .bw-w { visibility: hidden; }
.bw .bw-w { display: grid; gap: 0.3em; align-content: center; }
.bw .bw-r { display: inline-flex; align-items: center; gap: var(--space-2xs); }

/* ---------- The project page (steps 1 to 3): the plan beside the page ---------- */
.bw .bw-ed { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-sm); align-items: start; }
.bw .bw-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-sm); align-items: start; }
.bw .bw-tools--2 { grid-template-columns: auto minmax(0, 1fr); }
/* Ontwerp: the approval needs the full width (its button never breaks), so the groups sit under each other */
.bw .bw-tools--1 { grid-template-columns: minmax(0, 1fr); }
.bw .bw-group { display: grid; gap: var(--space-2xs); align-content: start; min-width: 0; }
.bw .bw-label { display: flex; align-items: center; justify-content: space-between; gap: var(--space-xs); font-size: var(--text-ui-s); font-weight: 700; color: var(--color-muted); }
.bw .bw-n { min-width: 1.25rem; padding: 0 var(--space-2xs); border-radius: 999px; background: var(--color-forest); color: var(--color-on-forest); text-align: center; font-variant-numeric: tabular-nums; }

/* Gesprek: the pages, typed; the wishes (and in Bouwen the checks before launch), ticked off one by one */
.bw .bw-pages { display: grid; gap: var(--space-3xs); }
.bw .bw-pages li {
  display: flex; align-items: center; gap: var(--space-xs);
  min-height: 1.6rem; padding: 0 var(--space-xs);
  border: 1px solid var(--color-rule); border-radius: var(--radius-sm); background: var(--color-surface);
  font-weight: 600; white-space: nowrap; overflow: hidden;
}
.bw .bw-pages li.is-sel { border-color: var(--color-forest); box-shadow: inset 0 0 0 1px var(--color-forest); background: var(--color-paper); }
.bw .bw-num { min-width: 0.6rem; color: var(--color-muted); font-size: var(--text-ui-s); font-variant-numeric: tabular-nums; }
.bw .bw-checks { display: grid; gap: var(--space-3xs); }
.bw .bw-ck {
  display: flex; align-items: center; gap: var(--space-xs); min-height: 1.5rem; min-width: 0;
  color: var(--color-muted); font-weight: 600; transition: color var(--dur-short) var(--ease-out);
}
.bw .bw-ck .ico {
  flex: none; width: 1.05rem; height: 1.05rem; padding: 0.12rem;
  border: 1.5px solid var(--color-rule); border-radius: 50%; color: transparent;
  transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out);
}
.bw .bw-ck.is-on { color: var(--color-ink); }
.bw .bw-ck.is-on .ico { background: var(--color-forest); border-color: var(--color-forest); color: var(--color-on-forest); }

/* Ontwerp: the house colours and the heading font (shown, not picked), then the status and the approval */
.bw .bw-look { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs); }
.bw .bw-swatches { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.bw .bw-swatch { display: block; width: 1.5rem; height: 1.5rem; border: 1px solid var(--color-rule); border-radius: var(--radius-sm); }
.bw .bw-swatch--forest { background: var(--color-forest); border-color: var(--color-forest); }
.bw .bw-swatch--sage { background: var(--color-sage); border-color: var(--color-sage); }
.bw .bw-swatch--paper { background: var(--color-paper); }
.bw .bw-swatch--ink { background: var(--color-ink); border-color: var(--color-ink); }
.bw .bw-font {
  display: grid; place-items: center; width: 2.6rem; height: 2.1rem;
  border: 1px solid var(--color-rule); border-radius: var(--radius-sm); background: var(--color-surface);
  font-size: 1.05rem; font-weight: 400; line-height: 1;
}
.bw .bw-font--d { font-family: var(--font-display); font-weight: 600; }
/* The banner holds both its texts in one cell, so it keeps its height when the text changes */
.bw .bw-swap { display: grid; }
.bw .bw-swap > span { grid-area: 1 / 1; }
.bw .ui-banner.is-ready { border-style: solid; }

@container (min-width: 40rem) {
  .bw .bw-ed { grid-template-columns: 12.75rem minmax(0, 1fr); gap: var(--space-md); }
  .bw .bw-tools, .bw .bw-tools--2 { grid-template-columns: minmax(0, 1fr); gap: var(--space-md); }
}
/* Below 40rem the plan sits above the page. Gesprek has the longest plan (four pages, three wishes),
   so it is packed tighter there: that step would otherwise set the height of the whole demo. */
@container (max-width: 39.99rem) {
  .bw .bw-ed { gap: var(--space-xs); }
  .bw .bw-tools--0 .bw-pages li { min-height: 1.4rem; }
  .bw .bw-tools--0 .bw-ck { min-height: 1.3rem; }
  .bw .bw-ed .bw-sec { padding: 0.45rem 0.6rem; }
}
/* Phone: the numbered list and the ticked wishes say what they are, so their labels are only read out */
@container (max-width: 27.99rem) {
  .bw .bw-tools--0 .bw-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .bw .bw-tools--0 .bw-pages li { min-height: 1.3rem; font-size: var(--text-ui-s); }
  .bw .bw-tools--0 .bw-ck { font-size: var(--text-ui-s); }
}
/* Medium: the pages and the wishes each in two columns */
@container (min-width: 28rem) and (max-width: 39.99rem) {
  .bw .bw-tools--0 .bw-pages, .bw .bw-tools--0 .bw-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3xs) var(--space-2xs); }
}

/* ---------- The page itself: sketch, styled, filled. Sized by its own width. ---------- */
.bw .bw-page {
  container: bwpage / inline-size;
  position: relative; display: grid; align-content: start; width: 100%; min-width: 0;
  border: 1px solid var(--color-rule); border-radius: var(--radius-md); background: var(--color-surface);
  overflow: hidden; font-size: 0.6875rem; line-height: 1.35; color: var(--color-ink);
}
.bw .bw-page .sk { height: 0.4rem; transition: background-color var(--dur-long) var(--ease-out); }
.bw .bw-head {
  display: flex; align-items: center; gap: 0.5rem; min-height: 2.1rem; padding: 0.35rem 0.6rem;
  border-bottom: 1px solid var(--color-rule); background: var(--color-surface); color: var(--color-muted);
  transition: background-color var(--dur-long) var(--ease-out), color var(--dur-long) var(--ease-out), border-color var(--dur-long) var(--ease-out);
}
.bw .bw-logo { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 700; white-space: nowrap; }
.bw .bw-mark { display: block; flex: none; width: 0.85rem; height: 0.85rem; border-radius: 50%; border: 2px solid currentColor; }
.bw .bw-menu { display: none; gap: 0.7rem; margin-left: auto; font-weight: 600; white-space: nowrap; }
.bw .bw-burger { display: grid; margin-left: auto; }
.bw .bw-btn {
  place-items: center; min-height: 1.5rem; padding: 0 0.55rem;
  border: 1px solid var(--color-rule); border-radius: var(--radius-sm); background: var(--color-surface);
  color: var(--color-muted); font-weight: 700; white-space: nowrap;
  transition: background-color var(--dur-long) var(--ease-out), border-color var(--dur-long) var(--ease-out), color var(--dur-long) var(--ease-out);
}
.bw .bw-btn .bw-w { justify-items: center; }

.bw .bw-sec { position: relative; padding: 0.6rem; }
.bw .bw-sec + .bw-sec { border-top: 1px solid var(--color-rule); }
.bw .bw-drop {
  position: absolute; inset: 0.3rem; display: grid; place-items: center;
  border: 1.5px dashed var(--color-rule); border-radius: var(--radius-sm); color: var(--color-muted);
  transition: border-color var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out);
}
.bw .bw-slot.is-filled > .bw-drop { visibility: hidden; }
.bw .bw-slot:not(.is-filled) > .bw-in { visibility: hidden; }

.bw .bw-hero .bw-in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0.6rem; align-items: center; }
.bw .bw-hero-txt { display: grid; gap: 0.4rem; justify-items: start; min-width: 0; }
.bw .bw-h1 { display: grid; width: 100%; min-height: 2.3em; font-size: 0.95rem; line-height: 1.15; font-weight: 700; color: var(--color-ink); border-radius: 2px; }
.bw .bw-h1 > .bw-w { align-content: start; gap: 0.35rem; padding-top: 0.2em; }
.bw .bw-h1 .sk { height: 0.6rem; }
.bw .bw-h1 > .bw-r, .bw .bw-p > .bw-r { display: block; }
.bw .bw-page.is-font .bw-h1 > .bw-r, .bw .bw-page.is-font .bw-sl > .bw-r, .bw .bw-page.is-font .bw-ct > .bw-r { font-family: var(--font-display); font-weight: 600; }
.bw .bw-p { display: grid; width: 100%; color: var(--color-muted); }
.bw .bw-img {
  display: grid; place-items: center; aspect-ratio: 4 / 3; max-height: 7rem; width: 100%;
  border: 1px dashed var(--color-rule); border-radius: var(--radius-sm); background: var(--color-paper); color: transparent;
}
.bw .bw-img .ico { width: 1.6rem; height: 1.6rem; }
.bw .bw-img.is-on { border: 1px solid var(--color-sage); background: var(--color-sage); color: var(--color-forest); }

.bw .bw-svc .bw-in { display: grid; gap: 0.4rem; }
.bw .bw-sl { display: grid; font-size: 0.8125rem; font-weight: 700; }
.bw .bw-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.35rem; }
.bw .bw-card {
  display: grid; gap: 0.3rem; align-content: start; min-height: 2.6rem; padding: 0.4rem;
  border: 1px solid var(--color-rule); border-radius: var(--radius-sm); background: var(--color-surface);
  transition: background-color var(--dur-long) var(--ease-out), border-color var(--dur-long) var(--ease-out);
}
.bw .bw-dot { display: block; width: 0.6rem; height: 0.6rem; border-radius: 2px; background: var(--color-rule); transition: background-color var(--dur-long) var(--ease-out); }
.bw .bw-card-t { display: grid; font-weight: 650; overflow-wrap: break-word; hyphens: auto; }
.bw .bw-con .bw-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.4rem 0.6rem; }
.bw .bw-ct { font-size: 0.8125rem; font-weight: 700; }

/* Colour 1 (forest): the header band and the buttons. Colour 2 (sage): the cards. */
.bw .bw-page.is-c1 .bw-head { background: var(--color-forest); border-color: var(--color-forest); color: var(--color-on-forest); }
.bw .bw-page.is-c1 .bw-head .sk { background: var(--color-on-forest-2); }
.bw .bw-page.is-c1 .bw-cta { background: var(--color-paper); border-color: var(--color-paper); color: var(--color-forest); }
.bw .bw-page.is-c1 .bw-cta .sk { background: var(--color-rule); }
.bw .bw-page.is-c1 .bw-btn--main { background: var(--color-forest); border-color: var(--color-forest); color: var(--color-on-forest); }
.bw .bw-page.is-c1 .bw-btn--main .sk { background: var(--color-on-forest-2); }
.bw .bw-page.is-c2 .bw-card { background: var(--color-sage); border-color: var(--color-sage); }
.bw .bw-page.is-c2 .bw-card .sk { background: var(--color-sage-2); }
.bw .bw-page.is-c2 .bw-dot { background: var(--color-forest); }
.bw .bw-page.is-c2 .bw-con { background: var(--color-paper); }

/* A narrow page: the three service cards give their names a little more room, so a name never breaks */
@container bwpage (max-width: 21.99rem) {
  .bw .bw-cards { gap: 0.25rem; }
  .bw .bw-card { padding-inline: 0.3rem; }
}

/* Wide enough for a menu and a bigger heading */
@container bwpage (min-width: 22rem) {
  .bw .bw-menu { display: flex; }
  .bw .bw-burger { display: none; }
  .bw .bw-sec { padding: 0.7rem 0.85rem; }
  .bw .bw-h1 { font-size: 1.2rem; }
}

/* The same page on a gsm: one column, a footer band. The first block has a fixed height and
   the photo takes what the text leaves, so the swipe can scroll exactly past it. */
.bw .bw-page--m { border: 0; border-radius: 0; }
.bw .bw-page--m .bw-hero { height: 14rem; }
.bw .bw-page--m .bw-hero .bw-in { display: flex; flex-direction: column; align-items: stretch; gap: 0.6rem; height: 100%; }
.bw .bw-page--m .bw-h1 { font-size: 1.1rem; min-height: 0; }
.bw .bw-page--m .bw-img { flex: 1 1 auto; aspect-ratio: auto; height: auto; min-height: 3rem; max-height: none; }
.bw .bw-page--m .bw-cards { grid-template-columns: minmax(0, 1fr); }
.bw .bw-page--m .bw-card { grid-template-columns: auto minmax(0, 1fr); align-items: center; min-height: 0; }
.bw .bw-foot { display: grid; gap: 0.35rem; padding: 0.8rem 0.6rem 1rem; background: var(--color-forest); }
.bw .bw-foot .sk { background: var(--color-forest-line); }

/* ---------- Step 4: online, on the desktop and on the gsm ---------- */
.bw-live { display: grid; gap: var(--space-sm); width: 100%; min-width: 0; }
.bw-live .bw-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-xs) var(--space-sm); padding: var(--space-xs) var(--space-sm); }
.bw-live .bw-st-l { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs); min-width: 0; }
.bw-live .bw-st-name { display: inline-flex; align-items: center; gap: var(--space-2xs); }
.bw-live .bw-st-name .ico { color: var(--color-forest); }
.bw-live .bw-st-badge > * { justify-self: start; }
.bw-live .bw-st-act { min-height: 2rem; align-items: center; }
.bw-live .bw-when { display: inline-flex; align-items: center; gap: var(--space-2xs); color: var(--color-forest); font-weight: 700; white-space: nowrap; }
.bw-live .bw-when--wait { color: var(--color-muted); font-weight: 650; }
/* Under the status: the upkeep is ours */
.bw-live .bw-care { flex-basis: 100%; display: inline-flex; align-items: center; gap: var(--space-2xs); font-size: var(--text-ui-s); color: var(--color-muted); }
.bw-live .bw-care .ico { color: var(--color-forest); }

.bw-live .bw-dev { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; align-items: end; gap: var(--space-md); }
.bw-live .bw-desk { display: none; }
.bw-live .bw-addr { display: flex; justify-content: center; padding: 0.4rem; border-bottom: 1px solid var(--color-rule); background: var(--color-paper); }
.bw-live .bw-url {
  display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.1rem 0.75rem;
  border: 1px solid var(--color-rule); border-radius: 999px; background: var(--color-surface);
  color: var(--color-muted); font-size: var(--text-ui-s); font-weight: 600;
}
.bw-live .bw-url .ico, .bw-live .bw-pill .ico { transition: color var(--dur-long) var(--ease-out); }
.bw-live.is-pub .bw-url .ico, .bw-live.is-pub .bw-pill .ico { color: var(--color-forest); }
.bw-live .bw-screen { position: relative; }
.bw-live .bw-desk .bw-page { border: 0; border-radius: 0; }
.bw-live .bw-desk .bw-h1 { min-height: 0; }

/* Not online yet: a quiet screen over the page; it fades away when we put the site live */
.bw-live .bw-wait {
  position: absolute; inset: 0; z-index: 1;
  display: grid; place-content: center; justify-items: center; gap: var(--space-2xs);
  background: var(--color-surface); color: var(--color-muted); font-size: var(--text-ui-s); font-weight: 650;
  transition: opacity var(--dur-long) var(--ease-out), visibility 0s linear var(--dur-long);
}
.bw-live .bw-wait .ico { width: 1.6rem; height: 1.6rem; }
.bw-live.is-pub .bw-wait { opacity: 0; visibility: hidden; }

.bw-live .bw-phone { position: relative; width: 100%; }
/* From under the status bar to the address line at the bottom (padding 0.5 + 0.75, line 1.9, gap 0.5, home bar 0.25) */
.bw-live .bw-phone > .bw-wait { top: 1.9rem; bottom: calc(3.9rem + 1px); }
.bw-live .bw-phone .ui-appbar { background: var(--color-forest); border-bottom-color: var(--color-forest); color: var(--color-on-forest); }
.bw-live .bw-phone .ui-appbar .ui-title { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--color-on-forest); font-size: var(--text-ui); }
.bw-live .bw-phone .ui-body { padding: 0; gap: 0; }
.bw-live .bw-pill { gap: 0.3rem; min-height: 1.9rem; border-color: var(--color-paper-2); border-radius: 999px; background: var(--color-paper-2); color: var(--color-ink); font-size: var(--text-ui-s); font-weight: 600; }
.bw-live .bw-pill .ico { color: var(--color-muted); }
.bw-live .bw-view { position: relative; height: 15rem; overflow: hidden; }
.bw-live .bw-view .bw-page { transition: transform var(--dur-travel) var(--ease-in-out); }
.bw-live .bw-view.is-down .bw-page { transform: translateY(-14rem); }
/* Where the finger starts and ends its swipe */
.bw-live .bw-pt { position: absolute; left: 55%; width: 2px; height: 2px; pointer-events: none; }
.bw-live .bw-pt--a { top: 78%; }
.bw-live .bw-pt--b { top: 30%; }

@container (min-width: 34rem) {
  .bw-live .bw-dev { grid-template-columns: minmax(0, 1fr) 12rem; justify-items: stretch; }
  .bw-live .bw-desk { display: grid; align-content: start; }
  .bw-live .bw-phone { max-width: 12rem; }
  .bw-live .bw-view { height: 13.5rem; }
}

/* ---------- Inklokken met de gsm (product "clock"): the Uren app and the week at the office ---------- */

/* On the phone the cursor is a fingertip: a soft round dot that taps and then lifts */
.sc:has(> .ck-phone) > .act-cursor .ico { display: none; }
.sc:has(> .ck-phone) > .act-cursor::after {
  content: ""; position: absolute; left: -0.75rem; top: -0.75rem;
  width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: color-mix(in oklch, var(--color-ink) 30%, transparent);
  border: 2px solid var(--color-surface);
  box-shadow: var(--shadow-whisper);
}
.sc:has(> .ck-phone) > .act-cursor.is-click::after { animation: ck-tap var(--dur-short) var(--ease-out); }
@keyframes ck-tap { 50% { transform: scale(0.78); } }

/* Things that change get a short entry motion */
.ck .ck-pop { animation: sc-pop var(--dur-enter) var(--ease-out) both; }
.ck .ck-dial.ck-pop { animation: ck-bump var(--dur-enter) var(--ease-out) both; }
.ck .ck-grow { animation: sc-grow-x var(--ck-d, 1.8s) linear both; }
@keyframes ck-bump { from { transform: scale(0.93); } }

/* ---- The phone ---- */
.ck-phone .ui-body { gap: var(--space-sm); }
.ck-loc { display: flex; align-items: center; gap: var(--space-xs); min-width: 0; }
.ck-loc-t { flex: 1; min-width: 0; }
.ck-loc-n { font-weight: 700; overflow-wrap: anywhere; }
.ck-gps { display: grid; place-items: center; flex: none; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--color-sage); color: var(--color-forest); }

/* The dial and the day summary share one spot, so the screen keeps its height */
.ck-zone { display: grid; place-items: center; min-height: 9.75rem; min-width: 0; }
.ck-zone > * { grid-area: 1 / 1; }
.ck-dial {
  display: grid; place-items: center;
  width: 8.25rem; aspect-ratio: 1; border-radius: 50%;
  background: var(--color-forest); color: var(--color-on-forest);
  box-shadow: 0 0 0 0.45rem var(--color-sage);
  transition: background-color var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out);
}
.ck-dial.is-on { background: var(--color-surface); color: var(--color-ink); box-shadow: inset 0 0 0 0.35rem var(--color-forest), 0 0 0 0.45rem var(--color-paper); }
.ck-dial.is-pause { background: var(--color-sage); color: var(--color-ink); box-shadow: inset 0 0 0 0.35rem var(--color-sage-2), 0 0 0 0.45rem var(--color-paper); }
.ck-face { grid-area: 1 / 1; display: grid; justify-items: center; gap: var(--space-3xs); text-align: center; }
.ck-face--on { visibility: hidden; }
.ck-dial.is-on .ck-face--off, .ck-dial.is-pause .ck-face--off { visibility: hidden; }
.ck-dial.is-on .ck-face--on, .ck-dial.is-pause .ck-face--on { visibility: visible; }
.ck-dial.is-gone .ck-face { visibility: hidden; }
.ck-dial-ico { width: 2rem; height: 2rem; }
.ck-dial-l { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; line-height: 1.1; }
.ck-dial-k { font-size: var(--text-ui-s); font-weight: 700; color: var(--color-forest); }
.ck-dial-n { font-family: var(--font-display); font-weight: 600; font-size: 1.75rem; line-height: 1.05; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ck-dial-s { font-size: var(--text-ui-s); color: var(--color-muted); }
.ck-dial.is-pause .ck-dial-s { color: var(--color-muted-sage); }

.ck-state { justify-self: center; }

/* The day summary after clocking out */
.ck-sum {
  align-self: center; justify-self: stretch;
  display: grid; gap: var(--space-2xs);
  padding: var(--space-xs) var(--space-sm);
  border: 1px solid var(--color-rule); border-radius: var(--radius-md); background: var(--color-paper);
}
.ck-sum-r { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--space-xs); padding-top: var(--space-2xs); border-top: 1px solid var(--color-rule); }
.ck-sum-r .ico { color: var(--color-forest); }
.ck-sum-r b { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* The day as a bar: work and the break */
.ck-day { display: grid; gap: var(--space-2xs); padding: var(--space-xs) var(--space-sm) var(--space-2xs); border: 1px solid var(--color-rule); border-radius: var(--radius-md); }
.ck-day-h { display: flex; align-items: center; justify-content: space-between; gap: var(--space-xs); }
.ck-key { display: inline-flex; align-items: center; gap: var(--space-2xs); font-size: var(--text-ui-s); color: var(--color-muted); }
.ck-key i { display: block; width: 0.6rem; height: 0.6rem; border-radius: 2px; background: var(--color-forest); }
.ck-key i.ck-key-p { margin-left: var(--space-2xs); background: var(--color-sage-2); }
.ck-track { position: relative; height: 0.7rem; border-radius: 999px; background: var(--color-paper); box-shadow: inset 0 0 0 1px var(--color-rule); overflow: hidden; }
.ck-seg { position: absolute; top: 0; bottom: 0; min-width: 0.3rem; background: var(--color-forest); transform-origin: left center; }
.ck-seg--p { background: var(--color-sage-2); }
.ck-hours { position: relative; height: 1.1rem; font-size: var(--text-ui-s); color: var(--color-muted); font-variant-numeric: tabular-nums; }
.ck-hours span { position: absolute; top: 0; transform: translateX(-50%); }

/* The footer: Pauze and Uitklokken side by side */
.ck-choices { justify-self: stretch; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xs); }
.ck .ck-btn { gap: var(--space-2xs); min-width: 0; min-height: 2.5rem; padding: 0 var(--space-xs); text-align: center; line-height: 1.15; }
.ck .ck-btn.is-off { background: var(--color-paper); border-color: var(--color-rule); color: var(--color-muted); opacity: 0.5; }
.ck .ck-btn.ck-done { background: var(--color-sage); border-color: var(--color-sage); color: var(--color-ink); }
@container (max-width: 18.75rem) {
  .ck .ck-btn { white-space: normal; }
}

/* ---- The office: the week per crew ---- */
/* The office window is as tall as the phone screens before it: it fills the stage's reserved
   height, so step 4 shows a full app window instead of a wide grey band under a short one. */
.flow-stage > .sc:has(> .ck-office) { align-self: stretch; align-items: stretch; }
.ck-office .ui-body { align-content: start; }
/* Narrow: the logo strip sits on top; only the app's main part takes the extra height */
@container (max-width: 33.99rem) { .ck-office { grid-template-rows: auto minmax(0, 1fr); } }
.ck-week-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2xs) var(--space-xs); padding: var(--space-xs) var(--space-sm); background: var(--color-paper); }
.ck-week-t { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--space-xs); }
.ck-week-t b { font-weight: 700; }
.ck-tr {
  display: grid; grid-template-columns: minmax(0, 1fr) 3.5rem 4rem; align-items: center; gap: var(--space-2xs);
  padding: var(--space-xs) var(--space-sm); border-top: 1px solid var(--color-rule);
  font-variant-numeric: tabular-nums;
}
.ck-tr--h { padding-block: var(--space-2xs); font-size: var(--text-ui-s); font-weight: 700; color: var(--color-muted); }
.ck-name { font-weight: 650; min-width: 0; overflow-wrap: anywhere; }
.ck-tr--h .ck-name { font-weight: 700; }
.ck-td { min-width: 0; text-align: right; }
.ck-early { display: none; }
.ck-cell { display: inline-block; padding: 0 0.25rem; border: 1px solid transparent; border-radius: var(--radius-sm); white-space: nowrap; }
.ck-cell.is-wait { border-color: var(--color-rule); color: var(--color-muted); min-width: 2.5rem; text-align: center; }
.ck-cell.is-new { background: var(--color-forest); border-color: var(--color-forest); color: var(--color-on-forest); font-weight: 700; }
.ck-tot { text-align: right; font-weight: 700; white-space: nowrap; padding-right: 0.3rem; }
.ck-tr.ck-flash { animation: ck-flash var(--dur-process) var(--ease-out); }
@keyframes ck-flash { from { background-color: var(--color-sage); } }
.ck-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-xs) var(--space-sm); }
.ck-wsum { display: grid; }
.ck-wsum b { font-family: var(--font-display); font-weight: 600; font-size: var(--text-md); line-height: 1.1; font-variant-numeric: tabular-nums; }
/* The week total counts up over an unseen copy of its end value, and the week's badge sits on its other
   texts (unseen), so nothing beside or under them moves */
.ck-swap { display: grid; }
.ck-swap > * { grid-area: 1 / 1; }
.ck-swap--end > * { justify-self: end; }
.ck-ghost { visibility: hidden; }

/* All five days once the table has room for them (the app gets its side bar at 34rem) */
@container (min-width: 37rem) {
  .ck-tr { grid-template-columns: minmax(3.5rem, 1.2fr) repeat(5, minmax(0, 1fr)) minmax(3.5rem, 1.1fr); }
  .ck-early { display: block; }
}

/* ---------- Contract opmaken en laten tekenen (products/contract.js) ---------- */

/* A status badge keeps one width, so nothing beside it shifts when its text changes */
.ct .ct-state { min-width: 5.6rem; justify-content: center; }
.ct .ct-pop { animation: sc-pop var(--dur-enter) var(--ease-out) both; }
/* Two texts in one cell (or a typed text over a hidden copy): the cell keeps its height */
.ct .ct-swap { display: grid; }
.ct .ct-swap > span { grid-area: 1 / 1; }
.ct .ct-ghost { visibility: hidden; }

/* ---------- Aanvaard: the notification, the list, the line under it ---------- */
.ct .ct-toast {
  display: flex; align-items: center; gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  border: 1px solid var(--color-forest); border-radius: var(--radius-md);
  background: var(--color-surface); box-shadow: var(--shadow-whisper);
}
.ct .ct-toast .ico-circle { background: var(--color-forest); color: var(--color-on-forest); }
.ct .ct-line { display: flex; align-items: flex-start; gap: var(--space-xs); color: var(--color-forest); font-size: var(--text-ui-s); font-weight: 650; }
.ct .ct-line .ico { flex: none; margin-top: 0.1rem; }

/* ---------- Opgesteld and Nakijken: the contract, "n van 6 ingevuld", its fields ---------- */
.ct .ct-dhead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-3xs) var(--space-xs); }
.ct .ct-prog { font-size: var(--text-ui-s); color: var(--color-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ct .ct-prog b { color: var(--color-ink); font-weight: 700; }
.ct .ct-doc > .ui-row-s { margin-top: calc(-1 * var(--space-2xs)); }
/* Short values two to a line; the e-mail and the payment term on a line of their own */
.ct .ct-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ct .ct-mail, .ct .ct-term { grid-column: 1 / -1; }
.ct .ct-fields .ui-field { position: relative; }
.ct .ct-fields .ui-v { transition: border-color var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out); }
/* A field the template has not filled yet: an empty box with a dashed edge */
.ct .ct-empty .ui-v { border-style: dashed; background: var(--color-surface); }
/* A value that just came in lights up once */
.ct .ct-in { animation: ct-in var(--dur-long) var(--ease-out) both; }
@keyframes ct-in { from { background-color: var(--color-sage); } }
/* The field being typed in: a focus ring, like a real input */
.ct .ui-field.is-edit .ui-v { border-color: var(--color-forest); background: var(--color-surface); box-shadow: 0 0 0 2px var(--color-sage); }
/* Where the cursor clicks and rests: an invisible point at the right inside of the box, clear of the text */
.ct .ct-rest { position: absolute; right: 0.6rem; bottom: 0.95rem; width: 2px; height: 2px; pointer-events: none; }
/* The banner and the real button: side by side when the banner keeps room for its text, else under each other */
.ct .ct-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs); margin-top: var(--space-2xs); }
.ct .ct-foot > .ui-banner { flex: 1 1 14rem; min-width: 0; }
.ct .ct-foot > .ui-actions { flex: none; }
.ct .ui-banner.is-ready { border-style: solid; }

/* ---------- Getekend: the steps, the signature, the folder ---------- */
.ct .ct-sign { gap: var(--space-sm); transition: border-color var(--dur-short) var(--ease-out); }
.ct .ct-sign.is-done { border-color: var(--color-forest); }
.ct .ct-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2xs) var(--space-xs); min-width: 0; }
.ct .ct-head > .ui-row-main { flex: 1 1 auto; min-width: 0; }
/* The steps and the signature: side by side when both keep their room (12rem), else under each other */
.ct .ct-sigrow { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-md); }
.ct .ct-sigrow > * { flex: 1 1 12rem; min-width: 0; }
/* Three steps on a line; the line fills to a step when it lights up */
.ct .ct-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: start; margin: 0; padding: 0; list-style: none; }
.ct .ct-steps li { position: relative; display: grid; justify-items: center; gap: var(--space-3xs); min-width: 0; text-align: center; color: var(--color-muted); }
.ct .ct-steps li.is-on { color: var(--color-ink); }
.ct .ct-steps li:not(:first-child)::before,
.ct .ct-steps li:not(:first-child)::after {
  content: ""; position: absolute; top: calc(0.4rem - 1px); right: calc(50% + 0.6rem); width: calc(100% - 1.2rem); height: 2px; background: var(--color-rule);
}
.ct .ct-steps li:not(:first-child)::after { background: var(--color-forest); transform: scaleX(0); transform-origin: left center; }
.ct .ct-steps li.is-on:not(:first-child)::after { transform: none; }
.ct .ct-steps li.ct-go:not(:first-child)::after { animation: sc-grow-x var(--dur-long) var(--ease-in-out) both; }
.ct .ct-dot { display: block; width: 0.8rem; height: 0.8rem; border-radius: 50%; border: 2px solid var(--color-rule); background: var(--color-surface); transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
.ct .ct-steps li.is-on .ct-dot { border-color: var(--color-forest); background: var(--color-forest); }
.ct .ct-steps li.ct-go .ct-dot { animation: ct-dot var(--dur-long) var(--ease-out) both; }
@keyframes ct-dot { 50% { transform: scale(1.4); } }
.ct .ct-step { font-size: var(--text-ui-s); font-weight: 700; overflow-wrap: anywhere; }
.ct .ct-at { font-size: var(--text-ui-s); color: var(--color-muted); font-variant-numeric: tabular-nums; }
/* The signature: a path drawn on the line (its dash offset runs from 1 to 0, pathLength 1) */
.ct .ct-sig { display: grid; gap: var(--space-2xs); }
.ct .ct-pad { padding: var(--space-2xs) var(--space-xs) 0; border-bottom: 1.5px solid var(--color-ink); background: var(--color-paper); border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.ct .ct-sig-svg { display: block; width: 100%; height: 3rem; }
.ct .ct-sig-svg path { fill: none; stroke: var(--color-forest); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.ct .ct-sig.is-signed .ct-sig-svg path { stroke-dashoffset: 0; animation: sc-draw 1300ms var(--ease-in-out) both; }
/* The folder: its name as a chip, the files under it; the signed contract takes the waiting row's place */
.ct .ct-folder { gap: var(--space-xs); }
.ct .ct-chip { justify-self: start; }
.ct .ct-slot { display: grid; }
.ct .ct-slot > .ui-row { grid-area: 1 / 1; border-top: 0; }
.ct .ct-wait .ui-row-t { color: var(--color-muted); font-weight: 600; }
.ct .ct-wait .ui-row-ico { color: var(--color-muted); }

/* The narrowest phones: the contract's name keeps to one line (no round icon) and the new file's name
   to two (its row is lit, so it needs no "Nieuw") */
@container (max-width: 18rem) {
  .ct .ct-head .ico-circle, .ct .ct-new { display: none; }
  /* English only: "Sent to name@yourbusiness.example" holds one long word (the Dutch address is shorter);
     a little less padding keeps it inside the banner */
  :lang(en) .ct .ct-foot > .ui-banner { padding-inline: var(--space-xs); }
}
/* Wide stage: three short fields to a line, the e-mail on two of them */
@container (min-width: 34rem) {
  .ct .ct-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ct .ct-mail { grid-column: span 2; }
}

/* ---------- Product: Bestanden herkennen en sorteren (docs.js) ---------- */

/* Ontvangen: a drop zone and a file next to it that gets dragged in */
.docs-in { display: flex; align-items: stretch; gap: var(--space-xs); min-width: 0; }
.docs-in .ui-drop { flex: 1 1 auto; min-width: 0; transition: border-color var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.docs-in .ui-drop.is-over { border-color: var(--color-forest); background: var(--color-sage); color: var(--color-ink); }
.docs-wide { display: none; }
.docs-loose {
  flex: none; align-self: center;
  display: inline-flex; align-items: center; gap: var(--space-2xs);
  padding: var(--space-xs) var(--space-sm);
  border: 1px solid var(--color-rule); border-radius: var(--radius-sm);
  background: var(--color-surface); box-shadow: var(--shadow-whisper);
  font-size: var(--text-ui-s); font-weight: 650; white-space: nowrap;
}
.docs-loose .ico, .docs-file .ico { color: var(--color-forest); }
.docs-loose.is-out { display: none; }

/* Herkennen and Sorteren: a line that counts */
.docs-stat { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs); font-weight: 650; }
.docs-stat > .ico { color: var(--color-forest); }
.docs-stat b { font-variant-numeric: tabular-nums; }

/* The scan line waits unseen until its turn (the shared keyframes start visible) */
.scanline.docs-scan.a-sweep { animation-fill-mode: forwards; }

/* Twijfel: the doubtful part of the scan, and the chosen type */
.docs-box { opacity: 0; transition: opacity var(--dur-short) var(--ease-out); }
.docs-box.is-show { opacity: 1; }
.chip.docs-pick { border-style: solid; background: var(--color-sage); color: var(--color-ink); }

/* Sorteren: the files still in the inbox, flying to their folder */
.docs-inbox { display: grid; gap: var(--space-xs); padding-bottom: var(--space-sm); border-bottom: 1px solid var(--color-rule); }
.docs-file { border-color: var(--color-rule); color: var(--color-ink); }
.docs-chips { position: relative; }
.docs-empty { position: absolute; inset: 0; display: flex; align-items: center; gap: var(--space-2xs); margin: 0; color: var(--color-forest); font-size: var(--text-ui-s); font-weight: 650; }

@container (min-width: 34rem) {
  .docs-wide { display: inline; }
}

/* Twijfel: the pane's head (title, proposal; the file name only on a narrow screen) */
.docs-head { display: grid; gap: var(--space-xs); min-width: 0; }
.docs-name { display: none; }
/* Narrow screen: the scan is a small thumbnail beside the head, the rest uses the full width under it.
   The pane gives up its own box (display: contents), so its parts sit in one card with the thumbnail. */
@container (max-width: 33.99rem) {
  .docs-split {
    grid-template-columns: 4.5rem minmax(0, 1fr); align-items: start; gap: var(--space-xs) var(--space-sm);
    padding: var(--space-sm); border: 1px solid var(--color-rule); border-radius: var(--radius-md); background: var(--color-surface);
  }
  .docs-split > .ui-pane { display: contents; }
  .docs-split > .ui-preview { grid-column: 1; grid-row: 1; padding: var(--space-2xs); }
  .docs-split > .ui-preview > .ui-row-s { display: none; }
  .docs-split .sheet { width: 100%; }
  .docs-split .docs-head { grid-column: 2; grid-row: 1; gap: var(--space-2xs); }
  .docs-split .docs-name { display: block; }
  .docs-split > .ui-pane > :not(.docs-head) { grid-column: 1 / -1; }
}

/* ---------- Openstaande facturen opvolgen (products/dunning.js) ---------- */

/* Where the cursor rests after a click: an invisible point just right of what it clicked */
.dn .dn-att, .dn .dn-pick > .ui-badge, .dn .dn-row > .ui-badge { position: relative; }
.dn .dn-rest { position: absolute; left: calc(100% + 0.6rem); top: 50%; width: 2px; height: 2px; pointer-events: none; }

/* The two headline numbers: today's date (it ticks on in step 1) and the overdue total (it counts) */
.dn .dn-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xs); }
.dn .dn-stat {
  display: grid; gap: var(--space-3xs); min-width: 0;
  padding: var(--space-xs) var(--space-sm);
  border: 1px solid var(--color-rule); border-radius: var(--radius-md); background: var(--color-paper);
}
.dn .dn-stat-v { font-size: var(--text-ui-l); white-space: nowrap; }
.dn .dn-tick { animation: dn-tick var(--dur-short) var(--ease-out) both; }
@keyframes dn-tick { from { opacity: 0; transform: translateY(-0.35em); } }

/* An invoice or bank line: text, the amount and the status. On a phone (and beside another column)
   the status sits above the amount, right of the text. Status badges keep one width, so a row that
   flips to "Vervallen" or "Betaald" does not shift. */
.dn .dn-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "m b" "m a";
  align-items: center; column-gap: var(--space-xs); row-gap: var(--space-3xs);
  transition: background-color var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out);
}
.dn .dn-row > .ui-row-main { grid-area: m; width: auto; }
.dn .dn-row > .ui-badge { grid-area: b; justify-self: end; min-width: 5rem; justify-content: center; }
.dn .dn-row > .dn-amt { grid-area: a; justify-self: end; white-space: nowrap; }
.dn .dn-row.is-hot { background: var(--color-paper); box-shadow: inset 3px 0 0 var(--color-forest); }
.dn .dn-flip { animation: sc-pop var(--dur-enter) var(--ease-out) both; }
.dn .dn-when, .dn .dn-nowrap { white-space: nowrap; }

/* Beside the reminders the list keeps only customer, number and status */
.dn .dn-split .dn-amt, .dn .dn-split .dn-sep, .dn .dn-split .dn-when { display: none; }
.dn .dn-split .dn-row { grid-template-areas: "m b"; }
.dn .dn-split .dn-row > .ui-badge { min-width: 0; }
.dn .dn-left { gap: var(--space-sm); align-content: start; }

/* The reminders drawer: a head with the counter, then one card per customer with the invoice attached */
.dn .dn-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--space-3xs) var(--space-xs); }
.dn .dn-prog { font-size: var(--text-ui-s); color: var(--color-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dn .dn-prog b { color: var(--color-ink); font-weight: 700; }
.dn .dn-mails { display: grid; gap: var(--space-xs); }
.dn .dn-mail {
  display: grid; gap: var(--space-xs); min-width: 0;
  padding: var(--space-xs) var(--space-sm);
  border: 1px solid var(--color-rule); border-radius: var(--radius-sm); background: var(--color-surface);
}
.dn .dn-mail .ico-circle { width: 2rem; height: 2rem; }
.dn .dn-att { justify-self: start; max-width: 100%; margin-left: calc(2rem + var(--space-xs)); border-color: var(--color-rule); color: var(--color-ink); }
.dn .dn-att .ico { color: var(--color-forest); }

/* The check: a tick per reminder; an unticked one turns quiet and gets its reason typed in */
.dn .dn-pick { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: var(--space-xs); }
.dn .dn-pick.is-off .ui-row-t { color: var(--color-muted); }
.dn .dn-pick > .ui-badge { min-width: 6.4rem; justify-content: center; }
.dn .dn-check {
  display: grid; place-items: center; width: 1.25rem; height: 1.25rem;
  border: 1.5px solid var(--color-muted); border-radius: var(--radius-sm);
  background: var(--color-surface); color: var(--color-on-forest);
  transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out);
}
.dn .dn-check .ico { width: 0.85rem; height: 0.85rem; opacity: 0; transition: opacity var(--dur-short) var(--ease-out); }
.dn .dn-check.is-on { background: var(--color-forest); border-color: var(--color-forest); }
.dn .dn-check.is-on .ico { opacity: 1; }
/* A banner whose two texts share one cell, so it keeps its height when the text changes */
.dn .dn-swap { display: grid; }
.dn .dn-swap > span { grid-area: 1 / 1; }

/* The payment: the bank account beside the invoices (under each other on a phone, without the older line) */
.dn .dn-split3 { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-sm); }
.dn .dn-col { display: grid; gap: var(--space-2xs); align-content: start; min-width: 0; }

@container (min-width: 34rem) {
  .dn .dn-wide > .dn-row { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "m a b"; }
  .dn .dn-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
  .dn .dn-split3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (max-width: 33.99rem) {
  .dn .dn-old { display: none; }
}
/* Very narrow: the status under the text of a reminder, never squeezing the text */
@container (max-width: 20rem) {
  .dn .dn-pick { grid-template-columns: auto minmax(0, 1fr); }
  .dn .dn-pick > .ui-badge { grid-column: 2; justify-self: start; }
}
/* On a phone the room of the reserved height goes to the body, not to the menu bar above it */
@container (max-width: 33.99rem) {
  .dn.ui--app { grid-template-rows: auto 1fr; }
}

/* ---------- Van scan naar gegevens (products/finance.js) ---------- */

/* Upload: the scanner's file above the drop zone; the cursor drags it in */
.fi-tray { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs) var(--space-sm); }
.fi-file {
  display: inline-flex; align-items: center; gap: var(--space-2xs);
  padding: var(--space-2xs) var(--space-xs); border: 1px solid var(--color-rule); border-radius: var(--radius-sm);
  background: var(--color-surface); box-shadow: var(--shadow-whisper); font-weight: 650; white-space: nowrap;
}
.fi-file .ico { color: var(--color-forest); }
.fi-drop { display: grid; place-items: center; transition: border-color var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out); }
.fi-drop > * { grid-area: 1 / 1; }
.fi-drop.is-over { border-color: var(--color-forest); background: var(--color-paper); }
.fi-hint { display: grid; justify-items: center; gap: var(--space-2xs); }
.fi-hint .ico { width: 1.75rem; height: 1.75rem; }
.fi-got { display: grid; justify-items: center; gap: var(--space-xs); }
.fi-in { animation: sc-drop-in var(--dur-process) var(--ease-out) both; }
.fi-prog { display: flex; align-items: center; gap: var(--space-xs); width: 11rem; max-width: 100%; }
.fi-bar { flex: 1; height: 0.375rem; border-radius: 999px; background: var(--color-paper-2); overflow: hidden; }
.fi-bar i { display: block; height: 100%; background: var(--color-forest); transform-origin: left center; }
.fi-prog.is-go .fi-bar i { animation: sc-grow-x var(--dur-travel) linear var(--dur-micro) both; }
.fi-pct { min-width: 4.5rem; color: var(--color-ink); font-weight: 650; font-variant-numeric: tabular-nums; text-align: left; }
.fi-prog.is-done .fi-pct { color: var(--color-forest); font-weight: 700; }

/* The pane's head: title, and in step 3 the banner. The file name shows here only on a narrow screen. */
.fi-head { display: grid; gap: var(--space-xs); min-width: 0; }
.fi-name { display: none; }

/* Narrow screen: the scan is a small thumbnail beside the head, the fields use the full width under it.
   The pane gives up its own box (display: contents), so its parts sit in one card with the thumbnail. */
@container (max-width: 33.99rem) {
  .fi-split {
    grid-template-columns: 4.5rem minmax(0, 1fr); align-items: start; gap: var(--space-xs) var(--space-sm);
    padding: var(--space-sm); border: 1px solid var(--color-rule); border-radius: var(--radius-md); background: var(--color-surface);
  }
  .fi-split > .fi-pane { display: contents; }
  .fi-split > .ui-preview { grid-column: 1; grid-row: 1; padding: var(--space-2xs); }
  .fi-split > .ui-preview > .ui-row-s { display: none; }
  .fi-split .fi-scan.has-boxes { width: 100%; }
  .fi-split .fi-scan > .scanline { --sweep: 5.5rem; }
  .fi-split .fi-head { grid-column: 2; grid-row: 1; }
  .fi-split .fi-name { display: block; }
  .fi-split .fi-pane > .ui-fields, .fi-split .fi-pane > .ui-actions { grid-column: 1 / -1; }
}

/* Reading: the box on the scan and its field light up together */
.fi-scan > .sh-box { transition: box-shadow var(--dur-short) var(--ease-out); }
.fi-scan > .sh-box.is-hot { box-shadow: 0 0 0 3px var(--color-sage); }
.fi-pane .ui-v { transition: border-color var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out); }
.fi-pane .ui-field.is-hot .ui-v { border-color: var(--color-forest); box-shadow: 0 0 0 2px var(--color-sage); }
.fi-pop, .fi-flip { animation: sc-pop var(--dur-enter) var(--ease-out) both; }

/* Export: the button keeps its width when it turns quiet */
.fi-go { min-width: 6.5rem; }

/* A banner whose two texts share one cell, so it keeps its height when the text changes */
.fi-swap { display: grid; }
.fi-swap > span { grid-area: 1 / 1; }

/* Narrow screens: invoice codes break only between words; the missing field drops its icon */
.fi-list .ui-row-t, .fi-list .ui-row-s { overflow-wrap: break-word; }
@container (max-width: 20rem) {
  .fi-pane .ui-field.is-miss .ui-v .ico { display: none; }
  .fi-list .ui-row { display: grid; grid-template-columns: minmax(0, 1fr); }
  .fi-list .ui-row > .ui-row-main { width: auto; }
  .fi-list .ui-row > .ui-badge { justify-self: start; margin-left: 2rem; }
}

/* ---------- Offertes vanzelf opvolgen (products/followup.js) ---------- */

/* Where the cursor rests after a click: an invisible point beside what it clicked */
.fu .ui-field, .fu .ui-kcard { position: relative; }
.fu .fu-rest { position: absolute; left: calc(100% + 0.5rem); top: 50%; width: 2px; height: 2px; pointer-events: none; }
.fu .fu-rest--l { left: auto; right: calc(100% + 0.6rem); }
.fu .fu-rest--row { left: calc(100% + 0.2rem); }
.fu-flip { animation: sc-pop var(--dur-enter) var(--ease-out) both; }

/* A quote row: on the right the day counter (a clock, seven cells, "Dag n") and the status.
   Statuses keep one width, so a row does not shift when its badge changes. */
.fu-right { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: var(--space-2xs) var(--space-xs); }
.fu .ui-row .ui-badge { min-width: 5.6rem; justify-content: center; }
.fu-days { display: inline-flex; align-items: center; gap: var(--space-2xs); color: var(--color-muted); font-size: var(--text-ui-s); white-space: nowrap; }
.fu-days .ico { color: var(--color-forest); }
.fu-cells { display: inline-flex; gap: 2px; }
.fu-cells i { display: block; width: 0.45rem; height: 0.7rem; border-radius: 2px; border: 1px solid var(--color-rule); background: var(--color-paper); }
.fu-cells i.is-on { border-color: var(--color-forest); background: var(--color-forest); }
.fu-dayn { min-width: 2.6rem; color: var(--color-ink); font-weight: 700; font-variant-numeric: tabular-nums; }

/* The rows a lifted row passes: they make way with the same travel time */
.fu-shift { transition: transform var(--dur-cursor) var(--ease-in-out); }

/* The line under the list: what the software does next */
.fu-note { display: flex; align-items: flex-start; gap: var(--space-xs); min-height: 1.4em; color: var(--color-forest); font-size: var(--text-ui-s); font-weight: 650; }
.fu-note .ico { flex: none; margin-top: 0.1rem; }

/* The list beside the reminder is narrow: equal columns, and its rows show no day counter (the
   reminder's head says "dag 7"), so every row keeps to two lines */
.fu .ui-split .fu-days { display: none; }

/* Two states in one cell: the reminder's typed text sits on a hidden copy of itself, the banner holds
   both its texts, the new quote both its right sides; so nothing shifts while things change */
.fu-swap { display: grid; }
.fu-swap > span { grid-area: 1 / 1; }
.fu-ghost { visibility: hidden; }
.fu .ui-banner.is-ready { border-style: solid; }

/* The pipeline: three columns with a total each; the quote's place in "Aanvaard" is an unseen copy */
.fu-board { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); }
.fu-board .ui-col-h { display: flex; justify-content: space-between; gap: var(--space-xs); }
.fu-sum { color: var(--color-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fu-cards { display: grid; gap: var(--space-2xs); }
.fu-card { transition: border-color var(--dur-short) var(--ease-out); }
.fu-card.is-sel { border-color: var(--color-forest); }
.fu-slot { visibility: hidden; }

/* Phone: the columns become lanes of one height; the quote's card keeps to two lines (status beside
   the text) and the other quotes' placeholders stay out, so the lanes stay short. A lane with neither
   the quote nor its place keeps one placeholder, so it does not look empty. */
@container (max-width: 33.99rem) {
  .fu-cards { min-height: 3.4rem; }
  .fu-cards > .ui-kcard--sk { display: none; }
  .fu-cards:not(:has(.fu-card, .fu-slot)) > .ui-kcard--sk:first-child { display: grid; }
  .fu-cards > .fu-card, .fu-cards > .fu-slot { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: var(--space-xs); }
  .fu-cards > .fu-card > .ui-badge, .fu-cards > .fu-slot > .ui-badge { grid-column: 2; grid-row: 1 / 3; justify-self: end; }
}
@container (min-width: 34rem) {
  .fu .ui-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .fu-board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Gewerkte uren worden facturen (products/hours.js) ---------- */

/* Where the cursor waits after its click in the check: an invisible point just right of the button */
.hr .hr-rest { display: block; flex: none; width: 2px; height: 2px; pointer-events: none; }

/* A head over the content: a title left, a small line right (under it when there is no room) */
.hr .hr-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-3xs) var(--space-sm); }
.hr .hr-meta { display: inline-flex; align-items: center; gap: var(--space-2xs); min-width: 0; font-size: var(--text-ui-s); color: var(--color-muted); font-variant-numeric: tabular-nums; }
.hr .hr-meta b { color: var(--color-ink); font-weight: 700; }
.hr .hr-meta .ico { color: var(--color-forest); }

/* The numbers on top: a label and a value that counts. A box lights up while its value changes. */
.hr .hr-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xs); }
.hr .hr-stat {
  display: grid; gap: var(--space-3xs); align-content: start; min-width: 0;
  padding: var(--space-xs) var(--space-sm);
  border: 1px solid var(--color-rule); border-radius: var(--radius-md); background: var(--color-paper);
  transition: border-color var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out);
}
.hr .hr-stat-v { font-size: var(--text-ui-l); white-space: nowrap; }
.hr .hr-stat.is-hot { border-color: var(--color-forest); box-shadow: inset 3px 0 0 var(--color-forest); }
.hr .hr-tick { animation: hr-tick var(--dur-short) var(--ease-out) both; }
@keyframes hr-tick { from { opacity: 0; transform: translateY(-0.35em); } }
/* Uren on a phone: the three client totals share one box, a line each (the client left, the hours right) */
.hr .hr-stats--3 {
  grid-template-columns: minmax(0, 1fr); gap: 0;
  border: 1px solid var(--color-rule); border-radius: var(--radius-md); background: var(--color-paper); overflow: hidden;
}
.hr .hr-stats--3 > .hr-stat {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; column-gap: var(--space-xs);
  border: 0; border-top: 1px solid var(--color-rule); border-radius: 0;
}
.hr .hr-stats--3 > .hr-stat:first-child { border-top: 0; }
.hr .hr-stats--3 > .hr-stat.is-hot { border-color: var(--color-rule); background: var(--color-surface); }

/* Uren: the lines from the time registration. On a phone two lines each: the client and the hours, then the
   project and the date (the colleague's name stays out). Wide: one line per entry under the column names. */
.hr .hr-table { display: grid; min-width: 0; border-top: 1px solid var(--color-rule); }
.hr .hr-tr {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "c h" "p d";
  align-items: baseline; column-gap: var(--space-xs);
  padding: var(--space-xs); border-bottom: 1px solid var(--color-rule);
  transition: background-color var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out);
}
.hr .hr-tr > span { min-width: 0; overflow-wrap: break-word; }
.hr .hr-th, .hr .hr-who { display: none; }
.hr .hr-date { grid-area: d; text-align: right; white-space: nowrap; }
.hr .hr-who { grid-area: w; }
.hr .hr-client { grid-area: c; font-weight: 650; }
.hr .hr-proj { grid-area: p; }
.hr .hr-hrs { grid-area: h; text-align: right; white-space: nowrap; }
.hr .hr-proj, .hr .hr-date { color: var(--color-muted); font-size: var(--text-ui-s); }
.hr .hr-tr.is-new { background: var(--color-paper); box-shadow: inset 3px 0 0 var(--color-forest); }

/* Nakijken: per client the hours times the rate, the amount and the status; the total under them.
   On a phone two lines a client; wide, one line with fixed columns, so the numbers line up. */
.hr .hr-line {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "n b" "c a";
  align-items: center; column-gap: var(--space-xs); row-gap: var(--space-3xs);
}
.hr .hr-line > .hr-name { grid-area: n; }
.hr .hr-line > .hr-calc { grid-area: c; }
.hr .hr-line > .hr-amt { grid-area: a; }
.hr .hr-line > .ui-badge { grid-area: b; }
.hr .hr-calc { color: var(--color-muted); font-size: var(--text-ui-s); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hr .hr-amt { justify-self: end; text-align: right; white-space: nowrap; }
.hr .hr-state { justify-self: end; min-width: 5.4rem; justify-content: center; }
.hr .hr-total { background: var(--color-paper); }
.hr .hr-total > .hr-name { font-weight: 700; }
/* The flagged line under its client: dashed while it waits for a decision; unticked, it turns quiet */
.hr .hr-flag {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "x t" "x q";
  align-items: center; column-gap: var(--space-xs);
  margin-top: var(--space-2xs); padding: var(--space-2xs) var(--space-xs);
  border: 1px dashed var(--color-forest); border-radius: var(--radius-sm); background: var(--color-surface);
  transition: border-color var(--dur-short) var(--ease-out);
}
.hr .hr-flag-t { grid-area: t; min-width: 0; overflow-wrap: break-word; }
.hr .hr-flag-h { font-weight: 700; font-variant-numeric: tabular-nums; }
.hr .hr-q { grid-area: q; color: var(--color-forest); font-size: var(--text-ui-s); font-weight: 650; }
.hr .hr-flag.is-off { border-style: solid; border-color: var(--color-rule); }
.hr .hr-flag.is-off .hr-flag-t, .hr .hr-flag.is-off .hr-q { color: var(--color-muted); }
.hr .hr-flag.is-off .hr-flag-h { text-decoration: line-through; }
.hr .hr-box {
  grid-area: x; display: grid; place-items: center; width: 1.25rem; height: 1.25rem;
  border: 1.5px solid var(--color-muted); border-radius: var(--radius-sm);
  background: var(--color-surface); color: var(--color-on-forest);
  transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out);
}
.hr .hr-box .ico { width: 0.85rem; height: 0.85rem; opacity: 0; transition: opacity var(--dur-short) var(--ease-out); }
.hr .hr-box.is-on { background: var(--color-forest); border-color: var(--color-forest); }
.hr .hr-box.is-on .ico { opacity: 1; }
/* A banner (and a note) whose two texts share one cell, so it keeps its size when the text changes */
.hr .hr-swap { display: grid; }
.hr .hr-swap > span { grid-area: 1 / 1; }
.hr .ui-banner.is-ready { border-style: solid; }
.hr .hr-flip { animation: sc-pop var(--dur-enter) var(--ease-out) both; }

/* Factuur and Verstuurd: one card per invoice. On a phone the amount beside the client, the status beside
   the number and the attached hours under them; wide, the number and the attachment share the second line
   and the amount and the status stand on the right. */
.hr .hr-invs { display: grid; gap: var(--space-xs); }
.hr .hr-inv {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "i t a" "i s b" "i c c";
  align-items: center; column-gap: var(--space-xs); row-gap: var(--space-3xs);
  padding: var(--space-xs) var(--space-sm);
  border: 1px solid var(--color-rule); border-radius: var(--radius-md); background: var(--color-surface);
  transition: background-color var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out);
}
.hr .hr-inv > .ui-row-ico { grid-area: i; align-self: start; }
.hr .hr-inv > .ui-row-t { grid-area: t; min-width: 0; }
.hr .hr-inv-m { display: contents; }
.hr .hr-inv-m > .ui-row-s { grid-area: s; min-width: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hr .hr-inv-m > .hr-att { grid-area: c; justify-self: start; max-width: 100%; margin-top: var(--space-2xs); }
.hr .hr-inv > .hr-amt { grid-area: a; }
.hr .hr-inv > .ui-badge { grid-area: b; }
.hr .hr-inv.is-new, .hr .hr-inv.is-hot { background: var(--color-paper); box-shadow: inset 3px 0 0 var(--color-forest); }
.hr .hr-att { border-color: var(--color-rule); color: var(--color-ink); }
.hr .hr-att .ico { color: var(--color-forest); }
/* Verstuurd: the line about the follow-up */
.hr .hr-note { display: flex; align-items: flex-start; gap: var(--space-xs); color: var(--color-forest); font-size: var(--text-ui-s); font-weight: 650; }
.hr .hr-note .ico { flex: none; margin-top: 0.1rem; }

/* Wide: the client totals as three boxes; an invoice keeps its number and attachment on one line (the
   attachment drops under the number when that line is short) and its amount and status on the right */
@container (min-width: 34rem) {
  .hr .hr-stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xs); border: 0; border-radius: 0; background: none; overflow: visible; }
  .hr .hr-stats--3 > .hr-stat { display: grid; border: 1px solid var(--color-rule); border-radius: var(--radius-md); }
  .hr .hr-stats--3 > .hr-stat.is-hot { border-color: var(--color-forest); background: var(--color-paper); }
  .hr .hr-inv { grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-areas: "i t a b" "i m a b"; column-gap: var(--space-sm); }
  .hr .hr-inv > .ui-row-ico { align-self: center; }
  .hr .hr-inv-m { grid-area: m; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2xs) var(--space-sm); min-width: 0; }
  .hr .hr-inv-m > .hr-att { margin-top: 0; }
}
/* Roomy (from 38rem, where the columns fit): the hours as a table under the column names, and one line per
   client in the check, with fixed columns so the numbers of all rows line up. From 42rem the table also
   names the colleague. */
@container (min-width: 38rem) {
  .hr .hr-table { border-top: 0; }
  .hr .hr-tr {
    grid-template-columns: 3.5rem minmax(0, 0.9fr) minmax(0, 1.2fr) 3rem; grid-template-areas: "d c p h";
    align-items: center; column-gap: var(--space-sm);
  }
  .hr .hr-th { display: grid; padding-block: 0 var(--space-2xs); }
  .hr .hr-proj, .hr .hr-date { color: inherit; font-size: inherit; }
  .hr .hr-date { text-align: left; color: var(--color-muted); }
  .hr .hr-th > span { font-size: var(--text-ui-s); font-weight: 650; color: var(--color-muted); }
  .hr .hr-line { grid-template-columns: minmax(0, 1fr) 6rem 5rem 5.4rem; grid-template-areas: "n c a b"; column-gap: var(--space-sm); }
  .hr .hr-calc { font-size: inherit; }
  .hr .hr-flag { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "x t q"; margin-left: var(--space-md); }
}
@container (min-width: 42rem) {
  .hr .hr-tr { grid-template-columns: 3.5rem minmax(0, 1fr) minmax(0, 0.9fr) minmax(0, 1.2fr) 3rem; grid-template-areas: "d w c p h"; }
  .hr .hr-who { display: block; }
}

/* ---------- Van mailbox naar CRM (product "inbox"): the states its director switches ---------- */

/* Where the cursor rests after a click: an invisible point just right of what it clicked */
.ibx .ui-field, .ibx .ui-kcard { position: relative; }
.ibx .ibx-rest { position: absolute; left: calc(100% + 0.5rem); bottom: 1rem; width: 2px; height: 2px; pointer-events: none; }
.ibx .ui-kcard .ibx-rest { left: calc(100% + 0.3rem); bottom: auto; top: 50%; }

/* Step 1: the reading pane is empty until the cursor opens the mail; the key words light up one by one */
.ibx .ibx-pane { position: relative; }
.ibx .ibx-pane.is-closed > :not(.ibx-empty) { visibility: hidden; }
.ibx .ibx-empty {
  position: absolute; inset: 0;
  display: grid; place-content: center; justify-items: center; gap: var(--space-2xs);
  color: var(--color-muted); font-size: var(--text-ui-s); font-weight: 650;
}
.ibx .ibx-pane:not(.is-closed) .ibx-empty { display: none; }
.ibx .ui-mail-body mark.ibx-mk { background: transparent; transition: background-color var(--dur-enter) var(--ease-out); }
.ibx .ui-mail-body mark.ibx-mk.is-lit { background: var(--color-sage); }

/* Steps 2 and 3: the concept header counts the filled fields */
.ibx .ibx-pane-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-3xs) var(--space-xs); }
.ibx .ibx-prog { font-size: var(--text-ui-s); color: var(--color-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ibx .ibx-prog b { color: var(--color-ink); font-weight: 700; }
.ibx .ibx-flag { animation: sc-nudge var(--dur-long) var(--ease-out); }
.ibx .ui-banner.is-ready { border-style: solid; }

/* Step 4: column counts, and the card the cursor takes on */
.ibx .ui-col-h { display: flex; justify-content: space-between; gap: var(--space-xs); }
.ibx .ibx-n { font-variant-numeric: tabular-nums; }
.ibx .ibx-owner { display: inline-flex; align-items: center; gap: var(--space-2xs); font-size: var(--text-ui-s); color: var(--color-muted); }
.ibx .ibx-owner.is-on { color: var(--color-forest); font-weight: 700; }
.ibx .ui-kcard.is-sel { box-shadow: 0 0 0 1px var(--color-forest); }

/* ---------- Verlof aanvragen en goedkeuren (products/leave.js) ---------- */

/* On the gsm the cursor is a fingertip: a soft round dot that taps and then lifts (as in clock.css) */
.sc:has(> .lv-phone) > .act-cursor .ico { display: none; }
.sc:has(> .lv-phone) > .act-cursor::after {
  content: ""; position: absolute; left: -0.75rem; top: -0.75rem;
  width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: color-mix(in oklch, var(--color-ink) 30%, transparent);
  border: 2px solid var(--color-surface);
  box-shadow: var(--shadow-whisper);
}
.sc:has(> .lv-phone) > .act-cursor.is-click::after { animation: lv-tap var(--dur-short) var(--ease-out); }
@keyframes lv-tap { 50% { transform: scale(0.78); } }

/* Things that change get a short entry motion */
.lv .lv-pop { animation: sc-pop var(--dur-enter) var(--ease-out) both; }
.lv .lv-tick { animation: lv-tick var(--dur-short) var(--ease-out) both; }
@keyframes lv-tick { from { opacity: 0; transform: translateY(-0.3em); } }

/* A status badge keeps one width, so nothing beside it shifts when its text changes */
.lv .lv-state { min-width: 6.1rem; justify-content: center; }
/* Two texts in one cell: it keeps its height when the first makes way for the second */
.lv .lv-swap { display: grid; }
.lv .lv-swap > span { grid-area: 1 / 1; }

/* The balance as one block per day: the days of the request are marked, used days go empty */
.lv .lv-blocks { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 3px; max-width: 15rem; }
.lv .lv-blocks i { display: block; height: 0.7rem; border-radius: 2px; background: var(--color-forest); transition: background-color var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out); }
.lv .lv-blocks i.is-req { background: var(--color-sage); box-shadow: inset 0 0 0 1.5px var(--color-forest); }
.lv .lv-blocks i.is-used { background: var(--color-paper-2); box-shadow: inset 0 0 0 1px var(--color-rule); }

/* ---------- The gsm ---------- */
.lv.lv-phone .ui-body { gap: var(--space-sm); }
.lv .lv-me { display: flex; align-items: center; justify-content: space-between; gap: var(--space-xs); min-width: 0; }
.lv .lv-me-n { display: inline-flex; align-items: center; gap: var(--space-2xs); font-weight: 700; white-space: nowrap; }
.lv .lv-me-n .ico { color: var(--color-forest); }
.lv .lv-me .ui-k { white-space: nowrap; }

/* The month: weekday letters, then the days; the weekend is quieter */
.lv .lv-cal { display: grid; gap: var(--space-2xs); padding: var(--space-xs) var(--space-2xs) var(--space-2xs); border: 1px solid var(--color-rule); border-radius: var(--radius-md); }
.lv .lv-cal-h { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--space-xs); padding-inline: var(--space-xs); color: var(--color-muted); }
.lv .lv-month { text-align: center; font-weight: 700; color: var(--color-ink); }
.lv .lv-prev { transform: rotate(90deg); }
.lv .lv-next { transform: rotate(-90deg); }
.lv .lv-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 1px; }
.lv .lv-wd { padding-bottom: var(--space-3xs); font-size: var(--text-ui-s); color: var(--color-muted); text-align: center; }
.lv .lv-day { position: relative; display: grid; place-items: center; height: 1.6rem; font-variant-numeric: tabular-nums; }
.lv .lv-day b { position: relative; z-index: 1; display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; font-weight: 600; }
.lv .lv-day.is-we { color: var(--color-muted); }
/* The chosen days: the first and the last in a circle, a band between them that lights up day by day */
.lv .lv-day.is-in::before { content: ""; position: absolute; left: 0; right: 0; top: 0.05rem; bottom: 0.05rem; background: var(--color-sage); animation: fade-in var(--dur-short) var(--ease-out) both; }
.lv .lv-day.is-start.is-in::before { left: 50%; }
.lv .lv-day.is-end.is-in::before { right: 50%; }
.lv .lv-day.is-start b, .lv .lv-day.is-end b { background: var(--color-forest); color: var(--color-on-forest); font-weight: 700; animation: lv-dot var(--dur-short) var(--ease-out) both; }
@keyframes lv-dot { from { transform: scale(0.6); } }

/* The type of leave: three choices side by side */
.lv .lv-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; padding: 2px; border: 1px solid var(--color-rule); border-radius: var(--radius-sm); background: var(--color-paper); }
.lv .lv-opt { display: grid; place-items: center; min-height: 1.75rem; border-radius: 3px; font-weight: 650; color: var(--color-muted); }
.lv .lv-opt.is-on { background: var(--color-forest); color: var(--color-on-forest); font-weight: 700; animation: lv-dot var(--dur-short) var(--ease-out) both; }

/* The request: its state on top, the period and the number of days under it */
.lv .lv-sum { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-2xs) var(--space-xs); padding: var(--space-xs) var(--space-sm); border: 1px solid var(--color-rule); border-radius: var(--radius-md); background: var(--color-paper); }
.lv .lv-sum-h { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: var(--space-xs); }
.lv .lv-sum-v { font-size: var(--text-ui-l); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lv .lv-sum-n { text-align: right; }

/* The send button: quiet until the request is complete, quiet again once it is sent */
.lv .ui-appfoot .ui-btn { gap: var(--space-2xs); }
.lv .ui-btn.lv-off { background: var(--color-paper); border-color: var(--color-rule); color: var(--color-muted); }
.lv .ui-btn.lv-quiet { background: var(--color-sage); border-color: var(--color-sage); color: var(--color-ink); }

/* The notification that slides in from the top */
.lv .lv-note {
  position: relative; z-index: 2; display: grid; gap: var(--space-3xs);
  padding: var(--space-xs) var(--space-sm);
  border: 1px solid var(--color-rule); border-radius: 0.85rem; background: var(--color-paper);
  box-shadow: var(--shadow-whisper);
}
.lv .lv-note-h { display: flex; align-items: center; gap: var(--space-xs); font-size: var(--text-ui-s); font-weight: 700; color: var(--color-muted); }
.lv .lv-note-app { display: grid; place-items: center; width: 1.3rem; height: 1.3rem; border-radius: 0.35rem; background: var(--color-forest); color: var(--color-on-forest); }
.lv .lv-note-app .ico { width: 0.85rem; height: 0.85rem; }
.lv .lv-note-t { margin-left: auto; font-weight: 400; }
.lv .lv-note-m { font-weight: 650; }
.lv .lv-in { animation: lv-in var(--dur-process) var(--ease-out) both; }
@keyframes lv-in { from { opacity: 0; transform: translateY(-115%); } }

/* The balance on the gsm */
.lv .lv-saldo { display: grid; gap: var(--space-2xs); padding: var(--space-xs) var(--space-sm) var(--space-sm); border: 1px solid var(--color-rule); border-radius: var(--radius-md); }
.lv .lv-saldo-n { display: flex; align-items: baseline; gap: var(--space-2xs); }
.lv .lv-saldo-n b { font-family: var(--font-display); font-weight: 600; font-size: 1.75rem; line-height: 1; font-variant-numeric: tabular-nums; }
.lv .lv-saldo-n span { color: var(--color-muted); font-weight: 650; }
.lv .lv-label { margin-bottom: calc(-1 * var(--space-xs)); font-weight: 700; }
.lv.lv-phone .ui-row-t { white-space: nowrap; }

/* ---------- The web app of the person in charge ---------- */
.lv .lv-req { display: flex; align-items: center; gap: var(--space-xs); }
.lv .lv-av { display: none; }
.lv .lv-who { flex: 1 1 auto; min-width: 0; }
.lv .lv-req > .ui-badge { flex: none; }
.lv .lv-facts { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); gap: var(--space-xs); padding-block: var(--space-xs); border-block: 1px solid var(--color-rule); }
.lv .lv-fact { display: grid; min-width: 0; }
.lv .lv-fact b { font-weight: 700; white-space: nowrap; }
.lv .lv-check { display: grid; gap: var(--space-2xs); }
.lv .lv-check b { font-weight: 700; }
.lv .lv-after { display: inline-block; min-width: 1.15em; font-variant-numeric: tabular-nums; }

/* Who else is away that week: five small days; the cursor rests just right of them */
.lv .lv-wbar { position: relative; justify-self: start; display: grid; grid-template-columns: repeat(5, 2rem); gap: 3px; }
.lv .lv-wday { display: grid; gap: var(--space-3xs); justify-items: center; font-size: var(--text-ui-s); color: var(--color-muted); }
.lv .lv-wday i { display: block; justify-self: stretch; height: 0.7rem; border-radius: 2px; background: var(--color-paper-2); box-shadow: inset 0 0 0 1px var(--color-rule); }
.lv .lv-wday.is-away i { background: var(--color-sage-2); box-shadow: none; }
.lv .lv-wbar.is-hot .lv-wday.is-away i { box-shadow: 0 0 0 1.5px var(--color-forest); }
.lv .lv-wbar.is-hot .lv-wday.is-away { color: var(--color-ink); font-weight: 700; }
.lv .lv-rest { position: absolute; left: calc(100% + 0.6rem); top: 0.35rem; width: 2px; height: 2px; pointer-events: none; }
.lv .ui-banner.is-ready { border-style: solid; }

/* The planning: a name, then the five days; a leave is one bar over its days */
.lv .lv-plan-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2xs) var(--space-sm); }
.lv .lv-plan-t { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--space-xs); }
.lv .lv-plan-t b { font-size: var(--text-ui-l); font-weight: 700; }
.lv .lv-key { display: inline-flex; align-items: center; gap: var(--space-2xs); font-size: var(--text-ui-s); color: var(--color-muted); }
.lv .lv-key i { display: block; width: 0.8rem; height: 0.6rem; border-radius: 2px; background: var(--color-sage-2); }
.lv .lv-tr { display: grid; grid-template-columns: 5.4rem minmax(0, 1fr); align-items: center; gap: var(--space-xs); padding: var(--space-2xs) var(--space-xs); border-top: 1px solid var(--color-rule); }
.lv .lv-tr:first-child { border-top: 0; }
.lv .lv-tr--h { padding-block: var(--space-2xs); background: var(--color-paper); font-size: var(--text-ui-s); color: var(--color-muted); }
.lv .lv-name { min-width: 0; font-size: var(--text-ui-s); font-weight: 650; white-space: nowrap; }
.lv .lv-tr--h .lv-name { font-weight: 700; }
.lv .lv-tr.is-sel { background: var(--color-paper); box-shadow: inset 3px 0 0 var(--color-forest); }
.lv .lv-wk { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; }
.lv .lv-th { display: grid; justify-items: center; line-height: 1.2; }
.lv .lv-th b { color: var(--color-ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.lv .lv-slot { display: block; height: 1.45rem; border-radius: 3px; background: var(--color-paper-2); }
.lv .lv-tr.is-sel .lv-slot { background: var(--color-surface); box-shadow: inset 0 0 0 1px var(--color-rule); }
.lv .lv-bar {
  position: absolute; top: 0; bottom: 0; left: 0;
  width: calc(var(--n, 0) * (100% - 12px) / 5 + (var(--n, 0) - 1) * 3px);
  display: flex; align-items: center; padding-inline: var(--space-xs);
  border-radius: 3px; background: var(--color-sage-2); color: var(--color-ink);
  font-size: var(--text-ui-s); font-weight: 700; white-space: nowrap; overflow: hidden;
}
.lv .lv-bar.is-new { background: var(--color-forest); color: var(--color-on-forest); transform-origin: left center; transition: width var(--dur-short) var(--ease-out); }
.lv .lv-bar.lv-start { animation: sc-grow-x var(--dur-short) var(--ease-out) both; }
/* The word on a bar only where it fits: on a growing bar once it is long enough (is-long, set by leave.js) */
.lv .lv-bar-t { display: none; }
.lv .lv-bar.is-long .lv-bar-t { display: block; }
.lv .lv-agenda { display: flex; align-items: center; gap: var(--space-xs); padding: var(--space-xs) var(--space-sm); border: 1px solid var(--color-rule); border-radius: var(--radius-md); }
.lv .lv-agenda .ico-circle { width: 2rem; height: 2rem; }

@container (min-width: 18.5rem) {
  .lv .lv-bar:not(.is-new) .lv-bar-t { display: block; }
}
@container (min-width: 34rem) {
  .lv .lv-split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lv .lv-tr { grid-template-columns: 6.5rem minmax(0, 1fr); padding-inline: var(--space-sm); }
  .lv .lv-name { font-size: var(--text-ui); }
  .lv .lv-tr--h .lv-name { font-size: var(--text-ui-s); }
}
/* A day is wide enough for the word on the bar */
@container (min-width: 40rem) {
  .lv .lv-bar-t { display: block; }
  .lv .lv-slot { height: 1.6rem; }
}
/* Room for the open request to take more of the width, with a picture of the person */
@container (min-width: 44rem) {
  .lv .lv-split { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
  .lv .lv-av { display: grid; }
}

/* ---------- Nacalculatie per project (products/nacalc.js) ---------- */

/* Incoming entries: the count above the list, and the project each entry lands on */
.nc-stat { display: flex; align-items: center; gap: var(--space-xs); font-size: var(--text-ui-s); color: var(--color-muted); }
.nc-stat b { color: var(--color-ink); font-variant-numeric: tabular-nums; }

/* Budget against progress: the meter fills up to the budget used, the dark tick marks the work done */
.nc-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2xs) var(--space-xs); }
.nc-key { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3xs) var(--space-2xs); }
.nc-key-fill { display: inline-block; width: 1rem; height: 0.5rem; border-radius: 999px; background: var(--color-forest); }
.nc-key-mark { display: inline-block; width: 2px; height: 0.9rem; margin-left: var(--space-xs); background: var(--color-ink); }
.nc-row > .nc-meter { flex: 1 0 100%; margin-block: var(--space-2xs); }

/* Where the project stands: the materials, the longest value, get the card's whole width; a label on two
   lines (EN "Still needed") keeps its value box level with the one beside it */
.nc-facts .ui-field { align-content: end; }
.nc-facts .ui-field:last-child { grid-column: 1 / -1; }

/* The decision: an option may wrap on a phone; the picked one gets a check */
.nc .ui-chips .chip { white-space: normal; }
.chip.nc-pick { border-style: solid; background: var(--color-sage); color: var(--color-ink); }

/* Job costing: the quote against what it really took, three columns that fit a phone too. Each column
   is as wide as its longest word and the rest is shared out, so "Werkelijk" stays whole at 320 px;
   only text that has grown far (WCAG text spacing) still breaks, and the grid never runs out of the screen. */
.nc-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, auto));
  border: 1px solid var(--color-rule); border-radius: var(--radius-md); background: var(--color-surface);
  font-variant-numeric: tabular-nums;
}
.nc-grid > span { padding: var(--space-2xs) var(--space-sm); border-top: 1px solid var(--color-rule); min-width: 0; overflow-wrap: break-word; }
@container (max-width: 22rem) { .nc-grid > span { padding-inline: var(--space-xs); } }
.nc-grid > .nc-th { border-top: 0; font-size: var(--text-ui-s); font-weight: 700; color: var(--color-muted); }
.nc-k, .nc-real { font-weight: 700; }

/* The note for the next quote: typed over an invisible copy of itself, so the box keeps its height */
.nc-say { display: grid; min-width: 0; }
.nc-say > span { grid-area: 1 / 1; }
.nc-ghost { visibility: hidden; }

/* ---------- Een nieuwe klant in één keer klaar (products/onboard.js) ---------- */

/* The form: a title with "n van m ingevuld". On a phone one field per line, so no value ever breaks. */
.ob .ob-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-3xs) var(--space-xs); }
.ob .ob-prog { font-size: var(--text-ui-s); color: var(--color-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ob .ob-prog b { color: var(--color-ink); font-weight: 700; }
.ob .ui-fields { grid-template-columns: minmax(0, 1fr); }
.ob .ui-field { position: relative; }
.ob .ui-v { transition: border-color var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out); }
/* The field being typed in: a focus ring, like a real input */
.ob .ui-field.is-edit .ui-v { border-color: var(--color-forest); background: var(--color-surface); box-shadow: 0 0 0 2px var(--color-sage); }
/* Where the cursor clicks and rests: an invisible point at the right inside of the box, clear of the text */
.ob .ob-rest { position: absolute; right: 0.6rem; bottom: 0.95rem; width: 2px; height: 2px; pointer-events: none; }
.ob .ui-banner.is-ready { border-style: solid; }
/* Two texts in one cell: the cell keeps its height when the first makes way for the second */
.ob .ob-swap { display: grid; }
.ob .ob-swap > span { grid-area: 1 / 1; }
/* Beside the form on a wide screen: what happens by itself after "Klant aanmaken" */
.ob .ob-plan { gap: var(--space-xs); align-content: start; }
.ob-pop { animation: sc-pop var(--dur-enter) var(--ease-out) both; }

/* Overal: a line fills from the client card to each program; it lights up and its badge flips to "Klaar" */
.ob .ob-stat { display: flex; align-items: center; gap: var(--space-xs); font-weight: 650; }
.ob .ob-stat > .ico { color: var(--color-forest); }
.ob .ob-stat b { font-variant-numeric: tabular-nums; }
.ob .ob-stat.is-done { color: var(--color-forest); }
.ob .ob-map { --ob-gap: 1.5rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-sm); }
.ob .ob-src { justify-items: start; }
.ob .ob-target {
  position: relative; display: flex; align-items: center; gap: var(--space-xs);
  margin-left: var(--ob-gap); padding: var(--space-xs) var(--space-sm);
  transition: border-color var(--dur-short) var(--ease-out);
}
.ob .ob-target.is-on { border-color: var(--color-forest); }
.ob .ob-target .ico-circle { transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.ob .ob-target.is-on .ico-circle { background: var(--color-forest); color: var(--color-on-forest); }
.ob .ob-target-txt { flex: 1 1 auto; min-width: 0; }
/* The badge keeps one width when "Wacht" turns into "Klaar", so the text beside it does not shift */
.ob .ob-target > .ui-badge { min-width: 4.1rem; justify-content: center; gap: var(--space-3xs); }
/* On a phone the lines hang from one rail under the client card; a segment turns solid once its program is on */
.ob .ob-target::before {
  content: ""; position: absolute; left: calc(-1 * var(--ob-gap)); top: calc(-1 * var(--space-sm) - 1px); bottom: 50%;
  border-left: 2px dashed var(--color-rule);
  transition: border-color var(--dur-short) var(--ease-out);
}
.ob .ob-target:not(:last-child)::before { bottom: -1px; }
.ob .ob-target.is-on::before { border-color: var(--color-forest); border-left-style: solid; }
/* The line into a program: dashed with an arrow head; it fills from the client's side when the data passes */
.ob .ob-link { position: absolute; right: calc(100% + 1px); top: 50%; width: calc(var(--ob-gap) - 1px); height: 2px; margin-top: -1px; }
.ob .ob-link::before { content: ""; position: absolute; inset: 0; border-top: 2px dashed var(--color-rule); }
.ob .ob-link::after {
  content: ""; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  border-left: 5px solid var(--color-rule); border-block: 4px solid transparent;
  transition: border-left-color var(--dur-short) var(--ease-out);
}
.ob .ob-link i { position: absolute; inset: 0; background: var(--color-forest); transform: scaleX(0); transform-origin: left center; }
.ob .ob-link.is-on i { transform: none; }
.ob .ob-link.is-on::after { border-left-color: var(--color-forest); }
.ob .ob-link.ob-go i { animation: sc-grow-x var(--dur-process) var(--ease-in-out) both; }

/* Welkom: the mail keeps one height while it is typed (the full text sits unseen under the typed one) */
.ob .ob-mail-meta { min-width: 0; }
.ob .ob-mail-body { display: grid; }
.ob .ob-mail-body > span { grid-area: 1 / 1; }
.ob .ob-ghost { visibility: hidden; }
.ob .ob-mail-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs); }
/* The team's tasks: "no task yet" and the new task share the first row */
.ob .ob-tasks { display: grid; gap: var(--space-xs); align-content: start; }
.ob .ob-slot { display: grid; }
.ob .ob-slot > .ui-row { grid-area: 1 / 1; border-top: 0; }
.ob .ob-none .ui-row-t { color: var(--color-muted); font-weight: 600; }

/* Wide stage: two fields per line (the e-mail takes a full one), the plan beside the form,
   the client card left of the programs with a straight line into each */
@container (min-width: 34rem) {
  .ob .ui-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ob .ob-span { grid-column: 1 / -1; }
  .ob .ob-split { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
  .ob .ob-split3 { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .ob .ob-map { --ob-gap: 2.5rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); column-gap: var(--ob-gap); row-gap: var(--space-xs); }
  .ob .ob-src { grid-column: 1; grid-row: 1 / span 3; align-self: stretch; align-content: center; }
  .ob .ob-target { grid-column: 2; margin-left: 0; }
  .ob .ob-target::before { display: none; }
}

/* ---------- Antwoorden op klantvragen voorbereiden (products/reply.js) ---------- */

/* The sources: what the AI software found in each one */
.cq-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2xs) var(--space-xs); }
.cq-found { font-weight: 700; color: var(--color-forest); white-space: nowrap; }

/* The draft: each fact is marked and carries the number of its source; the sentence that is in no
   source is underlined, and struck once the colleague has removed it */
.cq-text { line-height: 1.6; }
.cq-fact { padding: 0 0.15em; border-radius: 2px; background: var(--color-sage); color: var(--color-ink); }
/* The number of a source sits in a small disc, so it never reads as part of the fact ("m²" and "1" are
   no "m²¹"). An inline box, not an inline-block: the line may not break between a fact and its number. */
.cq-src {
  margin-left: 0.3em; padding: 0.05em 0.4em; border-radius: 999px;
  background: var(--color-forest); color: var(--color-on-forest);
  font-size: 0.7em; font-weight: 700; line-height: 1; vertical-align: 0.15em;
}
.cq-legend .cq-src { margin: 0 0.3em 0 0; }
.cq-doubt { text-decoration: underline dashed var(--color-forest); text-underline-offset: 0.2em; }
.cq-doubt.is-cut { text-decoration: line-through; color: var(--color-muted); }
.cq-why { display: flex; align-items: flex-start; gap: var(--space-xs); color: var(--color-forest); font-size: var(--text-ui-s); font-weight: 650; }
.cq-why .ico { flex: none; margin-top: 0.1rem; }
.cq-swap { display: grid; }
.cq-swap > span { grid-area: 1 / 1; }

/* The week: per subject a bar and its count */
.cq-bar { display: grid; grid-template-columns: minmax(0, 7.5rem) minmax(0, 1fr) 1.75rem; align-items: center; gap: var(--space-xs); font-size: var(--text-ui-s); }
.cq-bar .ui-num { text-align: right; }
.cq-avg { display: flex; align-items: center; gap: var(--space-xs); font-size: var(--text-ui-s); color: var(--color-muted); }

/* ---------- Elke maandag het weekrapport (products/report.js) ---------- */

/* A status badge keeps one width, so nothing around it shifts when its text changes */
.rp .rp-state { min-width: 5.5rem; justify-content: center; }
.rp-pop { animation: sc-pop var(--dur-enter) var(--ease-out) both; }

/* The head of a card: a round icon, a title with a line under it, the status on the right */
.rp .rp-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2xs) var(--space-xs); min-width: 0; }
.rp .rp-head > .ui-row-main { flex: 1 1 auto; min-width: 0; }

/* ---------- Maandag 07:00: the clock and the steps of the run ---------- */
.rp .rp-run { display: grid; gap: var(--space-sm); }
.rp .rp-clock { display: flex; align-items: center; gap: var(--space-sm); }
.rp .rp-face { display: block; flex: none; width: 4.5rem; height: 4.5rem; }
.rp .rp-face-ring { fill: var(--color-surface); stroke: var(--color-rule); stroke-width: 4; }
.rp .rp-tick { stroke: var(--color-muted); stroke-width: 3; stroke-linecap: round; }
.rp .rp-hand { stroke: var(--color-ink); stroke-width: 5; stroke-linecap: round; transform-box: view-box; transform-origin: 50px 50px; }
.rp .rp-hand--m { stroke: var(--color-forest); stroke-width: 3.5; }
.rp .rp-pin { fill: var(--color-forest); }
/* 06:30 at the start; is-seven turns both hands to 07:00 in the 2 s the time next to them counts (report.js) */
.rp .rp-hand--h { transform: rotate(195deg); }
.rp .rp-hand--m { transform: rotate(180deg); }
.rp .rp-clock.is-seven .rp-hand--h { transform: rotate(210deg); animation: rp-hour 2000ms linear both; }
.rp .rp-clock.is-seven .rp-hand--m { transform: rotate(360deg); animation: rp-minute 2000ms linear both; }
@keyframes rp-hour { from { transform: rotate(195deg); } }
@keyframes rp-minute { from { transform: rotate(180deg); } }
.rp .rp-when { min-width: 0; }
.rp .rp-time { font-size: var(--text-xl); letter-spacing: -0.01em; }
.rp .rp-track { margin-top: 0; align-content: center; }
.rp .rp-track li { min-width: 0; }
.rp .rp-step { min-width: 0; overflow-wrap: break-word; }
.rp .rp-at { margin-left: auto; padding-left: var(--space-xs); font-size: var(--text-ui-s); font-weight: 400; color: var(--color-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rp .rp-track li.is-on .ui-track-dot { animation: rp-dot var(--dur-long) var(--ease-out) both; }
@keyframes rp-dot { 50% { transform: scale(1.5); } }
@container (min-width: 34rem) {
  .rp .rp-run { grid-template-columns: auto minmax(0, 1fr); gap: var(--space-xl); align-items: center; }
}

/* ---------- Ophalen: a line that counts, and per program a bar that fills ---------- */
.rp .rp-stat { display: flex; align-items: center; gap: var(--space-xs); font-weight: 650; }
.rp .rp-stat > .ico { color: var(--color-forest); }
.rp .rp-stat.is-ok { color: var(--color-forest); }
.rp .rp-stat b { font-variant-numeric: tabular-nums; }
/* Narrow: icon, name and status on one line, the count under the name, the bar under all of it */
.rp .rp-src {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "i t b" "i n b" "m m m";
  align-items: center; column-gap: var(--space-xs); row-gap: var(--space-2xs);
}
.rp .rp-src > .ui-row-ico { grid-area: i; }
.rp .rp-src > .ui-row-txt { grid-area: t; }
.rp .rp-src > .rp-n { grid-area: n; }
.rp .rp-src > .ui-badge { grid-area: b; }
.rp .rp-src > .rp-meter { grid-area: m; margin-top: var(--space-2xs); }
.rp .rp-n { font-size: var(--text-ui-s); font-weight: 700; color: var(--color-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rp .rp-fill { width: 100%; transform: scaleX(0); }
.rp .rp-fill.rp-go { transform: none; animation: sc-grow-x 850ms linear both; }
@container (min-width: 34rem) {
  .rp .rp-src { grid-template-columns: auto minmax(0, 1.1fr) minmax(0, 1fr) auto auto; grid-template-areas: "i t m n b"; }
  .rp .rp-src > .rp-meter { margin-top: 0; }
  .rp .rp-src > .rp-n { min-width: 5.5rem; text-align: right; }
}

/* ---------- Samenvoegen: three numbers, then the bars per day ---------- */
.rp .rp-kpis { display: grid; gap: var(--space-xs); }
/* Narrow: each number on its own line, label left and number right, so the three fit at 320 px */
.rp .rp-kpi { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2xs) var(--space-xs); }
.rp .rp-kpi .kpi-label { order: -1; }
.rp .rp-chart .bars { height: 6rem; }
@container (min-width: 34rem) {
  .rp .rp-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rp .rp-kpi { display: block; }
  .rp .rp-chart .bars { height: 7rem; }
}

/* ---------- In je mailbox: the list and the opened mail ---------- */
.rp .rp-pane { position: relative; }
.rp .rp-split:not(.is-open) > .rp-pane > :not(.rp-empty) { visibility: hidden; }
.rp .rp-empty {
  position: absolute; inset: 0;
  display: grid; place-content: center; justify-items: center; gap: var(--space-2xs);
  color: var(--color-muted); font-size: var(--text-ui-s); font-weight: 650;
}
.rp .rp-split.is-open .rp-empty { display: none; }
.rp .rp-meta { min-width: 0; }
.rp .rp-meta .ui-row-s { overflow-wrap: anywhere; }
.rp .rp-rest { position: absolute; right: var(--space-md); bottom: var(--space-sm); width: 2px; height: 2px; pointer-events: none; }
.rp .rp-attach { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--space-sm); }
.rp .rp-file { display: inline-flex; align-items: center; gap: var(--space-2xs); min-width: 0; padding-top: var(--space-2xs); font-size: var(--text-ui-s); font-weight: 650; overflow-wrap: anywhere; }
.rp .rp-file .ico { color: var(--color-forest); }
/* The report on a small page: a title line, three number blocks and the bars of the week */
.rp .rp-thumb {
  display: grid; grid-template-rows: auto auto minmax(0, 1fr); gap: 7%;
  width: 6.5rem; aspect-ratio: 3 / 4; padding: 9% 8%;
  border: 1px solid var(--color-rule); border-radius: 3px; background: var(--color-surface); box-shadow: var(--shadow-whisper);
}
.rp .rp-thumb-t { display: block; width: 55%; height: 0.4rem; border-radius: 2px; background: var(--color-forest); }
.rp .rp-thumb-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6%; }
.rp .rp-thumb-kpis i { display: block; aspect-ratio: 5 / 3; border-radius: 2px; background: var(--color-sage); }
/* A flex row with the height of its grid area (definite), so the bars' percentage heights resolve */
.rp .rp-thumb-bars { display: flex; align-items: flex-end; gap: 5%; min-height: 0; border-bottom: 1px solid var(--color-rule); }
.rp .rp-thumb-bars i { display: block; flex: 1 1 0; min-width: 0; border-radius: 1px 1px 0 0; background: var(--color-forest); transform-origin: bottom; }
.rp .rp-thumb-bars i:nth-child(1) { height: 64%; }
.rp .rp-thumb-bars i:nth-child(2) { height: 77%; }
.rp .rp-thumb-bars i:nth-child(3) { height: 71%; }
.rp .rp-thumb-bars i:nth-child(4) { height: 85%; }
.rp .rp-thumb-bars i:nth-child(5) { height: 100%; }
.rp .rp-thumb-bars i:nth-child(6) { height: 82%; }
.rp .rp-thumb-bars i:nth-child(7) { height: 23%; }
.rp-in { animation: sc-drop-in var(--dur-process) var(--ease-out) both; }
/* Narrow: list and mail share one spot, like on a phone; the cursor's click swaps them.
   The app's spare height (the stage reserves the tallest step) goes to the body, not to the logo bar. */
@container (max-width: 33.99rem) {
  .rp.ui--app { grid-template-rows: auto minmax(0, 1fr); }
  .rp .rp-split > * { grid-area: 1 / 1; align-self: start; }
  .rp .rp-split.is-open > .ui-list { visibility: hidden; }
  .rp .rp-split:not(.is-open) > .rp-pane { visibility: hidden; }
  .rp .rp-empty { display: none; }
}

/* ---------- Klachten en retours op één bord (products/returns.js) ---------- */

/* The form on the website: one column, the field being typed in is lit, the picked option gets a check */
.rt-form { display: grid; gap: var(--space-xs); max-width: 30rem; }
.rt-form > .ui-btn { justify-self: start; }
.rt .ui-v { transition: border-color var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out); }
.rt .ui-field.is-edit .ui-v { border-color: var(--color-forest); background: var(--color-surface); box-shadow: 0 0 0 2px var(--color-sage); }
.chip.rt-pick { background: var(--color-sage); color: var(--color-ink); }
.rt-drop { justify-content: flex-start; }
.rt-drop.is-done { border-style: solid; border-color: var(--color-forest); color: var(--color-forest); }
.rt-thanks { display: flex; align-items: center; gap: var(--space-xs); color: var(--color-forest); font-size: var(--text-ui-s); font-weight: 650; }

/* The shared board: three columns side by side once a card fits in each (from 40rem: with the sidebar
   beside it, a column is too narrow before that), lanes under each other below. Where a card will go,
   or where it was, an unseen copy keeps the column's height. */
.rt-board { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); }
.rt-cards { display: grid; gap: var(--space-2xs); }
.rt-card { transition: border-color var(--dur-short) var(--ease-out); }
/* A carried card glides to its new column: keep the transform transition of .is-drag */
.rt-card.is-drag { transition: transform var(--dur-cursor) var(--ease-in-out), border-color var(--dur-short) var(--ease-out); }
.rt-slot { visibility: hidden; }
.rt-owner { display: inline-flex; align-items: center; gap: var(--space-3xs); font-size: var(--text-ui-s); color: var(--color-muted); }
.rt-owner.is-set { color: var(--color-forest); font-weight: 650; }
@container (max-width: 39.99rem) { .rt-cards > .ui-kcard--sk { display: none; } }
@container (min-width: 40rem) { .rt-board { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* The decision pane is never narrower than its button; the photo beside it gives way */
@container (min-width: 34rem) { .rt .ui-split { grid-template-columns: minmax(0, 0.95fr) minmax(min-content, 1.25fr); } }

/* The photo with the damage marked on it */
.rt-img { position: relative; width: 100%; max-width: 14rem; }
.rt-mark { position: absolute; left: 32%; top: 30%; width: 30%; height: 26%; border: 2px dashed var(--color-forest); border-radius: 3px; }

/* The message to the customer: typed over an invisible copy of itself, so the box keeps its height */
.rt-say { display: grid; min-width: 0; }
.rt-say > span { grid-area: 1 / 1; }
.rt-ghost { visibility: hidden; }

/* ---------- Na de klus om een review vragen (products/review.js) ---------- */

/* Where the cursor rests after a click: an invisible point just right of what it clicked */
.rv .rv-rest { position: absolute; left: calc(100% + 0.6rem); top: 50%; width: 2px; height: 2px; pointer-events: none; }
.rv .rv-pop { animation: sc-pop var(--dur-enter) var(--ease-out) both; }
.rv .rv-tick { animation: rv-tick var(--dur-short) var(--ease-out) both; }
@keyframes rv-tick { from { opacity: 0; transform: translateY(-0.35em); } }
.rv .rv-beat { animation: rv-beat var(--dur-long) var(--ease-out) both; }
@keyframes rv-beat { 40% { transform: scale(1.2); } }

/* Two texts in one cell: the cell keeps the room of the longer one, so nothing shifts when they swap */
.rv .rv-swap { display: inline-grid; }
.rv .rv-swap > span { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: var(--space-3xs); }
.rv .rv-badge { justify-content: center; }
.rv .rv-badge .rv-swap > span { justify-content: center; }

/* Stars, drawn in CSS: a star-shaped clip on each span; an inner bar fills it, whole or in part */
.rv .rv-stars { display: inline-flex; flex: none; gap: 0.15rem; }
.rv .rv-star {
  position: relative; display: block; flex: none; width: 1rem; height: 1rem;
  background: var(--color-rule);
  clip-path: polygon(50% 2%, 63% 37%, 100% 39%, 71% 62%, 81% 98%, 50% 77%, 19% 98%, 29% 62%, 0% 39%, 37% 37%);
}
.rv .rv-star > i { position: absolute; top: 0; bottom: 0; left: 0; background: var(--color-forest); transition: width var(--dur-long) var(--ease-out); }

/* ---------- Klus klaar: the jobs, each with its status in a small select ---------- */
/* The menu of a select hangs over the next row, so the list and its rows do not clip */
.rv .rv-jobs, .rv .rv-job { overflow: visible; }
.rv .rv-jobs > .ui-row:first-child { border-radius: calc(var(--radius-md) - 1px) calc(var(--radius-md) - 1px) 0 0; }
/* Narrow: the status under the text (never squeezing it); wide: on the right */
.rv .rv-job {
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "i t" ". s";
  align-items: center; column-gap: var(--space-xs); row-gap: var(--space-2xs);
}
.rv .rv-job > .ui-row-ico { grid-area: i; }
.rv .rv-job > .ui-row-txt { grid-area: t; }
.rv .rv-job > .rv-pick { grid-area: s; justify-self: start; }
.rv .rv-pick { position: relative; display: inline-flex; }
.rv .rv-status {
  display: inline-flex; align-items: center; justify-content: space-between; gap: var(--space-2xs);
  min-width: 6.5rem; min-height: 1.5rem; padding: 0 var(--space-2xs) 0 var(--space-xs);
  border: 1px solid var(--color-rule); border-radius: var(--radius-sm); background: var(--color-surface);
  color: var(--color-muted); font-size: var(--text-ui-s); font-weight: 700; white-space: nowrap;
  transition: box-shadow var(--dur-short) var(--ease-out);
}
.rv .rv-caret { width: 0.8rem; height: 0.8rem; }
.rv .rv-status--busy { border-color: var(--color-forest); color: var(--color-forest); }
.rv .rv-status--ok { border-color: var(--color-sage); background: var(--color-sage); color: var(--color-ink); }
.rv .rv-status.is-open { box-shadow: 0 0 0 2px var(--color-sage); }
/* Its menu: open only while the cursor picks, over the row under it */
.rv .rv-menu {
  position: absolute; left: 0; top: calc(100% + var(--space-2xs)); z-index: 3;
  display: none; min-width: 100%; padding: var(--space-3xs);
  border: 1px solid var(--color-rule); border-radius: var(--radius-md); background: var(--color-surface); box-shadow: var(--shadow-whisper);
}
.rv .rv-menu.is-open { display: grid; }
.rv .rv-opt {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-xs);
  min-height: 1.6rem; padding: 0 var(--space-xs); border-radius: var(--radius-sm);
  font-size: var(--text-ui-s); font-weight: 650; white-space: nowrap;
  transition: background-color var(--dur-micro) var(--ease-out);
}
.rv .rv-opt .ico { color: var(--color-forest); }
.rv .rv-opt.is-hot { background: var(--color-sage); }
.rv .rv-open { animation: sc-drop var(--dur-short) var(--ease-out) both; }
/* What the software does next: a line under the list */
.rv .rv-note { display: flex; align-items: flex-start; gap: var(--space-xs); min-height: 1.4em; color: var(--color-forest); font-size: var(--text-ui-s); font-weight: 650; }
.rv .rv-note .ico { flex: none; margin-top: 0.1rem; }

/* ---------- Twee dagen later: the planned mail and a timeline of three days ---------- */
.rv .rv-plan { gap: var(--space-sm); transition: border-color var(--dur-short) var(--ease-out); }
.rv .rv-plan.is-hot { border-color: var(--color-forest); }
/* Its head: envelope, text, status; narrow, the status sits under the text */
.rv .rv-head {
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "c t" ". b";
  align-items: center; column-gap: var(--space-xs); row-gap: var(--space-2xs);
}
.rv .rv-head > .ico-circle { grid-area: c; }
.rv .rv-head > .ui-row-txt { grid-area: t; }
.rv .rv-head > .ui-badge { grid-area: b; justify-self: start; }
/* A stop per day: "Vandaag" over today's dot, then the date and what happens. The first stop sits on the
   left edge, the last on the right one, so the line runs from dot to dot. */
.rv .rv-tl { --rv-dot: 1.75rem; --rv-tag: 1.125rem; position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xs); }
.rv .rv-stop { position: relative; z-index: 1; display: grid; justify-items: center; align-content: start; gap: var(--space-3xs); min-width: 0; text-align: center; }
.rv .rv-stop:first-of-type { justify-items: start; text-align: left; }
.rv .rv-stop:last-of-type { justify-items: end; text-align: right; }
/* The narrowest phones: the three stops need the room of the gaps, or the last one sticks out of the timeline */
@container (max-width: 19.99rem) { .rv .rv-tl { gap: 0; } }
.rv .rv-today {
  visibility: hidden; height: var(--rv-tag); padding: 0 var(--space-2xs); border-radius: var(--radius-sm);
  background: var(--color-sage); color: var(--color-ink);
  font-size: var(--text-ui-s); font-weight: 700; line-height: var(--rv-tag); white-space: nowrap;
}
.rv .rv-stop.is-now .rv-today { visibility: visible; }
.rv .rv-dot {
  display: grid; place-items: center; width: var(--rv-dot); height: var(--rv-dot); margin-block: var(--space-3xs);
  border: 2px solid var(--color-rule); border-radius: 50%; background: var(--color-surface); color: var(--color-muted);
  transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out);
}
.rv .rv-stop.is-on .rv-dot { border-color: var(--color-forest); background: var(--color-forest); color: var(--color-on-forest); }
.rv .rv-stop.is-now .rv-dot { box-shadow: 0 0 0 3px var(--color-surface), 0 0 0 5px var(--color-forest); }
.rv .rv-date { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rv .rv-stop-l { font-size: var(--text-ui-s); color: var(--color-muted); overflow-wrap: break-word; }
/* The line from the first dot to the last, behind them; it fills up to today */
.rv .rv-tl-line {
  position: absolute; left: calc(var(--rv-dot) / 2); right: calc(var(--rv-dot) / 2);
  top: calc(var(--rv-tag) + 2 * var(--space-3xs) + var(--rv-dot) / 2 - 1px); height: 2px; background: var(--color-rule);
}
.rv .rv-tl-line i {
  position: absolute; inset: 0; background: var(--color-forest);
  transform-origin: left center; transform: scaleX(var(--rv-progress, 0)); transition: transform var(--dur-process) var(--ease-in-out);
}

/* ---------- Vraag: the mail to the client, beside the list of requests ---------- */
/* A request (a plain row: it wraps rather than squeezes): client and status on one line, the job under
   them; the statuses keep one width */
.rv .rv-req { row-gap: 0; }
.rv .rv-req > .ui-badge { min-width: 7.25rem; justify-content: center; }
.rv .rv-req > .ui-row-s { flex-basis: 100%; }
.rv .rv-meta { min-width: 0; }
.rv .rv-meta .ui-row-s { overflow-wrap: anywhere; }
/* The typed text sits on a hidden copy of itself, so the mail keeps its height while it types */
.rv .rv-text { display: grid; }
.rv .rv-text > span { grid-area: 1 / 1; }
.rv .rv-ghost { visibility: hidden; }
.rv .rv-rate { display: grid; gap: var(--space-2xs); justify-items: start; }
.rv .rv-q { font-size: var(--text-ui-s); font-weight: 650; color: var(--color-muted); }
.rv .rv-rate .rv-stars { gap: 0.3rem; }
.rv .rv-rate .rv-star { width: 1.5rem; height: 1.5rem; background: var(--color-sage-2); }
.rv .rv-cta { justify-self: start; }
.rv .rv-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs); padding-top: var(--space-xs); border-top: 1px solid var(--color-rule); }

/* ---------- Review: the score beside the reviews (above them on a phone) ---------- */
.rv .rv-revs { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-sm); align-items: start; }
/* The score: narrow, the big average left of its stars and the number of reviews; wide, all under each other */
.rv .rv-sum {
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "k k" "a s" "a t";
  align-items: center; column-gap: var(--space-sm); row-gap: var(--space-3xs); min-width: 0;
  padding: var(--space-xs) var(--space-sm);
  border: 1px solid var(--color-rule); border-radius: var(--radius-md); background: var(--color-paper);
}
.rv .rv-sum > .ui-k { grid-area: k; }
.rv .rv-sum > .rv-stars { grid-area: s; }
.rv .rv-avg { grid-area: a; font-family: var(--font-display); font-weight: 600; font-size: 2rem; line-height: 1.05; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rv .rv-tot { grid-area: t; }
.rv .rv-tot b { display: inline-block; color: var(--color-ink); font-weight: 700; font-variant-numeric: tabular-nums; }
/* The reviews: one card each, the new one on paper. While it comes in, the older ones make way. */
.rv .rv-reviews { display: grid; gap: var(--space-xs); }
.rv .rv-review {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3xs); min-width: 0;
  padding: var(--space-xs) var(--space-sm);
  border: 1px solid var(--color-rule); border-radius: var(--radius-md); background: var(--color-surface);
}
.rv .rv-review.is-new { position: relative; z-index: 1; background: var(--color-paper); }
.rv .rv-shift { transition: transform var(--dur-enter) var(--ease-out); }
.rv .rv-review-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-xs); min-height: 1.35rem; }
.rv .rv-quote { font-weight: 650; overflow-wrap: break-word; }

@container (min-width: 34rem) {
  .rv .rv-job { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "i t s"; }
  .rv .rv-job > .rv-pick { justify-self: end; }
  .rv .rv-menu { left: auto; right: 0; }
  .rv .rv-head { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "c t b"; }
  .rv .rv-head > .ui-badge { justify-self: end; }
  .rv .rv-revs { grid-template-columns: minmax(0, 10.5rem) minmax(0, 1fr); }
  .rv .rv-sum { grid-template-columns: minmax(0, 1fr); grid-template-areas: "k" "a" "s" "t"; justify-items: start; row-gap: var(--space-2xs); padding: var(--space-sm); }
}
/* The requests beside the mail only where both fit; a smaller stage shows the mail alone */
@container (max-width: 41.99rem) {
  .rv .rv-split { grid-template-columns: minmax(0, 1fr); }
  .rv .rv-split > .ui-hide-narrow { display: none; }
}
@container (min-width: 42rem) {
  .rv .rv-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
}

/* ---------- Veilig inloggen en beheren (product "secure"): the states its director switches ---------- */

/* Where the cursor rests after a click: invisible points, so what changed stays readable */
.sec .ui-field, .sec .sec-url, .sec .sec-state, .sec .sec-pill { position: relative; }
.sec .sec-rest, .sec .sec-hit { position: absolute; width: 2px; height: 2px; pointer-events: none; }
.sec .sec-hit { right: 0.75rem; bottom: 1rem; }
.sec .sec-rest--addr { left: 1.1rem; top: calc(100% + 0.3rem); }
.sec .sec-rest--state { left: calc(100% + 0.45rem); top: 50%; }
.sec .sec-rest--pill { left: calc(100% + 0.5rem); top: 50%; }
.sec .sec-rest--act { position: static; display: block; margin-left: var(--space-2xs); }

/* Buttons the cursor pressed: quiet, with a check */
.sec .ui-btn { gap: var(--space-2xs); transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.sec .ui-btn.sec-quiet { background: var(--color-sage); border-color: var(--color-sage); color: var(--color-ink); }
.sec-new { animation: sec-flash var(--dur-process) var(--ease-out); }
.sec .ui-row.sec-in { animation: sc-slide var(--dur-enter) var(--ease-out) both, sec-flash var(--dur-process) var(--ease-out); }
@keyframes sec-flash { from { background-color: var(--color-sage); } }

/* The address line: one field with the lock (no browser chrome), and the state of the connection */
.sec.ui--site { grid-template-rows: auto auto 1fr; }
.sec--login { display: grid; grid-template-rows: auto 1fr; }
.sec-addr {
  display: grid; justify-items: start; gap: var(--space-2xs);
  padding: var(--space-xs) var(--space-sm);
  border-bottom: 1px solid var(--color-rule); background: var(--color-paper);
}
.sec-url {
  display: flex; align-items: center; gap: var(--space-2xs);
  width: 100%; min-width: 0; min-height: 1.9rem; padding: 0 var(--space-sm);
  border: 1px solid var(--color-rule); border-radius: 999px; background: var(--color-surface);
  font-size: var(--text-ui-s);
}
.sec-lock { display: grid; color: var(--color-muted); }
.sec-lock.is-ok { color: var(--color-forest); }
.sec-url-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sec-proto { color: var(--color-muted); border-radius: 2px; }
.sec-proto.is-ok { color: var(--color-forest); font-weight: 700; }
.sec-state {
  display: inline-flex; align-items: center; gap: var(--space-2xs);
  min-height: 1.5rem; padding: 0 var(--space-xs);
  border: 1px solid var(--color-rule); border-radius: var(--radius-sm); background: var(--color-surface);
  font-size: var(--text-ui-s); font-weight: 700; color: var(--color-muted); white-space: nowrap;
}
.sec-state.is-ok { background: var(--color-sage); border-color: var(--color-sage); color: var(--color-ink); }
.sec-state.is-ok .ico { color: var(--color-forest); }

/* Step 1: the page with its form (wider screens), and the admin panel with the certificate */
.sec-k0 { display: grid; gap: var(--space-md); align-items: start; }
.sec-page { gap: var(--space-xs); align-content: start; }
.sec-page .ui-field { margin-top: var(--space-xs); }
.sec-note { display: flex; align-items: center; gap: var(--space-2xs); font-size: var(--text-ui-s); font-weight: 650; color: var(--color-muted); }
.sec-note.is-ok { color: var(--color-forest); }
.sec-panel { gap: var(--space-sm); }
.sec .sec-panel > .ui-row { padding: 0; }
.sec-prog { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--space-2xs) var(--space-xs); }
.sec-prog .ui-k { grid-column: 1 / -1; }
.sec-meter i { width: 100%; transform: scaleX(0); }
.sec-meter i.is-run { transform: none; animation: sc-grow-x var(--dur-travel) linear var(--dur-short) both; }
.sec-pct { min-width: 2.75rem; text-align: right; font-size: var(--text-ui-s); font-weight: 700; font-variant-numeric: tabular-nums; }
.sec-panel > .ui-btn { justify-self: start; }

/* Step 2: the login form, and the phone that peeks in from the bottom with the code */
.sec-k1 { display: grid; gap: var(--space-sm); padding-bottom: 0; }
.sec-login { gap: var(--space-xs); }
.sec .ui-v { transition: border-color var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out); }
.sec .ui-v.is-ph { color: var(--color-muted); font-weight: 400; }
.sec .ui-v.is-active { border-color: var(--color-forest); box-shadow: inset 0 0 0 1px var(--color-forest); background: var(--color-surface); }
.sec-dots { letter-spacing: 0.12em; }
/* Button and result line stacked, so a longer result never wraps onto a new line mid-play */
.sec-login-foot { display: grid; justify-items: start; gap: var(--space-xs); margin-top: var(--space-2xs); }
.sec-result { display: inline-flex; align-items: center; gap: var(--space-2xs); min-height: 1.6rem; padding: 0 var(--space-xs); border-radius: var(--radius-sm); font-size: var(--text-ui-s); font-weight: 650; color: var(--color-muted); }
.sec-result.is-ok { background: var(--color-sage); color: var(--color-ink); font-weight: 700; }
.sec-result.is-ok .ico { color: var(--color-forest); }
.sec-phone {
  display: grid; align-content: start; gap: var(--space-xs);
  width: 100%; max-width: 19rem; justify-self: center;
  padding: var(--space-2xs) var(--space-xs) var(--space-sm);
  border: 5px solid var(--color-ink); border-bottom: 0; border-radius: 1.6rem 1.6rem 0 0;
  background: var(--color-forest-deep); color: var(--color-on-forest);
}
.sec-ph-status {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  min-height: 1.4rem; padding: 0 var(--space-xs);
  font-size: var(--text-ui-s); font-weight: 700; font-variant-numeric: tabular-nums;
}
.sec-ph-status .ui-island { width: 3.5rem; height: 1rem; }
.sec-ph-time, .sec-ph-date { display: none; text-align: center; }
.sec-notif {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.1rem var(--space-xs);
  padding: var(--space-xs); border-radius: 0.9rem;
  background: var(--color-surface); color: var(--color-ink);
}
.sec-notif.is-wait { visibility: hidden; }
.sec-notif-ic { grid-row: span 2; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 0.5rem; background: var(--color-forest); color: var(--color-on-forest); }
.sec-notif-t { font-size: var(--text-ui-s); font-weight: 700; }
.sec-notif-when { font-size: var(--text-ui-s); color: var(--color-muted); }
.sec-notif-b { grid-column: 2 / -1; font-size: var(--text-ui-s); }
.sec-notif-b b { font-size: var(--text-ui); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Step 3: the role chips, what the role may see, the request */
.sec .sec-req > .ui-row { padding: 0; }
.sec-req .ui-badge { min-width: 6.25rem; justify-content: center; }
.sec-team { gap: var(--space-2xs); align-content: start; }
.sec-roles .chip { border-color: var(--color-rule); color: var(--color-ink); transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out); }
/* Chosen: the same box size as the others (inner line instead of a thicker border) */
.sec-roles .chip.is-on { border-color: var(--color-forest); box-shadow: inset 0 0 0 1px var(--color-forest); background: var(--color-sage); }
.sec-perms { display: grid; border-top: 1px solid var(--color-rule); }
.sec-perm { display: flex; justify-content: space-between; gap: var(--space-xs); padding: var(--space-2xs) 0; border-bottom: 1px solid var(--color-rule); font-size: var(--text-ui-s); }
.sec-perm-k { color: var(--color-muted); }
.sec-perm-v { font-weight: 700; text-align: right; white-space: nowrap; }
.sec-perm-v.is-none, .sec-perm-v.is-no { color: var(--color-muted); font-weight: 600; }
.sec .ui-banner.is-ready { border-style: solid; }

/* Step 4: the status, the back-ups that count, the update that goes live */
.sec-status { display: flex; }
.sec-pill {
  display: inline-flex; align-items: center; gap: var(--space-2xs);
  min-height: 1.75rem; padding: 0 var(--space-sm);
  border: 1px solid var(--color-rule); border-radius: var(--radius-sm); background: var(--color-surface);
  font-size: var(--text-ui-s); font-weight: 700; color: var(--color-muted);
}
.sec-pill.is-ok { background: var(--color-sage); border-color: var(--color-sage); color: var(--color-ink); }
.sec-pill.is-ok .ico { color: var(--color-forest); }
.sec-k3 { display: grid; gap: var(--space-sm); align-items: start; }
.sec-col { display: grid; gap: var(--space-2xs); min-width: 0; }
.sec-col-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3xs) var(--space-xs); min-height: 2rem; }
.sec-count { font-size: var(--text-ui-s); color: var(--color-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sec-count b { display: inline-block; color: var(--color-ink); font-weight: 700; }
.sec .ui-row.sec-off { display: none; }
.sec .ui-row .ui-row-s { font-variant-numeric: tabular-nums; }
/* Badges of one width per list, so a badge that changes does not make the text wrap again */
.sec-bk .ui-badge { min-width: 4.5rem; justify-content: center; }
.sec-up .ui-badge { min-width: 6.5rem; justify-content: center; }

/* Narrow stage: two back-ups and one update are enough */
@container (max-width: 33.99rem) {
  .sec .sec-rest--addr { display: none; }
  .sec .site-head { gap: var(--space-xs); }
  .sec .site-head .ui-btn { padding-inline: var(--space-xs); }
  /* The request: its badge on a line of its own, so the title keeps the width it needs */
  .sec .sec-req > .ui-row { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: var(--space-2xs); }
  .sec .sec-req > .ui-row > .ui-row-main { width: auto; }
  .sec .sec-req > .ui-row > .ui-badge { justify-self: start; margin-left: 2rem; }
  .sec-bk .ui-row:not(.sec-off) ~ .ui-row:not(.sec-off) ~ .ui-row:not(.sec-off) { display: none; }
  .sec .sec-u2 { display: none; }
}
/* English only (secure.js): on the narrowest stage the path leaves the address, so the longer domain stays whole */
@container (max-width: 18.7rem) { .sec .sec-path { display: none; } }

/* Wider stage: page and panel side by side, the phone beside the form, the two lists side by side */
@container (min-width: 34rem) {
  .sec-addr { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .sec .sec-rest--state { display: none; }
  .sec-k0 { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--space-lg); }
  .sec-k1 { grid-template-columns: minmax(0, 1fr) 12.5rem; align-items: stretch; gap: var(--space-lg); }
  .sec-login { margin-bottom: var(--space-md); }
  .sec-phone { align-self: end; min-height: 15rem; margin-top: var(--space-xs); padding-inline: var(--space-xs); }
  .sec-ph-status .ui-clock { visibility: hidden; }
  .sec-ph-time { display: block; margin-top: var(--space-xs); font-family: var(--font-display); font-size: 2.6rem; font-weight: 600; line-height: 1; }
  .sec-ph-date { display: block; margin-top: calc(-1 * var(--space-xs)); font-size: var(--text-ui-s); color: var(--color-on-forest-2); }
  .sec-k2 { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.3fr); }
  .sec-k3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); }
}

/* ---------- Van bestelling naar verzendlabel (products/ship.js) ---------- */

/* A line under the list: where the data comes from, or what has happened */
.sp-note { display: flex; align-items: center; gap: var(--space-xs); color: var(--color-forest); font-size: var(--text-ui-s); font-weight: 650; }
.sp-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2xs) var(--space-xs); }

/* An order and what the courier sent back: the tracking code beside its status */
.sp-right { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: var(--space-2xs) var(--space-xs); }
.sp-code { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
/* A status and a typed code keep one width while they change: their texts share one cell */
.sp-status, .sp-type { display: inline-grid; justify-items: center; }
.sp-status > span, .sp-type > span { grid-area: 1 / 1; }
.sp-type { justify-items: start; }
/* The banner of step 3: its texts share one cell, so it keeps one height while it changes */
.sp-swap { display: grid; }
.sp-swap > span { grid-area: 1 / 1; }
/* Every tracking code is equally wide, so all rows put their status beside the text or all under it */
.sp-mailed { display: flex; align-items: center; gap: var(--space-3xs); font-variant-numeric: tabular-nums; }

/* The address: the field being typed in is lit */
.sp .ui-v { transition: border-color var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out); }
.sp .ui-field.is-edit .ui-v { border-color: var(--color-forest); background: var(--color-surface); box-shadow: 0 0 0 2px var(--color-sage); }

/* The printed label: a black frame, a bar code, the tracking code and the address */
.sp-label { gap: var(--space-3xs); max-width: 15rem; border: 2px solid var(--color-ink); border-radius: var(--radius-sm); font-size: var(--text-ui-s); }
.sp-label-h { font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.sp-bars {
  display: block; height: 2.2rem; margin-block: var(--space-2xs);
  background: repeating-linear-gradient(90deg, var(--color-ink) 0 2px, transparent 2px 4px, var(--color-ink) 4px 5px, transparent 5px 8px, var(--color-ink) 8px 11px, transparent 11px 13px);
}

/* ---------- Product: Aanvragen via je site (site.js) ---------- */

/* Aanbod: the card under the cursor, then the chosen one */
.site-item { transition: border-color var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out); }
.site-item.is-hover { border-color: var(--color-muted); background: var(--color-paper); }
.site-item .ui-btn { transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }

/* Details: stepper with a running total, a choice, a field that gets typed in */
.site-qty { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs); }
.site-qty .ui-k { margin-left: var(--space-xs); }
.site-total, .site-step-v, .site-val { font-variant-numeric: tabular-nums; }
.site-total { font-weight: 700; min-width: 3.5rem; }
.site-step-b { border-radius: var(--radius-sm); transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out); }
.site-step-b.is-press { background: var(--color-paper-2); color: var(--color-forest); }
.site-radio span { transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out); }
/* Chosen: the same box size as the others (inner line instead of a thicker border) */
.site-radio .is-on { border: 1px solid var(--color-forest); box-shadow: inset 0 0 0 1px var(--color-forest); background: var(--color-sage); color: var(--color-ink); }
.site-form .ui-v { transition: border-color var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out); }
.site-form .ui-v.is-ph { color: var(--color-muted); font-weight: 400; background: var(--color-surface); }
.site-form .ui-v.is-active { border-color: var(--color-forest); box-shadow: inset 0 0 0 1px var(--color-forest); background: var(--color-surface); }

/* Bevestiging: the mail line turns into "sent" */
.site-mail { display: inline-flex; align-items: center; gap: var(--space-2xs); color: var(--color-muted); }
.site-mail.is-ok { color: var(--color-forest); font-weight: 650; }
.site-val { color: var(--color-ink); font-weight: 600; }

/* Opvolgen: the opened row */
.site-inbox .ui-row { transition: background-color var(--dur-short) var(--ease-out); }

/* ---------- Gericht bijbestellen (products/stock.js) ---------- */

/* Status badges keep one width, so a row that flips to "Onder minimum" does not shift its meter */
.ui-row--stock .ui-badge { min-width: 6.9rem; justify-content: center; }
/* Phone: name and status on one line, the meter with its counting number under them */
@container (max-width: 33.99rem) {
  .ui-row--stock { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "n b" "m q"; }
  .ui-row--stock > .ui-row-t { grid-area: n; }
  .ui-row--stock > .ui-badge { grid-area: b; }
  .ui-row--stock > .ui-meter { grid-area: m; align-self: center; }
  .ui-row--stock > .ui-num { grid-area: q; display: block; min-width: 1.5rem; text-align: right; }
}
.st-flip { animation: sc-pop var(--dur-enter) var(--ease-out) both; }

/* The quantity of an order line: a small box that a colleague can type into, left-aligned like a real input */
.st-qty { display: inline-flex; align-items: center; gap: var(--space-2xs); font-weight: 650; white-space: nowrap; }
.st-qty-n {
  display: inline-block; min-width: 2.5rem; padding: 0 0.3rem;
  border: 1px solid var(--color-rule); border-radius: var(--radius-sm); background: var(--color-paper);
  text-align: left; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.5;
  transition: border-color var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out);
}
.st-qty-n.is-edit { border-color: var(--color-forest); background: var(--color-surface); box-shadow: 0 0 0 2px var(--color-sage); }
.st-sum { background: var(--color-paper); }
.st-sum .ui-row-t { font-weight: 700; }

/* The notice and the proposal share one spot: the notice makes way when the cursor opens it */
.st-stack { display: grid; min-width: 0; }
.st-stack > * { grid-area: 1 / 1; align-self: start; }
.st-note { border-color: var(--color-forest); }
.st-note .ui-actions { padding-left: 2rem; }

/* A banner whose two texts share one cell, so it keeps its height when the text changes */
.st-swap { display: grid; }
.st-swap > span { grid-area: 1 / 1; }

/* The order: times next to the track, and a small road on which the truck sets off */
.st-order .ui-track li { min-width: 0; }
.st-step { min-width: 0; }
.st-time { margin-left: auto; padding-left: var(--space-xs); font-size: var(--text-ui-s); font-weight: 400; color: var(--color-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.st-order .ui-track li.is-on .ui-track-dot { animation: st-dot var(--dur-long) var(--ease-out) both; }
@keyframes st-dot { 50% { transform: scale(1.5); } }
.st-ride { display: flex; align-items: center; gap: var(--space-xs); margin-top: var(--space-xs); color: var(--color-forest); }
.st-road { position: relative; flex: 1; min-width: 0; height: 1.5rem; }
.st-road::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dashed var(--color-rule); transform: translateY(-50%); }
.st-road-fill { position: absolute; left: 0; top: 50%; width: 45%; height: 2px; background: var(--color-forest); transform: translateY(-50%) scaleX(0); transform-origin: left center; }
/* The truck rides on a layer as wide as the road, so a percentage in translateX is a share of the road:
   it moves on the compositor (transform only), not by changing its position in the layout. */
.st-run { position: absolute; inset: 0; pointer-events: none; }
.st-truck {
  position: absolute; top: 50%; left: 0; display: grid; place-items: center;
  width: 1.5rem; height: 1.5rem; margin-top: -0.75rem; border-radius: 50%;
  background: var(--color-sage); color: var(--color-forest);
}
.st-ride.is-go .st-road-fill { transform: translateY(-50%) scaleX(1); animation: st-road var(--dur-travel) var(--ease-in-out) both; }
.st-ride.is-go .st-run { transform: translateX(calc(45% - 0.75rem)); animation: st-truck var(--dur-travel) var(--ease-in-out) both; }
@keyframes st-road { from { transform: translateY(-50%) scaleX(0); } }
@keyframes st-truck { from { transform: translateX(0); } }

/* ---------- The linked programs: Webshop -> Voorraad (this app) -> Boekhouding ---------- */
.st-links { display: flex; align-items: center; gap: var(--space-2xs); min-width: 0; }
.st-sys {
  display: inline-flex; align-items: center; gap: var(--space-2xs); flex: none;
  min-height: 1.75rem; padding: 0 var(--space-xs);
  border: 1px solid var(--color-rule); border-radius: 999px; background: var(--color-surface);
  font-size: var(--text-ui-s); font-weight: 700; color: var(--color-muted); white-space: nowrap;
  transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out);
}
.st-sys.is-on { border-color: var(--color-forest); background: var(--color-sage); color: var(--color-ink); }
.st-sys.is-on .ico { color: var(--color-forest); }
/* This app itself: always "here" */
.st-sys--here { background: var(--color-forest); border-color: var(--color-forest); color: var(--color-on-forest); }
.st-pop { animation: sc-pop var(--dur-enter) var(--ease-out) both; }
/* A link: a dashed line with an arrow head; it fills from left to right when data passes */
.st-link { position: relative; flex: 1 1 0; min-width: 0.75rem; height: 2px; margin-right: 4px; }
.st-link::before { content: ""; position: absolute; inset: 0; border-top: 2px dashed var(--color-rule); }
.st-link::after {
  content: ""; position: absolute; right: -4px; top: 50%; transform: translateY(-50%);
  border-left: 5px solid var(--color-rule); border-block: 4px solid transparent;
  transition: border-left-color var(--dur-short) var(--ease-out);
}
.st-link i { position: absolute; inset: 0; background: var(--color-forest); transform: scaleX(0); transform-origin: left center; }
.st-link.is-on i { transform: none; }
.st-link.is-on::after { border-left-color: var(--color-forest); }
.st-link.st-go i { animation: sc-grow-x var(--dur-process) var(--ease-in-out) both; }
/* Phone: this app as an icon only (the title bar already says Voorraad); very narrow: no icons on the others */
@container (max-width: 33.99rem) {
  .st-sys--here { width: 1.75rem; padding: 0; justify-content: center; }
  .st-sys--here .st-sys-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@container (max-width: 18rem) {
  .st-sys:not(.st-sys--here) .ico { display: none; }
}

/* A step name breaks between words; break-word only for a string longer than the whole line */
.st-step { overflow-wrap: break-word; }

/* ---------- Werkbonnen op de werf (product "werkbon"): the states its director switches ---------- */

/* Buttons the cursor pressed: quiet, with a check. The cursor then rests on the invisible
   point just right of the button, so the new label stays readable. */
.wb .ui-btn { position: relative; gap: var(--space-2xs); }
.wb .ui-btn.wb-quiet { background: var(--color-sage); border-color: var(--color-sage); color: var(--color-ink); }
.wb .wb-rest { position: absolute; left: calc(100% + 0.45rem); top: 50%; width: 2px; height: 2px; pointer-events: none; }
.wb .wb-hide { display: none; }

/* Step 1: the job that waits, the empty slot it goes into, the hours per crew */
.wb .wb-queue {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs);
  padding: var(--space-2xs) var(--space-2xs) var(--space-2xs) var(--space-xs);
  border: 1px dashed var(--color-rule); border-radius: var(--radius-sm); background: var(--color-paper);
}
.wb .wb-q-label { display: inline-flex; align-items: center; gap: var(--space-2xs); font-size: var(--text-ui-s); font-weight: 700; color: var(--color-muted); white-space: nowrap; }
.wb .wb-q-label .ico { color: var(--color-forest); }
.wb .wb-chip {
  display: inline-flex; align-items: center; gap: var(--space-2xs);
  min-height: 1.75rem; padding: 0 var(--space-sm); border-radius: 3px;
  background: var(--color-forest); color: var(--color-on-forest);
  font-size: var(--text-ui-s); font-weight: 700; white-space: nowrap;
}
.wb .wb-send { display: flex; justify-content: flex-end; }
.wb .tl-job.wb-slot { background: transparent; border: 1px dashed var(--color-forest); color: transparent; }
.wb .tl-job.is-placed { animation: sc-pop var(--dur-enter) var(--ease-out) both; }
.wb .tl-name { display: flex; align-items: baseline; gap: var(--space-xs); }
.wb .wb-hrs { font-weight: 600; color: var(--color-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
@container (min-width: 34rem) {
  .wb .tl-name { flex-direction: column; gap: 0; }
}

/* Steps 2 and 3 (the phone): ticks only on a ticked box, empty photo slots, the signature */
.wb .wb-prog { font-variant-numeric: tabular-nums; }
.wb .wb-prog b { color: var(--color-ink); font-weight: 700; }
.wb .box-tick { visibility: hidden; }
.wb .box.is-on .box-tick { visibility: visible; animation: sc-tick var(--dur-short) var(--ease-out) both; }
.wb .photo.wb-slot { background: transparent; border: 1.5px dashed var(--color-forest); }
.wb .sig { position: relative; }
.wb .sig-svg path { stroke-dashoffset: 1; }
.wb .sig.is-signed .sig-svg path { stroke-dashoffset: 0; transition: stroke-dashoffset var(--dur-process) var(--ease-in-out); }
/* The start and end of the drawn line (viewBox 200 x 50 at 2.75rem high: 94 units = 5.17rem from the middle) */
.wb .wb-pen { position: absolute; bottom: 0.95rem; width: 2px; height: 2px; }
.wb .wb-pen--a { left: calc(50% - 5.17rem); }
.wb .wb-pen--b { left: calc(50% + 5.17rem); }

/* Step 4: the row that just came in lights up once */
.wb .ui-row > .ui-actions { min-height: 2rem; }
.wb .ui-row.wb-flash { animation: wb-flash var(--dur-process) var(--ease-out); }
@keyframes wb-flash { from { background-color: var(--color-sage); } }
