:root {
  color-scheme: light;
  --ink: #1e1a17;
  --muted: #5e564c;
  --paper: #f4efe6;
  --card: #fbf7f1;
  --line: #e0d6c6;
  --copper: #9a4e32;
  --warn: #8f2f2f;
  --ok: #1f2a24;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.5; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.top, main, .banner, .note { max-width: 920px; }
.top { margin: 0 auto; padding: 28px 20px 8px; display: flex; justify-content: space-between; gap: 16px; align-items: end; }
h1 { margin: 0; font-family: Palatino, Georgia, serif; font-weight: 500; font-size: 2.4rem; }
.eyebrow { margin: 0; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.78rem; color: var(--muted); }
.pill { margin: 0; border: 1px solid var(--ok); color: var(--ok); border-radius: 999px; padding: 4px 10px; }
.banner, .card, .note { margin: 12px auto; padding: 0 20px; }
.banner { background: #e7efe8; border-radius: 12px; padding: 12px 16px; }
.banner.warn { background: #f8ece4; color: var(--warn); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin: 12px auto; }
label { display: grid; gap: 6px; font-size: 0.92rem; }
textarea, input[type="password"], input[type="text"], #name { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: white; color: var(--ink); }
.row, .actions, .split { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.grow { flex: 1; }
.split { align-items: stretch; }
.split .card { flex: 1; }
.primary, .file, .quiet { border-radius: 999px; padding: 10px 16px; border: 1px solid var(--ok); background: var(--ok); color: #f4efe6; }
.file { background: transparent; color: var(--ink); position: relative; overflow: hidden; }
.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.quiet { background: transparent; color: var(--ink); margin: 8px 20px 32px; }
.thread { display: grid; gap: 10px; }
.message { padding: 10px 12px; border-radius: 12px; background: white; }
.message.user { background: #e7efe8; }
.tag { display: inline-block; font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--copper); }
.note { color: var(--muted); font-size: 0.92rem; }
img.attach { max-width: min(100%, 280px); border-radius: 8px; display: block; margin-top: 8px; }
@media (max-width: 720px) {
  .top, .row, .split { display: grid; }
  h1 { font-size: 2rem; }
}
