/* One column: the message box, then what this device has sent and the answers. */
:root {
  --bg: #f6f5f2; --card: #ffffff; --ink: #1d1f24; --muted: #5d626c; --line: #dcd9d2;
  --accent: #2f5d8a; --accent-ink: #ffffff; --ok: #2e7d4f; --bad: #a33b2b;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --mono: ui-monospace, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #15171b; --card: #1e2126; --ink: #e9e7e2; --muted: #a2a7b0; --line: #343840;
          --accent: #7fb0e0; --accent-ink: #10161d; --ok: #6cc38f; --bad: #e88b7c; color-scheme: dark; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--text);
       padding-block: 32px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
main { max-width: 34rem; margin: 0 auto; display: grid; gap: 16px; }
h1 { font-size: 1.4rem; margin: 0; text-wrap: balance; } h2 { font-size: 1.05rem; margin: 8px 0 0; }
p { margin: 0; } .muted { color: var(--muted); font-size: .92rem; } code { font-family: var(--mono); font-size: .88em; }
label { font-weight: 600; }
textarea { width: 100%; min-height: 9rem; padding: 12px; font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 8px; resize: vertical; }
textarea:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
button { font: inherit; font-weight: 600; padding: 10px 20px; border-radius: 8px; border: 0; background: var(--accent); color: var(--accent-ink); cursor: pointer; }
button.quiet { background: transparent; color: var(--muted); border: 1px solid var(--line); font-weight: 500; padding: 6px 12px; }
button[disabled] { opacity: .6; cursor: default; }
#status { min-height: 1.5em; } #status.ok { color: var(--ok); } #status.bad { color: var(--bad); }
#sent { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
#sent li { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; display: grid; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.when { color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.state { font-weight: 600; } .s-answered, .s-acted-on { color: var(--ok); }
.stack { display: grid; gap: 16px; } [hidden] { display: none !important; }
blockquote { margin: 4px 0 0; padding-left: 10px; border-left: 3px solid var(--accent); }
