/* Your data, screen 3, you decide what OpenAI reads: on a lilac ground, the note (its
   transcript under the app's two-way switch) and beside it the panel the app draws there
   (What OpenAI reads, Make it, the summary it made). With no script both readings stand one
   under the other and the switch steps aside; with it, the switch shows one. */
.rd { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); column-gap: calc(28 * var(--u)); align-items: start; }

/* ---------------------------------------------------------------- the note */
.rd-note { position: relative; padding: 22px 24px 18px; border: 2px solid var(--ink); border-radius: var(--radius-card); background: var(--paper); }
.rd-meta { font-size: 15px; line-height: 1.4; color: var(--muted); }
.rd-meta strong { margin-right: 8px; font-size: 17px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
.rd-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; margin-top: 14px; }
html:not(.js) .rd-switch { display: none; }
/* The name finder's switch: its track, then its name and size. */
.rd-finder { display: inline-flex; align-items: center; gap: 10px; padding: 4px 6px; border: 0; border-radius: 10px; background: none; font: inherit; text-align: left; cursor: pointer; }
.rd-finder-t { display: grid; font-size: 15px; line-height: 1.2; font-weight: 700; color: var(--ink); }
.rd-finder-s { font-size: 12.5px; font-weight: 600; color: var(--muted); }

/* The readings: one at a time with the switch; both, one under the other, without script. */
.rd-readings { margin-top: 16px; }
.js .rd-reading { display: none; }
.js .rd:has(input[name="rd-reading"][value="you"]:checked) .rd-reading[data-reading="you"],
.js .rd:has(input[name="rd-reading"][value="openai"]:checked) .rd-reading[data-reading="openai"] { display: block; }
html:not(.js) .rd-reading + .rd-reading { margin-top: 22px; padding-top: 18px; border-top: 1.5px solid var(--line); }
/* The band over a reading: lilac, as the app draws it, with its counts. */
.rd-band { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 10px 12px; border-radius: 12px; background: var(--haze); font-size: 14px; line-height: 1.35; color: var(--plum); }
.rd-band strong { font-weight: 800; color: var(--plum); }
.rd-turns { list-style: none; display: grid; gap: 14px; margin-top: 14px; }
.rd-turn { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 12px; row-gap: 2px; }
.rd-face { grid-row: span 2; width: 30px; height: 35px; }
.rd-who { font-size: 14px; line-height: 1.5; font-weight: 700; color: var(--ink); }
/* In your reading, a name Murmur knows wears lilac: it goes as a label. */
.rd-name { padding: 0 3px; border-radius: 4px; background: var(--lilac); }
.rd-who .rd-name { color: var(--plum); }
.rd-said { font-size: 16px; line-height: 1.6; color: var(--ink); text-wrap: pretty; }
/* A word you can mark: a dotted underline says so. Marked, it wears lilac in your reading;
   left out, it is struck through. */
.rd-w { color: var(--ink); }
button.rd-w { margin: 0 -2px; padding: 0 2px; border: 0; border-bottom: 2px dotted var(--plum); border-radius: 4px 4px 0 0; background: none; font: inherit; line-height: inherit; cursor: pointer; }
button.rd-w:hover { background: var(--haze); }
button.rd-w[aria-expanded="true"] { background: var(--lilac); }
.rd-w.is-marked { background: var(--lilac); border-radius: 4px; }
.rd-w.is-out { background: var(--lilac); border-radius: 4px; text-decoration: line-through; text-decoration-thickness: 2px; }
.rd-w .rd-label { padding: 0 3px; }
.rd-label.is-out { font-style: normal; }
.rd-hint { margin-top: 14px; font-size: 14px; line-height: 1.45; font-weight: 600; color: var(--muted); }
.rd-toast { min-height: 1.5em; margin-top: 4px; font-size: 14px; line-height: 1.45; color: var(--plum); }

/* The marking bar: the app's four kinds, under the word it marks. The lit one is the way
   the word goes; pressed again, the word goes as it was said. */
.rd-pop { position: absolute; z-index: 5; display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; border: 1.5px solid var(--ink); border-radius: 12px; background: var(--paper); box-shadow: 0 8px 24px color-mix(in srgb, var(--ink) 14%, transparent); }
.rd-kind { height: 36px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; font: inherit; font-size: 14px; font-weight: 700; color: var(--ink); cursor: pointer; }
.rd-kind:hover { background: var(--haze); }
.rd-kind[aria-pressed="true"] { background: var(--navy); color: var(--cream); }

/* ---------------------------------------------------------------- the panel */
.rd-panel { padding: 22px 22px 20px; border: 2px solid var(--ink); border-radius: var(--radius-card); background: var(--cream); }
.rd-reads-h { font-size: 15px; line-height: 1.3; font-weight: 800; color: var(--ink); }
.rd-reads-body { display: grid; gap: 8px; margin-top: 10px; }
.rd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rd-reads-line { font-size: 14px; line-height: 1.45; color: var(--muted); }
.rd-act { margin-top: 18px; }
.rd-made { margin-top: 20px; padding-top: 18px; border-top: 1.5px solid var(--line); }
.rd-older { display: inline-block; margin-bottom: 12px; padding: 5px 10px; border-radius: 8px; background: var(--peach); font-size: 13.5px; line-height: 1.35; font-weight: 700; color: var(--peach-text); }
.rd-made-h { font-size: 18px; line-height: 1.3; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
.rd-sub { margin-top: 12px; font-size: var(--fs-label); line-height: 1.2; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.rd-list { list-style: none; display: grid; gap: 8px; margin-top: 8px; }
.rd-list li { display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: 8px; align-items: start; font-size: 15.5px; line-height: 1.45; color: var(--ink); }
.rd-list .dt-tick { margin-top: 1px; }
.rd-tickspace { display: block; width: 20px; }
/* A label on its way home: lilac, as OpenAI wrote it, until Murmur puts the name back. */
.rd-back { border-radius: 6px; transition: background-color 0.3s ease, color 0.3s ease; }
.rd-back.is-label { padding: 0 4px; background: var(--lilac); color: var(--plum); font-weight: 700; }
.rd-went { margin-top: 14px; font-size: 14px; line-height: 1.5; color: var(--plum); text-wrap: pretty; }

/* A demo column too narrow for both side by side (a small desktop window): the panel goes
   under the note, as on the phone. */
@container play (max-width: 1180px) {
  .rd { display: block; }
  .rd-panel { margin-top: 16px; }
}

@media (max-width: 1023.98px) {
  .rd { display: block; }
  .rd-note { padding: 18px 16px 14px; }
  .rd-meta strong { display: block; margin: 0 0 2px; }
  .rd-controls { justify-content: flex-start; }
  .rd-switch { width: 100%; }
  .rd-switch label { flex: 1 1 0; }
  .rd-switch label > span { width: 100%; justify-content: center; padding: 0 8px; }
  .rd-said { font-size: 15.5px; }
  .rd-panel { margin-top: 16px; padding: 18px 16px; }
  .rd-act .dt-btn { width: 100%; justify-content: space-between; }
}

/* ---------------------------------------------------------------- motion */
.motion .rd-made-body.is-new { animation: rd-in 0.45s ease both; }
@keyframes rd-in { from { opacity: 0; translate: 0 8px; } }
