[data-chat-screen]{--bg:#111111;--surface:#1e1e1e;--surface-2:#2a2a2a;--text:#ededed;--text-dim:#9a9a9a;--mine:#7c5cbf;--accent:#daa96a;--line:#333333;--radius:18px;font-family:system-ui,-apple-system,Segoe UI,sans-serif;position:fixed;inset:0;display:flex;flex-direction:column;background:var(--bg);color:var(--text)}[data-chat-banner]{flex:0 0 auto;display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:calc(env(safe-area-inset-top) + 10px) 14px 10px;background:var(--surface);border-bottom:1px solid var(--line);color:var(--text);font-size:14px;line-height:1.35}[data-chat-banner] p{flex:1 1 170px;margin:0}[data-chat-banner] button{flex:0 0 auto;min-width:44px;min-height:44px;padding:0 16px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface-2);color:var(--text);font:inherit;font-size:15px;font-weight:600;cursor:pointer}[data-chat-banner] button[data-primary]{background:var(--mine);border-color:var(--mine);color:#fff}[data-chat-banner] button:active{opacity:.85}[data-chat-app]{flex:1 1;min-height:0;display:flex;flex-direction:column}[data-chat-app]:not([data-chat-open]){overflow-y:auto;-webkit-overflow-scrolling:touch;padding-top:env(safe-area-inset-top)}[data-chat-search]{padding:10px 12px;background:var(--surface);position:-webkit-sticky;position:sticky;top:env(safe-area-inset-top);z-index:1}[data-chat-search] input{width:100%;padding:9px 12px;border-radius:999px;border:1px solid var(--line);background:var(--bg);color:var(--text);font:inherit;font-size:16px}[data-chat-list]{list-style:none;margin:0;padding:0}[data-chat-conv]{width:100%;display:flex;align-items:center;gap:12px;padding:10px 14px;background:none;border:0;border-bottom:1px solid var(--line);color:inherit;font:inherit;text-align:left;cursor:pointer}[data-chat-conv][data-selected=true]{background:var(--surface)}[data-chat-avatar]{flex:0 0 44px;height:44px;border-radius:999px;background:var(--surface-2);color:var(--accent);display:grid;place-items:center;font-size:15px;font-weight:600}[data-chat-conv-main]{flex:1 1;min-width:0;display:flex;flex-direction:column;gap:2px}[data-chat-conv-top]{display:flex;align-items:baseline;gap:8px}[data-chat-conv-title]{flex:1 1;min-width:0;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[data-chat-conv-time]{color:var(--text-dim);font-size:12px;flex:0 0 auto}[data-chat-conv-bottom]{display:flex;align-items:center;gap:8px}[data-chat-conv-preview]{flex:1 1;min-width:0;color:var(--text-dim);font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[data-chat-conv-preview][data-empty=true]{font-style:italic;opacity:.7}[data-chat-unread-badge]{flex:0 0 auto;width:10px;height:10px;border-radius:999px;background:var(--mine)}[data-chat-conv][data-unread=true] [data-chat-conv-title]{font-weight:700}[data-chat-conv][data-unread=true] [data-chat-conv-preview]{color:var(--text)}[data-chat-panel]{flex:1 1;min-height:0;display:flex;flex-direction:column}[data-chat-head]{display:flex;align-items:center;gap:10px;padding:calc(env(safe-area-inset-top) + 10px) 14px 10px;background:var(--surface);border-bottom:1px solid var(--line)}[data-chat-head] [data-eye]{display:none}[data-chat-titles]{flex:1 1;min-width:0}[data-chat-title]{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600;font-size:17px}[data-chat-back],[data-chat-x]{background:none;border:0;color:var(--text);font-size:22px;line-height:1;padding:4px 6px;cursor:pointer}[data-chat-messages]{flex:1 1;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;display:flex;flex-direction:column;gap:6px;padding:12px}[data-chat-status]{color:var(--text-dim);text-align:center;padding:24px 0}[data-chat-msg]{max-width:78%;align-self:flex-start;background:var(--surface-2);border-radius:var(--radius);border-bottom-left-radius:6px;padding:8px 12px 6px;display:flex;flex-direction:column}[data-chat-msg][data-mine=true]{align-self:flex-end;background:var(--mine);color:#fff;border-bottom-left-radius:var(--radius);border-bottom-right-radius:6px}[data-chat-sender]{font-size:12px;font-weight:600;color:var(--accent);margin-bottom:2px}[data-chat-1on1] [data-chat-sender]{display:none}[data-chat-body]{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.35}[data-chat-foot]{display:flex;justify-content:flex-end;align-items:center;gap:6px;margin-top:2px}[data-chat-time]{font-size:11px;color:var(--text-dim)}[data-chat-msg][data-mine=true] [data-chat-time]{color:rgba(255,255,255,.72)}[data-chat-media]{max-width:100%}[data-chat-media-loading],[data-chat-media]{border-radius:12px;margin-bottom:6px;display:block}[data-chat-media-loading]{width:240px;aspect-ratio:4/3;background:var(--surface)}[data-chat-react-wrap]{position:relative;display:flex;align-items:center}[data-chat-react-add]{box-sizing:content-box;width:22px;height:22px;padding:8px;margin:-8px;display:grid;place-items:center;border:0;border-radius:999px;background:none;color:var(--text-dim);font-size:14px;line-height:1;cursor:pointer;opacity:.75}[data-chat-msg][data-mine=true] [data-chat-react-add]{color:rgba(255,255,255,.75)}[data-chat-react-add]:active{opacity:1}[data-chat-react-picker]{position:absolute;bottom:calc(100% + 6px);right:0;display:flex;gap:2px;padding:4px;background:var(--surface-2);border:1px solid var(--line);border-radius:999px;box-shadow:0 6px 20px rgba(0,0,0,.4);z-index:2}[data-chat-react-option]{width:32px;height:32px;display:grid;place-items:center;border:0;border-radius:999px;background:none;font-size:17px;line-height:1;cursor:pointer}[data-chat-react-option]:active{background:var(--line)}[data-chat-reactions]{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}[data-chat-reaction]{display:inline-flex;align-items:center;gap:3px;min-height:22px;padding:2px 8px;border:0;border-radius:999px;background:rgba(255,255,255,.12);color:inherit;font-size:12px;line-height:1.4;cursor:pointer}[data-chat-composer]{display:flex;align-items:flex-end;gap:8px;padding:8px 10px;padding-bottom:calc(env(safe-area-inset-bottom) + var(--chat-kb, 0px) + 8px);background:var(--surface);border-top:1px solid var(--line)}[data-chat-composer] textarea{flex:1 1;resize:none;height:44px;max-height:120px;padding:10px 12px;border-radius:var(--radius);border:1px solid var(--line);background:var(--bg);color:var(--text);font:inherit;font-size:16px;line-height:1.3}[data-chat-attach],[data-chat-send]{border:0;border-radius:999px;min-width:44px;min-height:44px;font-size:16px;cursor:pointer}[data-chat-attach]{background:var(--surface-2);color:var(--text)}[data-chat-send]{background:var(--mine);color:#fff;padding:0 16px}[data-chat-send]:disabled{opacity:.45;cursor:default}[data-chat-upload-error]{flex:0 0 auto;margin:0;padding:10px 14px calc(env(safe-area-inset-bottom) + 10px);background:#4a1414;color:#ffd7d7;border-top:1px solid #7a2323;font-size:13px;font-weight:600;line-height:1.4;text-align:center}[data-chat-tabs]{display:flex;border-top:1px solid var(--line);background:var(--surface);padding-bottom:env(safe-area-inset-bottom)}[data-chat-tab]{flex:1 1;text-align:center;padding:12px 0;color:var(--text-dim);text-decoration:none;font-size:14px}[data-chat-tab][aria-current=page]{color:var(--text);box-shadow:inset 0 2px 0 var(--mine)}[data-chat-tab][aria-disabled=true]{opacity:.4}[data-chat-app][data-chat-open]~[data-chat-tabs]{display:none}*,:after,:before{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{margin:0;background:var(--page);color:var(--text);font-family:var(--font-body);font-size:var(--body-size);line-height:var(--leading);padding-bottom:calc(var(--space-6) + env(safe-area-inset-bottom))}a{color:var(--accent);text-decoration:none}a:focus-visible,button:focus-visible,input:focus-visible{outline:var(--border-width) solid var(--accent);outline-offset:var(--space-1)}h1,h2,h3{font-family:var(--font-display);margin:0;text-wrap:balance}p{margin:0;text-wrap:pretty}.m-scroll-x{overflow-x:auto;-webkit-overflow-scrolling:touch}.m-num{font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.m-wrap{max-width:40rem;margin-inline:auto;padding:var(--space-3)}.m-msg{padding:var(--space-5) var(--space-3);text-align:center;color:var(--text-2)}@media (prefers-reduced-motion:reduce){*,:after,:before{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}