:root {
  color-scheme: light;
  color: #29251e;
  background: #f7f3ea;
  font: 16px/1.6 system-ui, "Apple SD Gothic Neo", sans-serif;
  --rust: #963e2a;
  --border: #dfd6c8;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
button:focus-visible, textarea:focus-visible, a:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }
.shell { width: min(100% - 32px, 760px); margin: auto; min-height: 100svh; display: flex; flex-direction: column; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 19px 0; border-bottom: 1px solid var(--border); }
.wordmark { color: inherit; font: 28px/1 Georgia, serif; text-decoration: none; }
.wordmark span, .date, .account { font: 13px/1.4 system-ui, sans-serif; color: #665c50; }
.wordmark span { margin-left: 4px; }
.intro { text-align: center; margin: auto; padding: 32px 0; }
.intro[hidden] { display: none; }
.intro p { margin: 0 0 24px; color: #665c50; }
.brand-mark { display: block; color: var(--rust); font-size: 45px; line-height: 1.2; }
h1 { font-size: clamp(24px, 5vw, 36px); font-weight: 620; margin: 10px 0; letter-spacing: -.04em; }
.login, .closed { flex: 1; display: grid; place-items: center; }
#googleSignIn { min-height: 44px; display: grid; place-items: center; }
.chat { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px; padding: 6px 0; }
.account { margin-right: auto; overflow-wrap: anywhere; }
.secondary { background: none; border: none; color: #665c50; padding: 0; min-height: 44px; }
.feed { display: flex; flex: 1; flex-direction: column; min-height: 32vh; gap: 20px; padding: 16px 0 24px; }
.feed article { max-width: 92%; scroll-margin-bottom: 155px; }
.feed h2 { margin: 0 0 4px; font-size: 13px; color: #665c50; }
.feed p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.user { align-self: flex-end; background: #ede4d5; border-radius: 16px 16px 2px 16px; padding: 12px 15px; }
.assistant { align-self: flex-start; }
.composer { position: sticky; bottom: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; background: #f7f3ea; padding: 12px 0 max(18px, env(safe-area-inset-bottom)); }
textarea { min-width: 0; width: 100%; max-height: 240px; padding: 11px; border: 1px solid #a69b8c; border-radius: 11px; background: #fffdf8; color: inherit; resize: vertical; }
.submit { min-height: 44px; padding: 0 13px; border: 0; border-radius: 9px; background: var(--rust); color: white; }
.status { grid-column: 1/-1; margin: 0; font-size: 14px; color: #665c50; }
.status:empty { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 380px) { .actions { column-gap: 9px; } .shell { width: calc(100% - 24px); } }
