/* Read Them Well — web tokens & base styles (v2, chocolate edition)
   Companion to rtw-brand-spec.md. Reference design: RTW Homepage - App Vibe.dc.html

   Rules this file encodes:
   - Sections are full-bleed color fields. No page-wide container, no card-on-card.
   - Elevation is rare: max two floating callouts per page, each straddling a color seam.
   - Rounded UI (cards/tiles/inputs/pills). Book covers stay square.
   - Flat fills; the only gradient is the 50/50 seam behind a floating callout.
   - Shadows are chocolate-tinted, never gray. Buttons and inputs never carry shadow. */

@import url("https://fonts.googleapis.com/css2?family=Young+Serif&family=Instrument+Sans:ital,wght@0,400..700;1,400..700&family=Homemade+Apple&display=swap");

:root {
  /* Fields & surfaces */
  --rtw-page: #FAF4EC;
  --rtw-surface: #FFFDFA;
  --rtw-field-toned: #F3E9DA;
  --rtw-kraft: #C39A6B;
  --rtw-kraft-image: url("assets/kraft-paper.avif");

  /* Brand */
  --rtw-cherry: #D6342A;
  --rtw-oxblood: #7C0116;
  --rtw-blush: #F2A0AE;

  /* Ink */
  --rtw-chocolate: #4A2A1C;
  --rtw-body: #5C3A28;
  --rtw-taupe: #7C5A48;
  --rtw-cream-ink: #FFF7EF;
  --rtw-on-dark-muted: #C6A895;

  /* Lines */
  --rtw-line: #E4D6C6;
  --rtw-line-soft: #4A2A1C33;
  --rtw-line-on-cherry: #FFF7EF44;
  --rtw-placeholder: #A9917F;

  /* Type */
  --rtw-display: "Young Serif", Georgia, serif;
  --rtw-text: "Instrument Sans", system-ui, sans-serif;
  --rtw-hand: "Homemade Apple", cursive;

  /* Radius */
  --rtw-r-card: 28px;
  --rtw-r-tile: 22px;
  --rtw-r-input: 14px;
  --rtw-r-pill: 999px;

  /* Elevation */
  --rtw-shadow-callout: 0 28px 60px -28px rgba(74, 42, 28, 0.42);
  --rtw-shadow-parcel: 0 26px 56px -28px rgba(74, 42, 28, 0.45);
  --rtw-shadow-object: 0 16px 30px -18px rgba(74, 42, 28, 0.5);

  /* Space */
  --rtw-pad-x: clamp(20px, 5vw, 72px);
  --rtw-pad-y: clamp(48px, 6vw, 84px);
  --rtw-gap-section: clamp(28px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--rtw-page);
  color: var(--rtw-chocolate);
  font-family: var(--rtw-text);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

/* ---------- Type ---------- */

h1, h2, h3 { font-family: var(--rtw-display); font-weight: 400; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(38px, 5.4vw, 68px); line-height: 1; color: var(--rtw-cherry); max-width: 18ch; }
h2 { font-size: clamp(30px, 3.8vw, 48px); line-height: 1.06; }
h3 { font-size: 24px; line-height: 1.2; letter-spacing: -0.01em; }

p { margin: 0 0 1em; color: var(--rtw-body); }
p:last-child { margin-bottom: 0; }

.rtw-lede { font-size: 18px; line-height: 1.65; max-width: 44ch; }
.rtw-small { font-size: 14px; line-height: 1.6; color: var(--rtw-taupe); }

.rtw-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rtw-taupe);
}

.rtw-hand { font-family: var(--rtw-hand); font-size: clamp(20px, 2.4vw, 27px); line-height: 1.55; color: var(--rtw-oxblood); }

a { color: var(--rtw-cherry); text-decoration: none; }
a:hover { color: var(--rtw-oxblood); }

/* ---------- Fields (full-bleed color blocks) ---------- */

.rtw-field { padding: var(--rtw-pad-y) var(--rtw-pad-x); display: flex; flex-direction: column; gap: var(--rtw-gap-section); }
.rtw-field--page { background: var(--rtw-page); }
.rtw-field--toned { background: var(--rtw-field-toned); }

.rtw-field--cherry { background: var(--rtw-cherry); color: var(--rtw-cream-ink); }
.rtw-field--cherry h1, .rtw-field--cherry h2, .rtw-field--cherry h3,
.rtw-field--cherry p, .rtw-field--cherry .rtw-label, .rtw-field--cherry .rtw-small { color: var(--rtw-cream-ink); }

.rtw-field--chocolate { background: var(--rtw-chocolate); color: var(--rtw-cream-ink); }
.rtw-field--chocolate h2 { color: var(--rtw-blush); }
.rtw-field--chocolate p { color: var(--rtw-cream-ink); }
.rtw-field--chocolate .rtw-small { color: var(--rtw-on-dark-muted); }

/* The field directly after a seam must clear the overhanging callout */
.rtw-seam + .rtw-field { padding-top: clamp(56px, 6vw, 88px); }

.rtw-header {
  padding: 22px var(--rtw-pad-x);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
}
.rtw-header__mark { font-family: var(--rtw-display); font-size: 22px; color: var(--rtw-cherry); white-space: nowrap; }
.rtw-header nav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 24px; min-width: 0; }
.rtw-header nav a { font-size: 14.5px; font-weight: 500; color: var(--rtw-body); white-space: nowrap; }
.rtw-header nav a:hover { color: var(--rtw-cherry); }
.rtw-header nav a.rtw-nav-quiet { color: var(--rtw-taupe); }

/* ---------- Intrinsic grids ---------- */

.rtw-grid { display: grid; gap: var(--rtw-gap-section); }
.rtw-grid > * { min-width: 0; }
.rtw-grid--hero { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); align-items: center; gap: clamp(32px, 5vw, 64px); }
.rtw-grid--cols { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(24px, 3vw, 44px); }
.rtw-grid--fields { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }

.rtw-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.rtw-row--ruled { border-top: 1px solid var(--rtw-line-on-cherry); padding-top: clamp(24px, 3vw, 36px); }

/* ---------- Floating callouts on a seam (max two per page) ---------- */

.rtw-seam { padding: 0 var(--rtw-pad-x); }
.rtw-seam--page-cherry { background: linear-gradient(var(--rtw-page) 0 50%, var(--rtw-cherry) 50% 100%); }
.rtw-seam--toned-chocolate { background: linear-gradient(var(--rtw-field-toned) 0 50%, var(--rtw-chocolate) 50% 100%); }
.rtw-seam--page-chocolate { background: linear-gradient(var(--rtw-page) 0 50%, var(--rtw-chocolate) 50% 100%); }

.rtw-callout {
  max-width: 820px;
  margin: 0 auto;
  background: var(--rtw-surface);
  border-radius: var(--rtw-r-card);
  box-shadow: var(--rtw-shadow-callout);
  padding: clamp(28px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.rtw-callout--wide { max-width: 980px; padding: clamp(32px, 4vw, 48px); }
.rtw-callout--blush { background: var(--rtw-blush); color: var(--rtw-oxblood); }
.rtw-callout--blush h2, .rtw-callout--blush p { color: var(--rtw-oxblood); }

/* ---------- Buttons: always pills, never shadowed ---------- */

.rtw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: var(--rtw-r-pill);
  padding: 15px 32px;
  font-family: var(--rtw-text);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  background: var(--rtw-cherry);
  color: var(--rtw-cream-ink);
  transition: background-color 120ms linear, color 120ms linear, border-color 120ms linear;
}
.rtw-btn:hover { background: var(--rtw-oxblood); color: var(--rtw-cream-ink); }
.rtw-btn:focus-visible { outline: 2px solid var(--rtw-oxblood); outline-offset: 2px; }

/* primary action sitting on a cherry field */
.rtw-btn--on-cherry { background: var(--rtw-cream-ink); color: var(--rtw-cherry); padding: 14px 30px; font-size: 15px; }
.rtw-btn--on-cherry:hover { background: var(--rtw-blush); color: var(--rtw-oxblood); }

.rtw-btn--secondary { background: transparent; color: var(--rtw-chocolate); border: 1.5px solid var(--rtw-line-soft); padding: 13.5px 30.5px; }
.rtw-btn--secondary:hover { background: transparent; border-color: var(--rtw-cherry); color: var(--rtw-cherry); }

.rtw-btn--quiet { background: var(--rtw-chocolate); padding: 14px 30px; font-size: 15px; }
.rtw-btn--quiet:hover { background: var(--rtw-oxblood); }

.rtw-btn--oxblood { background: var(--rtw-oxblood); }
.rtw-btn--oxblood:hover { background: var(--rtw-chocolate); }

.rtw-btn--compact { font-size: 14.5px; padding: 12px 24px; }

/* ---------- Form ---------- */

.rtw-label-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--rtw-taupe); }
.rtw-input {
  font-family: var(--rtw-text);
  font-size: 15px;
  color: var(--rtw-chocolate);
  background: var(--rtw-page);
  border: 1px solid var(--rtw-line);
  border-radius: var(--rtw-r-input);
  padding: 13px 15px;
  min-width: 0;
}
.rtw-input::placeholder { color: var(--rtw-placeholder); }
.rtw-input:focus { outline: none; border-color: var(--rtw-cherry); background: var(--rtw-surface); }

/* ---------- Tabs & chips ---------- */

.rtw-tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.rtw-tab {
  border-radius: var(--rtw-r-pill);
  padding: 10px 23px;
  font-size: 14.5px;
  font-weight: 600;
  background: transparent;
  color: var(--rtw-body);
  border: 1.5px solid var(--rtw-line-soft);
  cursor: pointer;
}
.rtw-tab:hover { border-color: var(--rtw-cherry); color: var(--rtw-cherry); }
.rtw-tab[aria-selected="true"], .rtw-tab.is-active {
  background: var(--rtw-cherry);
  border-color: var(--rtw-cherry);
  color: var(--rtw-cream-ink);
  padding: 11px 24px;
}

.rtw-chip { border: 1.5px solid #4A2A1C26; color: var(--rtw-body); border-radius: var(--rtw-r-pill); padding: 8px 15px; font-size: 12.5px; font-weight: 600; }

/* ---------- Printed objects: square, shadowed ---------- */

.rtw-cover {
  aspect-ratio: 2 / 3;
  border-radius: 0;
  background: repeating-linear-gradient(135deg, #FFFDFA 0 10px, #EDE0CF 10px 20px);
  box-shadow: var(--rtw-shadow-object);
  display: flex;
  align-items: flex-end;
  padding: 14px;
}
.rtw-cover__slot { font-size: 10.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--rtw-placeholder); }

.rtw-cover--wrapped {
  background-color: var(--rtw-kraft);
  background-image: var(--rtw-kraft-image);
  background-size: cover;
  background-position: center;
  align-items: center;
  justify-content: center;
}

.rtw-stamp-pill {
  background: var(--rtw-surface);
  color: var(--rtw-chocolate);
  border-radius: var(--rtw-r-pill);
  padding: 8px 14px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- Parcel card (hero object) ---------- */

.rtw-parcel {
  width: 100%;
  border-radius: var(--rtw-r-card);
  overflow: hidden;
  box-shadow: var(--rtw-shadow-parcel);
  background-color: var(--rtw-kraft);
  background-image: var(--rtw-kraft-image);
  background-size: cover;
  background-position: center;
  padding: 44px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.rtw-parcel__cover { position: relative; width: 190px; height: 250px; }
.rtw-parcel__cover .rtw-cover { width: 100%; height: 100%; aspect-ratio: auto; box-shadow: 0 18px 36px -16px rgba(74, 42, 28, 0.55); }
.rtw-parcel__hand { font-family: var(--rtw-hand); font-size: clamp(20px, 2.4vw, 27px); line-height: 1.55; color: var(--rtw-cream-ink); text-align: center; }

/* Seal as a stamp on the cover corner */
.rtw-seal {
  position: absolute;
  top: -16px;
  right: -22px;
  width: 88px;
  height: 88px;
  background: url("assets/fun/scallop-red.svg") center / contain no-repeat;
  transform: rotate(-9deg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.rtw-seal--cream { background-image: url("assets/fun/scallop-cream.svg"); }
.rtw-seal__mono { font-size: 13px; font-weight: 600; letter-spacing: 0.22em; text-indent: 0.22em; color: var(--rtw-cream-ink); }
.rtw-seal--cream .rtw-seal__mono { color: var(--rtw-cherry); }

/* ---------- Hand-drawn marks ---------- */

.rtw-scrawl {
  display: block;
  width: min(340px, 80%);
  height: 17px;
  background: url("assets/fun/scrawl-red.svg") left center / 100% 17px no-repeat;
}
.rtw-scrawl--cream { background-image: url("assets/fun/scrawl-cream.svg"); background-position: center; }
.rtw-hand-rule { display: block; width: 100%; height: 10px; background: url("assets/hand-rule-cherry.svg") center / 100% 10px no-repeat; }
.rtw-books { display: block; width: 74px; height: 62px; background: url("assets/fun/books-red.svg") center / contain no-repeat; }
.rtw-books--cream { background-image: url("assets/fun/books-cream.svg"); }

/* Numbered step marker on a cherry field */
.rtw-step-no {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: var(--rtw-r-pill);
  border: 1.5px solid #FFF7EF99;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}

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


/* ============================================================
   READER INTAKE — see rtw-intake-spec.md
   Thread is the only floating surface; prompt cards are flat.
   ============================================================ */

.rtw-intake { padding: 20px var(--rtw-pad-x) clamp(40px, 5vw, 64px); display: flex; flex-direction: column; gap: 24px; }

.rtw-intake__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.rtw-progress { display: flex; gap: 5px; }
.rtw-progress__dot { width: 26px; height: 5px; border-radius: var(--rtw-r-pill); background: #4A2A1C1F; }
.rtw-progress__dot.is-done { background: var(--rtw-cherry); }

.rtw-chat-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 320px); gap: 24px; align-items: start; }

.rtw-thread {
  min-width: 0;
  background: var(--rtw-surface);
  border-radius: var(--rtw-r-card);
  box-shadow: var(--rtw-shadow-callout);
  padding: 32px 32px 22px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.rtw-msg { display: flex; gap: 16px; align-items: flex-start; }
.rtw-msg__body { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.rtw-msg__body p { font-size: 17px; line-height: 1.65; color: var(--rtw-chocolate); max-width: 52ch; margin: 0; }
.rtw-msg__who { font-size: 14px; font-weight: 600; color: var(--rtw-chocolate); }
.rtw-msg__role { font-size: 12px; color: var(--rtw-taupe); }
.rtw-msg--user { justify-content: flex-end; }
.rtw-msg--user .rtw-msg__body { background: var(--rtw-field-toned); border-radius: 18px; padding: 14px 18px; }

.rtw-avatar {
  width: 46px; height: 46px; flex: none;
  background: url("assets/fun/scallop-red.svg") center / contain no-repeat;
  transform: rotate(-7deg);
  display: flex; align-items: center; justify-content: center;
}
.rtw-avatar--sm { width: 40px; height: 40px; }
.rtw-avatar__mono { font-size: 9.5px; font-weight: 600; letter-spacing: 0.18em; text-indent: 0.18em; color: var(--rtw-cream-ink); }

/* Prompt cards */
.rtw-prompt { border: 1.5px solid var(--rtw-line); border-radius: var(--rtw-r-tile); padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.rtw-prompt__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.rtw-prompt__label { font-size: 11.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--rtw-taupe); }
.rtw-prompt__hint { font-size: 13px; color: var(--rtw-taupe); }
.rtw-prompt__actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.rtw-prompt--answered { background: #FDFAF4; border-color: #F0E5D7; padding: 20px 24px; gap: 16px; }
.rtw-prompt--answered .rtw-cover { box-shadow: none; }
.rtw-prompt__count { font-size: 12.5px; font-weight: 600; color: var(--rtw-cherry); }

.rtw-options { display: grid; gap: 14px; }
.rtw-options--covers { grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); }
.rtw-options--covers-sm { grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 12px; }
.rtw-options--mood { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.rtw-options--either { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

.rtw-option { position: relative; border: 0; padding: 0; background: none; cursor: pointer; }
.rtw-option[aria-pressed="true"] { outline: 2.5px solid var(--rtw-cherry); outline-offset: -2.5px; }
.rtw-option[aria-pressed="true"]::after {
  content: "\2713";
  position: absolute; bottom: 6px; right: 6px;
  width: 20px; height: 20px; border-radius: var(--rtw-r-pill);
  background: var(--rtw-cherry); color: var(--rtw-cream-ink);
  font-size: 11px; display: flex; align-items: center; justify-content: center;
}

.rtw-thinking { display: flex; align-items: center; gap: 12px; background: var(--rtw-field-toned); border-radius: var(--rtw-r-pill); padding: 12px 20px; }
.rtw-thinking__dots { display: flex; gap: 5px; }
.rtw-thinking__dots span { width: 7px; height: 7px; border-radius: var(--rtw-r-pill); background: var(--rtw-cherry); animation: rtw-pulse 1.2s ease-in-out infinite; }
.rtw-thinking__dots span:nth-child(2) { animation-delay: 0.15s; }
.rtw-thinking__dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes rtw-pulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

.rtw-composer { border-top: 1px solid #EFE3D2; padding-top: 16px; display: flex; align-items: center; gap: 14px; }
.rtw-composer textarea {
  flex: 1; min-width: 0; resize: none;
  font-family: var(--rtw-text); font-size: 15px; line-height: 1.5;
  color: var(--rtw-chocolate); background: var(--rtw-page);
  border: 1px solid var(--rtw-line); border-radius: var(--rtw-r-input); padding: 14px 16px;
}
.rtw-composer textarea:focus { outline: none; border-color: var(--rtw-cherry); background: var(--rtw-surface); }
.rtw-send { width: 46px; height: 46px; flex: none; border: 0; border-radius: var(--rtw-r-pill); background: var(--rtw-chocolate); color: var(--rtw-cream-ink); font-size: 18px; cursor: pointer; }
.rtw-send:hover { background: var(--rtw-cherry); }

/* Notes rail */
.rtw-rail { min-width: 0; background: var(--rtw-field-toned); border-radius: var(--rtw-r-tile); padding: 26px; display: flex; flex-direction: column; gap: 18px; }
.rtw-rail__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.rtw-rail__notes { display: flex; flex-direction: column; gap: 14px; font-family: var(--rtw-hand); font-size: 16.5px; line-height: 1.75; color: var(--rtw-chocolate); }
.rtw-rail__notes--empty { color: var(--rtw-taupe); }
.rtw-rail__ruled { border-top: 1px solid #4A2A1C22; padding-top: 16px; display: flex; flex-direction: column; gap: 10px; }

/* Draft shelf */
.rtw-shelf { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(20px, 2.5vw, 32px); }
.rtw-shelf__book { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.rtw-shelf__month { font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rtw-taupe); }
.rtw-shelf__month--first { color: var(--rtw-cherry); }
.rtw-shelf__cover { position: relative; }
.rtw-shelf__cover .rtw-seal { top: -14px; right: -18px; width: 76px; height: 76px; }
.rtw-shelf__title { font-family: var(--rtw-display); font-size: 21px; line-height: 1.2; color: var(--rtw-chocolate); }
.rtw-shelf__meta { font-size: 14px; color: var(--rtw-taupe); }
.rtw-why { background: var(--rtw-surface); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.rtw-why__label { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--rtw-taupe); }
.rtw-why p { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--rtw-chocolate); }
.rtw-swap-link { align-self: flex-start; border: 0; background: none; padding: 0; font-family: var(--rtw-text); font-size: 14px; font-weight: 600; color: var(--rtw-cherry); cursor: pointer; }
.rtw-swap-link:hover { color: var(--rtw-oxblood); }

.rtw-checkout-row { border-top: 1px solid #4A2A1C22; padding-top: clamp(24px, 3vw, 32px); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.rtw-price { font-family: var(--rtw-display); font-size: 26px; color: var(--rtw-chocolate); }

/* Swap panel */
.rtw-scrim { position: fixed; inset: 0; background: rgba(74, 42, 28, 0.28); display: flex; align-items: center; justify-content: center; padding: var(--rtw-pad-x); }
.rtw-swap-panel {
  width: 100%; max-width: 880px;
  background: var(--rtw-surface);
  border-radius: var(--rtw-r-card);
  box-shadow: var(--rtw-shadow-callout);
  padding: clamp(28px, 3.5vw, 40px);
  display: flex; flex-direction: column; gap: 26px;
}
.rtw-swap-panel__note { display: flex; gap: 16px; align-items: flex-start; background: var(--rtw-field-toned); border-radius: 18px; padding: 18px 20px; }
.rtw-alts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.rtw-alt { min-width: 0; border: 1.5px solid var(--rtw-line); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.rtw-alt:hover { border-color: var(--rtw-cherry); }
.rtw-close { width: 40px; height: 40px; flex: none; border-radius: var(--rtw-r-pill); border: 1.5px solid var(--rtw-line-soft); background: none; color: var(--rtw-body); font-size: 16px; cursor: pointer; }
.rtw-close:hover { border-color: var(--rtw-cherry); color: var(--rtw-cherry); }

@media (max-width: 760px) {
  .rtw-chat-layout { grid-template-columns: minmax(0, 1fr); }
  .rtw-thread { padding: 24px 20px 18px; border-radius: var(--rtw-r-tile); }
}
