/* a₀ idea chat. Palette from docs/a0-design-brief.md; light and dark follow the system setting. */
:root {
  --paper: #F7F7F0; --ink: #1F2A25; --forest: #355E4D; --muted: #5E6B64; --wash: #ECEFE6; --rule: #C9D1C8;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #141C18; --ink: #E9ECE3; --forest: #8DBBA5; --muted: #A2AFA7; --wash: #1B2520; --rule: #2F3D36; }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
}
main, .top, .foot { max-width: 44rem; margin: 0 auto; padding: 0 16px; }
.top { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; padding-bottom: 8px; }
.brand { font-family: Georgia, serif; font-size: 1.25rem; }
h1, h2 { font-family: Georgia, serif; font-weight: normal; line-height: 1.25; }
h1 { font-size: 1.75rem; margin: 0.5em 0; }
h2 { font-size: 1.3rem; margin-top: 0; }
a { color: var(--forest); }
.muted, .status { color: var(--muted); }
.note { padding: 12px 16px; background: var(--wash); border-radius: 8px; }
.card { background: var(--wash); border-radius: 12px; padding: 16px; margin: 16px 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--paper); padding: 8px; z-index: 1; }
details { margin: 8px 0 16px; }
summary { cursor: pointer; color: var(--forest); }
label { display: block; margin: 12px 0 4px; font-weight: 600; }
label.check { font-weight: normal; display: flex; gap: 8px; align-items: flex-start; }
input, textarea, select {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper);
  border: 1px solid var(--muted); border-radius: 8px; padding: 10px;
}
label.check input { width: auto; margin-top: 6px; }
button {
  font: inherit; cursor: pointer; border-radius: 8px; padding: 10px 16px; min-height: 44px;
  background: var(--forest); color: var(--paper); border: 1px solid var(--forest);
}
button.secondary { background: transparent; color: var(--forest); }
button.link { background: none; border: none; color: var(--forest); text-decoration: underline; padding: 10px 4px; }
button:disabled { opacity: 0.5; cursor: default; }
:focus-visible { outline: 3px solid var(--forest); outline-offset: 2px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
.starters { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.chat { list-style: none; padding: 0; margin: 16px 0; display: flex; flex-direction: column; gap: 10px; }
.chat li { padding: 10px 14px; border-radius: 12px; max-width: 90%; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat .me { align-self: flex-end; background: var(--forest); color: var(--paper); }
.chat .them { align-self: flex-start; background: var(--wash); }
.send textarea { resize: vertical; }
.foot { margin-top: 48px; padding-bottom: 32px; border-top: 1px solid var(--rule); font-size: 0.95rem; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
.disclosure { font-size: 0.95rem; color: var(--muted); border-left: 3px solid var(--forest); padding-left: 10px; }
h3 { font-family: Georgia, serif; font-weight: normal; margin: 16px 0 4px; }
.card .note { background: var(--paper); }
