/* ==========================================================================
   Rendez-Vous mobile / WebView - Design system
   --------------------------------------------------------------------------
   Compatibility floor: iOS 12 WKWebView, Android 8 System WebView.
   Rules of the house:
   - no flex "gap" (margins instead), no aspect-ratio (padding hack),
     no clamp(), no :has(), no container queries, no dvh/svh units, no inset.
   - every custom property is used with a plain fallback where it matters.
   - all components are prefixed "rv-". Legacy Bootstrap class names emitted
     by backend includes are handled in compat.css, never here.
   ========================================================================== */

/* 1. Tokens --------------------------------------------------------------- */
:root {
  --rv-bg: #fdfbf7;
  --rv-bg-warm: #fdeedd;
  --rv-surface: #ffffff;
  --rv-sand: #fbf1e1;
  --rv-sand-strong: #f4e3c8;
  --rv-line: #e6dac8;
  --rv-line-soft: #f0e8dc;

  --rv-ink: #3f1f47;
  --rv-text: #4a3a4e;
  --rv-muted: #77667a;

  --rv-accent: #b4472e;
  --rv-accent-soft: #fbe9e3;
  --rv-primary: #3f7d58;
  --rv-primary-dark: #32654a;
  --rv-primary-soft: #e5f1ea;
  --rv-orange: #f39200;
  --rv-orange-dark: #c97400;
  --rv-danger: #c2372c;
  --rv-danger-soft: #fbe6e4;
  --rv-online: #2e9e5b;
  --rv-recent: #f39200;
  --rv-premium: #4a2352;

  --rv-radius-s: 10px;
  --rv-radius: 16px;
  --rv-radius-l: 22px;
  --rv-shadow: 0 1px 2px rgba(63, 31, 71, .06), 0 6px 18px rgba(63, 31, 71, .06);
  --rv-shadow-up: 0 -4px 18px rgba(63, 31, 71, .10);

  --rv-appbar-h: 56px;
  --rv-tabbar-h: 60px;
  --rv-safe-top: 0px;
  --rv-safe-bottom: 0px;
  --rv-gutter: 16px;

  /* Same family as the public homepage (www.rendez-vous.be): Helvetica Neue / Arial, no web font,
     no serif. --rv-font-accent is kept as a token but points to the same sans-serif stack. */
  --rv-font: "Helvetica Neue", Helvetica, Arial, Roboto, sans-serif;
  --rv-font-accent: "Helvetica Neue", Helvetica, Arial, Roboto, sans-serif;
}

@supports (padding: env(safe-area-inset-bottom)) {
  :root {
    --rv-safe-top: env(safe-area-inset-top);
    --rv-safe-bottom: env(safe-area-inset-bottom);
  }
}

/* 2. Base ----------------------------------------------------------------- */
*, *:before, *:after { -webkit-box-sizing: border-box; box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  font-size: 16px; /* 1rem; also the input size, so iOS never zooms on focus */
}

body {
  margin: 0;
  background: #fdfbf7;
  background: var(--rv-bg);
  color: #4a3a4e;
  color: var(--rv-text);
  font-family: "Helvetica Neue", Helvetica, Arial, Roboto, sans-serif;
  font-family: var(--rv-font);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

body.rv-app {
  min-height: 100vh;
  background-image: -webkit-linear-gradient(top, #fdeedd 0, #fdfbf7 320px);
  background-image: linear-gradient(to bottom, #fdeedd 0, #fdfbf7 320px);
  background-repeat: no-repeat;
}
body.has-appbar { padding-top: 56px; padding-top: calc(var(--rv-appbar-h) + var(--rv-safe-top)); }
body.has-tabbar { padding-bottom: 60px; padding-bottom: calc(var(--rv-tabbar-h) + var(--rv-safe-bottom)); }
/* iOS app: no web chrome, the native bars cover the top and bottom of the WebView (see header.cfm,
   viewport-fit=cover). The insets are 0 when the WebView frame already stops at the native bars. */
body.rv-is-app.rv-os-ios { padding-top: var(--rv-safe-top); padding-bottom: var(--rv-safe-bottom); }
/* the soft keyboard covers the native tab bar: no bottom inset above it (chat composer, sheets) */
body.rv-is-app.rv-os-ios.rv-kbd-open { --rv-safe-bottom: 0px; }
body.rv-noscroll { overflow: hidden; }

h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; color: var(--rv-ink); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.06rem; }
h4, h5, h6 { font-size: 1rem; }
p { margin: 0 0 1em; }
a { color: var(--rv-accent); text-decoration: none; }
a:active { opacity: .7; }
img { max-width: 100%; border: 0; vertical-align: middle; }
hr { border: 0; border-top: 1px solid var(--rv-line); margin: 16px 0; }
small { font-size: .85em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
button, input, select, textarea { font-family: inherit; font-size: 1rem; color: inherit; margin: 0; }
button { cursor: pointer; }
[hidden] { display: none !important; }

/* 3. Icons ---------------------------------------------------------------- */
.rv-icon {
  display: inline-block;
  width: 1.3em;
  height: 1.3em;
  vertical-align: -.28em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
}
.rv-icon--fill { fill: currentColor; stroke: none; }
.rv-icon--s { width: 1em; height: 1em; vertical-align: -.15em; }
.rv-icon--l { width: 1.8em; height: 1.8em; }
.rv-icon--xl { width: 2.6em; height: 2.6em; }
.rv-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* 4. App bar (top) -------------------------------------------------------- */
.rv-appbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: 56px;
  height: calc(var(--rv-appbar-h) + var(--rv-safe-top));
  padding-top: var(--rv-safe-top);
  background: #fdfbf7; /* opaque: at .97 the scrolled text showed through on Android */
  border-bottom: 1px solid var(--rv-line);
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
}
.rv-appbar__btn {
  -webkit-flex: 0 0 auto;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  margin: 0 4px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--rv-ink);
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  padding: 0;
}
.rv-appbar__btn:active { background: var(--rv-sand); }
.rv-appbar__btn .rv-icon { width: 26px; height: 26px; }
.rv-appbar__btn--ghost { visibility: hidden; }
.rv-appbar__brand {
  -webkit-flex: 0 0 auto;
  flex: 0 0 auto;
  display: block;
  margin: 0 12px 0 16px;
}
.rv-appbar--back .rv-appbar__brand { margin-left: 0; }
.rv-appbar__title {
  -webkit-flex: 1 1 auto;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0 16px 0 0;
  padding: 2px 0 2px 12px;
  border-left: 1px solid var(--rv-line);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--rv-ink);
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rv-appbar__title:empty { border-left: 0; padding: 0; }
.rv-appbar__logo { display: block; height: 24px; width: auto; }
.rv-appbar__mark { display: none; height: 26px; width: auto; }
/* Phones: with a page title, the square mark replaces the wordmark (more room for the title) */
@media (max-width: 899px) {
  .rv-appbar--titled .rv-appbar__mark { display: block; }
  .rv-appbar--titled .rv-appbar__logo { display: none; }
}
.rv-brand { display: inline-block; font-weight: 800; font-size: 1.2rem; color: var(--rv-ink); letter-spacing: -.02em; }
.rv-brand b { color: var(--rv-orange); font-weight: 800; }
.rv-brand .rv-icon { color: var(--rv-orange); margin-right: 4px; }

/* 5. Tab bar (bottom) ----------------------------------------------------- */
.rv-tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 900;
  height: 60px;
  height: calc(var(--rv-tabbar-h) + var(--rv-safe-bottom));
  padding-bottom: var(--rv-safe-bottom);
  background: #fff;
  border-top: 1px solid var(--rv-line);
  box-shadow: var(--rv-shadow-up);
  display: -webkit-flex;
  display: flex;
}
/* Fixed bars on their own compositing layer: they stay still during momentum scroll
   (WKWebView / Chrome otherwise repaint them with the page and they wobble) */
.rv-appbar, .rv-tabbar, .rv-actionbar { -webkit-transform: translateZ(0); transform: translateZ(0); -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.rv-tabbar__item {
  -webkit-flex: 1 1 0;
  flex: 1 1 0;
  min-width: 0;
  position: relative;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  padding: 6px 2px 4px;
  border: 0;
  background: transparent;
  color: var(--rv-muted);
  font-size: .7rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}
.rv-tabbar__item .rv-icon { width: 26px; height: 26px; margin-bottom: 3px; }
.rv-tabbar__item span.rv-tabbar__label { display: block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-tabbar__item.is-active { color: var(--rv-accent); }
.rv-tabbar__item.is-active:before {
  content: "";
  position: absolute;
  top: 0; left: 28%; right: 28%;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--rv-accent);
}
.rv-tabbar__badge {
  position: absolute;
  top: 4px;
  left: 50%;
  margin-left: 6px;
}

/* Hide chrome when the soft keyboard is open (class set by app.js) */
body.rv-kbd-open .rv-tabbar { display: none; }
body.rv-kbd-open.has-tabbar { padding-bottom: 0; }

/* 5b. Floating glass tab bar (phones) --------------------------------------
   A rounded bar that floats above the page, translucent like frosted glass: the content scrolls
   behind it, blurred. While the member scrolls down it keeps only the icons (body.rv-tabbar-mini,
   set by app.js section 10b) and shows the labels again on the way up, at the top or at the end.
   Engines without backdrop-filter (Android 8 WebView before Chrome 76) get an almost opaque
   cream instead of the glass. From 900px the bar is the top navigation (section 23). */
@media (max-width: 899px) {
  /* Distance from the bottom edge: the gap, plus half the home indicator area (clear of it,
     without floating too high). calc() only: max() has no fallback inside a variable. */
  :root { --rv-tabbar-gap: 10px; --rv-tabbar-mini-h: 50px; --rv-tabbar-bottom: calc(var(--rv-tabbar-gap) + var(--rv-safe-bottom) / 2); }
  body.has-tabbar {
    padding-bottom: 80px;
    padding-bottom: calc(var(--rv-tabbar-h) + var(--rv-tabbar-gap) + var(--rv-tabbar-bottom));
  }
  .rv-tabbar {
    left: 12px; right: 12px;
    bottom: 10px;
    bottom: var(--rv-tabbar-bottom);
    height: 60px;
    height: var(--rv-tabbar-h);
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 30px;
    background: rgba(253, 246, 236, .96);
    box-shadow: 0 10px 28px rgba(63, 31, 71, .16), 0 2px 6px rgba(63, 31, 71, .08), inset 0 1px 0 rgba(255, 255, 255, .85);
    -webkit-transition: height .25s ease, border-radius .25s ease;
    transition: height .25s ease, border-radius .25s ease;
  }
  @supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .rv-tabbar {
      background: -webkit-linear-gradient(top, rgba(255, 255, 255, .62), rgba(251, 241, 225, .5));
      background: linear-gradient(to bottom, rgba(255, 255, 255, .62), rgba(251, 241, 225, .5));
      -webkit-backdrop-filter: blur(18px) saturate(180%);
      backdrop-filter: blur(18px) saturate(180%);
    }
  }
  .rv-tabbar__item { padding: 3px 2px 2px; border-radius: 24px; color: var(--rv-ink); }
  .rv-tabbar__item .rv-icon { width: 24px; height: 24px; margin-bottom: 2px; -webkit-transition: margin .25s ease; transition: margin .25s ease; }
  .rv-tabbar__item .rv-tabbar__label {
    max-height: 1.3em;
    opacity: 1;
    -webkit-transition: max-height .25s ease, opacity .2s ease;
    transition: max-height .25s ease, opacity .2s ease;
  }
  /* Active tab: a lighter capsule, like a drop of glass on the bar */
  .rv-tabbar__item.is-active {
    color: var(--rv-accent);
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 1px 4px rgba(63, 31, 71, .10), inset 0 1px 0 #fff;
  }
  .rv-tabbar__item.is-active:before { display: none; }
  .rv-tabbar__badge { top: 1px; }

  /* Icons only while scrolling down, and always on a page with a sticky action bar */
  body.rv-tabbar-mini .rv-tabbar, body.rv-has-actionbar .rv-tabbar { height: 50px; height: var(--rv-tabbar-mini-h); border-radius: 25px; }
  body.rv-tabbar-mini .rv-tabbar__item .rv-tabbar__label, body.rv-has-actionbar .rv-tabbar__item .rv-tabbar__label { max-height: 0; opacity: 0; }
  body.rv-tabbar-mini .rv-tabbar__item .rv-icon, body.rv-has-actionbar .rv-tabbar__item .rv-icon { margin-bottom: 0; }

  /* Sticky action bar (profile actions, form submit): it has priority over the tab bar.
     - no white strip: the buttons float on a fade of the page background, which runs down under
       the tab bar (the tab bar is icons only on these pages, body.rv-has-actionbar set by app.js);
     - while scrolling down the tab bar slides out of the screen and the action bar drops by the
       height it leaves (58px = mini bar 50px + 8px), so the buttons get the bottom of the screen.
     Transforms only (no bottom/padding animation): no relayout during momentum scroll. */
  body.has-tabbar .rv-actionbar {
    bottom: 0;
    padding: 18px 12px 0;
    padding-bottom: 70px;
    padding-bottom: calc(var(--rv-tabbar-mini-h) + 8px + var(--rv-tabbar-bottom));
    border-top: 0;
    box-shadow: none;
    background: -webkit-linear-gradient(top, rgba(253, 251, 247, 0), rgba(253, 251, 247, .92) 30%);
    background: linear-gradient(to bottom, rgba(253, 251, 247, 0), rgba(253, 251, 247, .92) 30%);
    -webkit-transition: -webkit-transform .25s ease;
    transition: transform .25s ease;
  }
  body.has-tabbar .rv-actionbar .rv-btn { box-shadow: 0 6px 16px rgba(63, 31, 71, .16); }
  body.rv-has-actionbar .rv-tabbar { -webkit-transition: height .25s ease, -webkit-transform .25s ease; transition: height .25s ease, transform .25s ease; }
  body.rv-has-actionbar.rv-tabbar-mini .rv-tabbar { -webkit-transform: translate3d(0, 170%, 0); transform: translate3d(0, 170%, 0); }
  body.rv-has-actionbar.rv-tabbar-mini .rv-actionbar { -webkit-transform: translate3d(0, 58px, 0); transform: translate3d(0, 58px, 0); }
  /* Soft keyboard open: the tab bar is hidden and the action bar is back in the page flow */
  body.rv-kbd-open .rv-actionbar, body.rv-kbd-open.rv-tabbar-mini .rv-actionbar { padding: 10px 0; background: none; -webkit-transform: none; transform: none; }
}

/* 6. Page layout ---------------------------------------------------------- */
.rv-page {
  display: block;
  max-width: 720px;
  margin: 0 auto;
  padding: 16px;
  padding: var(--rv-gutter);
}
.rv-page--flush { padding-left: 0; padding-right: 0; }
.rv-page--narrow { max-width: 480px; }
.rv-page__head { margin: 4px 0 16px; }
.rv-page__title { font-size: 1.5rem; margin: 0; }
.rv-page__sub {
  margin: 4px 0 0;
  font-family: var(--rv-font-accent);
  font-size: 1.05rem;
  color: var(--rv-accent);
}
.rv-section { margin: 0 0 24px; }
.rv-section__head {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: baseline;
  align-items: baseline;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  margin: 0 0 12px;
}
.rv-section__title { margin: 0; font-size: 1.15rem; }
.rv-section__more { -webkit-flex: 0 0 auto; flex: 0 0 auto; margin-left: 12px; font-size: .92rem; font-weight: 600; white-space: nowrap; }

.rv-row { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; }
.rv-row--top { -webkit-align-items: flex-start; align-items: flex-start; }
.rv-row--wrap { -webkit-flex-wrap: wrap; flex-wrap: wrap; }
.rv-row--between { -webkit-justify-content: space-between; justify-content: space-between; }
.rv-row > * + * { margin-left: 12px; }
.rv-row--tight > * + * { margin-left: 8px; }
.rv-grow { -webkit-flex: 1 1 auto; flex: 1 1 auto; min-width: 0; }
.rv-stack > * + * { margin-top: 12px; }
.rv-stack--l > * + * { margin-top: 20px; }

/* 7. Cards ---------------------------------------------------------------- */
.rv-card {
  background: var(--rv-surface);
  border: 1px solid var(--rv-line);
  border-radius: 16px;
  border-radius: var(--rv-radius);
  box-shadow: var(--rv-shadow);
  overflow: hidden;
}
.rv-card + .rv-card { margin-top: 16px; }
.rv-card__body { padding: 16px; }
.rv-card__head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--rv-line-soft);
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: space-between;
  justify-content: space-between;
}
.rv-card__title { margin: 0; font-size: 1.1rem; }
.rv-card__foot { padding: 12px 16px; border-top: 1px solid var(--rv-line-soft); background: #fffdf9; }
.rv-card--flat { box-shadow: none; }
.rv-card--sand { background: var(--rv-sand); border-color: var(--rv-sand-strong); box-shadow: none; }

/* 8. Buttons -------------------------------------------------------------- */
.rv-btn {
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 20px;
  border: 2px solid transparent;
  border-radius: 14px;
  background: var(--rv-surface);
  color: var(--rv-ink);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  -webkit-appearance: none;
  appearance: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-transition: background-color .15s, opacity .15s, -webkit-transform .1s;
  transition: background-color .15s, opacity .15s, transform .1s;
}
.rv-btn:active { -webkit-transform: scale(.98); transform: scale(.98); opacity: .9; }
.rv-btn .rv-icon { margin-right: 8px; }
.rv-btn--primary { background: var(--rv-primary); border-color: var(--rv-primary); color: #fff; }
.rv-btn--primary:active { background: var(--rv-primary-dark); }
.rv-btn--accent { background: var(--rv-orange); border-color: var(--rv-orange); color: #3a2400; }
.rv-btn--outline { background: #fff; border-color: var(--rv-line); color: var(--rv-ink); }
.rv-btn--ghost { background: transparent; border-color: transparent; color: var(--rv-accent); }
.rv-btn--danger { background: #fff; border-color: var(--rv-danger); color: var(--rv-danger); }
.rv-btn--block { display: -webkit-flex; display: flex; width: 100%; }
.rv-btn--sm { min-height: 40px; padding: 6px 14px; font-size: .92rem; border-radius: 12px; }
.rv-btn--lg { min-height: 56px; font-size: 1.08rem; border-radius: 16px; }
.rv-btn--icon { width: 48px; min-width: 48px; padding: 0; border-radius: 50%; }
.rv-btn--icon .rv-icon { margin: 0; }
.rv-btn[disabled], .rv-btn.is-disabled { opacity: .5; pointer-events: none; }
.rv-btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.rv-btn.is-loading:after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 20px; height: 20px;
  margin: -10px 0 0 -10px;
  border: 3px solid rgba(255, 255, 255, .5);
  border-top-color: #fff;
  border-radius: 50%;
  -webkit-animation: rv-spin .7s linear infinite;
  animation: rv-spin .7s linear infinite;
}
.rv-btn--outline.is-loading:after, .rv-btn--ghost.is-loading:after { border-color: var(--rv-line); border-top-color: var(--rv-accent); }
.rv-btn-row { display: -webkit-flex; display: flex; margin: 0 -6px; }
.rv-btn-row > * { -webkit-flex: 1 1 0; flex: 1 1 0; margin: 0 6px; min-width: 0; }
.rv-link { color: var(--rv-accent); font-weight: 600; text-decoration: underline; background: none; border: 0; padding: 0; }

/* Sticky action bar at the bottom of a page (profile actions, form submit) */
.rv-actionbar {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 850;
  padding: 10px 16px;
  padding-bottom: calc(10px + var(--rv-safe-bottom));
  background: rgba(255, 255, 255, .97);
  border-top: 1px solid var(--rv-line);
  box-shadow: var(--rv-shadow-up);
}
body.has-tabbar .rv-actionbar { bottom: 60px; bottom: calc(var(--rv-tabbar-h) + var(--rv-safe-bottom)); padding-bottom: 10px; }
body.rv-kbd-open .rv-actionbar { position: static; box-shadow: none; }
.rv-actionbar-spacer { height: 84px; }
/* iOS app: the action bar goes back into the page flow, after the form (as on desktop).
   The WebView runs under the native tab bar and the app keeps its own scroll view inset for it:
   the page content scrolls clear of the bar, but env(safe-area-inset-bottom) stays at 0, so a
   position:fixed bar at bottom:0 stayed hidden under the native tab bar ("Chercher" missing on
   the search page, reported 2026-12). The page cannot know the native bar height; in the flow the
   button is always reachable by scrolling. "html" outweighs the phone rules of section 5b. */
html body.rv-is-app.rv-os-ios .rv-actionbar { position: static; margin-top: 16px; padding: 0; background: transparent; border: 0; box-shadow: none; -webkit-transform: none; transform: none; }
html body.rv-is-app.rv-os-ios .rv-actionbar-spacer { display: none; }

/* 9. Forms ---------------------------------------------------------------- */
.rv-field { margin: 0 0 16px; }
.rv-label { display: block; margin: 0 0 6px; font-size: .92rem; font-weight: 700; color: var(--rv-ink); }
.rv-help { display: block; margin: 6px 0 0; font-size: .88rem; color: var(--rv-muted); }
.rv-input, .rv-select, .rv-textarea {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 2px solid var(--rv-line);
  border-radius: 14px;
  background: #fff;
  color: var(--rv-ink);
  font-size: 1rem; /* >= 16px: prevents iOS zoom on focus */
  line-height: 1.3;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none;
}
.rv-textarea { min-height: 110px; resize: vertical; line-height: 1.45; }
.rv-input:focus, .rv-select:focus, .rv-textarea:focus { outline: 0; border-color: var(--rv-primary); box-shadow: 0 0 0 3px var(--rv-primary-soft); }
.rv-input::-webkit-input-placeholder, .rv-textarea::-webkit-input-placeholder { color: #a99aac; }
.rv-input::placeholder, .rv-textarea::placeholder { color: #a99aac; }
.rv-select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%233f1f47' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.rv-field.has-error .rv-input, .rv-field.has-error .rv-select, .rv-field.has-error .rv-textarea { border-color: var(--rv-danger); }
.rv-field__error { display: block; margin-top: 6px; font-size: .88rem; font-weight: 600; color: var(--rv-danger); }
.rv-field-row { display: -webkit-flex; display: flex; margin: 0 -6px; }
.rv-field-row > * { -webkit-flex: 1 1 0; flex: 1 1 0; min-width: 0; margin: 0 6px; }

/* Checkbox / radio rows */
.rv-check {
  position: relative;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: flex-start;
  align-items: flex-start;
  min-height: 44px;
  padding: 10px 0;
  font-size: 1rem;
  color: var(--rv-text);
}
.rv-check input { -webkit-flex: 0 0 auto; flex: 0 0 auto; width: 24px; height: 24px; margin: 0 12px 0 0; accent-color: #3f7d58; }

/* Segmented choice: <label class="rv-choice"><input type="radio"><span>...</span></label> */
.rv-choices { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; margin: -4px; }
.rv-choice { position: relative; -webkit-flex: 1 1 auto; flex: 1 1 auto; margin: 4px; }
.rv-choices--equal .rv-choice { -webkit-flex: 1 1 0; flex: 1 1 0; }
.rv-choice input { position: absolute; opacity: 0; width: 100%; height: 100%; top: 0; left: 0; margin: 0; }
.rv-choice span {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px 16px;
  border: 2px solid var(--rv-line);
  border-radius: 14px;
  background: #fff;
  color: var(--rv-ink);
  font-weight: 700;
  text-align: center;
}
.rv-choice input:checked + span { border-color: var(--rv-primary); background: var(--rv-primary-soft); color: var(--rv-primary-dark); }
.rv-choice input:focus + span { box-shadow: 0 0 0 3px var(--rv-primary-soft); }

/* Switch: <label class="rv-switch"><span class="rv-grow">Label</span><input type="checkbox"><i></i></label> */
.rv-switch {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  min-height: 52px;
  padding: 8px 0;
  position: relative;
}
.rv-switch input { position: absolute; opacity: 0; right: 0; width: 52px; height: 32px; margin: 0; }
.rv-switch i {
  -webkit-flex: 0 0 auto;
  flex: 0 0 auto;
  position: relative;
  width: 52px;
  height: 32px;
  margin-left: 12px;
  border-radius: 16px;
  background: #d9cfc0;
  -webkit-transition: background-color .15s;
  transition: background-color .15s;
}
.rv-switch i:after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  -webkit-transition: -webkit-transform .15s;
  transition: transform .15s;
}
.rv-switch input:checked + i { background: var(--rv-primary); }
.rv-switch input:checked + i:after { -webkit-transform: translateX(20px); transform: translateX(20px); }
.rv-switch + .rv-switch { border-top: 1px solid var(--rv-line-soft); }

/* 10. Chips, badges, tags ------------------------------------------------- */
.rv-chips { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; margin: -3px; }
.rv-chip {
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-align-items: center;
  align-items: center;
  margin: 3px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--rv-sand);
  color: #7a4a12;
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.3;
}
.rv-chip .rv-icon { width: 1em; height: 1em; margin-right: 5px; }
.rv-chip--premium { background: var(--rv-premium); color: #fff; }
.rv-chip--green { background: var(--rv-primary-soft); color: var(--rv-primary-dark); }
.rv-chip--rose { background: var(--rv-accent-soft); color: var(--rv-accent); }
.rv-badge {
  display: inline-block;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--rv-danger);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}
.rv-badge:empty { display: none; }
.rv-badge--soft { background: var(--rv-sand-strong); color: #7a4a12; }
.rv-tag-new { display: inline-block; padding: 2px 9px; border-radius: 999px; background: var(--rv-primary); color: #fff; font-size: .74rem; font-weight: 700; vertical-align: middle; }

/* 11. Avatars & presence -------------------------------------------------- */
.rv-avatar {
  position: relative;
  display: inline-block;
  -webkit-flex: 0 0 auto;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--rv-sand-strong);
}
.rv-avatar img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(63, 31, 71, .18); }
.rv-avatar--s { width: 40px; height: 40px; }
.rv-avatar--l { width: 72px; height: 72px; }
.rv-avatar--xl { width: 104px; height: 104px; }
.rv-avatar__letter {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(63, 31, 71, .18);
  color: #8a5a1c;
  font-family: var(--rv-font-accent);
  font-size: 1.4em;
  text-transform: uppercase;
}
.rv-presence {
  position: absolute;
  right: 0; bottom: 0;
  width: 14px; height: 14px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #b9adbb;
}
.rv-presence.online, .rv-presence--online { background: var(--rv-online); }
.rv-presence.recentOnline, .rv-presence--recent { background: var(--rv-recent); }
.rv-presence.offline, .rv-presence--offline { display: none; }
.rv-presence--inline { position: static; display: inline-block; vertical-align: middle; margin-right: 6px; border: 0; width: 10px; height: 10px; }

/* 12. Lists --------------------------------------------------------------- */
.rv-list { list-style: none; margin: 0; padding: 0; }
.rv-list__item {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  min-height: 64px;
  padding: 12px 16px;
  color: inherit;
  text-decoration: none;
  border-top: 1px solid var(--rv-line-soft);
  background: transparent;
  width: 100%;
  text-align: left;
  border-left: 0; border-right: 0; border-bottom: 0;
}
.rv-list__item:first-child { border-top: 0; }
a.rv-list__item:active, button.rv-list__item:active { background: var(--rv-sand); }
.rv-list__item > * + * { margin-left: 12px; }
.rv-list__main { -webkit-flex: 1 1 auto; flex: 1 1 auto; min-width: 0; }
.rv-list__title { display: block; font-weight: 700; color: var(--rv-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-list__sub { display: block; font-size: .9rem; color: var(--rv-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-list__sub--wrap { white-space: normal; }
.rv-list__meta { -webkit-flex: 0 0 auto; flex: 0 0 auto; font-size: .8rem; color: var(--rv-muted); text-align: right; }
.rv-list__chev { -webkit-flex: 0 0 auto; flex: 0 0 auto; color: #c3b6a2; }
.rv-list__icon {
  -webkit-flex: 0 0 auto;
  flex: 0 0 auto;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--rv-sand);
  color: var(--rv-accent);
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
}
.rv-list__item.is-unread .rv-list__title { font-weight: 800; }
.rv-list__item.is-unread .rv-list__sub { color: var(--rv-ink); font-weight: 600; }
.rv-list-label { margin: 20px 16px 8px; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--rv-muted); }

/* 13. Profile cards ------------------------------------------------------- */
.rv-pgrid { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; margin: -6px; }
.rv-pgrid > * { width: 50%; padding: 6px; }
.rv-pgrid--single > * { width: 100%; }
@media (min-width: 600px) { .rv-pgrid > * { width: 33.333%; } .rv-pgrid--single > * { width: 50%; } }

.rv-pcard {
  position: relative;
  display: block;
  border-radius: 16px;
  border-radius: var(--rv-radius);
  overflow: hidden;
  background: var(--rv-sand-strong);
  color: #fff;
  box-shadow: var(--rv-shadow);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
.rv-pcard__media { position: relative; display: block; width: 100%; padding-top: 128%; background: var(--rv-sand-strong); }
.rv-pcard--big .rv-pcard__media { padding-top: 112%; }
.rv-pcard__media img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.rv-pcard__shade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 44px 12px 10px;
  background: -webkit-linear-gradient(top, rgba(40, 16, 46, 0), rgba(40, 16, 46, .82));
  background: linear-gradient(to bottom, rgba(40, 16, 46, 0), rgba(40, 16, 46, .82));
}
.rv-pcard__name { display: block; font-size: 1rem; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-pcard__meta { display: block; font-size: .86rem; color: rgba(255, 255, 255, .92); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-pcard__extra { display: block; margin-top: 2px; font-size: .8rem; color: rgba(255, 255, 255, .88); }
.rv-pcard__status {
  display: inline-block;
  max-width: 100%;
  margin-bottom: 5px;
  padding: 2px 9px 2px 7px;
  /* 11px = half the one-line height: a pill on one line, a soft box when a long
     label ("connecte il y a moins de...") wraps on a narrow card instead of being cut */
  border-radius: 11px;
  background: rgba(255, 255, 255, .94);
  color: var(--rv-ink);
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.5;
  vertical-align: bottom;
}
.rv-pcard__status:before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; background: var(--rv-online); }
.rv-pcard__status.recentOnline:before { background: var(--rv-recent); }
.rv-pcard__status.offline { display: none; }
/* Presence in the lists: a dot before the first name, inside the existing gradient, so it hides
   nothing of the photo (the long "connecte il y a..." pill stays for the profile hero only) */
.rv-pcard__dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 6px 2px 1px;
  border-radius: 50%;
  background: var(--rv-online);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .9);
  vertical-align: middle;
}
.rv-pcard__dot.recentOnline { background: var(--rv-recent); }
.rv-pcard__tools { position: absolute; top: 10px; right: 10px; }
.rv-pcard__tool {
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-align-items: center;
  align-items: center;
  margin-left: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(40, 16, 46, .62);
  color: #fff;
  font-size: .74rem;
  font-weight: 700;
}
.rv-pcard__tool .rv-icon { width: 14px; height: 14px; margin-right: 4px; }
.rv-pcard__tool--solo .rv-icon { margin-right: 0; }

/* Wide profile row: photo left, text right */
.rv-prow { display: -webkit-flex; display: flex; background: #fff; border: 1px solid var(--rv-line); border-radius: var(--rv-radius); overflow: hidden; box-shadow: var(--rv-shadow); color: inherit; }
.rv-prow + .rv-prow { margin-top: 12px; }
.rv-prow__media { -webkit-flex: 0 0 34%; flex: 0 0 34%; position: relative; min-height: 132px; background: var(--rv-sand-strong); }
.rv-prow__media img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.rv-prow__body { -webkit-flex: 1 1 auto; flex: 1 1 auto; min-width: 0; padding: 12px 14px; }
.rv-prow__name { margin: 0 0 4px; font-size: 1.08rem; font-weight: 800; color: var(--rv-ink); }
.rv-prow__text { margin: 0 0 8px; font-size: .92rem; color: var(--rv-text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Horizontal scroller (carousels without JS) */
.rv-scroller {
  display: -webkit-flex;
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -16px;
  padding: 4px 10px 12px;
  -webkit-scroll-snap-type: x proximity;
  scroll-snap-type: x proximity;
  scroll-padding: 0 16px; /* snapped cards keep the page margin instead of touching the edge */
  scrollbar-width: none;
}
.rv-scroller::-webkit-scrollbar { display: none; }
.rv-scroller > * { -webkit-flex: 0 0 auto; flex: 0 0 auto; margin: 0 6px; scroll-snap-align: start; }
.rv-scroller .rv-pcard { width: 150px; }
/* Strip = titled scroller with prev / next buttons and a fade on the right edge (app.js RV.strips).
   Without it, a row of cards under a grid reads as more grid and nobody swipes it. */
.rv-strip__head { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; margin: 0 0 6px; }
.rv-strip__title { -webkit-flex: 1 1 auto; flex: 1 1 auto; min-width: 0; margin: 0; font-size: 1rem; }
.rv-strip__nav {
  -webkit-flex: 0 0 auto; flex: 0 0 auto;
  display: -webkit-inline-flex; display: inline-flex;
  -webkit-align-items: center; align-items: center;
  -webkit-justify-content: center; justify-content: center;
  width: 38px; height: 38px; margin-left: 8px; padding: 0;
  border: 1px solid var(--rv-line); border-radius: 50%;
  background: var(--rv-surface); color: var(--rv-ink);
}
.rv-strip__nav .rv-icon { width: 20px; height: 20px; }
.rv-strip__nav--prev .rv-icon { -webkit-transform: rotate(180deg); transform: rotate(180deg); }
.rv-strip__nav[disabled] { opacity: .35; cursor: default; }
.rv-strip.is-static .rv-strip__nav { display: none; }
.rv-strip__body { position: relative; }
.rv-strip__body:after {
  content: "";
  position: absolute;
  top: 0; bottom: 12px; right: -16px;
  width: 40px;
  background: -webkit-linear-gradient(left, rgba(253, 251, 247, 0), #fdfbf7);
  background: linear-gradient(to right, rgba(253, 251, 247, 0), #fdfbf7);
  pointer-events: none;
  -webkit-transition: opacity .2s; transition: opacity .2s;
}
.rv-strip.is-end .rv-strip__body:after, .rv-strip.is-static .rv-strip__body:after { opacity: 0; }

/* 14. Tabs / filters ------------------------------------------------------ */
.rv-tabs {
  display: -webkit-flex;
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -16px 16px;
  padding: 0 12px;
  border-bottom: 1px solid var(--rv-line);
  scrollbar-width: none;
}
.rv-tabs::-webkit-scrollbar { display: none; }
.rv-tabs__item {
  -webkit-flex: 0 0 auto;
  flex: 0 0 auto;
  position: relative;
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-align-items: center;
  align-items: center;
  min-height: 48px;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  color: var(--rv-muted);
  font-size: .94rem;
  font-weight: 600;
  white-space: nowrap;
}
.rv-tabs__item .rv-icon { margin-right: 6px; }
.rv-tabs__item .rv-badge { margin-left: 6px; }
.rv-tabs__item.is-active { color: var(--rv-accent); }
.rv-tabs__item.is-active:after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--rv-accent); }
.rv-tabs--fill .rv-tabs__item { -webkit-flex: 1 1 0; flex: 1 1 0; -webkit-justify-content: center; justify-content: center; }

/* Activity shortcuts strip (messages / visits / flash / smiley) */
.rv-shortcuts { display: -webkit-flex; display: flex; max-width: 720px; margin: 0 auto; padding: 12px 10px 0; }
.rv-shortcut {
  -webkit-flex: 1 1 0;
  flex: 1 1 0;
  min-width: 0;
  position: relative;
  margin: 0 6px;
  padding: 10px 4px 8px;
  border: 1px solid var(--rv-line);
  border-radius: 14px;
  background: #fff;
  color: var(--rv-ink);
  font-size: .76rem;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rv-shortcut .rv-icon { display: block; width: 24px; height: 24px; margin: 0 auto 4px; color: var(--rv-accent); }
.rv-shortcut .rv-badge { position: absolute; top: 5px; left: 50%; margin-left: 8px; }
.rv-shortcut.is-active { border-color: var(--rv-accent); background: var(--rv-accent-soft); }

/* 15. Feedback ------------------------------------------------------------ */
.rv-alert {
  display: block;
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--rv-sand-strong);
  background: var(--rv-sand);
  color: #6b4310;
  font-size: .95rem;
}
.rv-alert--success { background: var(--rv-primary-soft); border-color: #c5e0d0; color: var(--rv-primary-dark); }
.rv-alert--error { background: var(--rv-danger-soft); border-color: #f1c4c0; color: #8f241c; }
.rv-alert--info { background: #eef0fa; border-color: #d5daf0; color: #33407a; }
.rv-alert a { color: inherit; font-weight: 700; text-decoration: underline; }
.rv-alert > :last-child { margin-bottom: 0; }

.rv-empty { padding: 36px 20px; text-align: center; }
.rv-empty__icon {
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  width: 76px; height: 76px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--rv-sand);
  color: var(--rv-accent);
}
.rv-empty__icon .rv-icon { width: 34px; height: 34px; }
.rv-empty__title { margin: 0 0 6px; font-size: 1.15rem; }
.rv-empty__text { margin: 0 auto 18px; max-width: 320px; color: var(--rv-muted); }

.rv-spinner {
  display: inline-block;
  width: 28px; height: 28px;
  border: 3px solid var(--rv-line);
  border-top-color: var(--rv-accent);
  border-radius: 50%;
  -webkit-animation: rv-spin .7s linear infinite;
  animation: rv-spin .7s linear infinite;
}
.rv-loading { padding: 28px 0; text-align: center; color: var(--rv-muted); }
.rv-loading .rv-spinner { display: block; margin: 0 auto 10px; }
@-webkit-keyframes rv-spin { to { -webkit-transform: rotate(360deg); } }
@keyframes rv-spin { to { transform: rotate(360deg); } }

.rv-skeleton { border-radius: 10px; background: #efe6d8; -webkit-animation: rv-pulse 1.2s ease-in-out infinite; animation: rv-pulse 1.2s ease-in-out infinite; }
@-webkit-keyframes rv-pulse { 50% { opacity: .55; } }
@keyframes rv-pulse { 50% { opacity: .55; } }

.rv-progress { height: 8px; border-radius: 4px; background: var(--rv-sand-strong); overflow: hidden; }
.rv-progress__bar { height: 100%; border-radius: 4px; background: var(--rv-orange); }

/* Toasts */
.rv-toasts {
  position: fixed;
  left: 12px; right: 12px;
  top: 12px;
  top: calc(12px + var(--rv-safe-top));
  z-index: 1200;
  pointer-events: none;
}
body.has-appbar .rv-toasts { top: 68px; top: calc(var(--rv-appbar-h) + var(--rv-safe-top) + 12px); }
.rv-toast {
  max-width: 480px;
  margin: 0 auto 8px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--rv-ink);
  color: #fff;
  font-size: .95rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(40, 16, 46, .28);
  pointer-events: auto;
  opacity: 0;
  -webkit-transform: translateY(-8px);
  transform: translateY(-8px);
  -webkit-transition: opacity .2s, -webkit-transform .2s;
  transition: opacity .2s, transform .2s;
}
.rv-toast.is-in { opacity: 1; -webkit-transform: none; transform: none; }
.rv-toast--success { background: var(--rv-primary-dark); }
.rv-toast--error { background: var(--rv-danger); }
.rv-toast a { color: #fff; text-decoration: underline; }

/* 16. Overlays: modal + bottom sheet -------------------------------------- */
.rv-backdrop {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 1000;
  background: rgba(40, 16, 46, .5);
  opacity: 0;
  -webkit-transition: opacity .2s;
  transition: opacity .2s;
}
.rv-backdrop.is-in { opacity: 1; }

.rv-sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1010;
  max-height: 88%;
  display: none;
  -webkit-flex-direction: column;
  flex-direction: column;
  background: var(--rv-bg);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -10px 40px rgba(40, 16, 46, .25);
  -webkit-transform: translateY(100%);
  transform: translateY(100%);
  -webkit-transition: -webkit-transform .25s ease;
  transition: transform .25s ease;
}
.rv-sheet.is-open { display: -webkit-flex; display: flex; }
.rv-sheet.is-in { -webkit-transform: none; transform: none; }
.rv-sheet__head {
  -webkit-flex: 0 0 auto;
  flex: 0 0 auto;
  position: relative;
  padding: 22px 60px 12px 20px;
}
.rv-sheet__head:before { content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: #d8cbb6; }
.rv-sheet__title { margin: 0; font-size: 1.1rem; }
.rv-sheet__close { position: absolute; top: 12px; right: 8px; }
.rv-sheet__body { -webkit-flex: 1 1 auto; flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 4px 20px 20px; padding-bottom: calc(20px + var(--rv-safe-bottom)); }
.rv-sheet__body--flush { padding-left: 0; padding-right: 0; }
/* Main destinations block of the menu sheet: only when opened from the app-bar hamburger */
.rv-sheet__nav { display: none; }
.rv-sheet[data-mode="full"] .rv-sheet__nav { display: block; }
.rv-sheet__nav .rv-list__item.is-current .rv-list__title { color: var(--rv-accent); }
.rv-sheet__nav .rv-list__item .rv-badge { -webkit-flex: 0 0 auto; flex: 0 0 auto; }
.rv-sheet__foot { -webkit-flex: 0 0 auto; flex: 0 0 auto; padding: 12px 20px; padding-bottom: calc(12px + var(--rv-safe-bottom)); border-top: 1px solid var(--rv-line); background: #fff; }
@media (min-width: 600px) {
  .rv-sheet { left: 50%; right: auto; width: 560px; margin-left: -280px; }
}

/* Full-screen photo viewer */
.rv-viewer { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1100; display: none; background: #1b0b1f; }
.rv-viewer.is-open { display: block; }
.rv-viewer__track { display: -webkit-flex; display: flex; height: 100%; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; -webkit-scroll-snap-type: x mandatory; scroll-snap-type: x mandatory; }
.rv-viewer__slide { -webkit-flex: 0 0 100%; flex: 0 0 100%; height: 100%; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center; scroll-snap-align: center; }
.rv-viewer__slide img { max-width: 100%; max-height: 100%; object-fit: contain; }
.rv-viewer__close { position: absolute; top: 10px; top: calc(10px + var(--rv-safe-top)); right: 10px; z-index: 2; background: rgba(0, 0, 0, .45); color: #fff; }
.rv-viewer__count { position: absolute; left: 0; right: 0; bottom: 16px; bottom: calc(16px + var(--rv-safe-bottom)); text-align: center; color: #fff; font-weight: 700; font-size: .9rem; }

/* 17. Messaging ----------------------------------------------------------- */
.rv-chat {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 950;
  display: none;
  -webkit-flex-direction: column;
  flex-direction: column;
  background: var(--rv-bg);
}
.rv-chat.is-open { display: -webkit-flex; display: flex; }
.rv-chat__head {
  -webkit-flex: 0 0 auto;
  flex: 0 0 auto;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  min-height: 60px;
  padding: 6px 6px 6px 2px;
  padding-top: calc(6px + var(--rv-safe-top));
  background: #fff;
  border-bottom: 1px solid var(--rv-line);
}
.rv-chat__who { -webkit-flex: 1 1 auto; flex: 1 1 auto; min-width: 0; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; color: inherit; }
.rv-chat__who .rv-avatar { margin-right: 10px; }
.rv-chat__name { display: block; font-weight: 800; color: var(--rv-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-chat__sub { display: block; font-size: .82rem; color: var(--rv-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-chat__scroll {
  -webkit-flex: 1 1 auto;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 12px 12px 8px;
}
.rv-chat__day { margin: 14px 0 10px; text-align: center; font-size: .78rem; font-weight: 700; color: var(--rv-muted); }
.rv-msg { display: -webkit-flex; display: flex; margin: 0 0 6px; }
.rv-msg--out { -webkit-justify-content: flex-end; justify-content: flex-end; }
.rv-bubble {
  position: relative;
  max-width: 82%;
  padding: 8px 12px;
  border-radius: 18px 18px 18px 6px;
  background: #fff;
  border: 1px solid var(--rv-line);
  color: var(--rv-ink);
  font-size: .9375rem; /* 15px: 16px read too big next to native chat apps */
  line-height: 1.35;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}
.rv-msg--out .rv-bubble { border-radius: 18px 18px 6px 18px; background: var(--rv-sand-strong); border-color: #ecd6b3; }
.rv-bubble img, .rv-bubble video { display: block; max-width: 100%; border-radius: 12px; }
.rv-bubble audio { display: block; max-width: 100%; width: 240px; }
.rv-bubble__meta { display: block; margin-top: 3px; font-size: .72rem; color: var(--rv-muted); text-align: right; white-space: nowrap; }
.rv-bubble__quote { display: block; margin: 0 0 6px; padding: 6px 10px; border-left: 3px solid var(--rv-accent); border-radius: 8px; background: rgba(180, 71, 46, .08); font-size: .88rem; color: var(--rv-text); white-space: normal; }
.rv-msg--system .rv-bubble { max-width: 100%; margin: 0 auto; border-radius: 14px; background: var(--rv-sand); border-color: var(--rv-sand-strong); font-size: .9rem; text-align: center; }
.rv-chat__notice { -webkit-flex: 0 0 auto; flex: 0 0 auto; padding: 8px 14px; background: var(--rv-sand); border-top: 1px solid var(--rv-sand-strong); font-size: .88rem; color: #6b4310; }
.rv-composer {
  -webkit-flex: 0 0 auto;
  flex: 0 0 auto;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: flex-end;
  align-items: flex-end;
  padding: 8px;
  padding-bottom: calc(8px + var(--rv-safe-bottom));
  background: #fff;
  border-top: 1px solid var(--rv-line);
}
body.rv-kbd-open .rv-composer { padding-bottom: 8px; }
.rv-composer__tool { -webkit-flex: 0 0 auto; flex: 0 0 auto; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--rv-accent); padding: 0; display: -webkit-inline-flex; display: inline-flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center; }
.rv-composer__input {
  -webkit-flex: 1 1 auto;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  max-height: 132px;
  margin: 0 6px;
  padding: 10px 14px;
  border: 2px solid var(--rv-line);
  border-radius: 22px;
  background: var(--rv-bg);
  color: var(--rv-ink);
  font-size: 1rem;
  line-height: 1.3;
  resize: none;
  -webkit-appearance: none;
  appearance: none;
}
.rv-composer__input:focus { outline: 0; border-color: var(--rv-primary); background: #fff; }
.rv-composer__send { -webkit-flex: 0 0 auto; flex: 0 0 auto; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--rv-primary); color: #fff; padding: 0; display: -webkit-inline-flex; display: inline-flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center; }
.rv-composer__send[disabled] { opacity: .45; }
.rv-composer__reply { -webkit-flex: 0 0 auto; flex: 0 0 auto; display: none; padding: 8px 12px; background: var(--rv-sand); border-top: 1px solid var(--rv-sand-strong); font-size: .88rem; }
.rv-composer__reply.is-open { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; }

/* 18. Profile page -------------------------------------------------------- */
.rv-hero { position: relative; background: var(--rv-sand-strong); }
.rv-hero__media { position: relative; width: 100%; padding-top: 112%; overflow: hidden; }
.rv-hero__media img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.rv-hero__shade { position: absolute; left: 0; right: 0; bottom: 0; padding: 70px 16px 16px; background: -webkit-linear-gradient(top, rgba(40, 16, 46, 0), rgba(40, 16, 46, .85)); background: linear-gradient(to bottom, rgba(40, 16, 46, 0), rgba(40, 16, 46, .85)); color: #fff; }
.rv-hero__name { margin: 0; font-size: 1.55rem; color: #fff; }
.rv-hero__meta { margin: 2px 0 0; font-size: 1rem; color: rgba(255, 255, 255, .94); }
@media (min-width: 600px) { .rv-hero__media { padding-top: 62%; } }
.rv-facts { list-style: none; margin: 0; padding: 0; }
.rv-facts li { display: -webkit-flex; display: flex; padding: 10px 0; border-top: 1px solid var(--rv-line-soft); }
.rv-facts li:first-child { border-top: 0; }
.rv-facts__k { -webkit-flex: 0 0 42%; flex: 0 0 42%; padding-right: 12px; color: var(--rv-muted); font-size: .92rem; }
.rv-facts__v { -webkit-flex: 1 1 auto; flex: 1 1 auto; min-width: 0; color: var(--rv-ink); font-weight: 600; }
.rv-thumbs { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; margin: -4px; }
.rv-thumb { position: relative; width: 33.333%; padding: 4px; }
.rv-thumb__in { position: relative; display: block; width: 100%; padding-top: 100%; border-radius: 12px; overflow: hidden; background: var(--rv-sand-strong); }
.rv-thumb__in img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.rv-thumb__badge { position: absolute; left: 10px; bottom: 10px; }

/* 19. Pricing ------------------------------------------------------------- */
.rv-plan { position: relative; display: block; padding: 16px; border: 2px solid var(--rv-line); border-radius: var(--rv-radius); background: #fff; color: inherit; }
.rv-plan + .rv-plan { margin-top: 12px; }
.rv-plan.is-featured, .rv-plan.is-selected { border-color: var(--rv-primary); background: #f8fcf9; }
.rv-plan__flag { position: absolute; top: -11px; right: 14px; padding: 2px 10px; border-radius: 999px; background: var(--rv-orange); color: #3a2400; font-size: .74rem; font-weight: 800; }
.rv-plan__name { display: block; font-size: 1.08rem; font-weight: 800; color: var(--rv-ink); }
.rv-plan__price { display: block; font-size: 1.5rem; font-weight: 800; color: var(--rv-primary-dark); }
.rv-plan__note { display: block; font-size: .88rem; color: var(--rv-muted); }

/* 20. Long-form content (rules, privacy, blog) ---------------------------- */
.rv-prose { color: var(--rv-text); font-size: 1rem; line-height: 1.6; }
.rv-prose h1, .rv-prose h2, .rv-prose h3 { margin-top: 1.2em; }
.rv-prose img { height: auto; border-radius: 12px; }
.rv-prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.rv-prose td, .rv-prose th { padding: 6px 8px; border: 1px solid var(--rv-line); text-align: left; vertical-align: top; }
.rv-prose a { text-decoration: underline; }
.rv-accordion { border-top: 1px solid var(--rv-line-soft); }
.rv-accordion:first-child { border-top: 0; }
.rv-accordion__head { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: space-between; justify-content: space-between; width: 100%; min-height: 56px; padding: 12px 16px; border: 0; background: transparent; color: var(--rv-ink); font-weight: 700; text-align: left; }
.rv-accordion__head .rv-icon { -webkit-transition: -webkit-transform .2s; transition: transform .2s; color: #c3b6a2; margin-left: 12px; }
.rv-accordion.is-open .rv-accordion__head .rv-icon { -webkit-transform: rotate(180deg); transform: rotate(180deg); }
.rv-accordion__body { display: none; padding: 0 16px 16px; }
.rv-accordion.is-open .rv-accordion__body { display: block; }

/* 21. Public / auth screens ----------------------------------------------- */
.rv-auth { max-width: 460px; margin: 0 auto; padding: 24px 20px 32px; }
.rv-auth__logo { display: block; margin: 8px auto 24px; text-align: center; }
.rv-auth__title { font-size: 1.6rem; margin: 0; }
.rv-steps { display: -webkit-flex; display: flex; margin: 0 0 20px; }
.rv-steps i { -webkit-flex: 1 1 0; flex: 1 1 0; height: 5px; margin-right: 6px; border-radius: 3px; background: var(--rv-sand-strong); }
.rv-steps i:last-child { margin-right: 0; }
.rv-steps i.is-done { background: var(--rv-primary); }

/* 22. Utilities ----------------------------------------------------------- */
.rv-hide { display: none !important; }
.rv-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rv-center { text-align: center; }
.rv-right { text-align: right; }
.rv-muted { color: var(--rv-muted); }
.rv-ink { color: var(--rv-ink); }
.rv-accent { color: var(--rv-accent); }
.rv-strong { font-weight: 700; }
.rv-small { font-size: .88rem; }
.rv-script { font-family: var(--rv-font-accent); font-weight: 600; color: var(--rv-accent); }
.rv-nowrap { white-space: nowrap; }
.rv-ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-mt-0 { margin-top: 0 !important; } .rv-mt-1 { margin-top: 8px !important; } .rv-mt-2 { margin-top: 16px !important; } .rv-mt-3 { margin-top: 24px !important; }
.rv-mb-0 { margin-bottom: 0 !important; } .rv-mb-1 { margin-bottom: 8px !important; } .rv-mb-2 { margin-bottom: 16px !important; } .rv-mb-3 { margin-bottom: 24px !important; }
.rv-p-0 { padding: 0 !important; }
.rv-ad { margin: 16px auto; text-align: center; overflow: hidden; max-width: 100%; }

@media (prefers-reduced-motion: reduce) {
  * { -webkit-animation-duration: .01ms !important; animation-duration: .01ms !important; -webkit-transition-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* 23. Wide screens (tablet landscape / desktop) ----------------------------
   Mobile-first: everything above is the phone layout. From 900px the bottom
   tab bar becomes a horizontal navigation inside the top bar and the content
   column widens; nothing else changes, so pages need no desktop markup. */
@media (min-width: 900px) {
  :root { --rv-appbar-h: 68px; --rv-gutter: 24px; }
  html { font-size: 17.5px; }
  body.has-tabbar { padding-bottom: 0; }
  .rv-page { max-width: 1080px; padding-top: 28px; }
  .rv-page--narrow { max-width: 520px; }
  .rv-page--text { max-width: 760px; }
  .rv-appbar { padding-left: 24px; padding-right: 24px; }
  .rv-appbar__brand { margin-left: 0; margin-right: 16px; }
  .rv-appbar__title { -webkit-flex: 0 1 auto; flex: 0 1 auto; margin-right: 0; padding-left: 16px; font-size: 1.05rem; }
  /* The top navigation sits on the right of this bar: keep the title clear of it */
  body.has-tabbar .rv-appbar__title { max-width: calc(100% - 920px); }
  .rv-tabbar {
    top: 0; bottom: auto; left: auto; right: 24px;
    z-index: 901;
    height: 68px;
    height: calc(var(--rv-appbar-h) + var(--rv-safe-top));
    padding: var(--rv-safe-top) 0 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    -webkit-align-items: center;
    align-items: center;
  }
  .rv-tabbar__item {
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
    -webkit-flex-direction: row;
    flex-direction: row;
    height: 44px;
    margin-left: 4px;
    padding: 0 14px;
    border-radius: 12px;
    font-size: .95rem;
    color: var(--rv-ink);
  }
  .rv-tabbar__item .rv-icon { width: 20px; height: 20px; margin: 0 8px 0 0; }
  .rv-tabbar__item.is-active { background: var(--rv-sand-strong); color: var(--rv-accent); }
  .rv-tabbar__item.is-active:before { display: none; }
  .rv-tabbar__badge { position: static; margin-left: 8px; }
  body.rv-kbd-open .rv-tabbar { display: -webkit-flex; display: flex; }
  body.has-tabbar .rv-actionbar, .rv-actionbar { position: static; margin-top: 16px; padding: 0; background: transparent; border: 0; box-shadow: none; }
  .rv-actionbar-spacer { display: none; }
  .rv-pgrid > * { width: 25%; }
  .rv-pgrid--single > * { width: 33.333%; }
  .rv-scroller .rv-pcard { width: 190px; }
  .rv-shortcuts { max-width: 1080px; padding: 20px 18px 0; }
  .rv-shortcut { padding: 12px 8px; font-size: .9rem; }
  .rv-shortcut .rv-icon { display: inline-block; margin: 0 8px 0 0; vertical-align: -.35em; }
  .rv-shortcut .rv-badge { position: static; margin-left: 8px; }
  .rv-sheet { top: 50%; bottom: auto; max-height: 86%; border-radius: 22px; -webkit-transform: translateY(-40%); transform: translateY(-40%); opacity: 0; -webkit-transition: opacity .2s, -webkit-transform .2s; transition: opacity .2s, transform .2s; }
  .rv-sheet.is-in { -webkit-transform: translateY(-50%); transform: translateY(-50%); opacity: 1; }
  .rv-sheet__head:before { display: none; }
  .rv-cols { display: -webkit-flex; display: flex; -webkit-align-items: flex-start; align-items: flex-start; margin: 0 -12px; }
  .rv-cols > * { -webkit-flex: 1 1 0; flex: 1 1 0; min-width: 0; margin: 0 12px; }
  .rv-cols > .rv-cols__side { -webkit-flex: 0 0 340px; flex: 0 0 340px; }
  /* Conversation: centred panel instead of a full-screen takeover */
  .rv-chat { left: 50%; right: auto; width: 760px; margin-left: -380px; top: 68px; top: calc(var(--rv-appbar-h) + var(--rv-safe-top)); border-left: 1px solid var(--rv-line); border-right: 1px solid var(--rv-line); z-index: 880; }
  .rv-hero__media { padding-top: 46%; }
}
/* Below 900px .rv-cols simply stacks its children */
.rv-cols > * + * { margin-top: 16px; }
@media (min-width: 900px) { .rv-cols > * + * { margin-top: 0; } }

/* 24. OneNight brand variant (body.onenight, set by header.cfm) ----------- */
body.onenight {
  --rv-accent: #d6336c;
  --rv-accent-soft: #fde7ef;
  --rv-orange: #ff558e;
  --rv-primary: #a82a63;
  --rv-primary-dark: #861f4e;
  --rv-primary-soft: #fbe3ee;
  --rv-bg-warm: #fde3ec;
}
body.onenight.rv-app { background-image: -webkit-linear-gradient(top, #fde3ec 0, #fdfbf7 320px); background-image: linear-gradient(to bottom, #fde3ec 0, #fdfbf7 320px); }

/* 25. Upgrade prompts (free -> paid). One calm pattern everywhere:
   say what the member gets, never block the page, one clear button. */
.rv-upsell { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; padding: 14px 16px; border: 1px solid #ecd6b3; border-radius: var(--rv-radius); background: -webkit-linear-gradient(left, #fff6e6, #fdebd9); background: linear-gradient(to right, #fff6e6, #fdebd9); color: var(--rv-ink); }
.rv-upsell__icon { -webkit-flex: 0 0 auto; flex: 0 0 auto; width: 44px; height: 44px; margin-right: 12px; border-radius: 50%; background: #fff; color: var(--rv-orange-dark); display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center; }
.rv-upsell__main { -webkit-flex: 1 1 0px; flex: 1 1 0px; min-width: 0; }
.rv-upsell__title { display: block; font-weight: 800; }
.rv-upsell__text { display: block; font-size: .9rem; color: var(--rv-text); }
.rv-upsell .rv-btn { -webkit-flex: 0 0 auto; flex: 0 0 auto; margin-left: 12px; }
@media (max-width: 420px) { .rv-upsell { -webkit-flex-wrap: wrap; flex-wrap: wrap; } .rv-upsell .rv-btn { width: 100%; margin: 12px 0 0; } }
/* In the 340px side column the button never fits next to the text: same stacked layout as on phones */
@media (min-width: 900px) {
  .rv-cols__side .rv-upsell { -webkit-flex-wrap: wrap; flex-wrap: wrap; -webkit-align-items: flex-start; align-items: flex-start; padding: 16px; }
  .rv-cols__side .rv-upsell .rv-btn { width: 100%; margin: 14px 0 0; }
}
/* Side column: every block (cards, upsell, event) gets the same gap, not only card + card */
.rv-cols__side > * + * { margin-top: 16px; }

/* 26. Public pages: reassurance + editorial blocks ------------------------ */
.rv-trust { list-style: none; margin: 0; padding: 0; }
.rv-trust li { display: -webkit-flex; display: flex; -webkit-align-items: flex-start; align-items: flex-start; padding: 8px 0; }
.rv-trust .rv-icon { margin: 2px 12px 0 0; color: var(--rv-primary); }
.rv-lead { font-size: 1.1rem; color: var(--rv-text); }
.rv-footer { max-width: 1080px; margin: 32px auto 0; padding: 20px 16px 28px; border-top: 1px solid var(--rv-line); font-size: .88rem; color: var(--rv-muted); text-align: center; }
.rv-footer a { display: inline-block; margin: 4px 8px; color: var(--rv-muted); text-decoration: underline; }

/* 27. Small variants requested by pages ----------------------------------- */
.rv-list__title--wrap { white-space: normal; }
.rv-switch input:focus + i { box-shadow: 0 0 0 3px var(--rv-primary-soft); }
/* Selected choice: not conveyed by colour alone */
.rv-choice input:checked + span { box-shadow: inset 0 0 0 1px var(--rv-primary); }
.rv-pgrid > .rv-pgrid__full { width: 100%; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { padding: 0; }
.rv-prose a.rv-btn { text-decoration: none; }
.rv-footer a { padding: 10px 4px; }
@media (min-width: 900px) {
  .rv-cols > .rv-card + .rv-card { margin-top: 0; }
  .rv-cols__side .rv-hero__media { padding-top: 112%; }
}

/* 28. Brand logo, bio excerpt, locked features ----------------------------- */
.rv-brand { line-height: 1; }
@media (max-width: 359px) { .rv-appbar__logo { height: 20px; } }
@media (min-width: 900px) { .rv-appbar__logo { height: 32px; } .rv-appbar__menu { display: none; } }
/* 900-1199px: the logo and the top navigation fill the bar, the active tab names the page */
@media (min-width: 900px) and (max-width: 1199px) {
  body.has-tabbar .rv-appbar__title { display: none; }
  .rv-tabbar__item { padding: 0 10px; }
}

.rv-pcard__bio {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 2.7em;
  margin-top: 3px;
  font-size: .8rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, .92);
  white-space: normal;
}

/* A feature the member cannot use without a subscription: padlock, everywhere.
   Server side: class "rv-btn--locked" (button), "rv-pill-locked" (pill) or "rv-locked" (any inline
   element) and #rvIcon("lock")# as first child. The element still links to pay/Prices.cfm.
   Locked buttons are green like every call to action (the padlock says it needs a subscription).
   The pill over a photo and inline text are red: red = "you have no access". */
.rv-btn--locked, .rv-btn--locked:active { background: #3e7052; background: var(--rv-primary); border-color: var(--rv-primary); color: #fff; }
.rv-btn--locked:active { background: var(--rv-primary-dark); }
.rv-btn--locked.rv-btn--outline, .rv-btn--locked.rv-btn--ghost { background: #fff; color: #32654a; color: var(--rv-primary-dark); }
.rv-btn--locked.rv-btn--outline { border-color: var(--rv-primary); }
.rv-locked { color: var(--rv-danger) !important; font-weight: 700; }
.rv-locked .rv-icon, .rv-btn--locked .rv-icon { width: 1.05em; height: 1.05em; }
.rv-locked .rv-icon { margin-right: 5px; }
.rv-pill-locked {
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-align-items: center;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: #c2372c;
  background: var(--rv-danger);
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
}
.rv-pill-locked .rv-icon { width: 1.05em; height: 1.05em; margin-right: 6px; }
.rv-upsell--locked { border-color: #f1c4c0; background: var(--rv-danger-soft); }
.rv-upsell--locked .rv-upsell__icon { color: var(--rv-danger); }

/* Composer placeholder: one line, ellipsis instead of a half-cut second line */
.rv-composer__input::-webkit-input-placeholder { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-composer__input::placeholder { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 29. Desktop skin (>= 900px) ---------------------------------------------
   On a computer the member arrives from the public home page
   (scripts/friends/indexfr.cfm, new version on devfr): /app-new takes the same
   look there. Light cream background, cream top bar, semibold dark-brown
   headings, ochre links, green main call to action, cards with a thin warm
   border and no shadow, 7-10px radii. Red stays reserved for locked features
   and errors. Phones keep the look above. Tokens first, then the components
   that hard-code a radius. body.onenight sets its own colours on body, so
   OneNight keeps its pink. */
@media (min-width: 900px) {
  :root {
    --rv-bg: #f7f3ed;
    --rv-surface: #fffdf9;
    --rv-sand: #f7f3ed;
    --rv-sand-strong: #ece4d8;
    --rv-line: #e7e0d7;
    --rv-line-soft: #efe9e0;
    --rv-ink: #37312b;
    --rv-text: #453d35;
    --rv-muted: #62513f;
    --rv-accent: #87480e;
    --rv-accent-soft: #f5ebdf;
    --rv-primary: #3e7052;
    --rv-primary-dark: #315b42;
    --rv-primary-soft: #e5efe8;
    --rv-radius-s: 7px;
    --rv-radius: 10px;
    --rv-radius-l: 12px;
    --rv-shadow: none;
  }
  html { font-size: 16px; }
  body.rv-app, body.onenight.rv-app { background-image: none; }
  .rv-appbar { background: #fffdf9; border-bottom-color: #e7e0d7; }

  h1, h2, h3 { font-weight: 600; letter-spacing: 0; }
  h1, .rv-page__title { font-size: 1.9rem; }
  .rv-section__title { font-size: 1.6rem; }
  .rv-card__title { font-size: 1.15rem; }
  .rv-page__sub { color: var(--rv-muted); }

  .rv-btn { border-radius: 7px; font-weight: 600; }
  .rv-btn--sm { border-radius: 7px; }
  .rv-btn--lg { border-radius: 7px; }
  .rv-btn--icon { border-radius: 50%; }
  .rv-input, .rv-select, .rv-textarea, .rv-choice span { border-radius: 7px; border-color: #c8bbaa; }
  .rv-pcard, .rv-shortcut, .rv-alert, .rv-toast { border-radius: 10px; }
  .rv-sheet { border-radius: 12px; }

  .rv-tabbar__item { border-radius: 7px; }
  .rv-tabbar__item.is-active { background: var(--rv-sand-strong); color: var(--rv-ink); }
  .rv-strip__body:after { background: -webkit-linear-gradient(left, rgba(247, 243, 237, 0), #f7f3ed); background: linear-gradient(to right, rgba(247, 243, 237, 0), #f7f3ed); }
}

/* 30. Desktop polish (>= 900px) -------------------------------------------
   Mouse and large-screen refinements only; nothing here reaches a phone.
   - hover states (only on devices that really hover) and a visible
     keyboard focus ring;
   - the "Plus" menu opens as a drop-down under its tab, not a centred modal;
   - from 1200px the content column widens to 1140px (a 728px ad then fits
     in the profile's main column) and the full-width profile grids show
     6 cards per row (lists come by 12) instead of 4 oversized portraits;
   - the profile's photo column stays in view while the details scroll;
   - the info banner uses the warm palette instead of an off-brand blue. */
@media (min-width: 900px) {
  .rv-alert--info { background: #f5ebdf; border-color: #ead9c4; color: #5a3c1c; }

  /* "Plus" menu: drop-down anchored under the top navigation */
  #rvMenu.rv-sheet {
    top: 76px;
    top: calc(var(--rv-appbar-h) + var(--rv-safe-top) + 8px);
    right: 24px; left: auto; bottom: auto;
    width: 380px; margin-left: 0;
    max-height: 80%;
    max-height: calc(100% - var(--rv-appbar-h) - var(--rv-safe-top) - 24px);
    background: #fffdf9;
    border: 1px solid #e7e0d7;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(55, 49, 43, .16);
    -webkit-transform: translateY(-6px); transform: translateY(-6px);
  }
  #rvMenu.rv-sheet.is-in { -webkit-transform: none; transform: none; }
  /* A drop-down only needs a light veil behind it */
  #rvMenu.is-open ~ .rv-backdrop { background: rgba(55, 49, 43, .16); }
  #rvMenu .rv-sheet__head { padding: 14px 52px 10px 16px; border-bottom: 1px solid #efe9e0; }
  #rvMenu .rv-sheet__close { top: 4px; right: 4px; }
  #rvMenu .rv-list__item { min-height: 46px; padding-top: 8px; padding-bottom: 8px; }
  #rvMenu .rv-list-label { margin: 16px 16px 6px; }

  /* Profile page: photo + actions stay visible while reading the details */
  .rv-pf__side, .rv-cols > aside.rv-cols__side {
    position: -webkit-sticky;
    position: sticky;
    top: 88px;
    top: calc(var(--rv-appbar-h) + var(--rv-safe-top) + 20px);
  }

  a:focus-visible, button:focus-visible, .rv-btn:focus-visible, [tabindex]:focus-visible { outline: 2px solid #3e7052; outline-offset: 2px; }
}
/* Too short a window for a sticky column: it scrolls with the page */
@media (min-width: 900px) and (max-height: 699px) {
  .rv-pf__side, .rv-cols > aside.rv-cols__side { position: static; }
}

@media (min-width: 1200px) {
  .rv-page:not(.rv-page--narrow):not(.rv-page--text), .rv-shortcuts, .rv-footer { max-width: 1140px; }
  .rv-pgrid > * { width: 16.666%; }
  .rv-cols .rv-pgrid > *, .rv-pgrid--single > * { width: 25%; }
  .rv-pgrid > .rv-pgrid__full { width: 100%; }
}

@media (min-width: 900px) and (hover: hover) {
  .rv-btn { -webkit-transition: background-color .15s, border-color .15s, color .15s; transition: background-color .15s, border-color .15s, color .15s; }
  .rv-btn--primary:hover, .rv-btn--locked:hover { background: var(--rv-primary-dark); border-color: var(--rv-primary-dark); }
  .rv-btn--outline:hover, .rv-btn--locked.rv-btn--outline:hover { background: #f7f3ed; border-color: #c8bbaa; }
  .rv-btn--ghost:hover { background: var(--rv-accent-soft); }
  .rv-btn--danger:hover { background: var(--rv-danger-soft); }
  .rv-btn--accent:hover { background: var(--rv-orange-dark); border-color: var(--rv-orange-dark); }

  a.rv-list__item, button.rv-list__item { -webkit-transition: background-color .12s; transition: background-color .12s; }
  a.rv-list__item:hover, button.rv-list__item:hover { background: #f9f5ef; }
  a.rv-list__item:hover .rv-list__chev { color: var(--rv-muted); }

  .rv-pcard .rv-pcard__media img { -webkit-transition: -webkit-transform .35s ease; transition: transform .35s ease; }
  a.rv-pcard:hover .rv-pcard__media img, .rv-pcard a:hover .rv-pcard__media img { -webkit-transform: scale(1.04); transform: scale(1.04); }

  .rv-shortcut { -webkit-transition: border-color .15s, background-color .15s; transition: border-color .15s, background-color .15s; }
  .rv-shortcut:hover { border-color: #c8bbaa; background: #fffdf9; }
  .rv-tabbar__item:hover { background: #f2ece3; }
  .rv-tabbar__item.is-active:hover { background: var(--rv-sand-strong); }
  .rv-tabs__item:hover { color: var(--rv-ink); }
  .rv-tabs__item.is-active:hover { color: var(--rv-accent); }
  .rv-strip__nav:not([disabled]):hover { border-color: #c8bbaa; background: #f7f3ed; }
  .rv-choice:hover span { border-color: #a8987f; }
  .rv-appbar__btn:hover { background: #f2ece3; }
  .rv-section__more:hover { text-decoration: underline; }
}

/* 31. Public CTA (free/_publicCta.cfm: rules.cfm, rules_home.cfm) ---------
   A visitor reading a long public page always has the way in at hand:
   - "Connexion" drawn over the app bar (fixed, left of the globe), every width;
   - phones / tablets (< 900px): the signup button stays at the bottom
     (rv-actionbar, always visible; body.has-pubcta keeps the footer clear);
   - desktop (>= 900px): a card at the top of the sticky side column carries
     it instead (one green button per screen). */
.rv-pubcta-top { display: none; }
body.has-appbar .rv-pubcta-top { position: fixed; z-index: 905; top: 0; top: var(--rv-safe-top); right: 52px; height: 56px; height: var(--rv-appbar-h); display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; }
.rv-pubcta-top a { padding: 12px 8px; font-size: .95rem; font-weight: 700; color: var(--rv-ink); text-decoration: none; white-space: nowrap; }
.rv-pubcta-top a:hover { text-decoration: underline; }
.rv-pubcta-card .rv-card__title { margin: 0 0 4px; }
.rv-pubcta-card p { margin: 0 0 14px; color: var(--rv-text); }
.rv-pubcta-card__login { margin: 12px 0 0 !important; font-size: .9rem; text-align: center; }
.rv-pubcta-card { display: none; }
@media (max-width: 899px) { body.has-pubcta { padding-bottom: 84px; padding-bottom: calc(84px + var(--rv-safe-bottom)); } }
@media (min-width: 900px) {
  body.has-appbar .rv-pubcta-top { right: 24px; }
  .rv-pubcta-bar { display: none !important; }
  .rv-pubcta-card { display: block; }
}

/* 32. iOS app audio button (rvAudio() / RV.audioButton: no <audio> in the legacy UIWebView) ---- */
.rv-audio-lazy { min-width: 9em; }
.rv-audio-lazy.is-playing { background: var(--rv-primary-soft); }
body.rv-is-app.rv-os-ios .rv-ad { display: none !important; }
