/* Requests: one clean sheet, every class `r-`.
 *
 * The look is Field's iOS layer (apps/field/app.css "iOS LAYER" and "Wide
 * screens (v0.31.0)"), taken as FINAL VALUES rather than as Field's layered
 * overrides, and shaped like iOS Messages (Chris, 2026-10-01): an inbox, and
 * each request a conversation.
 *
 * Rules that hold everywhere:
 *  - nothing interactive is smaller than 44pt in either dimension (the 32pt
 *    send arrow carries an invisible 44pt hit area);
 *  - safe areas on every edge (env(safe-area-inset-*));
 *  - both themes through the --f-* tokens; a FILLED control is --f-fill with
 *    white text (4.6:1), never the bright accent;
 *  - SF type scale below; nothing under 16px is an input (iOS zooms);
 *  - no inline style attributes are needed (CSP style-src can stay 'self').
 */

/* ── Tokens (Field iOS layer, apps/field/app.css:1481-1512) ── */
:root {
  --f-bg: #000000;
  --f-card: #1c1c1e;
  --f-card-2: #2c2c2e;
  --f-card-hover: #2c2c2e;
  --f-border: #38383a;
  --f-border-soft: #2c2c2e;
  --f-text: #ffffff;
  --f-muted: #aeaeb2;
  --f-dim: #8e8e93;
  --f-fill: #0f7cb8;
  --f-field: #1c1c1e;
  --f-glass: rgba(30, 30, 32, 0.82);
  --f-glass-edge: rgba(255, 255, 255, 0.10);
  --f-accent: var(--lh-accent, #2aa3e6);
  --f-accent-soft: var(--lh-accent-soft, rgba(42, 163, 230, 0.13));
  --f-warn: var(--lh-warn, #f5c84a);
  --f-radius: 14px;
  --f-radius-lg: 18px;
  --f-tap: 44px;

  --r-red: #ff453a;
  --r-avatar: linear-gradient(180deg, #a5abb8 0%, #858994 100%);
  --r-hair: 0.5px;
  --r-toolbar-h: 56px;

  /* SF type scale (size/leading weight). */
  --r-font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  --r-large-title: 700 34px/41px var(--r-font);
  --r-title1: 400 28px/34px var(--r-font);
  --r-title2: 400 22px/28px var(--r-font);
  --r-headline: 600 17px/22px var(--r-font);
  --r-body: 400 17px/22px var(--r-font);
  --r-subhead: 400 15px/20px var(--r-font);
  --r-footnote: 400 13px/18px var(--r-font);
  --r-caption: 400 12px/16px var(--r-font);
}
:root[data-theme='light'] {
  --f-bg: #f2f2f7;
  --f-card: #ffffff;
  --f-card-2: #e9e9eb;
  --f-card-hover: #e5e5ea;
  --f-border: #c6c6c8;
  --f-border-soft: #e5e5ea;
  --f-text: #000000;
  --f-muted: #5e5e63;
  --f-dim: #6e6e73;
  --f-fill: #0f7cb8;
  --f-field: #e3e3e8;
  --f-glass: rgba(249, 249, 251, 0.85);
  --f-glass-edge: rgba(0, 0, 0, 0.08);
  --f-accent: var(--lh-accent, #0f7cb8);
  --f-accent-soft: var(--lh-accent-soft, rgba(15, 124, 184, 0.10));
  --r-red: #d70015;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  font: var(--r-body);
  color: var(--f-text);
  background: var(--f-bg);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: contain;
}

button, select, textarea, input { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--f-accent); outline-offset: 2px; }

.r-vh {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* Hidden until the auth gate resolves, so a signed-out visitor never sees
   app chrome flash before the redirect. main.mjs sets .booted. */
body:not(.booted) .r-shell,
body:not(.booted) .r-toolbar { visibility: hidden; }

/* ── Auth gate (Field's; .known-user hides it before first paint) ── */
.r-gate {
  position: fixed; inset: 0; z-index: 400;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px;
  padding: calc(24px + env(safe-area-inset-top)) calc(24px + env(safe-area-inset-right))
           calc(24px + env(safe-area-inset-bottom)) calc(24px + env(safe-area-inset-left));
  text-align: center;
  background: var(--f-bg);
}
.r-gate.is-hidden { display: none; }
.known-user .r-gate { display: none; }
.r-gate-title { margin: 0; font: var(--r-large-title); }
.r-gate-msg { margin: 0; max-width: 30ch; font: var(--r-body); color: var(--f-muted); }

/* ── Buttons ── */
.r-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 24px;
  font: var(--r-headline);
  color: #fff; background: var(--f-fill);
  border: 0; border-radius: 14px; cursor: pointer;
}
.r-btn:active { filter: brightness(0.9); }
.r-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--f-tap); padding: 0 12px;
  font: var(--r-headline); color: var(--f-accent);
  background: none; border: 0; cursor: pointer;
}

/* ── Banners ── */
.r-offline {
  display: none;
  padding: 8px calc(16px + env(safe-area-inset-right)) 8px calc(16px + env(safe-area-inset-left));
  padding-top: calc(8px + env(safe-area-inset-top));
  font: var(--r-footnote); font-weight: 600; text-align: center;
  color: #000; background: var(--f-warn);
}
body.is-offline .r-offline { display: block; }
.r-update {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 8px 16px;
  font: var(--r-footnote); font-weight: 600;
  color: #fff; background: var(--f-fill);
}
.r-update button {
  min-height: var(--f-tap); padding: 0 14px;
  font-weight: 700; color: #fff; background: none;
  border: 1px solid #fff; border-radius: 999px; cursor: pointer;
}

/* ── Toolbar (Field v0.27-v0.29 final values) ──
   List: large title leading; compose + avatar trailing, both 44pt.
   Conversation (phone): "‹ Requests" leading, avatar + title centred, the
   trailing side kept for balance but empty. */
.r-toolbar {
  position: sticky; top: 0; z-index: 40;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px;
  max-width: 720px; margin: 0 auto;
  min-height: calc(env(safe-area-inset-top) + var(--r-toolbar-h));
  padding: env(safe-area-inset-top) calc(16px + env(safe-area-inset-right)) 0 calc(16px + env(safe-area-inset-left));
  background: var(--f-bg);
}
.r-toolbar-leading { display: flex; align-items: center; min-width: 0; }
.r-toolbar-title {
  margin: 0; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: var(--r-large-title); letter-spacing: 0.01em;
}
.r-toolbar-center { display: flex; justify-content: center; min-width: 0; }
.r-toolbar-center:empty { display: none; }
/* A phone conversation: back | centred header | an empty balance column. */
body.is-thread .r-toolbar { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.r-toolbar-trailing { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.r-toolbar-action:empty { display: none; }
body.is-thread .r-toolbar-trailing { visibility: hidden; }

.r-back {
  display: inline-flex; align-items: center; gap: 2px;
  min-height: var(--f-tap); margin-left: -8px; padding: 0 8px 0 4px;
  font: var(--r-body); color: var(--f-accent);
  background: none; border: 0; cursor: pointer;
}
.r-back-chev { font-size: 34px; line-height: 1; font-weight: 400; transform: translateY(-2px); }

/* The compose glyph: the page's one action, tinted (HIG .prominent). */
.r-compose {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  color: #fff; background: var(--f-fill);
  border: 0; border-radius: 50%; cursor: pointer;
}
.r-compose:active { filter: brightness(0.9); }
.r-compose-ico, .r-send-ico {
  width: 22px; height: 22px;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

lh-nav[compact] { position: static; display: block; width: 44px; height: 44px; }
lh-nav[compact] { --lh-avatar-bg: #2c2c2e; --lh-avatar-fg: #ffffff; }
:root[data-theme='light'] lh-nav[compact] { --lh-avatar-bg: #e3e3e8; --lh-avatar-fg: #000000; }

/* ── Shell ── */
.r-shell {
  max-width: 720px; margin: 0 auto;
  padding: 0 calc(16px + env(safe-area-inset-right)) 0 calc(16px + env(safe-area-inset-left));
}

/* ── Inbox ── */
.r-list-screen {
  display: flex; flex-direction: column;
  padding: 4px 0 calc(96px + env(safe-area-inset-bottom));
}

.r-picker { display: flex; align-items: center; gap: 12px; margin: 4px 0 12px; }
.r-picker-label { font: var(--r-subhead); color: var(--f-muted); }
.r-picker-select {
  flex: 1 1 auto; min-width: 0;
  min-height: var(--f-tap); padding: 0 12px;
  font: var(--r-body); font-size: 17px;
  color: var(--f-text); background: var(--f-field);
  border: 0; border-radius: 10px;
}

.r-stale, .r-loading {
  margin: 4px 0 8px; text-align: center;
  font: var(--r-footnote); color: var(--f-muted);
}
.r-loading { padding: 48px 0; font: var(--r-body); }
.r-note {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  margin: 8px 0 12px; padding: 12px 16px;
  text-align: center;
  background: var(--f-card); border-radius: var(--f-radius);
}
.r-note-text { margin: 0; font: var(--r-subhead); color: var(--f-muted); }

.r-empty { padding: 96px 16px 24px; text-align: center; }
.r-empty-text { margin: 0; font: var(--r-title2); color: var(--f-muted); }

/* Messages rows: full-bleed, hairlines inset to the text. */
.r-inbox { list-style: none; margin: 0 calc(-16px - env(safe-area-inset-right)) 0 calc(-16px - env(safe-area-inset-left)); padding: 0; }
.r-inbox-item { position: relative; }
.r-inbox-item:not(:last-child)::after {
  content: ''; position: absolute; left: 76px; right: 0; bottom: 0;
  height: 1px; transform: scaleY(0.5); transform-origin: bottom;
  background: var(--f-border);
}
.r-row {
  display: flex; align-items: center; gap: 10px;
  width: 100%; min-height: 76px;
  padding: 10px calc(16px + env(safe-area-inset-right)) 10px calc(4px + env(safe-area-inset-left));
  text-align: left; color: var(--f-text);
  background: none; border: 0; cursor: pointer;
}
.r-row:active { background: var(--f-card-hover); }
.r-dot { flex: 0 0 12px; display: flex; align-items: center; justify-content: center; }
.r-row.is-unread .r-dot::before {
  content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--f-accent);
}
.r-row-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.r-row-top { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.r-row-title {
  flex: 1 1 auto; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: var(--r-headline);
}
.r-row-date { flex: none; font: var(--r-subhead); color: var(--f-muted); }
.r-chev { flex: none; font-size: 22px; line-height: 1; color: var(--f-dim); transition: transform 0.15s; }
.r-row-preview {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: var(--r-subhead); color: var(--f-muted);
}

/* Avatar: the property code in a grey circle, as Messages draws a contact
   with no photo. Two short lines for a long code. */
.r-avatar {
  flex: none;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 50%;
  color: #fff; background: var(--r-avatar);
  font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase;
  overflow: hidden;
}
.r-avatar.is-row { width: 40px; height: 40px; font-size: 12px; line-height: 1.05; }
.r-avatar.is-row.is-two { font-size: 10px; }
.r-avatar.is-small { width: 28px; height: 28px; font-size: 9px; line-height: 1; }
.r-avatar.is-small.is-two { font-size: 7.5px; }
.r-avatar-line { display: block; }

.r-done-toggle {
  display: flex; align-items: center; gap: 8px;
  width: 100%; min-height: 52px; margin-top: 16px; padding: 0 4px;
  font: var(--r-headline); color: var(--f-muted);
  background: none; border: 0; cursor: pointer;
}
.r-done-label { flex: 1 1 auto; text-align: left; }
.r-done-count { font-weight: 400; font-variant-numeric: tabular-nums; }
.r-done-toggle.is-open .r-chev { transform: rotate(90deg); }
.r-inbox.is-done .r-row { opacity: 0.6; }

/* The pinned "New request" button: the one obvious thing to press. */
.r-cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; justify-content: center;
  padding: 12px calc(16px + env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left));
  background: var(--f-glass);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid var(--f-glass-edge);
}
.r-cta {
  width: 100%; max-width: 688px; min-height: 52px;
  font: var(--r-headline); font-size: 18px;
  color: #fff; background: var(--f-fill);
  border: 0; border-radius: 14px; cursor: pointer;
}
.r-cta:active { filter: brightness(0.9); }

/* ── Conversation ── */
.r-convo {
  display: flex; flex-direction: column;
  min-height: calc(100dvh - env(safe-area-inset-top) - var(--r-toolbar-h));
}
.r-convo-body { flex: 1 1 auto; padding: 4px 0 12px; }

/* Header: small avatar over a 12pt title; tap for Details. */
.r-head {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-width: var(--f-tap); min-height: var(--f-tap); max-width: 48vw; padding: 2px 6px;
  color: var(--f-text); background: none; border: 0; border-radius: 10px; cursor: pointer;
}
.r-head:disabled { cursor: default; opacity: 1; }
.r-head-avatar { display: flex; }
.r-head-title {
  max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: var(--r-caption); color: var(--f-text);
}
.r-head-slot { display: flex; justify-content: center; }
.r-head-slot:empty { display: none; }

.r-details {
  margin: 8px 0 4px;
  background: var(--f-card); border-radius: var(--f-radius);
  overflow: hidden;
}
.r-kv {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: var(--f-tap); padding: 10px 16px;
  font: var(--r-body);
}
.r-kv + .r-kv { box-shadow: inset 0 1px 0 var(--f-border-soft); }
.r-kv-key { color: var(--f-muted); }
.r-kv-val { text-align: right; overflow-wrap: anywhere; }

/* "Property: Any ›", the To: line of a new conversation. A native select
   lies invisibly over it, so a tap opens iOS's own picker. */
.r-to {
  position: relative;
  display: flex; align-items: center; gap: 6px;
  min-height: var(--f-tap); margin: 0 calc(-16px - env(safe-area-inset-right)) 0 calc(-16px - env(safe-area-inset-left));
  padding: 0 calc(16px + env(safe-area-inset-right)) 0 calc(16px + env(safe-area-inset-left));
  font: var(--r-body);
  border-bottom: 1px solid var(--f-border-soft);
}
.r-to-label { color: var(--f-muted); }
.r-to-value { flex: 1 1 auto; min-width: 0; }
.r-to-chev { font-size: 22px; line-height: 1; color: var(--f-dim); }
.r-to-select {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; font-size: 16px; cursor: pointer;
}

.r-thread { list-style: none; margin: 0; padding: 8px 0 0; display: flex; flex-direction: column; }
.r-stamp {
  margin: 14px 0 6px; text-align: center;
  font: 500 11px/13px var(--r-font); color: var(--f-dim);
}
.r-system {
  margin: 6px 0; text-align: center;
  font: var(--r-caption); color: var(--f-dim);
  display: flex; flex-direction: column; align-items: center;
}
.r-thread-status .r-system { margin-top: 10px; }

.r-msg { display: flex; flex-direction: column; align-items: flex-start; margin-top: 2px; }
.r-msg.is-mine { align-items: flex-end; }
.r-msg.is-mine + .r-msg.is-staff,
.r-msg.is-staff + .r-msg.is-mine { margin-top: 10px; }
.r-msg-name { margin: 6px 0 2px 12px; font: var(--r-caption); color: var(--f-dim); }
.r-bubble {
  max-width: 78%;
  padding: 8px 13px;
  font: var(--r-body);
  white-space: pre-wrap; overflow-wrap: anywhere;
  border-radius: 18px;
}
.r-msg.is-staff .r-bubble { color: var(--f-text); background: var(--f-card-2); }
.r-msg.is-mine .r-bubble { color: #fff; background: var(--f-fill); }
.r-msg.is-failed .r-bubble { opacity: 0.7; }

.r-bubble-photo {
  display: block; padding: 0; margin: 0;
  width: min(240px, 70%);
  background: var(--f-card-2); border: 0; border-radius: 18px;
  overflow: hidden; cursor: zoom-in;
}
.r-bubble-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.r-bubble-photo.is-local { cursor: default; }

.r-msg-status {
  list-style: none; align-self: flex-end;
  margin: 2px 4px 0; text-align: right;
  font: var(--r-caption); color: var(--f-dim);
}
.r-msg-status.is-failed { color: var(--r-red); }
.r-retry {
  display: inline-flex; align-items: center; justify-content: flex-end;
  min-height: var(--f-tap); margin: -12px 0 -12px; padding: 0;
  font: var(--r-caption); font-weight: 600; color: var(--r-red);
  background: none; border: 0; cursor: pointer;
}

/* ── Composer (Messages) ── */
.r-composer {
  position: sticky; bottom: 0; z-index: 20;
  margin: 0 calc(-16px - env(safe-area-inset-right)) 0 calc(-16px - env(safe-area-inset-left));
  padding: 8px calc(12px + env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) calc(8px + env(safe-area-inset-left));
  background: var(--f-glass);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid var(--f-glass-edge);
}
.r-composer-row { display: flex; align-items: flex-end; gap: 6px; }
.r-plus {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  font-size: 28px; font-weight: 300; line-height: 1;
  color: var(--f-muted); background: var(--f-card-2);
  border: 0; border-radius: 50%; cursor: pointer;
}
.r-plus:disabled, .r-plus[aria-disabled='true'] { color: var(--f-border); }
.r-pill {
  flex: 1 1 auto; min-width: 0;
  display: flex; align-items: flex-end;
  min-height: 44px; padding: 5px 5px 5px 14px;
  background: var(--f-bg);
  border: 1px solid var(--f-border); border-radius: 22px;
}
.r-input {
  flex: 1 1 auto; min-width: 0;
  min-height: 32px; max-height: 128px; /* about five lines */
  margin: 0; padding: 5px 0;
  font: var(--r-body); font-size: 17px;
  color: var(--f-text); background: none;
  border: 0; outline: none; resize: none;
}
.r-input::placeholder { color: var(--f-dim); }
.r-send {
  position: relative; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; margin-left: 6px; padding: 0;
  color: #fff; background: var(--f-fill);
  border: 0; border-radius: 50%; cursor: pointer;
}
.r-send::before { content: ''; position: absolute; inset: -6px; } /* 44pt hit area */
.r-send:disabled { opacity: 0.5; cursor: default; }
.r-send-ico { width: 18px; height: 18px; stroke-width: 2.6; }
.r-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.r-composer-note { margin: 6px 4px 0; font: var(--r-footnote); color: var(--f-muted); text-align: center; }

/* Photos waiting to be sent, above the pill. */
.r-tray { display: flex; gap: 8px; padding: 4px 0 8px 50px; overflow-x: auto; }
.r-tray-item { position: relative; flex: none; width: 64px; height: 64px; }
.r-tray-img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.r-tray-x {
  position: absolute; top: -10px; right: -10px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  background: none; border: 0; cursor: pointer;
}
.r-tray-x span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  font-size: 15px; font-weight: 700; line-height: 1;
  color: #fff; background: rgba(0, 0, 0, 0.6);
}

/* ── Photo viewer ── */
.r-viewer {
  position: fixed; inset: 0;
  width: 100vw; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: #000; color: #fff;
}
.r-viewer::backdrop { background: #000; }
.r-viewer-img { display: block; width: 100%; height: 100%; object-fit: contain; }
.r-viewer-done {
  position: absolute; z-index: 1;
  top: calc(8px + env(safe-area-inset-top)); left: calc(12px + env(safe-area-inset-left));
  min-height: var(--f-tap); padding: 0 16px;
  font: var(--r-headline); color: #fff;
  background: rgba(0, 0, 0, 0.55); border: 0; border-radius: 999px; cursor: pointer;
}

/* ── Wide screens (iPad portrait and up). Same query string as lib/layout.js
   WIDE_QUERY; test/layout.test.mjs pins it. One centred column; the pinned
   button stays fixed but no wider than the column. ── */
@media (min-width: 768px) and (min-height: 500px) {
  .r-avatar.is-row { width: 44px; height: 44px; font-size: 13px; }
  .r-inbox-item:not(:last-child)::after { left: 80px; }
}

/* ── Split (1024+): list on the left, conversation in the right pane, no
   history entries (views/list.mjs). Same query as lib/layout.js SPLIT_QUERY. ── */
@media (min-width: 1024px) and (min-height: 500px) {
  .r-toolbar, .r-shell { max-width: 1200px; }

  .r-split {
    --r-pane-top: calc(env(safe-area-inset-top) + var(--r-toolbar-h));
    display: grid;
    grid-template-columns: clamp(300px, 34%, 380px) minmax(0, 1fr);
    gap: 24px; align-items: start;
  }
  .r-split-list { min-width: 0; }
  .r-split-list .r-list-screen { padding-bottom: 0; }
  .r-split-list .r-inbox { margin: 0; }
  .r-split-list .r-row { padding-left: 4px; padding-right: 12px; border-radius: 12px; }
  .r-split-list .r-row.is-selected { color: #fff; background: var(--f-fill); }
  .r-split-list .r-row.is-selected .r-row-date,
  .r-split-list .r-row.is-selected .r-row-preview,
  .r-split-list .r-row.is-selected .r-chev { color: rgba(255, 255, 255, 0.85); }
  .r-split-list .r-row.is-selected .r-dot::before { background: #fff; }
  .r-split-list .r-cta-bar {
    position: sticky; bottom: 0;
    padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
    background: var(--f-bg); border-top: 0;
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }

  .r-pane {
    position: sticky; top: var(--r-pane-top);
    height: calc(100dvh - var(--r-pane-top) - 12px - env(safe-area-inset-bottom));
    overflow-y: auto; overscroll-behavior: contain;
    background: var(--f-card); border-radius: var(--f-radius-lg);
  }
  .r-pane .r-convo { min-height: 100%; padding: 0 16px; }
  .r-pane .r-head-slot {
    position: sticky; top: 0; z-index: 21;
    margin: 0 -16px; padding: 6px 16px;
    background: var(--f-card);
    border-bottom: 1px solid var(--f-border-soft);
  }
  .r-pane .r-head { max-width: 80%; }
  .r-pane .r-head-title { font: var(--r-footnote); font-weight: 600; }
  .r-pane .r-details { background: var(--f-bg); }
  .r-pane .r-to, .r-pane .r-composer { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
  .r-pane .r-composer { padding-bottom: 12px; background: var(--f-card); }
  .r-pane .r-pill { background: var(--f-card); }
  .r-pane-empty {
    margin: 0; padding: 120px 16px 0;
    text-align: center; font: var(--r-body); color: var(--f-muted);
  }
}

@media (min-width: 1024px) and (min-height: 500px) and (hover: hover) {
  .r-split-list .r-row:not(.is-selected):hover { background: var(--f-card-hover); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
