:root {
  color-scheme: light dark;
  --line: #8885;
  --soft2: #8882;
  --green: #2e9e6b;
  --blue: #5b8def;
  --tag-text: light-dark(#1b6f49, #2e9e6b);
  --me-bg: #3b6fd8;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { font-family: system-ui, sans-serif; line-height: 1.45; max-width: 54rem; margin: 2rem auto 4rem; padding: 0 1rem; }
h1 { margin-bottom: 0.25rem; }
.lede { margin-top: 0; }
.nav { font-size: 14px; }
.note { font-size: 13px; opacity: 0.75; }
.caption { min-height: 2.9em; margin: 1rem 0 0.5rem; font-weight: 600; }
.btn { font: inherit; padding: 5px 14px; border: 1px solid var(--line); border-radius: 6px; background: Canvas; color: inherit; cursor: pointer; }

/* ASCII background: the wall fills the page, the oversized key sits behind the threads. Neither takes input. */
.wall, .hero-key {
  position: fixed;
  z-index: -1;
  margin: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  white-space: pre;
  font-family: ui-monospace, Menlo, monospace;
}
.wall { inset: 0; font-size: 13px; line-height: 1.1; opacity: 0.09; }
.stage { position: relative; margin-top: 1.25rem; }
.hero-key { position: absolute; z-index: 0; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: min(5vw, 3.5rem); line-height: 1.1; opacity: 0.22; }

.threads { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1.25rem; }
.phone { background: Canvas; background: color-mix(in srgb, Canvas 82%, transparent); border: 1px solid var(--line); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 10px; min-height: 17rem; }
.phone-title { margin: 0; font-size: 13px; font-weight: 600; text-align: center; opacity: 0.7; }
.bubble { max-width: 88%; padding: 8px 12px; border-radius: 14px; font-size: 14px; }
.bubble p { margin: 6px 0 0; }
.bubble.bot { align-self: flex-start; background: var(--soft2); border-bottom-left-radius: 4px; }
.bubble.me { align-self: flex-end; background: var(--me-bg); color: #fff; border-bottom-right-radius: 4px; }
.bubble.outcome { font-weight: 600; }
.agent-tag { display: inline-block; font-size: 11px; border: 1px solid var(--green); color: var(--tag-text); border-radius: 4px; padding: 1px 7px; }
.reply { align-self: flex-end; font: inherit; font-size: 14px; padding: 8px 14px; border: 1.5px dashed var(--blue); border-radius: 14px; background: Canvas; color: inherit; cursor: pointer; }
.reply:hover, .reply:focus-visible { background: #5b8def22; }

.prose h2 { margin-top: 2rem; }
table { border-collapse: collapse; margin: 0.75rem 0; font-size: 14px; }
th, td { text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); padding: 6px 12px 6px 0; }
