/* css/composants.css
   The pieces shared by the rewritten pages (layer composants, declared in
   css/tokens.css). Values only through the variables of tokens.css. Lot R1
   (27.10.2026) brings what the sign-in pages use; each later lot adds what
   its pages share.

   A class or an attribute written twice (.chair.chair), or :nth-child(n),
   adds weight and nothing else: the rule has to beat another one of its
   layer. */

@layer composants {

  /* ---- The way home (js/public-nav.js, 17.10.2026): the console's small
     "Retour" button, a metallic gold edge around the raised panel ---- */
  .ro-home {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: var(--cs-lw) solid transparent;
    border-radius: var(--cs-r-m);
    background: linear-gradient(var(--cs-panel-2), var(--cs-panel-2)) padding-box, var(--cs-line-grad) border-box;
    color: var(--cs-fg);
    font: 500 var(--cs-fs-md)/18px var(--cs-sans);
    transition: background var(--cs-dur), color var(--cs-dur);
  }
  .ro-home:hover { color: var(--cs-gold); }
  .ro-home:focus-visible { outline: 2px solid var(--cs-gold); outline-offset: 2px; }
  .ro-home[hidden] { display: none; }

  /* ---- An icon, drawn by the ligature of its word (aria-hidden="true",
     or the word is read with the button's name) ---- */
  .ro-icon {
    display: inline-block;
    font-family: var(--cs-icons);
    font-size: 24px;
    font-style: normal;
    font-weight: normal;
    font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    white-space: nowrap;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
  }

  /* ---- The buttons of a window and of a question ---- */
  .ro-modal-btn {
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 64px;
    padding: 5px 12px;
    border: 1px solid transparent;
    border-radius: var(--cs-r-m);
    background: linear-gradient(var(--cs-panel-2), var(--cs-panel-2)) padding-box, var(--cs-line-grad) border-box;
    background-color: var(--cs-panel-2);
    color: var(--cs-fg);
    font: 500 12.5px var(--cs-sans);
    white-space: nowrap;
    transition: border-color .2s;
  }
  /* Enregistrer, last of the foot */
  .ro-modal-btn.primary { order: 10; background: var(--cs-sheen); color: var(--cs-gold-ink); }
  .ro-modal-btn.primary:hover { box-shadow: var(--cs-elev-1); }
  .ro-modal-btn:focus-visible { outline: 2px solid var(--cs-gold); outline-offset: 2px; }
  .ro-modal-btn:disabled { opacity: .5; cursor: default; }

  /* ---- The questions (js/toast.js confirmPopup, promptPopup): the
     console's flat panel (Greg, 26.10.2026) ---- */
  /* The same panel as a window: its ring, its shadow. */
  dialog.confirm-dialog {
    width: min(540px, calc(100vw - 32px));
    max-width: min(540px, calc(100vw - 32px));
    border: 0;
    border-radius: var(--cs-r-l);
    background: var(--cs-panel);
    color: var(--cs-fg);
    font: 400 var(--cs-fs-md)/var(--cs-lh) var(--cs-sans);
    box-shadow: 0 0 0 1px var(--cs-line-2), 0 18px 40px var(--cs-shadow);
  }
  dialog.confirm-dialog::backdrop { background: var(--cs-scrim-2); }
  .confirm-dialog { min-width: 280px; padding: 24px; }
  .confirm-dialog .confirm-dialog-body { text-align: left; }
  .confirm-dialog .confirm-title { margin: 0 0 16px; }
  .confirm-dialog .confirm-dialog-text { margin: 0; letter-spacing: .25px; white-space: pre-line; }
  .confirm-dialog .confirm-dialog-text:empty { display: none; }
  .confirm-dialog .confirm-dialog-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 24px; }
  .confirm-dialog .confirm-dialog-foot .ro-modal-btn { min-height: 0; background-color: transparent; }
  .confirm-dialog .confirm-title { color: var(--cs-fg); font: 600 var(--cs-fs-xl)/1.35 var(--cs-sans); }
  .confirm-dialog .confirm-dialog-text { color: var(--cs-fg-2); font: 400 var(--cs-fs-md)/var(--cs-lh) var(--cs-sans); }
  .confirm-dialog .confirm-dialog-foot .ro-modal-btn { padding: 5px 10px; font: 500 var(--cs-fs-sm) var(--cs-sans); }
  .confirm-dialog .confirm-dialog-foot .ro-modal-btn:is(.primary, .warn, .accent) { background: var(--cs-sheen); color: var(--cs-gold-ink); font-weight: 600; }
  .confirm-dialog .confirm-dialog-foot :is(.ro-modal-btn.danger, .confirm-other) { border: 1px solid var(--cs-crit); background: none; color: var(--cs-crit); font-weight: 600; }
  .confirm-dialog .confirm-dialog-foot .confirm-other { margin-right: auto; }
  .confirm-dialog .confirm-input { border: 1px solid var(--cs-line-2); border-radius: var(--cs-r-m); background: var(--cs-panel-2); color: var(--cs-fg); font: 400 var(--cs-fs-md) var(--cs-sans); }
  .confirm-dialog .confirm-dialog-foot .ro-modal-btn { order: 0; }
  .confirm-dialog .confirm-dialog-foot .ro-modal-btn.primary:hover { box-shadow: none; }

  /* ---- A question with fields (js/toast.js promptPopup, js/pin-dialog.js:
     the enrolment of a post, a PIN): a label over each field, an error
     under them ---- */
  .confirm-dialog--prompt .confirm-field { display: block; margin-top: 16px; }
  .confirm-dialog--prompt .confirm-field-label { display: block; margin: 0 0 4px; color: var(--cs-fg-2); font: 500 var(--cs-fs-sm)/16px var(--cs-sans); letter-spacing: .04em; }
  .confirm-dialog--prompt .confirm-input { width: 100%; height: 32px; min-height: 32px; padding: 0 12px; }
  .confirm-dialog--prompt .confirm-input:is(:focus, :focus-visible) { outline: none; box-shadow: inset 0 0 0 1px var(--cs-gold); }
  .pin-dialog { overflow-y: auto; overscroll-behavior: contain; }
  .pin-dialog .pin-dialog-form { margin: 0; }
  .pin-dialog select.confirm-input { padding: 0 8px; }
  .pin-dialog .pin-dialog-error { min-height: 20px; margin: 12px 0 0; color: var(--cs-crit); font: 400 var(--cs-fs-lg)/20px var(--cs-sans); }
  .pin-dialog .pin-dialog-error:empty { min-height: 0; margin: 0; }
  .pin-dialog .confirm-dialog-foot { flex-wrap: wrap; }
  /* The advice on the browser of a floor tablet (js/device-enroll.js). */
  .pin-dialog .pin-dialog-notice { margin: 12px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--cs-crit-bg); color: var(--cs-crit); font: 400 var(--cs-fs-md)/1.4 var(--cs-sans); }

  /* ---- The console's small button (Retour, ...), a gold edge around the
     raised panel ---- */
  .cs-btn {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border: 1px solid transparent;
    border-radius: var(--cs-r-m);
    background: linear-gradient(var(--cs-panel-2), var(--cs-panel-2)) padding-box, var(--cs-line-grad) border-box;
    color: var(--cs-fg);
    font: 500 var(--cs-fs-sm) var(--cs-sans);
    white-space: nowrap;
  }
  .cs-btn.sm { display: flex; padding: 3px 8px; }
  .cs-btn:focus-visible { outline: 2px solid var(--cs-gold); }

  /* ---- The buttons of the management pages (ro-btn): filled (the gold
     one to press), outlined (a gold line round it), text (a gold word),
     large, 32 px drawn ---- */
  .ro-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 32px;
    padding: 6px 12px;
    border: 0;
    border-radius: var(--cs-r-m);
    background: transparent;
    color: var(--cs-fg);
    font: 500 12.5px var(--cs-sans);
    text-decoration: none;
    cursor: pointer;
  }
  .ro-btn:focus-visible { outline: 3px solid var(--cs-gold); outline-offset: 2px; }
  /* An icon after the word sits closer to it; one before, closer to the edge. */
  .ro-btn > .ro-icon { margin-right: -6px; font-size: 16px; color: inherit; }
  .ro-btn > .ro-icon:first-child:not(:only-child) { margin: 0 0 0 -8px; }
  .ro-btn--filled { background: var(--cs-sheen); color: var(--cs-gold-ink); }
  .ro-btn--outlined {
    border: 1px solid transparent;
    background: linear-gradient(var(--cs-panel-2), var(--cs-panel-2)) padding-box, var(--cs-line-grad) border-box;
    background-color: var(--cs-panel-2);
  }
  .ro-btn--text { padding: 6px 4px; color: var(--cs-gold); }
  .ro-btn--lg { min-height: 40px; padding: 9px 18px; font-size: 13.5px; }

  /* ---- The date, time and colour pickers (js/pickers.js, 28.09.2026):
     the browser's own calendar, clock and colour dialog give way to these
     surfaces. html.ro-pk-on is set by the script; a popover sits in the top
     layer, above every window, its UA frame undone ---- */
  :root.ro-pk-on input:is([type="date"], [type="time"])::-webkit-calendar-picker-indicator { opacity: .72; pointer-events: none; }
  :root.ro-pk-on input:is([type="date"], [type="time"]):not([disabled], [readonly]), :root.ro-pk-on input[type="color"]:not([disabled]) { cursor: pointer; }
  .ro-pk {
    position: fixed;
    inset: auto;
    z-index: 2000;
    margin: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 16px;
    background: var(--cs-panel-2);
    color: var(--cs-fg);
    box-shadow: var(--cs-elev-2);
    font: 400 var(--cs-fs-lg)/20px var(--cs-sans);
  }
  .ro-pk.ro-pk-fixed { display: block; }
  .ro-pk button { margin: 0; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .ro-pk button:disabled { cursor: default; }
  .ro-pk button:focus-visible { outline: 2px solid var(--cs-gold); outline-offset: -2px; }
  .ro-pk :is(.ro-pk-title, .ro-pk-nav, .ro-pk-text:not(:disabled), .ro-pk-day:not(:disabled, .is-sel), .ro-pk-year:not(:disabled, .is-sel), .ro-pk-opt:not(.is-sel)):hover { background: color-mix(in srgb, var(--cs-fg) 8%, transparent); }
  /* The date: 304 px, a month, a year's list. */
  .ro-pk-date { width: 304px; padding: 8px 12px 4px; }
  .ro-pk-head { display: flex; align-items: center; height: 48px; padding: 0 0 0 4px; }
  .ro-pk .ro-pk-title { display: inline-flex; align-items: center; gap: 4px; height: 36px; margin-right: auto; padding: 0 8px; border-radius: var(--cs-r-pill); color: var(--cs-fg-2); font: 500 var(--cs-fs-lg)/20px var(--cs-sans); text-transform: capitalize; }
  .ro-pk-caret { width: 0; height: 0; border-top: 5px solid currentColor; border-left: 5px solid transparent; border-right: 5px solid transparent; transition: rotate var(--cs-dur) ease; }
  .ro-pk-title[aria-expanded="true"] .ro-pk-caret { rotate: 180deg; }
  .ro-pk .ro-pk-nav { width: 40px; height: 40px; border-radius: 50%; color: var(--cs-fg-2); font-size: 22px; line-height: 1; }
  :is(.ro-pk-week, .ro-pk-days) { display: grid; grid-template-columns: repeat(7, 40px); justify-content: space-between; }
  .ro-pk-week span { display: flex; align-items: center; justify-content: center; height: 40px; color: var(--cs-fg); font: 400 var(--cs-fs-sm)/16px var(--cs-sans); }
  .ro-pk .ro-pk-day { width: 40px; height: 40px; padding: 0; border-radius: 50%; color: var(--cs-fg); font: 400 var(--cs-fs-lg)/20px var(--cs-sans); }
  .ro-pk .ro-pk-day:is(.is-other, :disabled) { color: color-mix(in srgb, var(--cs-fg) 38%, transparent); }
  .ro-pk .ro-pk-day.is-today { color: var(--cs-gold); box-shadow: inset 0 0 0 1px var(--cs-gold); }
  .ro-pk .ro-pk-day.is-sel { background: var(--cs-gold); color: var(--cs-gold-ink); box-shadow: none; }
  .ro-pk-years { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 0; max-height: 288px; padding: 4px 0 8px; overflow-y: auto; }
  .ro-pk .ro-pk-year { justify-self: center; width: 72px; height: 36px; border-radius: var(--cs-r-pill); color: var(--cs-fg-2); font: 400 var(--cs-fs-lg)/20px var(--cs-sans); }
  .ro-pk .ro-pk-year.is-sel { background: var(--cs-gold); color: var(--cs-gold-ink); }
  .ro-pk .ro-pk-year:disabled { color: color-mix(in srgb, var(--cs-fg) 38%, transparent); }
  .ro-pk-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 0; }
  .ro-pk .ro-pk-text { height: 40px; padding: 0 12px; border-radius: var(--cs-r-pill); color: var(--cs-gold); font: 500 var(--cs-fs-lg)/20px var(--cs-sans); }
  .ro-pk .ro-pk-text:disabled { color: color-mix(in srgb, var(--cs-fg) 38%, transparent); }
  /* The time: a menu, as the lists. */
  .ro-pk-time { max-height: min(280px, 50vh); padding: 8px 0; overflow-y: auto; border-radius: var(--cs-r-m); background: var(--cs-panel-2); }
  .ro-pk .ro-pk-opt { display: flex; align-items: center; width: 100%; min-height: 40px; padding: 0 16px; color: var(--cs-fg); font: 400 var(--cs-fs-lg)/20px var(--cs-sans); text-align: left; }
  .ro-pk .ro-pk-opt.is-sel { background: var(--cs-panel-2); color: var(--cs-fg); }
  /* The colour: the palette, the code, the system dialog as the last resort. */
  .ro-pk-color { width: 248px; padding: 16px 16px 4px; }
  .ro-pk-swatches { display: grid; grid-template-columns: repeat(5, 32px); justify-content: space-between; gap: 12px 0; }
  .ro-pk .ro-pk-swatch { width: 32px; height: 32px; padding: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cs-fg) 24%, transparent); }
  .ro-pk .ro-pk-swatch.is-sel { box-shadow: 0 0 0 2px var(--cs-panel-2), 0 0 0 4px var(--cs-gold); }
  .ro-pk-hexrow { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
  .ro-pk-chip { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cs-fg) 24%, transparent); }
  .ro-pk .ro-pk-hex { flex: 1 1 auto; min-width: 0; height: 40px; margin: 0; padding: 0 12px; outline: none; border: 1px solid var(--cs-line-2); border-radius: var(--cs-r-m); background: var(--cs-panel-2); color: var(--cs-fg); font: 400 var(--cs-fs-lg)/20px var(--cs-sans); text-transform: lowercase; }
  .ro-pk .ro-pk-hex:focus { border-color: var(--cs-gold); box-shadow: inset 0 0 0 1px var(--cs-gold); }
  .ro-pk .ro-pk-hex.is-bad { border-color: var(--cs-crit); box-shadow: inset 0 0 0 1px var(--cs-crit); }
  .ro-pk-color .ro-pk-foot { margin-top: 8px; }

  /* ---- A summary card: its title, its rows, a click opens its window ---- */
  .cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin: 0 0 20px; }
  .summary-card {
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: var(--cs-r-l);
    background: linear-gradient(var(--cs-panel), var(--cs-panel)) padding-box, var(--cs-line-grad) border-box;
    background-color: var(--cs-panel);
    cursor: pointer;
    transition: box-shadow var(--cs-dur), background var(--cs-dur);
  }
  .summary-card:hover { background: linear-gradient(var(--cs-panel-2), var(--cs-panel-2)) padding-box, var(--cs-line-grad) border-box; background-color: var(--cs-panel-2); }
  .summary-card-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 8px; }
  .summary-card-title { display: flex; align-items: center; gap: 8px; font-size: var(--cs-fs-lg); font-weight: 600; line-height: 1.4; font-variant-numeric: normal; }
  .summary-card-title svg { width: 17px; height: 17px; color: var(--cs-gold); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .summary-card-edit { color: var(--cs-gold); font: 500 12.5px var(--cs-sans); transition: opacity .2s; }
  .summary-card-body { min-width: 0; flex: 1 1 0%; overflow: hidden; color: var(--cs-fg-2); font-variant-numeric: normal; }
  .summary-row { display: flex; justify-content: space-between; gap: 14px; padding: 5px 0; color: var(--cs-fg); }
  .summary-row + .summary-row { border-top: 1px solid transparent; border-image: var(--cs-line-grad) 1; }
  .summary-label { flex-shrink: 0; color: var(--cs-fg-2); }
  .summary-value { min-width: 0; overflow: hidden; font: 12.5px var(--cs-sans); text-align: right; white-space: nowrap; text-overflow: ellipsis; }
  :is(.summary-card-desc, .summary-empty) { color: var(--cs-fg-3); font-size: 12.5px; line-height: var(--cs-lh); font-variant-numeric: normal; }

  /* ---- A window: a veil, the box, its head, its body, its foot. Opened by
     the class open (js/modal-dismiss.js closes it) ---- */
  .ro-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--cs-scrim-2);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, visibility .25s;
  }
  .ro-modal-overlay.open { opacity: 1; visibility: visible; }
  .ro-modal {
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: 100%;
    max-width: 960px;
    max-height: min(85vh, calc(100vh - 48px));
    border-radius: 8px;
    background: var(--cs-panel);
    box-shadow: 0 0 0 1px var(--cs-line-2), 0 18px 40px var(--cs-shadow);
    transform: translateY(12px) scale(.97);
    transition: transform .25s;
  }
  .ro-modal-overlay.open .ro-modal { transform: translateY(0) scale(1); }
  .ro-modal-head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 16px;
    border-radius: var(--cs-r-l) var(--cs-r-l) 0 0;
  }
  .ro-modal-title { display: flex; align-items: center; gap: 10px; font-size: var(--cs-fs-xl); font-weight: 600; line-height: 1.35; }
  .ro-modal-title .ro-icon { color: var(--cs-gold); font-size: 18px; }
  .ro-modal-title svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  /* A field's name in a window, small, above its field. */
  .ro-modal-label { display: block; margin-bottom: 3px; color: var(--cs-fg-2); font: 500 var(--cs-fs-sm)/16px var(--cs-sans); letter-spacing: .04em; }
  .ro-modal-close {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 20px;
    background: transparent;
    color: var(--cs-fg-2);
    font-size: 0;
    line-height: 0;
    transition: border-color .2s, color .2s;
  }
  .ro-modal-close:hover { background: color-mix(in srgb, var(--cs-fg) 8%, transparent); }
  /* The cross, drawn in the text's colour. */
  .ro-modal-close::before {
    content: "";
    display: block;
    width: 24px;
    height: 24px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  .ro-modal-body { min-height: 0; display: flex; flex-direction: column; flex-grow: 1; overflow: auto; padding: 0 24px 16px; }
  .ro-modal-foot {
    position: sticky;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 16px 24px 24px;
    border-radius: 0 0 var(--cs-r-l) var(--cs-r-l);
  }
  /* "Dernier enregistrement le ... par ..." on the left of a window's foot
     (the journal), the buttons on the right. */
  .ro-modal .ro-modal-foot--meta { flex-wrap: wrap; justify-content: space-between; }
  .ro-modal .ro-modal-foot--meta > .ro-modal-foot-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-left: auto; }
  .ro-modal .ro-last-saved { display: flex; flex: 1 1 220px; align-items: center; gap: 6px; min-width: 0; margin: 0; color: var(--cs-fg-2); font: 400 var(--cs-fs-md)/18px var(--cs-sans); letter-spacing: .25px; }
  .ro-modal .ro-last-saved .ro-icon { flex: none; font-size: 18px; }
  .ro-modal .ro-last-saved-text { overflow-wrap: anywhere; }

  /* ---- The tablet keyboard up (js/keyboard.js, 30.09.2026, Greg:
     "Remonter et retrecir"): <html> carries kb-open, and --ro-vv-top /
     --ro-vv-height give the part of the page still visible. Every window
     moves to the top of that part and shrinks to it; its body scrolls, its
     head and its buttons stay in view. iPad Safari does not resize the
     page, so a centred window would stay under the keyboard ---- */
  .kb-open .ro-modal-overlay { align-items: flex-start; padding-top: calc(var(--ro-vv-top, 0px) + 8px); padding-bottom: 8px; }
  .kb-open .ro-modal { max-height: calc(var(--ro-vv-height, 100vh) - 16px); }
  /* A window without a body of its own scrolls as a whole. */
  .kb-open .ro-modal:not(:has(> .ro-modal-body)) { overflow-y: auto; }
  /* A <dialog> is centred by its auto margins. */
  .kb-open dialog.confirm-dialog[open] { margin-top: calc(var(--ro-vv-top, 0px) + 8px); margin-bottom: auto; max-height: calc(var(--ro-vv-height, 100vh) - 16px); }
  /* The windows with fields: the headline and the buttons stay, the fields
     between them scroll. The small inner padding keeps the focus ring of
     the first and last field from being clipped. */
  .kb-open dialog.pin-dialog[open] { display: flex; flex-direction: column; overflow: hidden; }
  .kb-open .pin-dialog .confirm-dialog-body { flex: 0 1 auto; min-height: 0; margin: -4px; padding: 4px; overflow-y: auto; overscroll-behavior: contain; }
  .kb-open .pin-dialog .confirm-dialog-foot { flex: none; margin-top: 16px; }

  /* ---- The fields of a window ---- */
  .ro-modal :is(input:is([type="text"], [type="email"], [type="number"], [type="date"], [type="password"], [type="tel"], [type="url"], [type="time"], [type="search"]), select, textarea, .ro-modal-input) { border: 1px solid transparent; border-radius: var(--cs-r-m); background: linear-gradient(var(--cs-bg), var(--cs-bg)) padding-box, var(--cs-line-grad) border-box; background-color: var(--cs-bg); color: var(--cs-fg); font: 400 var(--cs-fs-md) var(--cs-sans); box-shadow: none; }
  .ro-modal :is(input:is([type="text"], [type="number"], [type="password"]), select) { height: 32px; min-height: 32px; padding: 0 12px; }
  .ro-modal textarea { min-height: 80px; padding: 10px 12px; }
  .ro-modal :is(input, textarea)::placeholder { color: var(--cs-fg-2); opacity: .7; }
  .ro-modal :is(input, select, textarea):focus-visible { outline: 2px solid var(--cs-gold); outline-offset: 1px; }
  .ro-modal :is(input, textarea):disabled { opacity: .6; }
  .form-group label { display: block; margin: 0 0 4px; color: var(--cs-fg-2); font-size: var(--cs-fs-sm); font-weight: 500; line-height: 16px; }
  :is(.input, .select) {
    width: 100%;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: var(--cs-r-m);
    background: linear-gradient(var(--cs-bg), var(--cs-bg)) padding-box, var(--cs-line-grad) border-box;
    background-color: var(--cs-bg);
    color: var(--cs-fg);
    font-size: var(--cs-fs-md);
    transition: border-color .2s, box-shadow .2s;
  }
  :is(.input, .select):disabled { opacity: .6; }
  .input::placeholder { color: var(--cs-fg-2); opacity: .7; }
  /* A field with the focus: its gold edge, a soft halo (no outline). */
  :is(.input, .select):focus { outline: none; }
  :is(.input, .select):focus-visible { outline: 2px solid var(--cs-gold); outline-offset: 1px; }
  .pwd-match-hint { min-height: 18px; margin-top: 4px; font-size: var(--cs-fs-sm); }
  .save-msg { font-size: 12.5px; }

  /* A list: in a browser that knows the customizable <select> (Chrome,
     Edge), it opens on a menu of the page's surfaces (28.09.2026, "toutes
     les listes"); the others keep their own list, the field the same. */
  @supports (appearance: base-select) {
    select:not([multiple], [size]), select:not([multiple], [size])::picker(select) { appearance: base-select; }
    select:not([multiple], [size], [hidden]) { display: inline-flex; align-items: center; vertical-align: middle; cursor: pointer; }
    select:not([multiple], [size])::picker-icon { margin-inline-start: auto; color: var(--cs-fg-2); transition: rotate var(--cs-dur) ease; }
    select:not([multiple], [size]):open::picker-icon { rotate: 180deg; }
    select:not([multiple], [size])::picker(select) {
      min-inline-size: anchor-size(width);
      max-block-size: min(360px, 60vh);
      margin-block: 4px;
      padding: 8px 0;
      overflow-y: auto;
      border: 0;
      border-radius: var(--cs-r-m);
      background: var(--cs-panel);
      color: var(--cs-fg);
      box-shadow: var(--cs-elev-2);
    }
    select:not([multiple], [size]) option {
      display: flex;
      align-items: center;
      min-block-size: 40px;
      padding: 0 16px;
      border: 0;
      background: transparent;
      color: var(--cs-fg);
      font: 400 var(--cs-fs-lg)/20px var(--cs-sans);
      white-space: nowrap;
      cursor: pointer;
    }
    select:not([multiple], [size]) option::checkmark { display: none; }
    select:not([multiple], [size]) option:is(:hover, :focus-visible) { outline: none; background: color-mix(in srgb, var(--cs-fg) 8%, transparent); }
    select:not([multiple], [size]) option:checked { background: var(--cs-panel-2); color: var(--cs-fg); }
    select:not([multiple], [size]) option:disabled { color: color-mix(in srgb, var(--cs-fg) 38%, transparent); cursor: default; }
    /* The restaurant of the bar draws its own arrow. */
    .ro-rsel-select::picker-icon { display: none; }
    select hr { margin: 4px 0; border: 0; border-top: 1px solid var(--cs-line); }
  }

  /* A password in a window: its eye inside, on the right */
  .password-wrapper { position: relative; display: flex; align-items: center; }
  .password-wrapper > .input { flex: 1 1 0%; }
  .password-wrapper .pwd-toggle {
    position: absolute;
    top: -4px;
    bottom: -4px;
    right: 4px;
    flex-shrink: 0;
    transform: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    color: var(--cs-fg-3);
    font-size: 18px;
    line-height: 18px;
    opacity: 1;
  }
  .password-wrapper .pwd-toggle:hover { opacity: 1; }
  .password-wrapper .pwd-toggle:focus-visible { outline: 3px solid var(--cs-gold); outline-offset: 2px; }
  .password-wrapper .pwd-toggle .ro-icon { font-size: 18px; }
  /* What the new password needs, in a window: smaller, quieter. */
  .form-group .pwd-requirements { margin-bottom: 12px; color: var(--cs-fg-3); font-size: var(--cs-fs-sm); line-height: 18px; }

  /* ---- The toasts (js/toast.js), the console's small box at the bottom
     right, its thin gold line; the state said by the icon's colour, or the
     line in red for an error (Greg, 26.10.2026) ---- */
  .toast-container {
    position: fixed;
    right: max(16px, env(safe-area-inset-right, 0px));
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    pointer-events: none;
  }
  @media (max-width: 600px) {
    /* The bottom belongs to the sticky action bars: the toast goes up. */
    .toast-container { top: calc(12px + env(safe-area-inset-top, 0px)); bottom: auto; left: 12px; right: 12px; align-items: stretch; }
  }
  .toast {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: min(460px, calc(100vw - 32px));
    padding: 9px 14px;
    border: 1px solid transparent;
    border-radius: var(--cs-r-l);
    background: linear-gradient(var(--cs-panel-2), var(--cs-panel-2)) padding-box, var(--cs-line-grad) border-box;
    color: var(--cs-fg);
    font: 400 var(--cs-fs-md)/var(--cs-lh) var(--cs-sans);
    box-shadow: 0 4px 16px var(--cs-shadow-soft);
    pointer-events: auto;
    cursor: pointer;
    opacity: 0;
    transform: translateX(60px);
    animation: toast-in .35s ease forwards;
  }
  /* On a phone the toast takes the width between the margins. */
  @media (max-width: 600px) {
    .toast { max-width: none; }
  }
  .toast.toast-out { animation: toast-out .3s ease forwards; }
  .toast-icon { flex-shrink: 0; color: var(--cs-fg-2); font-size: var(--cs-fs-xl); }
  .toast-success .toast-icon { color: var(--cs-ok); }
  .toast-warning .toast-icon { color: var(--cs-warn); }
  .toast-error { background: linear-gradient(var(--cs-panel-2), var(--cs-panel-2)) padding-box, linear-gradient(var(--cs-crit), var(--cs-crit)) border-box; color: var(--cs-crit); }
  .toast-message { flex: 1; word-break: break-word; }
  @keyframes toast-in { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: translateX(0); } }
  @keyframes toast-out { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(60px); } }

  /* ---- The logo's die while something long is being done (js/busy.js):
     over a window when one is given, else over the page. Its dot breathes;
     it is still when the system asks for less motion ---- */
  .ro-busy { position: absolute; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; border-radius: inherit; background: color-mix(in srgb, var(--cs-panel) 70%, transparent); }
  .ro-busy-page { position: fixed; z-index: 10000; border-radius: 0; }
  .ro-busy-die { width: 56px; height: 56px; color: var(--cs-logo-gold); animation: ro-busy-breathe 1.6s ease-in-out infinite; }
  .ro-busy-die circle { transform-box: fill-box; transform-origin: center; animation: ro-busy-dot 1.6s ease-in-out infinite; }
  @keyframes ro-busy-breathe { 50% { opacity: .55; } }
  @keyframes ro-busy-dot { 50% { transform: scale(1.5); } }
  @media (prefers-reduced-motion: reduce) {
    .ro-busy-die, .ro-busy-die circle { animation: none; }
  }

  /* ---- The tooltips (js/tooltip.js): one plain bubble at a time, on
     the inverse surface so it reads the same on any page; in the top layer
     (a manual popover), never taking the pointer ---- */
  .ro-tip {
    position: fixed;
    inset: auto;
    z-index: 2100;
    width: max-content;
    min-height: 24px;
    max-width: 280px;
    margin: 0;
    padding: 4px 8px;
    overflow: visible;
    border: 0;
    border-radius: var(--cs-r-m);
    background: var(--cs-tip-bg);
    color: var(--cs-tip-fg);
    font: 400 var(--cs-fs-sm)/16px var(--cs-sans);
    letter-spacing: .4px;
    text-align: left;
    white-space: normal;
    overflow-wrap: break-word;
    pointer-events: none;
    transition: opacity var(--cs-dur) ease;
  }
  .ro-tip.ro-tip-fixed { display: block; }
  @starting-style { .ro-tip:popover-open { opacity: 0; } }
  /* A long press shows the tip: no selection nor magnifier meanwhile. */
  :root.ro-tip-press, :root.ro-tip-press * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
  .ro-tip.ro-tip--rich { max-width: 320px; padding: 6px 10px; }
  .ro-tip .ro-tip-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; border: 0; clip: rect(0 0 0 0); white-space: nowrap; }

  /* ---- What a new password still needs: each condition met fades out
     (the account pages, my-account) ---- */
  .pwd-requirements { margin: 8px 0 16px; padding: 0; list-style: none; }
  .pwd-requirements li {
    display: flex;
    align-items: center;
    gap: 6px;
    max-height: 30px;
    overflow: hidden;
    color: var(--cs-fg-3);
    font-size: var(--cs-fs-md);
    line-height: 1.8;
    opacity: 1;
    transition: all .25s ease;
  }
  .pwd-requirements li::before { content: "\25CB"; flex-shrink: 0; font-size: 10px; }
  .pwd-requirements li.met { max-height: 0; margin: 0; color: var(--cs-ok); line-height: 0; opacity: 0; }

  /* ---- The eye of a password field (js/pwd-toggle.js): inside the field,
     over its right padding, so the field keeps the width of its
     neighbours ---- */
  .pwd-row { position: relative; display: block; }
  .pwd-row > input[type] { width: 100%; padding-right: 40px; }
  .pwd-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--cs-fg-2);
    line-height: 0;
    opacity: .5;
    transition: opacity var(--cs-dur);
  }
  .pwd-toggle:hover { opacity: .9; }

  /* ---- A choice of a few, side by side (the civility of the sign-up):
     js builds .ro-seg buttons with role=radio and aria-checked ---- */
  .ro-seg { display: flex; max-width: 100%; border-radius: var(--cs-r-m); }
  .ro-seg .ro-seg__btn {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 64px;
    min-height: 40px;
    padding: 6px 16px;
    border: 1px solid var(--cs-line-2);
    border-radius: 0;
    background: none;
    color: var(--cs-fg-2);
    font-size: var(--cs-fs-lg);
    font-weight: 500;
    line-height: 20px;
    letter-spacing: .1px;
    text-align: center;
  }
  .ro-seg .ro-seg__btn + .ro-seg__btn { border-left-width: 0; border-left-style: none; }
  .ro-seg .ro-seg__btn:first-child { border-radius: var(--cs-r-m) 0 0 var(--cs-r-m); }
  .ro-seg .ro-seg__btn:last-child { border-radius: 0 var(--cs-r-m) var(--cs-r-m) 0; }
  /* The touch area reaches 48 px over the 40 px drawn. */
  .ro-seg .ro-seg__btn::after { content: ""; position: absolute; left: 0; right: 0; top: -5px; bottom: -5px; }
  .ro-seg .ro-seg__btn[aria-checked="true"] { background: var(--cs-panel-2); color: var(--cs-fg); }
  .ro-seg .ro-seg__btn:focus-visible { outline: 3px solid var(--cs-gold); outline-offset: 2px; z-index: 1; }
  .ro-seg .ro-seg__btn:disabled { opacity: .38; cursor: not-allowed; }
  /* The check of the chosen button. */
  .ro-seg .ro-seg__btn .ro-icon { display: none; font-size: 18px; }
  .ro-seg .ro-seg__btn[aria-checked="true"] .ro-icon { display: inline-block; }

  /* ---- The band at the bottom (js/footer.js): "Swiss made", the
     cross, the legal notice. Fixed while the content ends above it, in the
     flow once the content reaches it (ro-footer-inflow on the body) ---- */
  body:has(> .ro-footer-public) { padding-bottom: 28px; }
  body.ro-footer-inflow { padding-bottom: 0; }
  .ro-footer.ro-footer-public {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 28px;
    color: var(--cs-fg-3);
    font: 500 var(--cs-fs-sm) var(--cs-sans);
    letter-spacing: .06em;
    pointer-events: none;
  }
  body.ro-footer-inflow .ro-footer.ro-footer-public { position: static; }
  .ro-footer .ro-footer-sep { opacity: .6; }
  .ro-footer .ro-footer-legal {
    color: inherit;
    letter-spacing: .02em;
    text-decoration: underline;
    text-underline-offset: 2px;
    pointer-events: auto;
  }
  .ro-footer .ro-footer-legal:hover { color: var(--cs-fg); }
  /* ---- The DEV banner of dev.resto-one.com (js/env-banner.js). Without
     the bottom band, a pill fixed at the bottom, centred on the first
     quarter; under the panels and windows (above the band, 40, below the
     rail and the dialogs). In the band (in-bar), the words alone, as
     "Swiss made" (Greg, 26.10.2026: "juste le texte, pas la pastille"),
     placed by the script. Short of room, the word of data-short alone; the
     element keeps the whole sentence for screen readers ---- */
  #roEnvBanner { position: fixed; left: 25vw; bottom: 2px; transform: translateX(-50%); z-index: 45; pointer-events: none; padding: 2px 12px; border-radius: var(--cs-r-pill); background: var(--cs-crit); color: var(--cs-crit-ink); box-shadow: var(--cs-elev-1); font: 600 var(--cs-fs-sm)/1.6 var(--cs-sans); letter-spacing: .02em; white-space: nowrap; }
  #roEnvBanner.in-bar { position: absolute; top: 50%; bottom: auto; right: auto; margin: 0; width: auto; max-width: none; transform: translate(-50%, -50%); padding: 0; border-radius: 0; background: none; box-shadow: none; color: var(--cs-crit); font-size: var(--cs-fs-xs); }
  #roEnvBanner[data-short] { font-size: 0; }
  #roEnvBanner[data-short]::before { content: attr(data-short); font-size: var(--cs-fs-sm); }
  #roEnvBanner.in-bar[data-short]::before { font-size: var(--cs-fs-xs); }
  @media print {
    #roEnvBanner { position: static; transform: none; display: inline-block; }
  }

  /* ---- The splash after a sign-in (js/splash.js): the rolling die, a
     video blended with the ground, then the name. Over the sign-in pages
     it keeps the night of the brand (.splash-night) ---- */
  .splash-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cs-ground-solid);
    opacity: 1;
    transition: opacity .8s ease;
  }
  .splash-overlay.fade-out { opacity: 0; pointer-events: none; }
  .splash-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    /* A fine grain, drawn once by an SVG filter. */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    opacity: .4;
    pointer-events: none;
  }
  .splash-overlay.splash-night {
    background:
      radial-gradient(ellipse 760px 440px at 50% 50%, color-mix(in srgb, var(--cs-logo-gold) 8.5%, transparent), transparent 70%),
      var(--cs-night-texture),
      var(--cs-night-vignette),
      var(--cs-night);
  }
  .splash-content { display: flex; align-items: center; gap: 0; }
  .splash-dice-wrap { width: 120px; height: 120px; }
  .splash-brand {
    display: flex;
    flex-direction: column;
    margin-left: 20px;
    opacity: 0;
    transform: translateX(-30px);
    pointer-events: none;
  }
  .splash-brand.reveal { animation: splash-name-in .9s cubic-bezier(.16, 1, .3, 1) forwards; }
  .splash-brand-svg { display: block; width: auto; height: 100px; }
  /* The picture covers 230 px around the 120 px die. Its empty background
     is black (night: lighten) or white (porcelain: darken), so only the
     die and its glow show. No ancestor may form a stacking context, or the
     blend would see nothing: the fades are on the video and the name. */
  .splash-video {
    display: block;
    width: 230px;
    height: 230px;
    margin: -55px;
    background: transparent;
    mix-blend-mode: lighten;
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s ease;
  }
  .splash-video.playing { opacity: 1; }
  :root[data-theme="ivory"] .splash-overlay:not(.splash-night) .splash-video { mix-blend-mode: darken; }
  .splash-still { display: block; width: 120px; height: 114px; margin-top: 3px; }
  .splash-overlay.leaving :is(.splash-video, .splash-still, .splash-brand-svg, .splash-rule) { opacity: 0; transition: opacity .4s ease; }
  .splash-gold-hi { stop-color: var(--cs-logo-gold-hi); }
  .splash-gold-mid { stop-color: var(--cs-logo-gold-mid); }
  .splash-gold-lo { stop-color: var(--cs-logo-gold-lo); }
  .splash-gold-deep { stop-color: var(--cs-logo-gold-deep); }
  .splash-rule {
    position: absolute;
    left: 50%;
    top: calc(50% + 86px);
    width: 160px;
    height: 1px;
    margin-left: -80px;
    background: var(--cs-night-rule-line);
    opacity: 0;
    pointer-events: none;
  }
  .splash-overlay:not(.splash-night) .splash-rule { display: none; }
  .splash-rule.reveal { opacity: 1; transition: opacity .9s ease; }
  @media (max-width: 600px) {
    .splash-dice-wrap { width: 80px; height: 80px; }
    .splash-brand { margin-left: 14px; }
    .splash-brand-svg { height: 65px; }
    .splash-video { width: 153px; height: 153px; margin: -36.5px; }
    .splash-still { width: 80px; height: 76px; margin-top: 2px; }
    .splash-rule { top: calc(50% + 60px); width: 120px; margin-left: -60px; }
  }
  @media (prefers-reduced-motion: reduce) {
    .splash-rule.reveal { transition: none; }
  }
  @keyframes splash-name-in {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
  }

  /* ---- The state layer of a button (ro-state): its text's colour,
     faintly, under the pointer, the focus and the press ---- */
  .ro-state { position: relative; overflow: hidden; isolation: isolate; }
  .ro-state::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: currentColor; opacity: 0; transition: opacity .15s; }
  .ro-state:hover::before { opacity: .08; }
  .ro-state:focus-visible::before { opacity: .1; }
  .ro-state:active::before { opacity: .1; }
  .ro-state:focus-visible { outline: 3px solid var(--cs-fg-2); outline-offset: 2px; }
  @media (prefers-reduced-motion: reduce) { .ro-state::before { transition: none; } }
  /* Help text under a control: what it does, in the user's words. */
  .ro-help { margin: 4px 0 0; color: var(--cs-fg-2); font: 400 var(--cs-fs-sm)/16px var(--cs-sans); letter-spacing: .4px; }
  /* A button that is only an icon. */
  .ro-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: var(--cs-r-pill); background: transparent; color: var(--cs-fg-2); cursor: pointer; }

  /* ---- The switch (js/switch.js): a <button role="switch"
     aria-checked> whose whole row, its words and its track, is the
     target (48 px high at least) ---- */
  .ro-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 48px; margin: 0; padding: 8px 4px 8px 0; border: 0; border-radius: 8px; background: transparent; color: var(--cs-fg); font: 400 var(--cs-fs-lg)/20px var(--cs-sans); letter-spacing: .25px; text-align: left; cursor: pointer; }
  .ro-switch-row__label { flex: 1; min-width: 0; }
  .ro-switch-row__track { position: relative; flex: none; width: 52px; height: 32px; border: 2px solid var(--cs-line-2); border-radius: var(--cs-r-pill); background: var(--cs-panel-2); transition: background-color .15s, border-color .15s; }
  .ro-switch-row__thumb { position: absolute; left: 6px; top: 50%; display: flex; align-items: center; justify-content: center; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: var(--cs-line-2); transition: left .15s, width .15s, height .15s, margin .15s, background-color .15s; }
  .ro-switch-row__thumb .ro-icon { color: var(--cs-fg); font-size: 16px; opacity: 0; }
  .ro-switch-row:hover .ro-switch-row__thumb { background: var(--cs-fg-2); }
  .ro-switch-row[aria-checked="true"] .ro-switch-row__track { border-color: var(--cs-gold); background: var(--cs-gold); }
  .ro-switch-row[aria-checked="true"] .ro-switch-row__thumb { left: 22px; width: 24px; height: 24px; margin-top: -12px; background: var(--cs-gold-ink); }
  .ro-switch-row[aria-checked="true"]:hover .ro-switch-row__thumb { background: var(--cs-panel-2); }
  .ro-switch-row[aria-checked="true"] .ro-switch-row__thumb .ro-icon { opacity: 1; }
  .ro-switch-row:focus-visible { outline: 3px solid var(--cs-fg-2); outline-offset: 2px; }
  .ro-switch-row:disabled { opacity: .38; cursor: not-allowed; }
  @media (prefers-reduced-motion: reduce) { :is(.ro-switch-row__track, .ro-switch-row__thumb) { transition: none; } }
  /* With a mouse, the console's switch (36 x 20, thumb 14; Greg, 28.10.2026);
     a finger keeps the size above, the row its height. */
  @media (pointer: fine) {
    .ro-switch-row__track { width: 36px; height: 20px; border-width: 1px; border-radius: 10px; background-origin: border-box; }
    :is(.ro-switch-row__thumb, .ro-switch-row[aria-checked="true"] .ro-switch-row__thumb) { left: 2px; top: 2px; margin: 0; width: 14px; height: 14px; }
    .ro-switch-row[aria-checked="true"] .ro-switch-row__thumb { left: 18px; }
    .ro-switch-row__thumb .ro-icon { display: none; }
  }

  /* ---- The slider (js/slider.js): one for every number or duration.
     Ends and grab area of 48 px, a 4 px track, a 20 px handle, the value
     in a bubble above the handle. The script places the handle and the
     bubble through --sl-pos, --sl-end, --sl-gap, --sl-bx and --sl-ax. Its
     colours: the solid gold; locked by the plan, the text's colour ---- */
  .ro-slider { position: relative; display: block; min-width: 0; padding-top: 40px; color: var(--cs-fg); font-family: var(--cs-sans); -webkit-tap-highlight-color: transparent; }
  .ro-slider__row { display: flex; align-items: center; gap: 4px; }
  .ro-slider__end { position: relative; flex: none; min-width: 48px; min-height: 48px; padding: 0 8px; border: 0; border-radius: var(--cs-r-pill); background: transparent; color: var(--cs-fg-2); font: 500 var(--cs-fs-lg)/20px var(--cs-sans); font-variant-numeric: tabular-nums; white-space: nowrap; cursor: pointer; transition: background-color .15s, color .15s; }
  /* The state layer: the text's colour, faintly. */
  .ro-slider__end::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: currentColor; opacity: 0; transition: opacity .15s; }
  .ro-slider__end:hover::before { opacity: .08; }
  .ro-slider__end:active::before { opacity: .1; }
  .ro-slider__end:focus-visible { outline: 2px solid var(--cs-gold); outline-offset: 2px; }
  .ro-slider__end[aria-disabled="true"] { opacity: .38; cursor: default; }
  .ro-slider__end[aria-disabled="true"]::before { opacity: 0; }
  .ro-slider__inf { font-size: 24px; line-height: 20px; }
  /* Unlimited chosen: the end lights up, filled like the active track. */
  .ro-slider.is-unlimited .ro-slider__end--max { background: var(--cs-gold); color: var(--cs-gold-solid-ink); opacity: 1; }
  /* A vertical swipe still scrolls the page; a horizontal one moves the
     handle. */
  .ro-slider__zone { position: relative; flex: 1; min-width: 0; height: 48px; cursor: pointer; touch-action: pan-y; }
  .ro-slider__rail { position: absolute; left: 12px; right: 12px; top: 50%; height: 0; }
  :is(.ro-slider__track, .ro-slider__fill) { position: absolute; left: 0; top: -2px; height: 4px; border-radius: var(--cs-r-pill); }
  .ro-slider__track { width: var(--sl-end); background: var(--cs-panel-2); }
  .ro-slider__fill { width: min(var(--sl-pos), var(--sl-end)); background: var(--cs-gold); transition: width .15s; }
  /* The gap before unlimited: a dotted line, lit when unlimited is chosen. */
  .ro-slider__gapline { display: none; position: absolute; left: var(--sl-end); top: -1px; width: var(--sl-gap); height: 2px; background: repeating-linear-gradient(90deg, var(--cs-line) 0 3px, transparent 3px 7px); }
  .ro-slider.has-tail .ro-slider__gapline { display: block; }
  .ro-slider.is-unlimited .ro-slider__gapline { background: repeating-linear-gradient(90deg, var(--cs-gold) 0 3px, transparent 3px 7px); }
  .ro-slider__ticks { position: absolute; left: 0; right: 0; top: 0; }
  .ro-slider__tick { position: absolute; top: -1px; width: 2px; height: 2px; margin-left: -1px; border-radius: 50%; background: var(--cs-fg-2); }
  .ro-slider__tick.is-on { background: var(--cs-gold-solid-ink); }
  .ro-slider__taildot { position: absolute; left: 100%; top: -6px; width: 12px; height: 12px; margin-left: -6px; border: 2px solid var(--cs-line-2); border-radius: 50%; transition: background-color .15s, border-color .15s; }
  .ro-slider.is-unlimited .ro-slider__taildot { border-color: var(--cs-gold); background: var(--cs-gold); }
  .ro-slider__kepttick { position: absolute; top: -5px; width: 10px; height: 10px; margin-left: -5px; border: 2px dashed var(--cs-line-2); border-radius: 50%; }
  /* The recommended value: a small point under the track. */
  .ro-slider__reco { position: absolute; top: 8px; width: 0; height: 0; margin-left: -4px; border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 6px solid var(--cs-fg-2); }
  .ro-slider__handle { position: absolute; left: var(--sl-pos); top: -24px; z-index: 1; width: 48px; height: 48px; margin-left: -24px; border-radius: 50%; outline: none; cursor: grab; transition: left .15s; }
  .ro-slider__handle::before { content: ""; position: absolute; left: 14px; top: 14px; width: 20px; height: 20px; border-radius: 50%; background: var(--cs-gold); box-shadow: var(--cs-elev-1); }
  /* The halo: hover, focus and drag. */
  .ro-slider__handle::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--cs-gold); opacity: 0; transition: opacity .15s; }
  .ro-slider__handle:hover::after { opacity: .08; }
  .ro-slider__handle:focus-visible::after { opacity: .1; }
  .ro-slider__handle:focus-visible { outline: 2px solid var(--cs-gold); outline-offset: -8px; }
  .ro-slider.is-dragging .ro-slider__handle { cursor: grabbing; }
  .ro-slider.is-dragging .ro-slider__handle::after { opacity: .16; }
  /* The kept value: a hollow, hatched handle, recognisable at a glance as
     "not one of the notches". */
  .ro-slider.is-kept .ro-slider__handle::before { border: 2px solid var(--cs-gold); background: repeating-linear-gradient(45deg, var(--cs-gold) 0 2px, transparent 2px 5px); box-shadow: none; }
  .ro-slider.is-kept .ro-slider__fill { background: var(--cs-line-2); }
  .ro-slider__bubble { position: absolute; left: 0; top: 4px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 10px; border-radius: 8px; background: var(--cs-gold); color: var(--cs-gold-solid-ink); box-shadow: var(--cs-elev-1); font: 500 var(--cs-fs-md)/28px var(--cs-sans); font-variant-numeric: tabular-nums; white-space: nowrap; pointer-events: none; transform: translateX(var(--sl-bx, 0px)); transition: transform .15s; }
  .ro-slider__bubble::after { content: ""; position: absolute; left: var(--sl-ax, 50%); bottom: -4px; width: 8px; height: 8px; margin-left: -4px; background: inherit; transform: rotate(45deg); }
  .ro-slider__bubble .ro-icon { font-size: 16px; }
  .ro-slider.is-kept .ro-slider__bubble { background: var(--cs-panel-2); color: var(--cs-fg); outline: 1px dashed var(--cs-gold); }
  .ro-slider.is-dragging :is(.ro-slider__bubble, .ro-slider__handle, .ro-slider__fill) { transition: none; }
  /* Locked by the plan: everything in the text's colour, faded, no
     pointer, the handle at the value the restaurant follows. */
  .ro-slider.is-locked :is(.ro-slider__fill, .ro-slider__bubble), .ro-slider.is-locked .ro-slider__handle::before { background: var(--cs-fg); }
  .ro-slider.is-locked .ro-slider__bubble { color: var(--cs-panel); }
  .ro-slider.is-locked .ro-slider__tick.is-on { background: var(--cs-panel); }
  .ro-slider.is-locked :is(.ro-slider__zone, .ro-slider__handle) { cursor: default; }
  .ro-slider.is-locked :is(.ro-slider__rail, .ro-slider__bubble) { opacity: .38; }
  .ro-slider.is-locked .ro-slider__handle::after { display: none; }
  .ro-slider__note { margin-top: 4px; color: var(--cs-fg-2); font: 400 var(--cs-fs-sm)/16px var(--cs-sans); }
  .ro-slider__chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 6px 10px; border: 1px solid var(--cs-line); border-radius: 8px; background: var(--cs-panel-2); color: var(--cs-fg-2); }
  .ro-slider__chip .ro-icon { flex: none; color: var(--cs-gold); font-size: 18px; }
  .ro-slider__chip--locked .ro-icon { color: var(--cs-fg-2); }
  .ro-slider__sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  @media (prefers-reduced-motion: reduce) {
    .ro-slider *, .ro-slider *::before, .ro-slider *::after { transition: none; }
  }

  /* ---- A plan named (plan-pill, plan-tone-*): its colour, a tint and a
     line; and the state of a subscription (sub-badge), its word on a
     quiet fill, green when it runs, red when it is late or stopped ---- */
  .plan-pill { display: inline-block; padding: 1px 9px; border: 1px solid var(--cs-line); border-radius: var(--cs-r-pill); background: transparent; color: var(--cs-fg); font-size: var(--cs-fs-xs); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
  .plan-pill.plan-tone-bistro { border-color: color-mix(in srgb, var(--cs-plan-bistro) 38%, transparent); background: color-mix(in srgb, var(--cs-plan-bistro) 14%, transparent); color: var(--cs-plan-bistro); }
  .plan-pill.plan-tone-resto { border-color: color-mix(in srgb, var(--cs-plan-resto) 38%, transparent); background: color-mix(in srgb, var(--cs-plan-resto) 14%, transparent); color: var(--cs-plan-resto); }
  .plan-pill.plan-tone-gastro { border-color: color-mix(in srgb, var(--cs-plan-gastro) 38%, transparent); background: color-mix(in srgb, var(--cs-plan-gastro) 14%, transparent); color: var(--cs-plan-gastro); }
  .sub-badge { display: inline-block; padding: 2px 8px; border: 0; border-radius: var(--cs-r-l); background: var(--cs-panel-2); color: var(--cs-fg-2); font-family: var(--cs-sans); font-size: var(--cs-fs-sm); font-weight: 500; letter-spacing: .02em; text-transform: none; }
  .sub-badge:is(.active, .trialing) { background: var(--cs-ok-bg); color: var(--cs-ok); }
  .sub-badge.suspended { background: var(--cs-crit-bg); color: var(--cs-crit); }

  /* ---- The snackbars at the bottom of every page: the chip "Hors ligne"
     while the server cannot be reached (js/net-status.js) and, on a shared
     device, the warning "Ce poste va se verrouiller" thirty seconds before
     it locks (js/lock-warning.js). The tip's surface, readable by day and by
     night, and on the lock screen, always at night; the action in the tip's
     ink. Here rather than in sheets of their own: once the server is cut,
     a sheet added then could no longer be fetched ---- */
  .ro-net-chip { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 99998; display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px); box-sizing: border-box; padding: 6px 6px 6px 14px; border-radius: var(--cs-r-pill); background: var(--cs-tip-bg); color: var(--cs-tip-fg); box-shadow: var(--cs-elev-3); font: 400 14px/20px var(--cs-sans); }
  .ro-net-chip > .ro-icon { flex: none; font-size: 20px; color: var(--cs-tip-fg); }
  .ro-net-text { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; min-width: 0; }
  .ro-net-title { font-weight: 500; white-space: nowrap; }
  .ro-net-sub { opacity: .82; white-space: nowrap; font-variant-numeric: tabular-nums; }
  .ro-net-retry { flex: none; min-height: 36px; padding: 0 12px; border: 0; border-radius: var(--cs-r-pill); background: transparent; color: var(--cs-tip-fg); font: 500 14px/20px var(--cs-sans); cursor: pointer; }
  .ro-net-retry:is(:hover, :focus-visible) { background: color-mix(in srgb, var(--cs-tip-fg) 12%, transparent); outline: none; }
  .ro-net-retry:disabled { opacity: .5; cursor: default; }
  .ro-lock-warn { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 99999; display: flex; align-items: center; gap: 12px; width: max-content; max-width: calc(100vw - 32px); min-height: 48px; box-sizing: border-box; padding: 4px 8px 4px 16px; border-radius: 4px; background: var(--cs-tip-bg); color: var(--cs-tip-fg); box-shadow: var(--cs-elev-3); font: 400 14px/20px var(--cs-sans); animation: ro-lock-warn-in .2s ease-out; }
  /* The chip sits at the same place: the warning goes above it. */
  .ro-lock-warn--raised { bottom: calc(max(16px, env(safe-area-inset-bottom)) + 60px); }
  .ro-lock-warn > .ro-icon { flex: none; font-size: 20px; color: var(--cs-tip-fg); }
  .ro-lock-warn-text { flex: 1 1 auto; min-width: 0; font-variant-numeric: tabular-nums; }
  /* Heard, not seen: the sentence the live region announces once. */
  .ro-lock-warn-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  /* 40 px high, a finger's reach on a tablet. */
  .ro-lock-warn-stay { flex: none; min-height: 40px; padding: 0 12px; border: 0; border-radius: var(--cs-r-pill); background: transparent; color: var(--cs-tip-fg); font: 500 14px/20px var(--cs-sans); white-space: nowrap; cursor: pointer; }
  .ro-lock-warn-stay:is(:hover, :focus-visible) { background: color-mix(in srgb, var(--cs-tip-fg) 12%, transparent); outline: none; }
  .ro-lock-warn-stay:focus-visible { box-shadow: 0 0 0 2px var(--cs-tip-fg); }
  @keyframes ro-lock-warn-in {
    from { opacity: 0; transform: translate(-50%, 8px); }
    to { opacity: 1; transform: translate(-50%, 0); }
  }
  @media (prefers-reduced-motion: reduce) {
    .ro-lock-warn { animation: none; }
  }

  /* ---- The languette (js/languette.js, Greg's design, 17.10.2026): the
     tab that reports a problem, bottom left of the back office, the
     platform and the sign-in pages. A rectangle and a half-circle: 62 x 38
     at rest (a straight part of 43, a radius of 19), the left edge against
     the screen's. The bug (Material Symbols "bug_report", outlined, drawn
     by the script) is 22 px, centred on the circle's centre, turned 45
     degrees; hovered, the tab grows to the right with its words (the
     script writes --ro-languette-open on it, from the words' width) and
     the bug wiggles once, then stands straight ---- */
  .ro-languette { position: fixed; left: 0; bottom: 24px; z-index: 960; box-sizing: border-box; width: 62px; height: 38px; margin: 0; padding: 0; border: 0; border-radius: 0 19px 19px 0; background: var(--cs-languette); color: var(--cs-languette-ink); box-shadow: var(--cs-elev-2); cursor: pointer; font: 500 14px/20px var(--cs-sans); letter-spacing: .1px; -webkit-tap-highlight-color: transparent; transition: width .28s cubic-bezier(.2, 0, 0, 1), box-shadow .2s; }
  /* Above the page, its rail (500), its menus (600) and the tonight drawer
     (950); below the windows and their veils (1000 and above). What sits at
     the bottom left already: the "add to home screen" hint along the
     bottom of a page without a footer, the questionnaire's buttons in their
     bar on a phone. */
  body.has-pwa-hint .ro-languette { bottom: calc(var(--pwa-hint-h, 44px) + 24px); }
  body:has(.ob.ob-m:not(.ob-kb) .ob-col > .ob-actions) .ro-languette { bottom: calc(96px + env(safe-area-inset-bottom)); }
  .ro-languette__icon { position: absolute; top: calc((38px - 22px) / 2); right: calc(19px - 22px / 2); width: 22px; height: 22px; display: block; fill: currentColor; transform: rotate(45deg); transform-origin: 50% 50%; transition: transform .2s ease; pointer-events: none; }
  /* The words, in the straight part, revealed as the tab grows. */
  .ro-languette__text { position: absolute; top: 0; left: 16px; right: calc(19px * 2 + 4px); height: 38px; line-height: 38px; overflow: hidden; white-space: nowrap; text-align: left; opacity: 0; transition: opacity .12s ease; pointer-events: none; }
  /* Hover (a real mouse), keyboard focus, the first tap of a finger. */
  .ro-languette:is(.is-open, :focus-visible) { width: var(--ro-languette-open, 236px); box-shadow: var(--cs-elev-3); }
  @media (hover: hover) and (pointer: fine) {
    .ro-languette:hover { width: var(--ro-languette-open, 236px); box-shadow: var(--cs-elev-3); }
    .ro-languette:hover .ro-languette__text { opacity: 1; transition-delay: .12s; }
    .ro-languette:hover .ro-languette__icon { animation: ro-languette-wiggle .7s ease-in-out .28s both; }
  }
  .ro-languette:is(.is-open, :focus-visible) .ro-languette__text { opacity: 1; transition-delay: .12s; }
  .ro-languette:is(.is-open, :focus-visible) .ro-languette__icon { animation: ro-languette-wiggle .7s ease-in-out .28s both; }
  .ro-languette:focus-visible { outline: 3px solid var(--cs-gold); outline-offset: 2px; }
  .ro-languette.is-busy { cursor: progress; }
  /* Once, after the tab has grown, and it stays straight while hovered. */
  @keyframes ro-languette-wiggle {
    0% { transform: rotate(45deg); }
    22% { transform: rotate(20deg); }
    44% { transform: rotate(55deg); }
    66% { transform: rotate(-8deg); }
    84% { transform: rotate(6deg); }
    100% { transform: rotate(0deg); }
  }
  /* An answer waits: a gold dot on the round end, ringed with the ground. */
  .ro-languette__dot { position: absolute; top: 1px; right: 1px; width: 10px; height: 10px; border-radius: 50%; background: var(--cs-logo-gold); box-shadow: 0 0 0 2px var(--cs-ground-solid); pointer-events: none; }
  /* Less motion asked: the tab grows, the bug does not move. */
  @media (prefers-reduced-motion: reduce) {
    .ro-languette { transition: none; }
    .ro-languette .ro-languette__icon, .ro-languette:is(.is-open, :focus-visible, :hover) .ro-languette__icon { animation: none; transition: none; transform: rotate(45deg); }
    .ro-languette__text { transition: none; }
  }
  /* ---- A chip: a filter or a choice, the console's small pill (the
     languette's report and the pages alike) ---- */
  .ro-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: auto;
    min-height: 0;
    padding: 3px 9px;
    border: 1px solid var(--cs-line-2);
    border-radius: 12px;
    background: none;
    color: var(--cs-fg-2);
    font: 500 var(--cs-fs-sm) var(--cs-sans);
    letter-spacing: .1px;
    box-shadow: none;
    cursor: pointer;
  }
  .ro-chip:focus-visible { outline: 3px solid var(--cs-gold); outline-offset: 2px; }
  .ro-chip:is([aria-pressed="true"], [aria-checked="true"], .is-selected) { border-color: var(--cs-gold); background: var(--cs-panel-2); color: var(--cs-fg); }
  .ro-chip .ro-icon { margin-left: -8px; color: var(--cs-gold); font-size: 18px; }
  .ro-chip[aria-pressed="true"] .ro-icon { color: var(--cs-fg); }
  .ro-chip-group { display: flex; flex-wrap: wrap; gap: 4px; }
  .ro-chip-set { display: flex; flex-wrap: wrap; gap: 18px 8px; }
  /* A choice among a few: its tick only when chosen, a band of 9 px above
     and below for the finger. */
  .ro-chip--choice { position: relative; z-index: 1; }
  .ro-chip--choice::after { content: ""; position: absolute; top: -9px; bottom: -9px; left: 0; right: 0; }
  .ro-chip--choice .ro-icon { display: none; }
  .ro-chip--choice[aria-checked="true"] .ro-icon { display: inline-block; color: var(--cs-fg); }
  /* A filter among several (js/chips.js checkboxesAsChips) likewise: its
     tick only when chosen (lot R6a: every tag of the Service's note showed
     one, as did the Edition's rooms and payments since R5b), the same band. */
  .ro-chip--filter { position: relative; z-index: 1; }
  .ro-chip--filter::after { content: ""; position: absolute; top: -9px; bottom: -9px; left: 0; right: 0; }
  .ro-chip--filter .ro-icon { display: none; }
  .ro-chip--filter[aria-pressed="true"] .ro-icon { display: inline-block; }

  /* ---- The languette's windows (js/bug-report.js): "Signaler un
     problème", "Vos signalements", and the snackbar after sending. They are
     windows of the platform (.ro-modal above), narrower; what is theirs:
     the bug of the title, the outlined fields, the screenshot, the joined
     line, the reports and their state, said in pills the platform's window
     of reports shares (js/bug-reports-admin.js) ---- */
  .brp-overlay .brp-dialog { width: min(560px, 100%); }
  .brp-overlay .brp-dialog--wide { width: min(640px, 100%); }
  /* The bug of the title: the coral of the tab, upright, filled. */
  .ro-modal-title svg.brp-title-icon { flex: none; width: 28px; height: 28px; fill: var(--cs-languette); stroke: none; }
  .brp-sub { margin: 0 0 16px; color: var(--cs-fg-2); font: 400 14px/20px var(--cs-sans); letter-spacing: .25px; }
  .brp-chips { padding: 0 0 8px; }
  /* A field outlined, its label on the outline, on the window's ground. */
  .brp-field { position: relative; display: flex; flex-direction: column; margin: 16px 0 4px; }
  .brp-label { position: absolute; left: 12px; top: -8px; z-index: 1; padding: 0 4px; background: var(--cs-panel); color: var(--cs-fg-2); font: 400 12px/16px var(--cs-sans); letter-spacing: .4px; pointer-events: none; }
  .brp-input { box-sizing: border-box; width: 100%; min-height: 48px; padding: 12px 16px; border: 1px solid var(--cs-line-2); border-radius: var(--cs-r-m); background: var(--cs-bg); color: var(--cs-fg); font: 400 16px/24px var(--cs-sans); letter-spacing: .5px; outline: none; }
  .brp-textarea { min-height: 128px; resize: vertical; }
  .brp-input:focus { border-color: var(--cs-gold); box-shadow: inset 0 0 0 1px var(--cs-gold); }
  .brp-field:focus-within .brp-label { color: var(--cs-gold); }
  .brp-field.is-error .brp-input { border-color: var(--cs-crit); box-shadow: inset 0 0 0 1px var(--cs-crit); }
  .brp-field.is-error .brp-label { color: var(--cs-crit); }
  .brp-help { display: flex; justify-content: space-between; gap: 12px; padding: 4px 16px 0; }
  :is(.brp-error, .brp-count) { font: 400 12px/16px var(--cs-sans); letter-spacing: .4px; }
  .brp-error { color: var(--cs-crit); }
  .brp-field > .brp-error { padding: 4px 16px 0; }
  .brp-count { margin-left: auto; color: var(--cs-fg-2); }
  /* The screenshot: the box, and the picture as it will leave. */
  .brp-shot { display: flex; align-items: center; gap: 16px; margin: 12px 0 0; padding: 12px; border-radius: var(--cs-r-xl); background: var(--cs-panel-2); }
  .brp-check { display: flex; flex: 1 1 auto; align-items: flex-start; gap: 12px; min-height: 40px; color: var(--cs-fg); font: 400 14px/20px var(--cs-sans); cursor: pointer; }
  .brp-check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--cs-gold); }
  .brp-check-text { display: flex; flex-direction: column; gap: 2px; }
  .brp-check-text small { color: var(--cs-fg-2); font: 400 12px/16px var(--cs-sans); letter-spacing: .4px; }
  .brp-thumb { flex: none; width: 132px; margin: 0; }
  .brp-thumb img { display: block; width: 132px; height: 82px; object-fit: cover; object-position: top left; border: 1px solid var(--cs-line); border-radius: 8px; background: var(--cs-panel); }
  .brp-shot:has(input:not(:checked)) .brp-thumb { opacity: .38; }
  .brp-joined { margin: 16px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--cs-panel-2); color: var(--cs-fg-2); font: 400 12px/18px var(--cs-sans); letter-spacing: .4px; overflow-wrap: anywhere; }
  .brp-joined b { color: var(--cs-fg); font-weight: 500; }
  .brp-fail { margin: 12px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--cs-crit-bg); color: var(--cs-crit); font: 400 14px/20px var(--cs-sans); }
  /* "Vos signalements (n)": discreet, a text button. */
  .brp-link { display: inline-flex; margin: 12px 0 0 -12px; padding: 10px 12px; border: 0; border-radius: var(--cs-r-pill); background: transparent; color: var(--cs-gold); font: 500 14px/20px var(--cs-sans); letter-spacing: .1px; cursor: pointer; }
  .brp-link:hover { background: color-mix(in srgb, var(--cs-gold) 8%, transparent); }
  .brp-link:focus-visible { outline: 3px solid var(--cs-gold); outline-offset: 2px; }
  .brp-items { margin: 0; padding: 0; list-style: none; }
  .brp-item { padding: 14px 0; border-top: 1px solid var(--cs-line); }
  .brp-item:first-child { border-top: 0; }
  .brp-item-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
  .brp-num { color: var(--cs-fg); font: 500 14px/20px var(--cs-sans); }
  .brp-date { margin-left: auto; color: var(--cs-fg-2); font: 400 12px/16px var(--cs-sans); }
  .brp-item-msg { display: -webkit-box; margin: 6px 0 0; overflow: hidden; color: var(--cs-fg); font: 400 14px/20px var(--cs-sans); white-space: pre-wrap; overflow-wrap: anywhere; -webkit-line-clamp: 4; -webkit-box-orient: vertical; }
  .brp-reply { margin: 10px 0 0; padding: 12px 14px; border-radius: var(--cs-r-xl); background: var(--cs-panel-2); color: var(--cs-fg); }
  .brp-item.is-unread .brp-reply { box-shadow: inset 3px 0 0 var(--cs-logo-gold); }
  .brp-reply b { display: block; font: 500 12px/16px var(--cs-sans); letter-spacing: .5px; }
  .brp-reply p { margin: 4px 0 0; font: 400 14px/20px var(--cs-sans); white-space: pre-wrap; overflow-wrap: anywhere; }
  .brp-reply small { display: block; margin-top: 6px; font: 400 12px/16px var(--cs-sans); opacity: .8; }
  .brp-empty { margin: 16px 0; color: var(--cs-fg-2); font: 400 14px/20px var(--cs-sans); }
  /* The state of a report: Nouveau, En cours, Réglé. */
  .brp-pill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 8px; font: 500 12px/16px var(--cs-sans); letter-spacing: .5px; white-space: nowrap; }
  .brp-pill.is-new { background: var(--cs-crit-bg); color: var(--cs-crit); }
  .brp-pill:is(.is-in_progress, .is-resolved) { background: var(--cs-panel-2); color: var(--cs-fg); }
  /* The snackbar after sending: the tip's surface, as the chip of a cut. */
  .brp-snackbar { position: fixed; left: 50%; bottom: 24px; z-index: 1100; display: flex; align-items: center; gap: 8px; width: max-content; max-width: min(560px, calc(100vw - 32px)); min-height: 48px; box-sizing: border-box; padding: 0 8px 0 16px; border-radius: 4px; background: var(--cs-tip-bg); color: var(--cs-tip-fg); box-shadow: var(--cs-elev-3); font: 400 14px/20px var(--cs-sans); letter-spacing: .25px; opacity: 0; transform: translate(-50%, 16px); transition: opacity .2s, transform .2s cubic-bezier(.2, 0, 0, 1); }
  /* ---- "See as the owner", read only (js/view-only.js): the bar at the
     bottom says so until "Quitter" ---- */
  #voBanner { position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 10050; display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 32px); box-sizing: border-box; padding: 8px 8px 8px 16px; border-radius: 8px; background: var(--cs-tip-bg); color: var(--cs-tip-fg); box-shadow: var(--cs-elev-3); font: 400 14px/20px var(--cs-sans); }
  .vo-leave { flex: none; height: 36px; padding: 0 12px; border: 0; border-radius: var(--cs-r-pill); background: transparent; color: var(--cs-tip-fg); font: 500 14px/20px var(--cs-sans); cursor: pointer; }
  .vo-leave:is(:hover, :focus-visible) { background: color-mix(in srgb, var(--cs-tip-fg) 12%, transparent); outline: none; }
  .vo-leave:focus-visible { box-shadow: 0 0 0 2px var(--cs-tip-fg); }
  .brp-snackbar.is-on { opacity: 1; transform: translate(-50%, 0); }
  .brp-snackbar p { flex: 1; margin: 14px 0; }
  .brp-snackbar button { height: 40px; padding: 0 12px; border: 0; border-radius: var(--cs-r-pill); background: transparent; color: var(--cs-tip-fg); font: 500 14px/20px var(--cs-sans); cursor: pointer; }
  @media (max-width: 600px) {
    .brp-overlay { padding: 12px; align-items: flex-end; }
    .brp-overlay :is(.brp-dialog, .brp-dialog--wide) { width: 100%; max-height: calc(100vh - 24px); }
    .brp-shot { flex-direction: column; gap: 8px; }
    .brp-snackbar { bottom: 16px; }
  }
  @media (prefers-reduced-motion: reduce) {
    .brp-snackbar { transition: none; }
  }
  /* ---- The guest card (js/customer-card.js): its window, its figures,
     its fields and the history of its bookings, the list of the cards
     and the mailing's; the chips it puts on a booking's row ---- */
  .cu-chips { display: inline-flex; flex-wrap: wrap; vertical-align: middle; gap: 4px; margin-left: 6px; }
  .cu-chip { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 10px; font: 600 11px/1 var(--cs-sans); white-space: nowrap; color: var(--cs-fg-2); }
  .cu-chip--new { color: var(--cs-fg); background: var(--cs-panel-2); }
  .cu-chip--visit { color: var(--cs-fg); background: var(--cs-panel-2); }
  .cu-chip--vip { color: var(--cs-gold-ink); background: var(--cs-gold); }
  .cu-chip--allergy { color: var(--cs-crit); background: var(--cs-crit-bg); }
  .cu-chip--noshow { color: var(--cs-ok); background: var(--cs-ok-bg); }
  .cu-chip--note { background: transparent; box-shadow: inset 0 0 0 1px var(--cs-line); }
  .cu-open-btn { margin-top: 8px; height: max(32px, var(--cs-finger)); padding: 0 14px; border-radius: 16px; cursor: pointer; border: 1px solid var(--cs-line-2); background: transparent; color: var(--cs-gold); font: 500 13px/1 var(--cs-sans); }
  #roCustomer .cu-contact { margin: 0 0 12px; font: 400 14px/20px var(--cs-sans); }
  #roCustomer .cu-contact a { color: var(--cs-gold); }
  #roCustomer .cu-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 16px; }
  #roCustomer .cu-stat { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--cs-panel-2); }
  #roCustomer .cu-stat-v { color: var(--cs-fg); font: 600 18px/24px var(--cs-sans); }
  #roCustomer .cu-stat-l { color: var(--cs-fg-2); font: 400 12px/16px var(--cs-sans); }
  #roCustomer .cu-stat.is-warn .cu-stat-v { color: var(--cs-crit); }
  #roCustomer .cu-grid { display: flex; flex-direction: column; gap: 6px; }
  #roCustomer .cu-grid textarea { resize: vertical; }
  #roCustomer .cu-vip { display: block; margin-top: 6px; }
  #roCustomer .cu-hint { color: var(--cs-fg-2); margin: 10px 0 0; font: 400 12px/16px var(--cs-sans); }
  #roCustomer .cu-hist-title { margin-top: 18px; }
  #roCustomer .cu-history { max-height: 260px; overflow-y: auto; }
  /* A past booking's status in the history (customer-card.js writes
     "cu-st--" + the status). */
  #roCustomer .cu-st--noshow { color: var(--cs-crit); font-weight: 600; }
  #roCustomer .cu-st--cancelled { color: var(--cs-fg-2); text-decoration: line-through; }
  #roCustomer .cu-table { width: 100%; border-collapse: collapse; }
  #roCustomer .cu-table td { color: var(--cs-fg); padding: 6px 8px; border-bottom: 1px solid var(--cs-line); font: 400 13px/18px var(--cs-sans); }
  #roCustomer .cu-comment { max-width: 220px; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
  #roCustomer .cu-booked { margin-left: 1px; font-size: 11px; color: var(--cs-fg-2); }
  #roCustomer .cu-postnote-row td { padding-top: 0; border-top: 0; }
  #roCustomer .cu-table tr:has(+ .cu-postnote-row) td { border-bottom: 0; }
  #roCustomer .cu-postnote { font-size: 12px; font-style: italic; color: var(--cs-fg-2); white-space: normal; overflow-wrap: anywhere; }
  #roCustomer .cu-forget { margin-right: auto; }
  #roCustomer .cu-full { margin-top: 12px; }
  #roCustomer .cu-full .bset-title { margin-bottom: 6px; }
  #roCustomer #cuMailingAt:empty { display: none; }
  #roMailing .cu-table td { padding: 4px 8px; }
  #roMailing .ml-table th { text-align: left; padding: 4px 8px; font: 600 12px/1.2 var(--cs-sans); color: var(--cs-fg-2); border-bottom: 1px solid var(--cs-line); }
  #roCustomer textarea:nth-child(n), #roCustomer input[type="text"][type="text"] { box-sizing: border-box; width: 100%; font: 400 14px/20px var(--cs-sans); min-height: max(40px, var(--cs-finger)); }
  .cu-complete { color: var(--cs-gold); margin: 6px 0 2px; font: 500 12px/16px var(--cs-sans); }
  .cu-complete.is-complete { color: var(--cs-fg-2); }
  .cu-greeting { color: var(--cs-fg-2); grid-column: 1 / -1; margin: -2px 0 6px; font: 400 12px/16px var(--cs-sans); }
  .cu-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--cs-gold); }
  #roGuests .cu-history { max-height: 60vh; overflow-y: auto; }
  #roGuests .gl-table { width: 100%; border-collapse: collapse; }
  #roGuests .gl-table td { padding: 8px; border-bottom: 1px solid var(--cs-line); font: 400 13px/18px var(--cs-sans); color: var(--cs-fg); }
  #roGuests .gl-table tr.gl-row { cursor: pointer; }
  #roGuests .gl-table tr.gl-row:hover td { background: var(--cs-panel); }
  #roGuests .gl-table td:first-child { width: 16px; padding-right: 0; }
  #roGuests .gl-table td:nth-child(4) { white-space: nowrap; }
  #roGuests .gl-table td:nth-child(3) { overflow-wrap: anywhere; }
  .cu-filter { margin: 0 0 8px; }
  .cu-name-note { display: flex; align-items: center; gap: 6px; color: var(--cs-fg-2); }
  .cu-name-note-btn { display: inline-flex; align-items: center; justify-content: center; width: max(32px, var(--cs-finger)); height: max(32px, var(--cs-finger)); padding: 0; border: 0; border-radius: 16px; background: transparent; color: var(--cs-gold); cursor: pointer; }
  .cu-name-note-btn .ro-icon { font-size: 18px; }
  .cu-name-note-btn:hover { background: var(--cs-panel); }
  .cu-name-note-btn:focus-visible { outline: 2px solid var(--cs-gold); outline-offset: 2px; }
  #roCustomer textarea:nth-child(n):focus, #roCustomer input[type="text"][type="text"]:focus { outline: none; }
}

/* What the pieces above impose on the page, whatever it writes itself: the
   highest layer. */
@layer utilitaires {
  /* What a script needs but nobody sees: the frame a sheet is printed from
     (js/evacuation-sheet.js, js/service-setup-sheet.js), a copy measured
     off screen (js/reservations.js), the room the keyboard makes below the
     page (js/keyboard.js, placed by its top). */
  .ro-print-frame { position: fixed; right: 0; bottom: 0; width: 0; height: 0; border: 0; }
  .ro-measure { position: absolute; top: 0; left: -10000px; visibility: hidden; white-space: nowrap; }
  .ro-scroll-spacer { position: absolute; left: 0; width: 1px; height: 1px; margin: 0; padding: 0; border: 0; visibility: hidden; pointer-events: none; }

  /* A field to correct (the script sets aria-invalid, and takes it away),
     and a message saying what went wrong. */
  :is(input, select, textarea)[aria-invalid="true"] { border-color: var(--cs-crit); }
  .ro-msg-error { color: var(--cs-crit); }
  /* An overflow drawn on the next day of a week grid (js/week-grid.js). */
  .wk-faded { opacity: .45; }
  /* Spacing and alignment a template asks of one element, where a written
     style stood (lot R8c2d3b). In this layer they beat the components' and
     the pages' rules, as the style did. ro-m-0 comes first: a side given
     after it wins. */
  .ro-m-0 { margin: 0; }
  .ro-mt-0 { margin-top: 0; } .ro-mt-4 { margin-top: 4px; } .ro-mt-6 { margin-top: 6px; } .ro-mt-10 { margin-top: 10px; }
  .ro-mt-12 { margin-top: 12px; } .ro-mt-14 { margin-top: 14px; } .ro-mt-20 { margin-top: 20px; }
  .ro-mt-n4 { margin-top: -4px; } .ro-mt-n6 { margin-top: -6px; }
  .ro-mb-6 { margin-bottom: 6px; } .ro-mb-8 { margin-bottom: 8px; } .ro-mb-10 { margin-bottom: 10px; } .ro-mb-12 { margin-bottom: 12px; }
  .ro-ta-left { text-align: left; } .ro-ta-right { text-align: right; } .ro-fs-12 { font-size: 12px; }
  .ro-grow { flex: 1; } .ro-flex-full { flex: 1 1 100%; }
  .ro-minw-150 { min-width: 150px; } .ro-minw-170 { min-width: 170px; } .ro-minw-200 { min-width: 200px; } .ro-minw-220 { min-width: 220px; }
  .ro-maxw-170 { max-width: 170px; }

  /* The bottom band with the "add to home screen" hint: the rail sits over
     its left end, the hint starts after it (js/sidebar.js, pwaRoom). On dev
     the DEV banner takes the hint's place (css/cadre.css hides the hint),
     "Swiss made" keeps its centre; short of room it goes to the right. */
  .ro-footer.has-pwa-hint { padding-left: var(--pwa-room, 12px); }
  .ro-footer.has-pwa-hint:has(#roEnvBanner) { padding-left: 0; }
  .ro-footer.env-right { justify-content: flex-end; padding-right: 12px; }

  /* The lock screen says the cut in its own middle, with its own button
     (js/device-lock.js): no second word at the bottom, over its languages. */
  #tabletLock[data-view="offline"] ~ .ro-net-chip { display: none; }

  /* A device locked while the server could not be reached (js/auth.js):
     the page is emptied at once and says that the lock screen comes back
     with the connection, in the theme of the page it replaces. */
  body.ro-locked-offline { margin: 0; min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--cs-panel); color: var(--cs-fg); font: 400 16px/24px var(--cs-sans); }
  .ro-locked-offline-box { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 420px; padding: 24px 16px; text-align: center; }
  .ro-locked-offline-box .ro-icon { font-size: 40px; color: var(--cs-fg-2); }
  .ro-locked-offline-box p { margin: 0; }

  /* The languette's room: the rail ends above it, so that no entry ever
     hides under it. The Service mode has no rail (js/service-nav.js): the
     day list stops above the tab (24 + 44 px and a breath), so that the
     last reservation never sits under it; the plan keeps its height (it
     fits the room to the screen by itself, js/room-plan.js), the tab covers
     only the corner of its frame (Docs/claude/LANGUETTE-2026-10-17.md). */
  body.has-languette.ro-ui .ro-rail { padding-bottom: 80px; }
  body.has-languette.ro-ui.sv-on:not(.ro-plan-page) .main { padding-bottom: 72px; }
  body.has-languette.ro-ui.sv-on .desk-body { min-height: calc(100vh - 174px); }

  /* The report's honeypot (js/bug-report.js): out of sight and out of
     reach, never display none (a robot reads that). */
  .brp-hp { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }

  /* The guest card's fields and window, over the page's own. */
  #roCustomer .cu-modal { max-width: 760px; }
  #roCustomer .cu-modal { height: auto; min-height: 0; }
  #roMailing .cu-modal { height: auto; min-height: 0; }
  #roCustomer textarea:nth-child(n), #roCustomer input[type="text"][type="text"] { color: var(--cs-fg); border-radius: var(--cs-r-m); border: 1px solid var(--cs-line-2); background: var(--cs-bg); box-shadow: none; }
  #roGuests .cu-modal { max-width: 760px; height: auto; min-height: 0; }
  #roCustomer textarea:nth-child(n):focus, #roCustomer input[type="text"][type="text"]:focus { border-color: var(--cs-gold); box-shadow: 0 0 0 1px var(--cs-gold); }
  #roCustomer .cu-grid .cu-missing:not(:focus).cu-missing { border-color: var(--cs-gold); box-shadow: 0 0 0 1px var(--cs-gold); }

  @media print {
    .ro-languette { display: none; }
  }
}
