pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*!
  Theme: GitHub Dark
  Description: Dark theme as seen on github.com
  Author: github.com
  Maintainer: @Hirse
  Updated: 2021-05-15

  Outdated base version: https://github.com/primer/github-syntax-dark
  Current colors taken from GitHub's CSS
*/.hljs{color:#c9d1d9;background:#0d1117}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#ff7b72}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#d2a8ff}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-variable,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id{color:#79c0ff}.hljs-regexp,.hljs-string,.hljs-meta .hljs-string{color:#a5d6ff}.hljs-built_in,.hljs-symbol{color:#ffa657}.hljs-comment,.hljs-code,.hljs-formula{color:#8b949e}.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo{color:#7ee787}.hljs-subst{color:#c9d1d9}.hljs-section{color:#1f6feb;font-weight:700}.hljs-bullet{color:#f2cc60}.hljs-emphasis{color:#c9d1d9;font-style:italic}.hljs-strong{color:#c9d1d9;font-weight:700}.hljs-addition{color:#aff5b4;background-color:#033a16}.hljs-deletion{color:#ffdcd7;background-color:#67060c}:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#202123;background:#f7f7f8;font-synthesis:none;text-rendering:optimizeLegibility;--bg: #f7f7f8;--surface: #ffffff;--surface-soft: #f1f1f3;--text: #202123;--muted: #6b6c70;--border: #dedfe2;--accent: #111827;--accent-text: #ffffff;--user-bg: #e7e8eb;--error-bg: #fff0f0;--error-border: #efb6b6;--shadow: 0 18px 60px rgb(0 0 0 / 14%)}:root[data-theme=dark]{color-scheme:dark;--bg: #17181b;--surface: #202226;--surface-soft: #2a2c31;--text: #ececef;--muted: #a6a7ac;--border: #393b41;--accent: #f1f1f3;--accent-text: #17181b;--user-bg: #303238;--error-bg: #3b2427;--error-border: #744148;--shadow: 0 18px 60px rgb(0 0 0 / 38%)}*{box-sizing:border-box}.fatal-error{display:grid;min-height:100dvh;place-content:center;gap:12px;padding:24px;text-align:center}.fatal-error h1,.fatal-error p{margin:0}.fatal-error button{justify-self:center;padding:10px 18px;border:0;border-radius:10px;color:#fff;background:#2563eb;cursor:pointer}html,body,#root{height:100%}body{margin:0;background:var(--bg);color:var(--text)}button,input,textarea,select{font:inherit}button{color:inherit}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.auth-loading{min-height:100dvh;display:grid;place-items:center}.auth-loading-mark,.login-brand{width:52px;height:52px;display:grid;place-items:center;border-radius:16px;background:var(--accent);color:var(--accent-text);font-size:20px;font-weight:800}.auth-loading-mark{animation:auth-pulse 1.2s ease-in-out infinite}@keyframes auth-pulse{50%{opacity:.45;transform:scale(.94)}}.login-page{min-height:100dvh;display:grid;place-items:center;padding:max(24px,env(safe-area-inset-top)) 20px max(24px,env(safe-area-inset-bottom))}.login-card{width:min(410px,100%);padding:32px;border:1px solid var(--border);border-radius:22px;background:var(--surface);box-shadow:var(--shadow)}.login-brand{margin:0 auto 18px}.login-card h1{margin:0;text-align:center;font-size:25px;letter-spacing:-.03em}.login-card>p{margin:8px 0 26px;color:var(--muted);text-align:center;font-size:13px;line-height:1.55}.login-card form{margin-top:24px}.login-card .field{margin-bottom:16px}.login-card>small{display:block;margin-top:20px;color:var(--muted);text-align:center;font-size:10px;line-height:1.5}.login-button{width:100%;height:45px;border:1px solid var(--accent);border-radius:10px;background:var(--accent);color:var(--accent-text);font-weight:700;cursor:pointer}.login-button:disabled{opacity:.55;cursor:default}.login-error{margin:0 0 16px;padding:11px 12px;border:1px solid var(--error-border);border-radius:9px;background:var(--error-bg);color:var(--text);font-size:12px;line-height:1.5}div.login-error{display:grid;gap:12px;text-align:center}div.login-error button{justify-self:center;padding:8px 12px;border-radius:8px;cursor:pointer}.app-shell{min-height:100dvh;display:grid;grid-template-rows:auto 1fr auto}.app-header{position:sticky;top:0;z-index:10;min-height:68px;padding:max(12px,env(safe-area-inset-top)) 24px 12px;display:flex;align-items:center;justify-content:space-between;background:color-mix(in srgb,var(--surface) 92%,transparent);border-bottom:1px solid var(--border);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.header-title{display:flex;align-items:center;gap:11px}.brand-mark{width:36px;height:36px;display:grid;place-items:center;border-radius:11px;background:var(--accent);color:var(--accent-text);font-weight:800}.header-title h1{margin:0;font-size:16px;line-height:1.2}.header-title p{margin:2px 0 0;color:var(--muted);font-size:11px}.header-actions{display:flex;align-items:center;gap:2px}.model-picker{margin-right:6px}.model-picker select{width:min(190px,28vw);height:38px;padding:0 30px 0 11px;border:1px solid var(--border);border-radius:10px;outline:0;background:var(--surface-soft);color:var(--text);font-size:12px;font-weight:650;cursor:pointer}.model-picker select:focus{border-color:var(--muted)}.model-picker select:disabled{opacity:.55;cursor:default}.icon-button,.close-button{width:40px;height:40px;display:grid;place-items:center;border:0;border-radius:10px;background:transparent;text-decoration:none;font-size:21px;cursor:pointer}.icon-button:hover,.close-button:hover{background:var(--surface-soft)}.message-list{min-height:0;overflow-y:auto}.message-list-inner{width:min(820px,100%);min-height:100%;margin:0 auto;padding:36px 24px 28px}.empty-state{min-height:55vh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.empty-icon{width:54px;height:54px;display:grid;place-items:center;margin-bottom:18px;border:1px solid var(--border);border-radius:18px;background:var(--surface);font-size:25px;box-shadow:0 8px 24px #0000000d}.empty-state h2{margin:0 0 8px;font-size:clamp(23px,4vw,30px);letter-spacing:-.03em}.empty-state p{margin:0;color:var(--muted);font-size:14px}.message{display:flex;gap:14px;padding:22px 0;border-bottom:1px solid color-mix(in srgb,var(--border) 70%,transparent)}.message-avatar{flex:0 0 34px;width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:var(--accent);color:var(--accent-text);font-size:11px;font-weight:800}.message-user .message-avatar{background:var(--user-bg);color:var(--text)}.message-body{min-width:0;flex:1;font-size:15px;line-height:1.72;overflow-wrap:anywhere}.message-author{display:block;margin-bottom:5px;font-size:12px;font-weight:750}.message-body>p{margin:0;white-space:pre-wrap}.message-body>:last-child{margin-bottom:0}.message-body h1,.message-body h2,.message-body h3{line-height:1.3;margin:1.2em 0 .5em}.message-body h1{font-size:1.55em}.message-body h2{font-size:1.3em}.message-body h3{font-size:1.12em}.message-body blockquote{margin:1em 0;padding:1px 16px;border-left:3px solid var(--border);color:var(--muted)}.message-body table{display:block;max-width:100%;overflow-x:auto;border-collapse:collapse}.message-body th,.message-body td{padding:8px 12px;border:1px solid var(--border);text-align:left}.message-body :not(pre)>code{padding:2px 5px;border-radius:5px;background:var(--surface-soft);font-size:.9em}.message-error{margin:12px 0;padding:16px;border:1px solid var(--error-border);border-radius:13px;background:var(--error-bg)}.message-error .message-avatar{background:#b53b4b;color:#fff}.loading-message{width:66px;margin:20px 48px;padding:13px 16px;display:flex;gap:5px;border-radius:14px;background:var(--surface-soft)}.loading-message span{width:6px;height:6px;border-radius:50%;background:var(--muted);animation:bounce 1.1s infinite ease-in-out}.loading-message span:nth-child(2){animation-delay:.15s}.loading-message span:nth-child(3){animation-delay:.3s}@keyframes bounce{0%,60%,to{transform:translateY(0);opacity:.45}30%{transform:translateY(-4px);opacity:1}}.code-block{margin:16px 0;overflow:hidden;border:1px solid #343740;border-radius:10px;background:#0d1117;color:#e6edf3}.code-toolbar{height:38px;padding:0 12px;display:flex;align-items:center;justify-content:space-between;background:#161b22;color:#9da7b3;font-size:12px}.code-toolbar button{padding:4px 8px;border:0;border-radius:5px;background:transparent;color:#c9d1d9;cursor:pointer}.code-toolbar button:hover{background:#292f38}.code-block pre{margin:0;padding:16px;overflow-x:auto}.code-block code{font-family:SFMono-Regular,Consolas,monospace;font-size:13px;line-height:1.6}.composer-area{position:sticky;bottom:0;z-index:8;padding:12px 24px max(12px,env(safe-area-inset-bottom));background:linear-gradient(transparent,var(--bg) 18%)}.composer{width:min(820px,100%);margin:0 auto;padding:9px 9px 9px 16px;display:flex;align-items:flex-end;gap:10px;border:1px solid var(--border);border-radius:18px;background:var(--surface);box-shadow:0 8px 28px #00000014}.composer:focus-within{border-color:color-mix(in srgb,var(--text) 35%,var(--border))}.composer textarea{flex:1;max-height:180px;resize:none;padding:7px 0;border:0;outline:0;background:transparent;color:var(--text);line-height:1.5}.composer textarea::placeholder{color:var(--muted)}.send-button{flex:0 0 38px;width:38px;height:38px;border:0;border-radius:11px;background:var(--accent);color:var(--accent-text);font-size:22px;font-weight:700;cursor:pointer}.send-button:disabled{opacity:.28;cursor:default}.composer-hint{width:min(820px,100%);margin:7px auto 0;color:var(--muted);text-align:center;font-size:10px}.dialog-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;display:grid;place-items:center;padding:20px;background:#00000075;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.settings-dialog{width:min(520px,100%);max-height:calc(100dvh - 40px);overflow-y:auto;border:1px solid var(--border);border-radius:18px;background:var(--surface);box-shadow:var(--shadow)}.dialog-header{padding:24px 24px 18px;display:flex;justify-content:space-between;border-bottom:1px solid var(--border)}.dialog-header h2{margin:0;font-size:21px}.dialog-header p{margin:5px 0 0;color:var(--muted);font-size:13px}.settings-dialog form{padding:22px 24px 24px}.field{display:block;margin-bottom:20px}.field>span{display:block;margin-bottom:7px;font-size:13px;font-weight:700}.field em{color:var(--muted);font-size:11px;font-style:normal;font-weight:500}.field input,.field textarea{width:100%;padding:0 12px;border:1px solid var(--border);border-radius:9px;outline:0;background:var(--bg);color:var(--text)}.field input{height:43px}.field textarea{min-height:96px;padding-top:10px;padding-bottom:10px;resize:vertical;line-height:1.5}.field input:focus,.field textarea:focus{border-color:var(--muted)}.field small,.toggle-row small{display:block;margin-top:6px;color:var(--muted);font-size:11px}.toggle-row{margin:4px 0 24px;padding:16px;display:flex;align-items:center;justify-content:space-between;border:1px solid var(--border);border-radius:11px;background:var(--bg)}.toggle-row strong{font-size:13px}.toggle-row input{width:19px;height:19px;accent-color:var(--accent)}.dialog-actions{padding-top:18px;display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--border)}.dialog-actions>div{display:flex;gap:8px}.dialog-actions button{padding:9px 14px;border-radius:8px;cursor:pointer}.primary-button{border:1px solid var(--accent);background:var(--accent);color:var(--accent-text)}.secondary-button,.danger-button{border:1px solid var(--border);background:transparent}.danger-button{color:#c33f4f}@media(max-width:600px){.login-card{padding:28px 22px}.app-header{min-height:60px;padding-left:16px;padding-right:12px}.header-title>div{display:none}.model-picker{margin-right:2px}.model-picker select{width:min(132px,34vw);height:36px;padding-left:9px;font-size:11px}.message-list-inner{padding:20px 16px 18px}.message{gap:10px;padding:18px 0}.message-avatar{flex-basis:30px;width:30px;height:30px;border-radius:9px}.composer-area{padding-left:10px;padding-right:10px}.composer-hint{display:none}.dialog-backdrop{align-items:end;padding:0}.settings-dialog{width:100%;max-height:92dvh;border-radius:20px 20px 0 0}.dialog-actions{align-items:stretch;flex-direction:column-reverse;gap:10px}.dialog-actions>div{display:grid;grid-template-columns:1fr 1fr}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important}}
