:root{--bg:#111113;--panel:#1b1b1f;--line:#2a2a30;--text:#f2eee6;--muted:#8d8a85;--user:#f2eee6;--user-text:#111113;--assistant:#232328;--accent:#f2eee6;--danger:#ff6b5e;--ok:#57c98b;--radius:20px;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;-webkit-text-size-adjust:100%;font-family:-apple-system,BlinkMacSystemFont,SF Pro Text,system-ui,sans-serif}*{box-sizing:border-box}html,body,#root{background:var(--bg);height:100%;color:var(--text);overscroll-behavior:none;margin:0}button,input,textarea{font:inherit;color:inherit}button{border:1px solid var(--line);background:var(--panel);cursor:pointer;-webkit-tap-highlight-color:transparent;border-radius:12px;padding:10px 14px}button:disabled{opacity:.45;cursor:default}button.primary{background:var(--accent);color:var(--bg);border-color:var(--accent);font-weight:600}button.ghost{background:0 0}button.icon{background:0 0;border:none;padding:6px 10px;font-size:20px;line-height:1}input{border:1px solid var(--line);background:var(--panel);border-radius:12px;width:100%;padding:12px 14px;font-size:16px}.muted{color:var(--muted)}.error{color:var(--danger)}.centered{place-items:center;min-height:100%;padding:24px;display:grid}.dot{background:var(--text);border-radius:50%;width:44px;height:44px;margin:0 auto 8px}.pulse{animation:1.2s ease-in-out infinite pulse}@keyframes pulse{50%{opacity:.6;transform:scale(.8)}}.auth{text-align:center;flex-direction:column;gap:12px;width:min(360px,100%);display:flex}.auth h1{margin:0;font-size:24px}.auth p{margin:0}.chat{flex-direction:column;max-width:720px;height:100%;margin:0 auto;display:flex}.chat header{padding:calc(env(safe-area-inset-top) + 8px) 12px 8px 16px;border-bottom:1px solid var(--line);align-items:center;gap:10px;display:flex}.chat header .title{flex:1;font-weight:600}.conn{background:var(--muted);border-radius:50%;width:8px;height:8px}.conn.online{background:var(--ok)}.conn.offline{background:var(--danger)}.messages{-webkit-overflow-scrolling:touch;flex-direction:column;flex:1;gap:8px;padding:16px 12px 8px;display:flex;overflow-y:auto}.empty{text-align:center;margin-top:30vh}.bubble{border-radius:var(--radius);word-wrap:break-word;max-width:82%;padding:9px 14px 6px;line-height:1.35}.bubble.grouped{margin-top:-5px}.bubble .text{white-space:pre-wrap}.bubble .meta{opacity:.5;text-align:right;margin-top:2px;font-size:11px}.bubble.user{background:var(--user);color:var(--user-text);border-bottom-right-radius:6px;align-self:flex-end}.bubble.assistant,.bubble.system{background:var(--assistant);border-bottom-left-radius:6px;align-self:flex-start}.bubble.pending{opacity:.6}.bubble.failed{outline:1px solid var(--danger)}.bubble.draft{padding-bottom:9px}.bubble.draft .text:after{content:"";vertical-align:-.15em;background:var(--muted);width:.5em;height:1em;margin-left:2px;animation:1s infinite blink;display:inline-block}.typing{gap:4px;padding:14px 16px;display:flex}.typing span{background:var(--muted);border-radius:50%;width:7px;height:7px;animation:1.2s infinite blink}.typing span:nth-child(2){animation-delay:.2s}.typing span:nth-child(3){animation-delay:.4s}@keyframes blink{0%,80%,to{opacity:.25}40%{opacity:1}}.composer{padding:8px 12px calc(env(safe-area-inset-bottom) + 8px);border-top:1px solid var(--line);align-items:flex-end;gap:8px;display:flex}.composer textarea{resize:none;field-sizing:content;border:1px solid var(--line);background:var(--panel);border-radius:20px;outline:none;flex:1;max-height:140px;padding:10px 14px;font-size:16px}.composer .send{background:var(--accent);width:40px;height:40px;color:var(--bg);border:none;border-radius:50%;padding:0;font-size:20px;font-weight:700}.sheet-backdrop{background:#00000080;justify-content:center;align-items:flex-end;display:flex;position:fixed;inset:0}.sheet{background:var(--panel);width:min(720px,100%);max-height:85%;padding:16px 16px calc(env(safe-area-inset-bottom) + 20px);border-radius:20px 20px 0 0;overflow-y:auto}.sheet-head{justify-content:space-between;align-items:center;display:flex}.sheet h2{margin:0;font-size:18px}.sheet h3{text-transform:uppercase;letter-spacing:.04em;color:var(--muted);margin:18px 0 6px;font-size:13px}.sheet p{margin:4px 0}.sheet .row{flex-wrap:wrap;gap:8px;margin-top:8px;display:flex}.sheet .note{background:var(--assistant);border-radius:12px;margin-top:16px;padding:10px 12px}
