:root{--ground:#eae7e0;--ground-alt:#e2ded4;--surface:#f7f5ef;--surface-line:#d8d3c6;--ink:#211f1a;--ink-soft:#4a463d;--muted:#766f5f;--accent:#4f6a58;--accent-strong:#3a5245;--accent-tint:#e2e8e0;--marker:#8a6a3a;--user-surface:#ded9c9;--font-display:"Fraunces", Georgia, serif;--font-body:"Newsreader", Georgia, "Times New Roman", serif;--font-mono:"IBM Plex Mono", ui-monospace, monospace}*{box-sizing:border-box}html,body,#root{height:100%}body{background:var(--ground);color:var(--ink);font-family:var(--font-body);margin:0}a{color:var(--accent-strong)}a:hover{color:var(--marker)}button{font-family:inherit}input:focus,textarea:focus{border-color:var(--accent);outline:none}input::placeholder,textarea::placeholder{color:var(--muted)}.page{justify-content:center;min-height:100%;display:flex}.page-narrow{width:100%;max-width:480px}.page-wide{width:100%;max-width:640px}.page-center{text-align:center;flex-direction:column;justify-content:center;align-items:center;min-height:100%;display:flex}.eyebrow{font-family:var(--font-mono);letter-spacing:.14em;text-transform:uppercase;color:var(--muted);font-size:12px}.display-heading{font-family:var(--font-display);letter-spacing:-.01em;text-wrap:balance;margin:0;font-weight:600}.btn{font-family:var(--font-mono);letter-spacing:.02em;border:1px solid var(--surface-line);background:var(--surface);color:var(--ink-soft);cursor:pointer;padding:12px 20px;font-size:13px;transition:filter .15s}.btn:hover{filter:brightness(.96)}.btn-primary{background:var(--accent);border-color:var(--accent);color:var(--ground)}.btn-block{width:100%}.btn-ghost{background:0 0}.chip{font-family:var(--font-mono);background:var(--surface);border:1px solid var(--surface-line);color:var(--ink-soft);cursor:pointer;padding:8px 14px;font-size:12.5px;transition:border-color .15s}.chip:hover{border-color:var(--marker)}.chip-active{background:var(--accent);border-color:var(--accent);color:var(--ground)}.chip-tint{background:var(--accent-tint);color:var(--accent-strong)}.record-row{background:var(--surface);border:1px solid var(--surface-line);cursor:pointer;text-align:left;width:100%;color:inherit;align-items:center;gap:14px;padding:13px 16px;text-decoration:none;transition:border-color .15s;display:flex}.record-row:hover{border-color:var(--marker)}.record-row-dot{border-radius:50%;flex-shrink:0;width:9px;height:9px}.record-row-category{font-family:var(--font-mono);letter-spacing:.03em;flex-shrink:0;width:88px;font-size:11.5px}.record-row-snippet{min-width:0;color:var(--ink-soft);white-space:nowrap;text-overflow:ellipsis;flex:1;font-size:15px;overflow:hidden}.record-row-snippet mark{background:var(--accent-tint);color:var(--accent-strong);border-radius:2px}.record-row-stats{flex-shrink:0;gap:6px;display:flex}.stat-badge{font-family:var(--font-mono);color:var(--muted);background:var(--accent-tint);border:1px solid var(--surface-line);align-items:center;gap:4px;padding:3px 7px;font-size:11px;display:inline-flex}.record-card{background:var(--surface);border:1px solid var(--surface-line);border-left:3px solid var(--marker);cursor:pointer;text-align:left;width:100%;padding:20px 22px;display:block}.record-card-meta{justify-content:space-between;align-items:center;margin-bottom:10px;display:flex}.record-card-snippet{color:var(--ink-soft);-webkit-line-clamp:2;-webkit-box-orient:vertical;margin:0 0 12px;font-size:16px;line-height:1.6;display:-webkit-box;overflow:hidden}.record-card-stats{font-family:var(--font-mono);color:var(--muted);gap:12px;font-size:11.5px;display:flex}.note-card{background:var(--surface);border:1px solid var(--surface-line);border-left:3px solid var(--marker);padding:18px 20px}.note-excerpt{font-family:var(--font-body);color:var(--ink-soft);margin-bottom:8px;font-size:14.5px;font-style:italic}.note-body{font-family:var(--font-mono);color:var(--muted);margin:0 0 8px;font-size:12.5px;line-height:1.7}.note-source{font-family:var(--font-mono);color:var(--accent-strong);align-items:center;gap:6px;font-size:11px;display:inline-flex}.fn-ref{font-family:var(--font-mono);color:var(--marker);border:1px solid var(--marker);vertical-align:super;border-radius:50%;justify-content:center;align-items:center;width:1.5em;height:1.5em;margin-left:.15em;font-size:.62em;text-decoration:none;transition:background-color .15s,color .15s;display:inline-flex}.fn-ref:hover,.fn-ref:focus-visible{background:var(--marker);color:var(--surface);outline:none}@media (prefers-reduced-motion:reduce){.fn-ref{transition:none}}.chat-shell{flex-direction:column;height:100dvh;display:flex}.chat-header{border-bottom:1px solid var(--surface-line);justify-content:center;display:flex}.chat-header-inner{justify-content:space-between;align-items:center;gap:16px;width:100%;max-width:760px;padding:20px 28px;display:flex}.chat-messages{flex:1;justify-content:center;display:flex;overflow-y:auto}.chat-messages-inner{flex-direction:column;gap:18px;width:100%;max-width:760px;padding:28px;display:flex}.chat-row{flex-direction:column;max-width:78%;display:flex}.chat-row-ai{align-self:flex-start}.chat-row-user{align-self:flex-end}.chat-bubble{white-space:pre-wrap;padding:14px 18px;font-size:16.5px;line-height:1.7}.chat-bubble-ai{border-left:3px solid var(--accent);color:var(--ink-soft);background:0 0}.chat-bubble-user{background:var(--user-surface);border:1px solid var(--surface-line);color:var(--ink)}.chat-bubble-error{color:#a04b3f;font-family:var(--font-mono);background:0 0;border-left:3px solid #a04b3f;font-size:13px}.chat-citations{flex-wrap:wrap;gap:6px;margin-top:8px;margin-left:2px;display:flex}.chat-composer{border-top:1px solid var(--surface-line);justify-content:center;display:flex}.chat-composer-inner{align-items:flex-end;gap:10px;width:100%;max-width:760px;padding:18px 28px 24px;display:flex}.chat-composer textarea{resize:none;font-family:var(--font-body);color:var(--ink);background:var(--surface);border:1px solid var(--surface-line);flex:1;min-height:48px;max-height:140px;padding:12px 16px;font-size:16px;line-height:1.6}.typing-dots{border-left:3px solid var(--accent);align-items:center;gap:5px;padding:14px 18px;display:flex}.typing-dots span{background:var(--marker);border-radius:50%;width:6px;height:6px;animation:1.2s ease-in-out infinite pulse-dot}.typing-dots span:nth-child(2){animation-delay:.15s}.typing-dots span:nth-child(3){animation-delay:.3s}@keyframes pulse-dot{0%,80%,to{opacity:.25;transform:translateY(0)}40%{opacity:1;transform:translateY(-2px)}}@media (prefers-reduced-motion:reduce){.typing-dots span{animation:none}}
