/* The controls every page is made of, in the new look (docs/agents/portal-design.md, « The
   controls »): buttons and round buttons, cards (SKI-1278); fields, tick boxes and radios, the
   filters as chips, the state pills and chips, the messages, the menu, the dialog and the
   lightbox, the toasts, the pager and the in-list empty (SKI-1279). Every value reads a variable
   of css/tokens.css but the select's caret; nothing moves. The dialog, the lightbox, the menu
   and the toasts are drawn by portal.js: their classes and attributes are its hooks. */

/* ── buttons ───────────────────────────────────────────────
   SKI-1278; components/01-buttons: a pill 44 high (36 small), a Label, a line icon of 18 in the
   words' colour. The main button (.primary) is ink with white words; a quiet one (.btn, .ghost)
   is paper with the pill's edge and ink words; no button is red (.danger is the main one). Under
   the pointer the Lift shadow, without a rise; pressed, 0.97 of its size; from the keyboard a 2px
   ink ring 2px away; disabled, muted words on oat. Nothing moves in between. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--spacing-control);
  padding: 0 20px;
  border: 1px solid var(--color-edge-pill);
  border-radius: var(--radius-pill);
  background: var(--color-paper);
  color: var(--color-ink);
  font: var(--font-weight-medium) var(--text-label) / var(--leading-label) var(--font-site);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn .ph,
.btn .ph-duotone {
  width: 18px;
  height: 18px;
}
.btn.primary,
.btn.danger {
  border-color: var(--color-ink);
  background: var(--color-ink);
  color: var(--color-paper);
}
.btn.sm {
  height: var(--spacing-control-small);
  padding: 0 14px;
}
/* On a phone a small button keeps a touch area of 44. */
@media (pointer: coarse) {
  .btn.sm {
    position: relative;
  }
  .btn.sm::after {
    content: "";
    position: absolute;
    inset: -5px 0;
  }
}
@media (hover: hover) {
  .btn:hover {
    box-shadow: var(--shadow-lift);
  }
}
.btn:active {
  box-shadow: none;
  transform: scale(0.97);
}
.btn:focus-visible {
  outline: 2px solid var(--color-ink);
  outline-offset: 2px;
}
.btn[disabled] {
  border-color: var(--color-oat);
  background: var(--color-oat);
  color: var(--color-muted);
  box-shadow: none;
  transform: none;
  cursor: default;
}

/* A round button (SKI-1278): paper with the pill's edge, a line icon of 18, 36 across; under the
   pointer its fill goes to rose's soft, it never lifts. */
.iconbtn {
  display: grid;
  place-items: center;
  flex: none;
  width: var(--spacing-control-small);
  height: var(--spacing-control-small);
  padding: 0;
  border: 1px solid var(--color-edge-pill);
  border-radius: var(--radius-pill);
  background: var(--color-paper);
  color: var(--color-ink);
  cursor: pointer;
}
.iconbtn .ph {
  width: 18px;
  height: 18px;
}
@media (hover: hover) {
  .iconbtn:hover {
    background: var(--color-rose-soft);
  }
}
.iconbtn:focus-visible {
  outline: 2px solid var(--color-ink);
  outline-offset: 2px;
}
/* On a phone a round button keeps a touch area of 44 by 44 (spec P15), around the same 36. */
@media (pointer: coarse) {
  .iconbtn {
    position: relative;
  }
  .iconbtn::after {
    content: "";
    position: absolute;
    inset: -5px;
  }
}

/* ── cards ─────────────────────────────────────────────────
   A card: paper, corners of 24, the thin edge, no shadow (SKI-1278). */
.card {
  background: var(--color-paper);
  border: 1px solid var(--color-edge);
  border-radius: var(--radius-24);
}

/* ── fields (components/02-fields) ─────────────────────────
   A field to type in is found by its ink edge: a pill 48 high, paper, 1.5 of ink, 18 inside, the
   words in Body and the hint in muted. From the keyboard a 2px ink ring 2px away; wrong, its edge
   turns red (the code writes no words under it); disabled, muted words on oat with no edge. A
   field of several lines has corners of 16. */
.input {
  height: var(--spacing-field);
  padding: 0 18px;
  border: 1.5px solid var(--color-ink);
  border-radius: var(--radius-pill);
  background: var(--color-paper);
  color: var(--color-ink);
  font: var(--font-weight-regular) var(--text-body) / var(--leading-body) var(--font-site);
  outline: none;
}
.input::placeholder {
  color: var(--color-muted);
  opacity: 1;
}
.input:focus-visible {
  outline: 2px solid var(--color-ink);
  outline-offset: 2px;
}
.input.invalid {
  border-color: var(--color-red);
}
.input:disabled {
  border-color: var(--color-oat);
  background-color: var(--color-oat);
  color: var(--color-muted);
}
textarea.input {
  height: auto;
  min-height: var(--spacing-field);
  padding: 13px 16px;
  border-radius: var(--radius-16);
}
/* A select reads as the fields, with its caret redrawn in ink, set in from the round edge.
   Phosphor's caret-down in a data URL, which cannot read a variable: its ink (--color-ink,
   #1b1a21) is the one colour written by hand outside css/tokens.css (docs/agents/portal-design.md,
   « Only the variables »). */
select.input {
  appearance: none;
  padding-right: 46px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%231b1a21' d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 16px;
  cursor: pointer;
}
/* The quiet select (portalPerformance/wide, portalTeamActivity/activityWide): a filter picked from
   a list, drawn as a quiet pill 36 high, paper with the pill's edge, a Label in ink, the same caret
   at 14, 14 from the round edge and 8 after the words. */
select.input.quiet {
  height: var(--spacing-control-small);
  padding: 0 36px 0 14px;
  border: 1px solid var(--color-edge-pill);
  font: var(--font-weight-medium) var(--text-label) / var(--leading-label) var(--font-site);
  background-position: right 14px center;
  background-size: 14px;
}
/* On a touch screen it is 44 high (a select takes no touch area of its own) and its words are the
   field's Body of 16, which keeps Safari on iOS from zooming the page as it takes the focus. */
@media (pointer: coarse) {
  select.input.quiet {
    height: var(--spacing-control);
    font: var(--font-weight-regular) var(--text-body) / var(--leading-body) var(--font-site);
  }
}
/* A field's label: a Label in ink, above it. */
.field {
  display: block;
  margin-bottom: 16px;
}
.field > span {
  display: block;
  margin-bottom: 8px;
  color: var(--color-ink);
  font-size: var(--text-label);
  font-weight: var(--font-weight-medium);
  line-height: var(--leading-label);
}
.field .input {
  width: 100%;
}
/* The search field: 44 high, its line icon of 18 in ink inside the pill (portal/homeWide). */
.search {
  position: relative;
}
.search .ph {
  position: absolute;
  top: 50%;
  left: 18px;
  width: 18px;
  height: 18px;
  color: var(--color-ink);
  transform: translateY(-50%);
  pointer-events: none;
}
.search .input {
  width: 280px;
  height: var(--spacing-control);
  padding-left: 46px;
}
@media (max-width: 900px) {
  .search .input {
    width: 100%;
  }
}
.relink {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  max-width: 560px;
}
.relink .input {
  flex: 1;
  height: var(--spacing-control-small);
}

/* A tick box and a radio: 20 by 20, paper with the field's ink edge; ticked, ink with a white
   tick of 14 or a white disc of 8. The tick box's corner is the one corner of 6. */
input[type="checkbox"],
input[type="radio"] {
  appearance: none;
  flex: none;
  display: inline-grid;
  place-content: center;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 1.5px solid var(--color-ink);
  background: var(--color-paper);
  vertical-align: middle;
  cursor: pointer;
}
input[type="checkbox"] {
  border-radius: var(--radius-6);
}
input[type="radio"] {
  border-radius: var(--radius-pill);
}
/* Phosphor's check, as a mask: the shape alone, painted paper. */
input[type="checkbox"]::before {
  content: "";
  width: 14px;
  height: 14px;
  background-color: var(--color-paper);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E")
    center / contain no-repeat;
  visibility: hidden;
}
input[type="checkbox"]:checked {
  background-color: var(--color-ink);
}
input[type="checkbox"]:checked::before {
  visibility: visible;
}
input[type="radio"]:checked {
  box-shadow: inset 0 0 0 4.5px var(--color-ink);
}
input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible {
  outline: 2px solid var(--color-ink);
  outline-offset: 2px;
}
input[type="checkbox"]:disabled,
input[type="radio"]:disabled {
  border-color: var(--color-oat);
  background-color: var(--color-oat);
  box-shadow: none;
  cursor: default;
}
input[type="checkbox"]:disabled::before {
  background-color: var(--color-muted);
}

/* A choice between a few answers: a row of paper cards with the thin edge, corners of 16, the
   chosen one on rose's soft; its radio, its name in a Label and its line in a Small
   (portalTeamActivity/addPersonDialog). Under the pointer a card takes the Lift shadow, as a card
   does, so that only the chosen one wears rose. */
.roles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.rolecard {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-content: start;
  align-items: start;
  column-gap: 12px;
  row-gap: 3px;
  padding: 14px 16px;
  border: 1px solid var(--color-edge);
  border-radius: var(--radius-16);
  background: var(--color-paper);
  cursor: pointer;
}
.rolecard input {
  grid-row: span 2;
  margin-top: 1px;
}
.rolecard b {
  color: var(--color-ink);
  font-size: var(--text-label);
  font-weight: var(--font-weight-medium);
  line-height: var(--leading-label);
}
.rolecard span {
  color: var(--color-muted);
  font-size: var(--text-small);
  line-height: var(--leading-small);
}
@media (hover: hover) {
  .rolecard:hover {
    box-shadow: var(--shadow-lift);
  }
}
.rolecard:has(input:checked) {
  background: var(--color-rose-soft);
}
.rolecard:has(input:checked) span {
  color: var(--color-ink-2);
}
@media (max-width: 900px) {
  .roles {
    grid-template-columns: 1fr;
  }
}

/* ── filters as chips (components/04, « Filters ») ──────────
   A filter is a row of chips that wraps, so nothing scrolls sideways: each a pill 36 high, paper
   with the pill's edge, a Label in ink 2 and its count a Small in muted; under the pointer and
   when on, rose's soft with ink words, and no tick. A chip that cannot be used (aria-disabled)
   takes the disabled look. */
.seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
}
.seg a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: var(--spacing-control-small);
  padding: 0 14px;
  border: 1px solid var(--color-edge-pill);
  border-radius: var(--radius-pill);
  background: var(--color-paper);
  color: var(--color-ink-2);
  font-size: var(--text-label);
  font-weight: var(--font-weight-medium);
  line-height: var(--leading-label);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.seg a .n {
  color: var(--color-muted);
  font-size: var(--text-small);
  font-weight: var(--font-weight-regular);
  line-height: var(--leading-small);
}
@media (hover: hover) {
  .seg a:hover {
    background: var(--color-rose-soft);
    color: var(--color-ink);
  }
}
.seg a.on {
  background: var(--color-rose-soft);
  color: var(--color-ink);
}
.seg a.on .n {
  color: var(--color-ink-2);
}
.seg a:focus-visible {
  outline: 2px solid var(--color-ink);
  outline-offset: 2px;
}
.seg a[aria-disabled="true"] {
  border-color: var(--color-oat);
  background: var(--color-oat);
  color: var(--color-muted);
  cursor: default;
}
/* On a phone a chip keeps a touch area of 44. */
@media (pointer: coarse) {
  .seg a::after {
    content: "";
    position: absolute;
    inset: -4px 0;
  }
}

/* ── a soft colour says a state (spec P16; docs/agents/portal-design.md) ──
   A state pill or chip is a badge: 22 high, a Badge in the deep of its tint. Six looks and no
   seventh: shown or done in green, waiting for the shop in butter, SkinSouk on it in sky, not
   shown on oat with a hollow ring, broken on paper with the thin edge and a red dot, new in
   rose. A problem has no fill. */
.pill,
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 9px;
  border-radius: var(--radius-pill);
  font-size: var(--text-badge);
  font-weight: var(--font-weight-bold);
  line-height: var(--leading-badge);
  white-space: nowrap;
}
.chip {
  justify-self: start;
}
.pill .ph,
.pill .ph-duotone,
.chip .ph,
.chip .ph-duotone {
  flex: none;
  width: 12px;
  height: 12px;
}
.pill.live,
.chip.ok {
  background: var(--color-green-tint);
  color: var(--color-green-deep);
}
.pill.review,
.chip.warn {
  background: var(--color-butter-tint);
  color: var(--color-butter-deep);
}
.pill.info {
  background: var(--color-sky-tint);
  color: var(--color-sky-deep);
}
.pill.oos,
.chip.muted {
  background: var(--color-oat);
  color: var(--color-ink-2);
}
.pill.dead {
  border: 1px solid var(--color-edge-pill);
  background: var(--color-paper);
  color: var(--color-ink);
}
.chip.new {
  background: var(--color-rose-tint);
  color: var(--color-rose-deep);
}
/* The ring of « not shown » and the red dot of « broken »: a mark of 7 before the words. */
.pill.oos::before,
.chip.muted::before,
.pill.dead::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: var(--radius-pill);
}
.pill.oos::before,
.chip.muted::before {
  border: 1.5px solid var(--color-unavailable);
}
.pill.dead::before {
  background: var(--color-red);
}

/* ── messages in the page (System §1, « Messages »; components/08, portalSmallPages/doorMessages)
   A row with corners of 16, its line icon of 18 and its words in a Label: it worked on green's
   tint, words and tick in green's deep; a heads-up on oat, an ink icon and ink words; something
   failed on paper with the thin edge, a red icon and ink words. */
.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 16px;
  border-radius: var(--radius-16);
  font-size: var(--text-label);
  font-weight: var(--font-weight-medium);
  line-height: var(--leading-small);
}
.notice > .ph,
.notice > .ph-duotone {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
}
.notice.ok {
  background: var(--color-green-tint);
  color: var(--color-green-deep);
}
.notice.info,
.notice.warn {
  background: var(--color-oat);
  color: var(--color-ink);
}
.notice.err {
  border: 1px solid var(--color-edge);
  background: var(--color-paper);
  color: var(--color-ink);
}
.notice.err > .ph,
.notice.err > .ph-duotone {
  color: var(--color-red);
}
.notice a {
  color: inherit;
  text-decoration: underline 1px;
  text-underline-offset: 3px;
}

/* ── the « … » menu (components/05; placed on the body by portal.js) ──
   Paper, corners of 16, the thin edge, the Float shadow, 6 inside: each line a pill 36 high (44
   to a finger), its line icon of 18 and a Label in ink 2; the line under the pointer or the
   keyboard on rose's soft in ink. A line that removes is ink like the others; the rule between
   groups is the thin edge. It shows at once. */
.menu {
  position: absolute;
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 260px;
  padding: 6px;
  border: 1px solid var(--color-edge);
  border-radius: var(--radius-16);
  background: var(--color-paper);
  box-shadow: var(--shadow-float);
}
.menu button,
.menu a[role="menuitem"] {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: var(--spacing-control-small);
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-ink-2);
  font: var(--font-weight-medium) var(--text-label) / var(--leading-label) var(--font-site);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.menu button .ph,
.menu a[role="menuitem"] .ph {
  flex: none;
  width: 18px;
  height: 18px;
}
.menu button:hover,
.menu button:focus-visible,
.menu a[role="menuitem"]:hover,
.menu a[role="menuitem"]:focus-visible {
  outline: none;
  background: var(--color-rose-soft);
  color: var(--color-ink);
}
.menu button.danger {
  color: var(--color-ink);
}
.menu hr {
  margin: 4px 0;
  border: 0;
  border-top: 1px solid var(--color-edge);
}
@media (pointer: coarse) {
  .menu button,
  .menu a[role="menuitem"] {
    min-height: var(--spacing-control);
  }
}

/* ── the dialog (components/07; drawn by portal.js) ─────────
   Over the veil, ink at 50%: paper, corners of 32, the Float shadow, 460 at most and 32 inside,
   16 from a phone's edges; its title a Heading beside its round close button, its foot a quiet
   « Annuler » and the main button. It shows and leaves at once: portal.js sets .show. */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 16px;
}
.modal-backdrop.show {
  background: var(--color-scrim);
}
.modal {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: min(460px, 100%);
  padding: 32px;
  border-radius: var(--radius-32);
  background: var(--color-paper);
  box-shadow: var(--shadow-float);
  opacity: 0;
}
.modal-backdrop.show .modal {
  opacity: 1;
}
.modal header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.modal h2 {
  color: var(--color-ink);
  font-size: var(--text-heading);
  font-weight: var(--font-weight-bold);
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-heading);
}
.modal-body > :first-child {
  margin-top: 0;
}
.modal footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
/* On a phone the two buttons take the dialog's width; when they no longer fit side by side, the
   main one sits above « Annuler ». */
@media (max-width: 600px) {
  .modal footer {
    flex-wrap: wrap-reverse;
  }
  .modal footer .btn {
    flex: 1 1 auto;
  }
}

/* ── the pictures: a zoomable picture opens the lightbox (drawn by portal.js) ──
   The dialog's frame: the product's name as a Name beside the round close button, then the
   picture on oat, corners of 16, the loading icon until it is in. */
img.zoomable {
  cursor: pointer;
}
@media (hover: hover) {
  img.zoomable:hover {
    box-shadow: var(--shadow-lift);
  }
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 16px;
}
.lightbox.show {
  background: var(--color-scrim);
}
.lightbox figure {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: min(460px, 100%);
  margin: 0;
  padding: 32px;
  border-radius: var(--radius-32);
  background: var(--color-paper);
  box-shadow: var(--shadow-float);
  opacity: 0;
}
.lightbox.show figure {
  opacity: 1;
}
.lightbox figure:focus {
  outline: none;
}
/* the name on the left, the close button on its own, never on the picture */
.lightbox header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.lightbox figcaption {
  padding-top: 7px;
  color: var(--color-ink);
  font-size: var(--text-name);
  font-weight: var(--font-weight-bold);
  line-height: var(--leading-name);
}
/* a fixed square from the first frame: the loading icon until the picture is in */
.lb-frame {
  position: relative;
  aspect-ratio: 1;
  max-height: 70vh;
  border-radius: var(--radius-16);
  background: var(--color-oat);
  overflow: hidden;
}
.lb-wait {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--color-muted);
}
.lb-wait .ph {
  width: 28px;
  height: 28px;
}
.lb-frame:not(.loading) .lb-wait {
  display: none;
}
.lb-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
}
.lb-frame.loaded img {
  opacity: 1;
}
.lb-frame.failed {
  display: grid;
  place-items: center;
  color: var(--color-muted);
}
.lb-frame.failed img {
  display: none;
}
.lb-frame.failed .ph {
  width: 40px;
  height: 40px;
}

/* ── toasts (spec P17; drawn by portal.js) ──────────────────
   A message in the page's look, floating at the bottom right: paper, the thin edge, corners of
   16, the Float shadow, the tick in green's deep or the info icon in ink, the words a Label in
   ink. It is there at once and leaves at once. */
#toasts {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  max-width: calc(100vw - 32px);
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 420px;
  padding: 13px 16px;
  border: 1px solid var(--color-edge);
  border-radius: var(--radius-16);
  background: var(--color-paper);
  color: var(--color-ink);
  font-size: var(--text-label);
  font-weight: var(--font-weight-medium);
  line-height: var(--leading-small);
  box-shadow: var(--shadow-float);
  opacity: 0;
}
.toast.show {
  opacity: 1;
}
.toast .ph-duotone {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--color-ink);
}
.toast.ok .ph-duotone {
  color: var(--color-green-deep);
}
@media (max-width: 600px) {
  #toasts {
    right: 16px;
    bottom: 16px;
  }
}

/* ── the rest of the shared pieces ────────────────────────── */
/* A page's toolbar, above its list (portal/homeWide, requestsWide, activityWide): the filters as
   chips at the left, what else it holds at the right, 16 apart, the list 24 under it. */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 24px;
}
/* A product's picture: a tile on oat with corners of 16 and no edge, the picture filling it; with
   none (.noimg, which portal.js writes too), a line icon in muted in its middle. Each page gives
   its tile its size and its icon's, and a picture with no class of its own (an <img> in a row)
   the same look beside it. */
.thumb,
.noimg,
.act-thumb {
  flex: none;
  border: 0;
  border-radius: var(--radius-16);
  background: var(--color-oat);
  object-fit: cover;
}
.noimg {
  display: grid;
  place-items: center;
  color: var(--color-muted);
}
/* Inside a list that finds nothing: a line icon of 24 in muted, a Name in ink, a Small in muted
   (portalSmallPages/emptyListWide). No character inside a list. */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 56px 24px;
  text-align: center;
}
.empty > .ph,
.empty > .ph-duotone {
  width: 24px;
  height: 24px;
  margin-bottom: 6px;
  color: var(--color-muted);
}
.empty b {
  color: var(--color-ink);
  font-size: var(--text-name);
  font-weight: var(--font-weight-bold);
  line-height: var(--leading-name);
}
.empty .muted {
  color: var(--color-muted);
  font-size: var(--text-small);
  line-height: var(--leading-small);
}
/* The pager: the count a Small in muted, « Précédent » and « Suivant » small quiet buttons with
   their carets. */
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}
.pager > .muted {
  color: var(--color-muted);
  line-height: var(--leading-small);
}
.pager .pages {
  display: flex;
  gap: 8px;
}
/* A quiet link: a Small in muted after its line icon of 14, underlined under the pointer. */
.quietlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-muted);
  font-size: var(--text-small);
  line-height: var(--leading-small);
  text-decoration: none;
}
.quietlink .ph {
  width: 14px;
  height: 14px;
}
.quietlink:hover {
  color: var(--color-ink);
  text-decoration: underline 1px;
  text-underline-offset: 3px;
}

/* ── production additions (not in the demo) ─────────────── */
[hidden] {
  display: none !important;
}
