:root { color-scheme: light; --ink: #213d32; --muted: #68756c; --paper: #f8f8f1; --line: #dce1d6; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.header { min-height: 88px; padding: 20px 5%; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 24px; }
.brand { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 750; letter-spacing: 1.5px; display: flex; align-items: center; gap: 12px; }
.mountain { font-size: 38px; line-height: 1; }
.brand-light { font-weight: 450; }
.header-note { font-size: 12px; color: var(--muted); margin-left: auto; }
button, input, textarea { font: inherit; }
button { border: 1px solid var(--ink); border-radius: 8px; background: var(--ink); color: white; cursor: pointer; padding: 13px 20px; font-size: 14px; font-weight: 600; }
button:hover:enabled { background: #335944; }
button span { margin-left: 12px; }
button:disabled { opacity: .45; cursor: default; }
.secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.secondary:hover:enabled { background: #e9eddf; }
:focus-visible { outline: 3px solid #ab7844; outline-offset: 4px; }
.access-panel { width: min(420px, calc(100% - 48px)); margin: auto; padding: 40px 0; }
.eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 2px; color: #77865a; }
h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -1.6px; }
.access-panel h1 { font-size: clamp(42px, 6vw, 60px); line-height: 1.05; margin: 24px 0; }
.intro { color: var(--muted); line-height: 1.7; font-size: 15px; }
#access-form { margin-top: 36px; display: grid; gap: 12px; }
label { font-size: 12px; font-weight: 600; }
input { padding: 14px; border: 1px solid #cbd3c3; border-radius: 8px; background: #fff; width: 100%; color: var(--ink); }
#unlock { display: flex; justify-content: space-between; }
.access-note { font-size: 11px; color: var(--muted); margin-top: 28px; }
.chat-panel { width: min(820px, 100%); margin: 0 auto; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.chat-intro { padding: 30px 28px 18px; }
.chat-intro h1 { font-size: clamp(27px, 4vw, 38px); margin: 12px 0; }
.chat-intro > p:last-child { font-size: 13px; color: var(--muted); }
.transcript { overflow-y: auto; overscroll-behavior: contain; flex: 1; min-height: 70px; padding: 12px 28px 28px; }
.message { margin: 0 0 24px; max-width: 90%; }
.message .speaker { display: block; font-size: 10px; font-weight: 750; letter-spacing: 1.5px; margin-bottom: 9px; color: var(--muted); }
.message .text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.75; }
.message.user { margin-left: auto; background: #e9eedf; padding: 16px 20px; border-radius: 12px 12px 2px 12px; width: fit-content; }
.message.assistant { padding: 10px 0; }
.message a { color: #326b50; text-underline-offset: 3px; }
.composer-area { padding: 8px 28px 12px; }
.composer { padding: 10px; display: flex; align-items: flex-end; gap: 10px; border: 1px solid #cbd3c3; border-radius: 12px; background: #fff; }
textarea { resize: none; max-height: 160px; min-height: 56px; width: 100%; padding: 10px; border: 0; background: transparent; color: var(--ink); line-height: 1.5; }
textarea:focus-visible { outline-offset: 0; border-radius: 4px; }
.composer-note { display: flex; justify-content: space-between; gap: 12px; font-size: 10px; color: var(--muted); margin-bottom: 0; }
.waiting { font-size: 12px; color: var(--muted); padding: 2px 0 14px; display: flex; align-items: center; gap: 8px; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: #77865a; animation: breathe 1.4s ease-in-out infinite; }
.status { text-align: center; font-size: 13px; color: var(--ink); margin: 0; padding: 10px 20px; }
.status:empty { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@keyframes breathe { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }
@media (max-width: 600px) {
  .header { min-height: 72px; padding: 14px 20px; gap: 12px; }
  .brand { font-size: 12px; letter-spacing: .7px; gap: 7px; }
  .brand-light { display: block; font-size: 9px; }
  .header-note { display: none; }
  #new-chat { margin-left: auto; padding: 10px 12px; font-size: 12px; }
  .chat-intro { padding: 18px 20px 6px; }
  .transcript { padding: 10px 20px; }
  .message { max-width: 96%; }
  .composer-area { padding: 10px 16px max(12px, env(safe-area-inset-bottom)); }
  .composer-note { flex-wrap: wrap; gap: 5px; }
  input, textarea { font-size: 16px; }
}
@media (max-height: 600px) { .chat-intro { display: none; } .access-panel { padding: 15px 0; } .access-panel h1 { font-size: 36px; } }
