.chat-shell{max-width:760px}.chat-occasions{color:var(--ink-soft);margin:-24px 0 20px;font-size:13px;line-height:1.5}.chat-occasions a{color:var(--accent);text-underline-offset:2px;text-decoration:underline}.chat-occasions a:hover{color:var(--accent-hover)}.masthead{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:4px 16px;margin-bottom:8px;display:flex}.chat-card{flex-direction:column;min-height:55vh;padding:0;display:flex;overflow:hidden}.chat-scroll{scroll-behavior:smooth;flex-direction:column;flex:1;gap:12px;padding:20px;display:flex;overflow-y:auto}.chat-empty{text-align:center;color:var(--ink-soft);padding:32px 16px}.chat-empty p{margin-bottom:16px}.chat-suggest{flex-direction:column;align-items:center;gap:8px;display:flex}.chat-chip{border:1px solid var(--line-strong);color:var(--ink-soft);min-height:38px;font-family:var(--font-body);cursor:pointer;background:0 0;border-radius:999px;padding:9px 16px;font-size:13.5px;transition:border-color .15s,background .15s,color .15s}.chat-chip:hover:not(:disabled){border-color:var(--accent);color:var(--accent-ink)}.chat-chip:disabled{opacity:.5;cursor:default}.chat-msg{border-radius:var(--radius);white-space:pre-wrap;word-break:break-word;max-width:80%;padding:11px 16px;font-size:14.5px;line-height:1.5}.chat-msg p+p{margin-top:8px}.chat-msg-user{background:var(--accent);color:var(--on-accent);border-bottom-right-radius:4px;align-self:flex-end}.chat-msg-assistant{background:var(--bg-soft);border:1px solid var(--line);border-bottom-left-radius:4px;align-self:flex-start}.chat-typing{opacity:.6;font-style:italic}.chat-input-row{border-top:1px solid var(--line);gap:10px;padding:14px 20px;display:flex}.chat-input{border:1px solid var(--line-strong);border-radius:var(--radius-sm);min-height:44px;font-size:15px;font-family:var(--font-body);background:var(--bg-card);color:var(--ink);outline:none;flex:1;padding:10px 12px;transition:border-color .15s,box-shadow .15s}.chat-input:focus{border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent)}.chat-input:disabled{opacity:.55}.chat-meta{color:var(--ink-faint);justify-content:space-between;align-items:center;padding:8px 20px 12px;font-size:12.5px;display:flex}.chat-clear{color:var(--ink-faint);font-family:var(--font-body);cursor:pointer;background:0 0;border:none;min-height:40px;padding:8px 4px;font-size:12.5px;text-decoration:underline}.chat-clear:hover{color:var(--accent-ink)}.chat-md{white-space:normal}.chat-md>:first-child{margin-top:0}.chat-md>:last-child{margin-bottom:0}.chat-md p{margin:0 0 10px}.chat-md p:last-child{margin-bottom:0}.chat-md h1,.chat-md h2,.chat-md h3,.chat-md h4{font-family:var(--font-display);letter-spacing:-.01em;margin:14px 0 6px;font-weight:600;line-height:1.3}.chat-md h1{font-size:18px}.chat-md h2{font-size:16.5px}.chat-md h3,.chat-md h4{font-size:15px}.chat-md h1:first-child,.chat-md h2:first-child,.chat-md h3:first-child,.chat-md h4:first-child{margin-top:0}.chat-md strong{font-weight:650}.chat-md em{font-style:italic}.chat-md ul,.chat-md ol{margin:6px 0 10px;padding-left:20px}.chat-md ul{list-style:outside}.chat-md ol{list-style:decimal}.chat-md li{margin:3px 0}.chat-md li::marker{color:var(--accent)}.chat-md li>p{margin:0}.chat-md blockquote{border-left:3px solid var(--accent);color:var(--ink-soft);margin:8px 0;padding:2px 0 2px 12px}.chat-md code{background:color-mix(in srgb, var(--ink) 8%, transparent);border-radius:5px;padding:1px 5px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px}.chat-md pre{background:color-mix(in srgb, var(--ink) 8%, transparent);border:1px solid var(--line);border-radius:10px;margin:8px 0 10px;padding:12px 14px;overflow-x:auto}.chat-md pre code{background:0 0;padding:0;font-size:13px}.chat-md a{color:var(--accent-ink);text-underline-offset:2px;text-decoration:underline}.chat-md a:hover{color:var(--accent)}.chat-md hr{border:none;border-top:1px solid var(--line-strong);margin:12px 0}.chat-md table{border-collapse:collapse;width:100%;margin:8px 0 10px;font-size:13.5px;display:block;overflow-x:auto}.chat-md th,.chat-md td{border:1px solid var(--line-strong);text-align:left;padding:6px 10px}.chat-md th{background:color-mix(in srgb, var(--ink) 5%, transparent);font-weight:650}.chat-md input[type=checkbox]{accent-color:var(--accent);margin-right:4px}.chat-msg-user .chat-md a{color:var(--on-accent)}@media (prefers-reduced-motion:reduce){.chat-scroll{scroll-behavior:auto}}
