/* rn-claw.css: RoachClaw on the web (roachnet.org/roachclaw/), on the shared RoachWares system and
   the RoachNet chrome (rn-apps-chrome.css).
   A chat app, not a page of sections: threads on the left, one calm column in the middle and a
   keyboard-first composer at the bottom, over the field's "claw" composition. The roach waits in
   the composer; while a reply is on its way its cap pulses and the field lights behind the
   composer (roachclaw.js). Colours come only from the theme tokens. */

:root { --rc-gap: clamp(10px, 1.4vw, 18px); --rc-side-w: 304px; --rc-col: 780px; }
.rc-app, .rc-app *, .rc-app *::before, .rc-app *::after { box-sizing: border-box; }
/* single-column grids get an explicit track, so nothing inside can widen them past their panel */
.rc-main, .rc-side, .rc-side__head, .rc-welcome, .rc-hello__copy, .rc-gate__copy, .rc-form, .rc-field, .rc-log, .rc-message, .rc-compose, .rc-relay__card, .rc-notice, .rc-lanes, .rc-lanes__list, .rc-threads { grid-template-columns: minmax(0, 1fr); }

/* ------------------------------------------------------------------ the app frame */
.rc-app {
  position: relative;
  display: grid;
  grid-template-columns: var(--rc-side-w) minmax(0, 1fr);
  gap: var(--rc-gap);
  width: min(100% - 2 * var(--rw-gutter), var(--rn-wide));
  height: calc(100dvh - var(--rn-head-h) - 16px);
  min-height: 560px;
  margin: 4px auto 0;
}
.rc-side, .rc-main {
  position: relative;
  min-height: 0;
  border: 1px solid var(--rw-line);
  border-radius: var(--rw-r-xl);
  background: color-mix(in srgb, var(--rw-surface-1) 90%, transparent);
  box-shadow: var(--rw-elev-2);
}
.rc-side::before, .rc-main::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; border-radius: inherit; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--rw-action-light) 55%, transparent), transparent); pointer-events: none; }

/* ------------------------------------------------------------------ the sidebar */
.rc-side { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; }
.rc-side__head { display: grid; gap: 12px; padding: 18px 16px 12px; }
.rc-side__title { font: 600 0.72rem/1.3 var(--rw-font-mono); letter-spacing: var(--rw-tracking-caps); text-transform: uppercase; color: var(--rw-text-soft); }
.rc-new { justify-content: flex-start; width: 100%; padding-left: 14px; }
.rc-new svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; fill: none; }
.rc-keycap { margin-left: auto; display: inline-flex; gap: 3px; }
.rc-keycap kbd, .rc-keys kbd { min-width: 1.7em; font-size: 0.74rem; padding: 0.06em 0.4em; }
.rc-threads { overflow-y: auto; overscroll-behavior: contain; padding: 0 10px 12px; display: grid; align-content: start; gap: 4px; }
.rc-threads__empty { padding: 12px 8px; font-size: 0.9rem; color: var(--rw-text-soft); }
.rc-thread {
  position: relative;
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 10px 12px 10px 14px;
  border: 1px solid transparent;
  border-radius: var(--rw-r-md);
  background: none;
  color: var(--rw-text);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: background-color var(--rw-dur-1) var(--rw-ease-gentle), border-color var(--rw-dur-1) var(--rw-ease-gentle);
}
.rc-thread strong { font-size: 0.94rem; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-thread span { font-size: 0.84rem; color: var(--rw-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-thread small { font: 500 0.72rem/1.4 var(--rw-font-mono); color: var(--rw-text-soft); }
.rc-thread:hover { background: color-mix(in srgb, var(--rw-text) 5%, transparent); }
.rc-thread.is-active { background: color-mix(in srgb, var(--rw-action) 16%, transparent); border-color: color-mix(in srgb, var(--rw-action-light) 40%, transparent); }
.rc-thread.is-active::before { content: ""; position: absolute; left: 4px; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: var(--rw-signal); box-shadow: 0 0 8px color-mix(in srgb, var(--rw-signal) 60%, transparent); }

.rc-lanes { display: grid; gap: 10px; padding: 14px 16px 16px; border-top: 1px solid var(--rw-line); }
.rc-lanes__list { display: grid; gap: 6px; list-style: none; }
.rc-lane { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--rw-line); border-radius: var(--rw-r-md); background: color-mix(in srgb, var(--rw-surface-2) 70%, transparent); }
.rc-lane__copy { display: grid; gap: 1px; }
.rc-lane__copy strong { font-size: 0.9rem; }
.rc-lane__copy span { font-size: 0.8rem; color: var(--rw-text-soft); }
.rc-lane__led { width: 8px; height: 8px; border-radius: 50%; background: var(--rw-line-strong); }
.rc-lane[data-state="live"] { border-color: color-mix(in srgb, var(--rw-signal) 36%, transparent); }
.rc-lane[data-state="live"] .rc-lane__led { background: var(--rw-signal); box-shadow: 0 0 8px color-mix(in srgb, var(--rw-signal) 70%, transparent); }
.rc-lane[data-state="live"] .rc-lane__copy span { color: var(--rw-signal-text); }
.rc-who { font-size: 0.84rem; color: var(--rw-text-soft); overflow-wrap: anywhere; }

/* ------------------------------------------------------------------ the main column */
.rc-main { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; outline: none; }
.rc-bar { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px 10px 20px; border-bottom: 1px solid var(--rw-line); }
.rc-bar__toggle { display: none; place-items: center; width: 44px; height: 44px; flex: none; border: 1px solid var(--rw-line-strong); border-radius: var(--rw-r-pill); background: var(--rw-surface-2); color: var(--rw-text); cursor: pointer; }
.rc-bar__toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.rc-title { display: flex; align-items: baseline; gap: 12px; min-width: 0; margin-right: auto; font-size: 1rem; }
.rc-title__app { flex: none; font-family: var(--rw-font-display); font-weight: var(--rw-display-wght); font-stretch: var(--rw-display-wdth); letter-spacing: var(--rw-display-tracking); font-size: 1.12rem; color: var(--rw-text); }
.rc-title__thread { min-width: 0; font-weight: 600; font-size: 0.95rem; color: var(--rw-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-where { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 12px; border: 1px solid var(--rw-line-strong); border-radius: var(--rw-r-pill); font: 600 0.78rem/1 var(--rw-font-mono); color: var(--rw-text-muted); white-space: nowrap; }
.rc-where__led { width: 7px; height: 7px; border-radius: 50%; background: var(--rw-text-soft); }
.rc-where[data-state="live"] .rc-where__led { background: var(--rw-signal); box-shadow: 0 0 8px color-mix(in srgb, var(--rw-signal) 60%, transparent); }
.rc-account { flex: none; }

.rc-scroll { overflow-y: auto; overscroll-behavior: contain; scroll-behavior: smooth; padding: clamp(18px, 3vw, 40px) clamp(16px, 3vw, 40px); }
@media (prefers-reduced-motion: reduce) { .rc-scroll { scroll-behavior: auto; } }

/* ------------------------------------------------------------------ the welcome */
.rc-welcome { display: grid; gap: clamp(28px, 4vw, 48px); max-width: var(--rc-col); margin-inline: auto; }
.rc-hello { display: grid; grid-template-columns: minmax(150px, 0.8fr) minmax(0, 1.6fr); gap: clamp(18px, 3vw, 36px); align-items: center; }
.rc-hello__stage { position: relative; display: grid; place-items: center; padding: 8px; }
.rc-hello__stage::before { content: ""; position: absolute; inset: 8% 4% 2%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--rw-glow) 70%, transparent), transparent); z-index: -1; }
.rc-roach--hello { width: min(100%, 250px); }
.rc-hello__copy { display: grid; gap: 14px; }
.rc-hello__copy .rn-eyebrow { margin-bottom: 0; }
.rc-hello__title { font-family: var(--rw-font-display); font-weight: var(--rw-display-wght); font-stretch: var(--rw-display-wdth); letter-spacing: var(--rw-display-tracking); font-size: clamp(1.9rem, 1.1rem + 2.4vw, 3rem); line-height: 1.02; color: var(--rw-text); }
.rc-hello__lede { font-size: var(--rw-t-lead); line-height: 1.55; color: var(--rw-text-muted); max-width: 54ch; }

.rc-gate { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px 32px; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--rw-line-strong); border-radius: var(--rw-r-xl); background: var(--rw-surface-2); box-shadow: var(--rw-elev-2); }
.rc-gate__copy { display: grid; gap: 10px; align-content: start; }
.rc-gate__copy .rn-eyebrow { margin-bottom: 0; }
.rc-gate__title { font-family: var(--rw-font-display); font-weight: var(--rw-display-wght); font-stretch: var(--rw-display-wdth); letter-spacing: var(--rw-display-tracking); font-size: 1.5rem; line-height: 1.08; }
.rc-gate__body { color: var(--rw-text-muted); }
.rc-form { display: grid; gap: 14px; }
.rc-field { display: grid; gap: 2px; }
.rc-field .rw-label { margin-bottom: 4px; }
.rc-field__hint { min-height: 1.2em; font-size: 0.84rem; font-weight: 600; color: var(--rw-danger); }
.rc-field.is-invalid .rw-input { border-color: var(--rw-danger); }
.rc-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.rc-form__alt { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.rc-form__note { font-size: 0.86rem; color: var(--rw-text-muted); }   /* muted, not soft: small text needs the headroom on Daylight, Bone and Phosphor */
.rc-form__feedback { min-height: 1.3em; font-size: 0.9rem; font-weight: 600; color: var(--rw-text-muted); }
.rc-form__feedback[data-tone="error"] { color: var(--rw-danger); }
.rc-submit.is-loading { opacity: 0.85; cursor: progress; }
@media (prefers-reduced-motion: no-preference) {
  .rc-gate.is-nudged { animation: rc-nudge 520ms var(--rw-ease-snap); }
}
@keyframes rc-nudge { 0%, 100% { transform: none; } 25% { transform: translateX(-6px); } 60% { transform: translateX(5px); } }

.rc-label { margin-bottom: 14px; font: 600 0.72rem/1.3 var(--rw-font-mono); letter-spacing: var(--rw-tracking-caps); text-transform: uppercase; color: var(--rw-text-soft); }
.rc-starters__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rc-starter {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 4px 12px;
  align-content: start;
  min-height: 96px;
  padding: 16px;
  border: 1px solid var(--rw-line);
  border-radius: var(--rw-r-lg);
  background: color-mix(in srgb, var(--rw-surface-2) 80%, transparent);
  color: var(--rw-text);
  text-align: left;
  font: inherit;
  cursor: pointer;
  box-shadow: inset 0 1px 0 var(--rw-highlight);
  transition: border-color var(--rw-dur-1) var(--rw-ease-gentle), transform var(--rw-dur-2) var(--rw-ease-snap), background-color var(--rw-dur-2) var(--rw-ease-gentle);
}
.rc-starter__icon { grid-row: span 2; width: 20px; height: 20px; margin-top: 2px; fill: none; stroke: var(--rw-accent); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.rc-starter strong { font-size: 0.96rem; }
.rc-starter span { font-size: 0.86rem; line-height: 1.45; color: var(--rw-text-muted); }
.rc-starter:hover { border-color: color-mix(in srgb, var(--rw-action-light) 55%, transparent); background: var(--rw-surface-2); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .rc-starter:hover { transform: translateY(-2px); } }

.rc-relay__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rc-relay__card { display: grid; gap: 8px; align-content: start; padding: 18px; border: 1px solid var(--rw-line); border-radius: var(--rw-r-lg); background: color-mix(in srgb, var(--rw-surface-0) 70%, transparent); }
.rc-relay__card h3 { font-family: var(--rw-font-display); font-weight: var(--rw-display-wght); font-stretch: var(--rw-display-wdth); letter-spacing: var(--rw-display-tracking); font-size: 1.2rem; }
.rc-relay__card > p:not(.rc-relay__state) { font-size: 0.92rem; color: var(--rw-text-muted); }
.rc-relay__state { display: inline-flex; align-items: center; gap: 8px; font: 600 0.72rem/1.3 var(--rw-font-mono); letter-spacing: var(--rw-tracking-caps); text-transform: uppercase; color: var(--rw-text-soft); }
.rc-relay__led { width: 8px; height: 8px; border-radius: 50%; background: var(--rw-line-strong); }
.rc-relay__card[data-state="live"] { border-color: color-mix(in srgb, var(--rw-signal) 32%, transparent); }
.rc-relay__card[data-state="live"] .rc-relay__state { color: var(--rw-signal-text); }
.rc-relay__card[data-state="live"] .rc-relay__led { background: var(--rw-signal); box-shadow: 0 0 8px color-mix(in srgb, var(--rw-signal) 60%, transparent); }
.rc-relay__link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* ------------------------------------------------------------------ the conversation */
.rc-log { display: grid; gap: 22px; max-width: var(--rc-col); margin-inline: auto; padding-bottom: 8px; }
.rc-message { display: grid; gap: 8px; min-width: 0; }
.rc-message__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 0.82rem; color: var(--rw-text-soft); }
.rc-message__who { font: 650 0.86rem/1.2 var(--rw-font-text); color: var(--rw-text); }
.rc-message__avatar { width: 28px; height: 28px; flex: none; border-radius: 7px; }
.rc-message__time { font: 500 0.74rem/1.2 var(--rw-font-mono); color: var(--rw-text-soft); }
.rc-source { display: inline-flex; align-items: center; gap: 6px; min-height: 22px; padding: 0 9px; border: 1px solid var(--rw-line-strong); border-radius: var(--rw-r-pill); font: 600 0.74rem/1 var(--rw-font-text); color: var(--rw-text-muted); }
.rc-source::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--rw-text-soft); }
.rc-source[data-where="mac"] { color: var(--rw-signal-text); border-color: color-mix(in srgb, var(--rw-signal) 40%, transparent); }
.rc-source[data-where="mac"]::before { background: var(--rw-signal); }
.rc-source[data-where="hosted"] { color: var(--rw-accent); border-color: color-mix(in srgb, var(--rw-accent) 40%, transparent); }
.rc-source[data-where="hosted"]::before { background: var(--rw-accent); }
.rc-source__detail { font: 500 0.74rem/1.2 var(--rw-font-mono); color: var(--rw-text-soft); }
.rc-message--user { justify-items: end; }
.rc-message--user .rc-message__content { max-width: min(82%, 640px); padding: 12px 16px; border: 1px solid var(--rw-line-strong); border-radius: 18px 18px 6px 18px; background: var(--rw-surface-3); }
.rc-message--assistant .rc-message__content { padding-left: 38px; }
.rc-message.is-pending { opacity: 0.92; }
.rc-message__content { min-width: 0; font-size: 1rem; line-height: 1.62; color: var(--rw-text); overflow-wrap: anywhere; }
.rc-message__content > * + * { margin-top: 0.7em; }
.rc-message__content p, .rc-message__content ul { margin: 0; }
.rc-message__content ul { padding-left: 1.25em; }
.rc-message__content li + li { margin-top: 0.3em; }
.rc-message__content li::marker { color: var(--rw-accent); }
/* Message headings sit below the page h1 (# becomes h2, ## h3, ### h4) and share one style */
.rc-message__content :is(h2, h3, h4) { margin: 0.4em 0 0.1em; font: 700 1.06rem/1.3 var(--rw-font-text); color: var(--rw-text); }
.rc-message__content a { color: var(--rw-accent); text-underline-offset: 0.2em; }
.rc-message__content code { font-size: 0.88em; }
.rc-code { overflow: hidden; border: 1px solid var(--rw-line-strong); border-radius: var(--rw-r-md); background: var(--rw-surface-0); }
.rc-code__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; padding: 0 6px 0 14px; border-bottom: 1px solid var(--rw-line); font: 600 0.72rem/1 var(--rw-font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--rw-text-soft); }
.rc-code__copy { min-height: 32px; padding: 0 12px; border: 1px solid var(--rw-line-strong); border-radius: var(--rw-r-pill); background: var(--rw-surface-2); color: var(--rw-text); font: 600 0.76rem/1 var(--rw-font-text); cursor: pointer; }
.rc-code__copy.is-done { color: var(--rw-signal-text); }
.rc-code pre { margin: 0; padding: 14px; overflow-x: auto; font-size: 0.88rem; line-height: 1.55; }

.rc-message__content--thinking { display: inline-flex; align-items: center; gap: 10px; color: var(--rw-text-muted); }
.rc-dots { display: inline-flex; gap: 5px; }
.rc-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--rw-signal); opacity: 0.55; }
@media (prefers-reduced-motion: no-preference) {
  .rc-dots i { animation: rc-dot 1.1s var(--rw-ease-gentle) infinite; }
  .rc-dots i:nth-child(2) { animation-delay: 0.16s; }
  .rc-dots i:nth-child(3) { animation-delay: 0.32s; }
  .rc-message:not(.is-pending) { animation: rc-arrive var(--rw-dur-3) var(--rw-ease-assemble) both; }
}
@keyframes rc-dot { 0%, 100% { opacity: 0.25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes rc-arrive { from { opacity: 0; transform: translate3d(0, 8px, 0); } }

/* ------------------------------------------------------------------ the composer */
.rc-compose { display: grid; gap: 8px; padding: 12px clamp(14px, 3vw, 40px) 14px; border-top: 1px solid var(--rw-line); background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--rw-surface-0) 50%, transparent)); }
.rc-compose > * { width: 100%; max-width: var(--rc-col); margin-inline: auto; }
.rc-compose__box {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 46px;
  align-items: end;
  gap: 10px;
  padding: 8px 8px 8px 10px;
  border: 1px solid var(--rw-line-input);
  border-radius: 22px;
  background: var(--rw-surface-0);
  box-shadow: inset 0 1px 2px var(--rw-shadow), var(--rw-elev-1);
  transition: border-color var(--rw-dur-2) var(--rw-ease-gentle), box-shadow var(--rw-dur-3) var(--rw-ease-assemble);
}
.rc-compose__box:focus-within { border-color: var(--rw-focus); box-shadow: 0 0 0 var(--rw-focus-width, 3px) color-mix(in srgb, var(--rw-focus) 36%, transparent), inset 0 1px 2px var(--rw-shadow); }
.rc-app.is-pending .rc-compose__box { border-color: color-mix(in srgb, var(--rw-signal) 55%, var(--rw-line-input)); }
.rc-roach--mini { align-self: center; width: 64px; cursor: default; }
.rc-compose__input {
  display: block;
  width: 100%;
  min-height: 46px;
  max-height: 220px;
  padding: 12px 4px;
  border: 0;
  background: none;
  color: var(--rw-text);
  font: 400 1rem/1.45 var(--rw-font-text);
  resize: none;
  outline: none;
}
.rc-compose__input::placeholder { color: var(--rw-text-soft); opacity: 1; }
.rc-send { display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--rw-action); color: var(--rw-action-ink); cursor: pointer; box-shadow: inset 0 1px 0 color-mix(in srgb, var(--rw-action-light) 70%, transparent), 0 8px 20px -10px var(--rw-glow); transition: transform var(--rw-dur-2) var(--rw-ease-snap), background-color var(--rw-dur-1) var(--rw-ease-gentle); }
.rc-send svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.rc-send:hover { box-shadow: inset 0 1px 0 var(--rw-action-light), 0 0 0 4px color-mix(in srgb, var(--rw-action-light) 26%, transparent); }
.rc-send:active { background: var(--rw-action-press); transform: scale(0.94); }
.rc-send:disabled { opacity: 0.6; cursor: progress; }
.rc-compose__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; }
.rc-keys { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.8rem; color: var(--rw-text-soft); }
.rc-keys span { display: inline-flex; align-items: center; gap: 4px; }
.rc-hint { font-size: 0.8rem; color: var(--rw-text-soft); }
.rc-status { min-height: 1.35em; font-size: 0.88rem; font-weight: 600; color: var(--rw-text-muted); }
.rc-status[data-tone="live"] { color: var(--rw-signal-text); }
.rc-status[data-tone="error"] { color: var(--rw-danger); }
.rc-notice { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--rw-warn) 45%, var(--rw-line-strong)); border-left-width: 4px; border-radius: var(--rw-r-md); background: color-mix(in srgb, var(--rw-warn) 8%, var(--rw-surface-1)); }
.rc-notice__title { font-weight: 700; color: var(--rw-text); }
.rc-notice__body { font-size: 0.92rem; color: var(--rw-text-muted); }

/* the roach in the composer listens: its cap pulses while a reply is on its way */
.rc-app.is-pending .rc-roach--mini .rn__led { filter: drop-shadow(0 0 3px #36ff84); }
@media (prefers-reduced-motion: reduce) {
  [data-roach].is-think .rn__led { filter: drop-shadow(0 0 4px #36ff84) brightness(1.18); }
  .rc-message, .rc-gate, .rc-starter { animation: none !important; }
}

/* ------------------------------------------------------------------ smaller screens */
@media (max-width: 1100px) { :root { --rc-side-w: 268px; } .rc-starters__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .rc-app { grid-template-columns: minmax(0, 1fr); width: 100%; height: calc(100dvh - var(--rn-head-h)); margin: 0; }
  .rc-main { border-radius: 0; border-inline: 0; border-bottom: 0; }
  .rc-bar__toggle { display: grid; }
  .rc-side { position: fixed; z-index: var(--rw-z-popover); top: var(--rn-head-h); bottom: 0; left: 0; width: min(86vw, 340px); border-radius: 0 var(--rw-r-xl) var(--rw-r-xl) 0; background: var(--rw-surface-1); visibility: hidden; transform: translate3d(-102%, 0, 0); transition: transform var(--rw-dur-3) var(--rw-ease-assemble), visibility 0s linear var(--rw-dur-3); }
  .rc-side.is-open { visibility: visible; transform: none; transition: transform var(--rw-dur-3) var(--rw-ease-assemble); }
  .rc-scrim { position: fixed; inset: var(--rn-head-h) 0 0; z-index: calc(var(--rw-z-popover) - 1); background: var(--rw-scrim); opacity: 0; pointer-events: none; transition: opacity var(--rw-dur-2) var(--rw-ease-gentle); }
  .rc-scrim.is-visible { opacity: 1; pointer-events: auto; }
  .rc-hello { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .rc-roach--hello { width: min(56vw, 200px); }
  .rc-gate { grid-template-columns: minmax(0, 1fr); }
  .rc-relay__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .rc-starters__grid { grid-template-columns: minmax(0, 1fr); }
  .rc-starter { min-height: 0; }
  .rc-where { display: none; }
  .rc-bar { padding-left: 12px; gap: 8px; }
  .rc-title { gap: 8px; }
  .rc-title__thread { font-size: 0.86rem; }
  .rc-compose__box { grid-template-columns: 48px minmax(0, 1fr) 44px; }
  .rc-roach--mini { width: 48px; }
  .rc-send { width: 44px; height: 44px; }
  .rc-keys .rc-keys__k { display: none; }
  .rc-message--assistant .rc-message__content { padding-left: 0; }
  .rc-message--user .rc-message__content { max-width: 92%; }
}
@media (min-width: 901px) { .rc-scrim { display: none; } }
@media (pointer: coarse) { .rc-keys { display: none; } }
@media print { .rc-side, .rc-compose, .rc-bar__toggle { display: none !important; } .rc-app { height: auto; display: block; } }
