/* How to let AI read your email without taking orders from it. Loaded after articles.css, for this
   article only.

   The colour rule carries the argument. Orange is the leak: the hidden line, the reply that left on its
   own, and every pair the reader should turn off. Indigo is what came back: here, the mistake that never
   left. A person's yes is the dark night colour, the same mark the sister article uses for a check.
   Everything safe stays quiet grey and ink. */

.a-hero h1, .a-body h2, .a-body h3 { text-wrap: balance; }
.a-hero .lead, .a-body p, .a-body li { text-wrap: pretty; }
[hidden] { display: none !important; }

/* ---------- The set piece: one email, two setups ----------
   The finished picture is plain markup, so no JS and reduced motion simply get it. articles.js arms it;
   when it reaches the screen the hidden line is lit, the two wires draw, the outcomes land one after the
   other, then the person's answer, then the two sentences. */
.rp-fig {
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1); --grey: #AEB5D6;
  margin: 0; padding: clamp(14px, 2.6vw, 24px); border-radius: 22px; background: var(--surface);
  box-shadow: var(--shadow-float); display: grid; gap: 14px; min-width: 0;
}
.rp-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.rp-head .eyebrow { color: var(--ink-hint); }
.rp-again { padding: 0.5em 0.95em; border: 0; border-radius: 999px; background: var(--grid); color: var(--ink); font: 700 0.8125rem/1.2 var(--sans); cursor: pointer; transition: background-color 0.2s; }
.rp-again:hover { background: var(--rule); }
.rp-again:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.rp-stage { display: grid; min-width: 0; }

/* The email, drawn as a message: who it is from, the subject, what you read, and the line you do not. */
.rp-mail {
  justify-self: center; width: min(100%, 34rem); display: grid; gap: 6px; padding: 16px 18px 14px;
  border-radius: 16px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--rule);
}
.rp-from { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-size: 0.9375rem; line-height: 1.3; color: var(--ink); }
.rp-from span { font: 500 0.75rem/1.3 var(--mono); color: var(--ink-hint); overflow-wrap: anywhere; }
.rp-subj { padding-bottom: 8px; border-bottom: 1px solid var(--rule); font-family: var(--serif); font-size: 1.125rem; font-weight: 700; line-height: 1.25; color: var(--ink); }
.rp-msg { padding-top: 2px; font-size: 0.9375rem; line-height: 1.5; color: var(--ink-2); }
.rp-hide { font-size: 0.9375rem; line-height: 1.5; }
.rp-hide-t {
  color: var(--ink); border-radius: 4px; -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0.05em 0.2em;
  background: linear-gradient(var(--lift-tint), var(--lift-tint)) 0 0 / 100% 100% no-repeat;
  transition: background-size 0.55s var(--ease) 0.1s, color 0.3s 0.25s;
}
.rp-hide-l { display: flex; align-items: center; gap: 8px; font-size: 0.8125rem; font-weight: 700; line-height: 1.35; color: var(--lift-ink); transition: opacity 0.3s 0.55s; }
.rp-hide-l::before { content: ""; flex: none; width: 14px; height: 2px; border-radius: 2px; background: var(--lift); }

/* The same email reaches both setups. */
.rp-split { position: relative; height: 40px; width: 100%; }
.rp-split svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.rp-split path { fill: none; stroke: var(--grey); stroke-width: 2; vector-effect: non-scaling-stroke; }

.rp-lanes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; min-width: 0; }
.rp-lane {
  display: grid; grid-template-areas: "lh" "bot" "wire" "out" "say"; justify-items: stretch; align-content: start;
  padding: 14px; border-radius: 18px; background: var(--paper); min-width: 0;
}
.rp-lh { grid-area: lh; display: grid; gap: 1px; margin-bottom: 10px; font-size: 1rem; font-weight: 700; line-height: 1.25; color: var(--ink); text-align: center; }
.rp-lh small { font-size: 0.8125rem; font-weight: 600; color: var(--ink-hint); }
.rp-bot {
  grid-area: bot; display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--night);
  color: #fff; text-align: center; font: 700 1.125rem/1.15 var(--serif);
}
.rp-bot small { font: 600 0.75rem/1.3 var(--sans); color: var(--on-night-2); }
.rp-wire { grid-area: wire; justify-self: center; display: block; width: 2px; height: 26px; background: var(--grey); transform-origin: 50% 0; transition: transform 0.35s var(--ease) 0.75s; }
.is-a .rp-wire { width: 3px; background: var(--lift); }
.rp-out {
  grid-area: out; position: relative; display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; min-width: 0;
  transition: opacity 0.3s 1.05s, transform 0.42s var(--spring) 1.05s;
}
.rp-out.is-leak { background: var(--lift-tint); box-shadow: inset 0 0 0 1.5px var(--lift-ring); }
.rp-out.is-draft { background: var(--surface); border: 1.5px dashed #B5BAD2; transition-delay: 1.15s; }
.rp-st { font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.1em; line-height: 1.3; text-transform: uppercase; color: var(--ink-hint); }
.is-leak .rp-st { color: var(--lift-ink); }
.rp-to { font: 500 0.75rem/1.35 var(--mono); color: var(--ink); overflow-wrap: anywhere; }
.rp-what { font-size: 0.9375rem; font-weight: 700; line-height: 1.3; color: var(--ink); }
.rp-gone { margin-top: 4px; font-size: 0.8125rem; font-weight: 700; line-height: 1.3; color: var(--lift-ink); }
.rp-you {
  justify-self: start; margin-top: 8px; padding: 0.35em 0.8em; border-radius: 999px; background: var(--night); color: #fff;
  font: 700 0.8125rem/1.25 var(--sans); transform-origin: 0 50%; transition: opacity 0.25s 1.6s, transform 0.4s var(--spring) 1.6s;
}
.rp-say { grid-area: say; display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; font-size: 0.9375rem; font-weight: 700; line-height: 1.4; transition: opacity 0.4s 1.95s, transform 0.4s var(--ease) 1.95s; }
.rp-say::before { flex: none; width: 1.25rem; height: 1.25rem; margin-top: 1px; border-radius: 50%; display: grid; place-items: center; font-size: 0.75rem; line-height: 1; color: #fff; }
.rp-say.is-leak { color: var(--lift-ink); }
.rp-say.is-leak::before { content: "✕"; background: var(--lift-ink); }
.rp-say.is-back { color: var(--primary-deep); transition-delay: 2.1s; }
.rp-say.is-back::before { content: "✓"; background: var(--primary-deep); }
.rp-cap { margin-top: 12px; font-size: 0.9375rem; line-height: 1.5; color: var(--ink-hint); }

/* Before: the email as a person sees it. The line is there, and blank. The button's two labels swap. */
.rp-b4 { display: none; }
.is-armed:not(.is-cut) .rp-b4 { display: inline; }
.is-armed:not(.is-cut) .rp-af { display: none; }
.is-armed:not(.is-cut) .rp-hide-t { color: transparent; background-size: 0% 100%; transition: none; }
.is-armed:not(.is-cut) .rp-hide-l { opacity: 0; transition: none; }
.is-armed:not(.is-cut) .rp-wire { transform: scaleY(0); transition: none; }
.is-armed:not(.is-cut) .rp-out { opacity: 0; transform: translateY(-10px) scale(0.92); transition: none; }
.is-armed:not(.is-cut) .rp-you { opacity: 0; transform: scale(0.6); transition: none; }
.is-armed:not(.is-cut) .rp-say { opacity: 0; transform: translateY(6px); transition: none; }

/* ---------- What the makers say ---------- */
.a-body .rp-says { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.rp-says li { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 4px 18px; padding: 16px 0; border-top: 1px solid var(--rule); }
.rp-says li:first-child { border-top: 0; padding-top: 4px; }
.rp-says b { font: 700 1.125rem/1.35 var(--serif); color: var(--ink); }
.rp-says p { font-size: 1.0625rem; line-height: 1.6; }
.rp-says a { white-space: nowrap; font-weight: 600; }
.rp-plain { font: 700 clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem)/1.25 var(--serif); color: var(--ink); }

.rp-mine li { color: var(--ink-2); }
.a-body .rp-mine { gap: 12px; }

/* ---------- The three marks ---------- */
.rp-marks { margin: 0; padding: clamp(14px, 2.6vw, 22px); border-radius: 22px; background: var(--wash); min-width: 0; }
.rp-mg { display: grid; grid-template-columns: 10rem repeat(3, minmax(0, 1fr)); gap: 14px 8px; align-items: stretch; }
.rp-mh { align-self: end; padding: 0 4px 2px; font-size: 0.8125rem; font-weight: 700; line-height: 1.3; color: var(--ink-2); text-align: center; text-wrap: balance; }
.rp-mr { align-self: center; display: grid; gap: 3px; padding-right: 6px; font-size: 1rem; font-weight: 700; line-height: 1.25; color: var(--ink); }
.rp-mr small { font-size: 0.8125rem; font-weight: 500; line-height: 1.35; color: var(--ink-hint); }
.rp-c { display: grid; place-items: center; align-content: center; gap: 6px; min-height: 84px; padding: 12px 10px; border-radius: 14px; background: var(--surface); text-align: center; }
.rp-c b { font-size: 0.9375rem; font-weight: 700; line-height: 1.2; }
.rp-cl { display: none; }
.rp-c::before { width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; font-size: 0.875rem; font-weight: 700; line-height: 1; }
.rp-c.is-safe b { color: var(--ink-2); }
.rp-c.is-safe::before { content: "✓"; background: var(--grid); color: var(--ink-2); }
.rp-c.is-yes { box-shadow: inset 0 0 0 2px var(--night); }
.rp-c.is-yes b { color: var(--ink); }
.rp-c.is-yes::before { content: "?"; background: var(--night); color: #fff; }
.rp-c.is-off { background: var(--lift-tint); box-shadow: inset 0 0 0 1.5px var(--lift-ring); }
.rp-c.is-off b { color: var(--lift-ink); }
.rp-c.is-off::before { content: "✕"; background: var(--lift-ink); color: #fff; }

/* ---------- A sentence and a switch ---------- */
.rp-two { margin: 0; padding: clamp(14px, 2.6vw, 22px); border-radius: 22px; background: var(--wash); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; min-width: 0; }
.rp-pan { display: grid; gap: 14px; align-content: start; padding: 16px 18px; border-radius: 16px; background: var(--surface); min-width: 0; }
.rp-ph { display: grid; gap: 3px; font-size: 1.0625rem; font-weight: 700; line-height: 1.25; color: var(--ink); }
.rp-ph small { font-size: 0.8125rem; font-weight: 500; line-height: 1.35; color: var(--ink-hint); }
.rp-pr { font-size: 0.9375rem; line-height: 1.5; color: var(--ink-2); }
/* One track: the line, a run up to the barrier, the barrier, and what is on the far side. */
.rp-track { display: grid; grid-template-columns: auto minmax(10px, 1fr) auto minmax(10px, 1fr); grid-template-rows: auto auto; align-items: center; column-gap: 0; row-gap: 8px; min-height: 64px; }
.rp-line { grid-column: 1; grid-row: 1; padding: 0.35em 0.6em; border-radius: 8px; background: var(--lift-tint); font: 600 0.75rem/1.25 var(--mono); color: var(--lift-ink); white-space: nowrap; }
.rp-run { grid-row: 1; display: block; height: 2px; background: #C5CAE0; }
.rp-track > .rp-run:nth-of-type(1) { grid-column: 2; }
.rp-bar { grid-column: 3; grid-row: 1; display: block; height: 52px; }
.rp-thru { grid-column: 4; height: 0; background: none; border-top: 2px dashed var(--lift); }
.rp-end { grid-column: 1 / -1; grid-row: 2; justify-self: end; font-size: 0.8125rem; font-weight: 700; line-height: 1.3; }
.is-rule .rp-bar { width: 0; border-left: 3px dashed var(--ink-2); }
.is-rule .rp-end { color: var(--lift-ink); }
.is-switch .rp-bar { width: 8px; border-radius: 3px; background: var(--night); }
.is-switch { grid-template-columns: auto minmax(10px, 1fr) auto minmax(10px, 0.6fr); }
.is-switch .rp-end { color: var(--ink-2); }

/* ---------- The tool, step 1: what it reads ----------
   The one dark surface in the reading column, as in the other articles: here the reader stops reading
   and does the thing. */
.rp-tool { padding: clamp(16px, 2.6vw, 26px); border-radius: 22px; background: var(--night); color-scheme: dark; display: grid; gap: 14px; min-width: 0; }
.a-body .rp-tool .fine { line-height: 1.5; color: var(--on-night-2); }
.rp-th { font-size: var(--t-eyebrow); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-night-2); }
.rp-srcs, .rp-own { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rp-own:empty { display: none; }
.rp-src {
  position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 2px 10px; align-items: start; min-width: 0;
  padding: 12px 14px; border: 1px solid var(--night-line); border-radius: 14px; background: var(--night-2); color: var(--on-night);
  font: 700 0.9375rem/1.3 var(--sans); text-align: left; cursor: pointer; transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.rp-src:hover { border-color: #4A5394; }
.rp-src::before { content: ""; grid-row: 1 / span 2; width: 22px; height: 22px; border-radius: 7px; box-shadow: inset 0 0 0 2px #4A5394; transition: background-color 0.2s, box-shadow 0.2s; }
.rp-src small { grid-column: 2; font-size: 0.8125rem; font-weight: 500; line-height: 1.35; color: var(--on-night-2); }
.rp-src[aria-pressed="true"], .rp-custom { background: var(--surface); border-color: var(--surface); color: var(--ink); cursor: default; }
.rp-src[aria-pressed="true"] { cursor: pointer; }
.rp-src[aria-pressed="true"] small, .rp-custom small { color: var(--ink-hint); }
.rp-src[aria-pressed="true"]::before, .rp-custom::before {
  box-shadow: none; background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 10 17.5 19 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.rp-src .rp-x { position: absolute; top: 6px; right: 6px; }
.rp-x { width: 2rem; height: 2rem; border: 0; border-radius: 9px; background: none; color: var(--ink-hint); font: 600 1.125rem/1 var(--sans); cursor: pointer; }
.rp-x:hover { background: var(--grid); color: var(--ink); }
.rp-custom { padding-right: 2.6rem; }

.rp-add { display: grid; gap: 7px; }
.rp-add label { font-size: 0.8125rem; font-weight: 700; color: var(--on-night); }
.rp-addrow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; }
.rp-addrow input {
  min-width: 0; width: 100%; padding: 0.6em 0.75em; border: 1px solid var(--night-line); border-radius: 10px;
  background: var(--night-2); color: var(--on-night); font: 500 1rem/1.3 var(--sans); transition: border-color 0.2s, box-shadow 0.2s;
}
.rp-addrow input::placeholder { color: var(--on-night-2); }
.rp-addrow input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79, 108, 248, 0.25); }
.rp-who { display: grid; grid-auto-flow: column; gap: 3px; padding: 3px; border-radius: 12px; background: var(--night-2); box-shadow: inset 0 0 0 1px var(--night-line); }
.rp-who button { min-height: 2.25rem; padding: 0.3em 0.7em; border: 0; border-radius: 9px; background: none; color: var(--on-night-2); font: 700 0.8125rem/1.15 var(--sans); cursor: pointer; white-space: nowrap; }
.rp-who [aria-pressed="true"] { background: var(--surface); color: var(--ink); }
.rp-addb { padding: 0.6em 1.05em; border: 0; border-radius: 999px; background: var(--primary); color: #fff; font: 700 0.9375rem/1.2 var(--sans); cursor: pointer; }
.rp-addb:hover { background: var(--primary-deep); }
.rp-actions { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.rp-text { padding: 0.2em 0; border: 0; background: none; color: var(--on-night); font: 600 0.9375rem/1.2 var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.rp-text:hover { color: #fff; }
.rp-tool button:focus-visible, .rp-acts button:focus-visible, #rp-out button:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }

/* ---------- Step 2: what it can do, one switch per action ---------- */
.rp-acts { display: grid; gap: 0; padding: 6px 18px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); min-width: 0; }
.rp-act { display: grid; grid-template-columns: 10.5rem minmax(0, 1fr); gap: 6px 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--rule); }
.rp-act:first-child { border-top: 0; }
.rp-al { font-size: 0.9375rem; font-weight: 700; line-height: 1.3; color: var(--ink); }
/* Unanswered rows stay light, so the answered ones are what the eye finds. */
.rp-opts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; padding: 3px; border-radius: 12px; background: none; box-shadow: inset 0 0 0 1px var(--rule); }
.rp-opts button { min-height: 2.35rem; padding: 0.35em 0.4em; border: 0; border-radius: 9px; background: none; color: var(--ink-hint); font: 600 0.8125rem/1.15 var(--sans); cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.rp-opts [aria-pressed="true"] { font-weight: 700; }
.rp-opts button:hover { background: var(--grid); color: var(--ink); }
.rp-opts [aria-pressed="true"], .rp-opts [aria-pressed="true"]:hover { background: var(--night); color: #fff; }
.rp-opts [data-v="alone"][aria-pressed="true"], .rp-opts [data-v="unsure"][aria-pressed="true"] { background: var(--lift-ink); }
/* ---------- Step 3: the marks ---------- */
#rp-out { display: grid; gap: 12px; min-width: 0; }
.rp-sample { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; font-weight: 600; line-height: 1.4; color: var(--ink-hint); }
.rp-sample::before { content: "Example"; flex: none; padding: 2px 8px; border-radius: 999px; background: var(--grid); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.rp-empty { padding: 16px 18px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); font-size: 1rem; line-height: 1.5; color: var(--ink-hint); }
.rp-tool .rp-empty { background: var(--night-2); box-shadow: none; color: var(--on-night-2); }

.rp-sum { display: flex; flex-wrap: wrap; gap: 8px; }
.rp-k { display: inline-flex; align-items: baseline; gap: 6px; padding: 7px 12px; border-radius: 12px; font-size: 0.9375rem; font-weight: 700; line-height: 1.2; }
.rp-k b { font: 700 1.375rem/1 var(--serif); }
.rp-k.is-off { background: var(--lift-tint); color: var(--lift-ink); }
.rp-k.is-yes { background: var(--night); color: #fff; }
.rp-k.is-safe { background: var(--grid); color: var(--ink-2); }
.rp-hint { font-size: 0.9375rem; line-height: 1.5; color: var(--ink-hint); }

.a-body .rp-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rp-sc { display: grid; gap: 10px; padding: 14px 16px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); min-width: 0; }
.rp-sc.has-off { box-shadow: inset 0 0 0 1.5px var(--lift-ring); }
.rp-sch { font-size: var(--t-eyebrow); font-weight: 700; letter-spacing: 0.14em; line-height: 1.3; text-transform: uppercase; color: var(--ink-hint); }
.a-body .rp-names { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.rp-names li { padding: 3px 10px; border-radius: 999px; background: var(--grid); font-size: 0.9375rem; font-weight: 700; line-height: 1.35; color: var(--ink); overflow-wrap: anywhere; }
/* One row per action: what it does, then its mark. The marks line up on the right so the eye runs down them. */
.a-body .rp-pairs { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.rp-p { display: grid; grid-template-columns: 1.3rem minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; font-size: 0.9375rem; line-height: 1.3; }
.rp-p i { width: 1.3rem; height: 1.3rem; border-radius: 50%; display: grid; place-items: center; font-size: 0.75rem; font-style: normal; font-weight: 700; line-height: 1; }
.rp-p span { font-weight: 600; color: var(--ink); }
.rp-p b { font-size: 0.875rem; font-weight: 700; white-space: nowrap; }
.rp-p.is-off { background: var(--lift-tint); }
.rp-p.is-off i { background: var(--lift-ink); color: #fff; }
.rp-p.is-off b { color: var(--lift-ink); }
.rp-p.is-yes { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--night); }
.rp-p.is-yes i { background: var(--night); color: #fff; }
.rp-p.is-yes b { color: var(--ink); }
.rp-p.is-safe { background: var(--paper); }
.rp-p.is-safe i { background: var(--grid); color: var(--ink-2); }
.rp-p.is-safe span, .rp-p.is-safe b { color: var(--ink-2); }
.rp-why { font-size: 0.9375rem; line-height: 1.5; color: var(--ink-2); }
.rp-use { justify-self: start; }

/* The setup, drawn as a page to keep rather than a code dump. Each line is its own block, so a wrapped line
   hangs under its dash. The newlines between blocks stay in the text, so Copy gives clean plain text. */
.rp-plan.a-code { background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); }
.rp-plan.a-code[data-label]::before { color: var(--ink-hint); }
.rp-plan.a-code .a-copy { background: var(--night); color: #fff; }
.rp-plan.a-code .a-copy:hover { background: var(--primary-deep); }
.rp-plan.a-code.is-tall pre { max-height: none; padding: 52px 22px 22px; white-space: normal; overflow: visible; color: var(--ink-2); font: 400 0.9375rem/1.55 var(--sans); }
.a-body .rp-plan code { font: inherit; color: inherit; }
.rp-plan .ln { display: block; overflow-wrap: anywhere; white-space: normal; }
.rp-plan .ln-title { font: 700 1.25rem/1.25 var(--serif); color: var(--ink); }
.rp-plan .ln-meta { margin-top: 2px; font-size: 0.8125rem; color: var(--ink-hint); }
.rp-plan .ln-h { margin-top: 18px; font-weight: 700; color: var(--ink); }
/* The "- " stays in the text for Copy, out of sight; a drawn dot takes its place. Orange marks the ones to
   switch, because those are the leak. */
.rp-plan .ln-d { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.rp-plan .ln-i { position: relative; padding-left: 1.15em; color: var(--ink); }
.rp-plan .ln-i::before { content: ""; position: absolute; left: 0.2em; top: 0.6em; width: 7px; height: 7px; border-radius: 50%; background: #B5BAD2; }
.rp-plan .ln-i.is-off { font-weight: 600; }
.rp-plan .ln-i.is-off::before { background: var(--lift); }
.rp-plan .ln-note { margin-bottom: 2px; font-size: 0.875rem; color: var(--ink-hint); }
.rp-plan .ln-rule { margin-top: 6px; padding: 12px 14px; border-radius: 12px; background: var(--paper); color: var(--ink); }
.rp-send { justify-self: start; }
.rp-sent { font-size: 0.9375rem; line-height: 1.5; color: var(--ink-hint); }
#rp-lead { display: grid; gap: 8px; }
#rp-lead:empty { display: none; }

/* ---------- Phones ----------
   The lanes stack, and each one reads left to right: the assistant, a short wire, what came out. The
   marks become two cards, one per kind of text, each with its three answers as rows. The two tracks
   stack. */
@media (max-width: 640px) {
  .rp-split { height: 26px; }
  .rp-split svg { display: none; }
  .rp-split::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #AEB5D6; }
  .rp-lanes { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .rp-lane { grid-template-columns: minmax(0, 0.85fr) 16px minmax(0, 1.15fr); grid-template-areas: "lh lh lh" "bot wire out" "say say say"; align-items: center; padding: 12px; }
  .rp-lh { margin-bottom: 10px; text-align: left; }
  .rp-bot { align-self: stretch; align-content: center; padding: 10px; font-size: 1rem; }
  .rp-wire { width: 100%; height: 2px; transform-origin: 0 50%; }
  .is-a .rp-wire { width: 100%; height: 3px; }
  .is-armed:not(.is-cut) .rp-wire { transform: scaleX(0); }
  .rp-out { padding: 10px 11px; }
  .rp-what { font-size: 0.875rem; }
  .rp-you { font-size: 0.75rem; border-radius: 10px; }
  .rp-say { margin-top: 10px; }

  .rp-says li { grid-template-columns: minmax(0, 1fr); }
  .rp-says p { font-size: 1rem; }
  .rp-plain { padding: 16px; }

  .rp-mg { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .rp-mh { display: none; }
  .rp-mr { padding: 10px 2px 2px; }
  .rp-mg > .rp-mr:not(:first-of-type) { margin-top: 10px; }
  .rp-c { grid-template-columns: 1.6rem minmax(0, 1fr) auto; place-items: center start; min-height: 0; padding: 10px 12px; text-align: left; column-gap: 10px; }
  .rp-cl { display: block; font-size: 0.875rem; font-weight: 600; line-height: 1.3; color: var(--ink-2); }
  .rp-c b { justify-self: end; }

  .rp-two { grid-template-columns: minmax(0, 1fr); }

  .rp-srcs, .rp-own { grid-template-columns: minmax(0, 1fr); }
  .rp-addrow { grid-template-columns: minmax(0, 1fr) auto; }
  .rp-addrow input { grid-column: 1 / -1; }
  .rp-who button { padding-inline: 0.55em; }

  .rp-acts { padding: 4px 14px; }
  .rp-act { grid-template-columns: minmax(0, 1fr); padding: 12px 0; }
  .rp-act { gap: 8px; padding: 10px 0; }
  .rp-opts button { min-height: 2.75rem; padding: 0.3em 0.25em; font-size: 0.75rem; line-height: 1.12; }
  .rp-sc { padding: 12px 14px; }
  .rp-plan.a-code.is-tall pre { padding: 52px 16px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .rp-hide-t, .rp-hide-l, .rp-wire, .rp-out, .rp-you, .rp-say, .rp-again, .rp-src, .rp-opts button { transition: none; }
}
