:root{--background: #F5F7FB;--foreground: #202a30;--card: #ffffff;--card-foreground: #202a30;--popover: #ffffff;--popover-foreground: #202a30;--primary: #2a62f5;--primary-foreground: #ffffff;--secondary: #f3f3ef;--secondary-foreground: #202a30;--muted: #f3f3ef;--muted-foreground: #59656b;--accent: #eef3ff;--accent-foreground: #2a62f5;--destructive: #e5383b;--destructive-foreground: #ffffff;--border: #dfe4e1;--input: #d1d9d5;--ring: #2a62f5;--chart-1: #2a62f5;--chart-2: #1aa46b;--chart-3: #f59e0b;--chart-4: #10b981;--chart-5: #e5383b;--sidebar: #F5F7FB;--sidebar-foreground: #202a30;--sidebar-primary: #2a62f5;--sidebar-primary-foreground: #ffffff;--sidebar-accent: #eef3ff;--sidebar-accent-foreground: #2a62f5;--sidebar-border: #dfe4e1;--sidebar-ring: #2a62f5;--radius: .5rem;--header-height: 3.5rem;--shadow-color: rgba(32, 42, 48, .06)}.dark,[data-theme=dark]{--background: #13191c;--foreground: #e7eceb;--card: #1a2226;--card-foreground: #e7eceb;--popover: #1d272b;--popover-foreground: #e7eceb;--primary: #4d80ff;--primary-foreground: #ffffff;--secondary: #202a2f;--secondary-foreground: #e7eceb;--muted: #1d272b;--muted-foreground: #8d9a9f;--accent: #1f2d44;--accent-foreground: #7aa2ff;--destructive: #f0565a;--destructive-foreground: #ffffff;--border: #2a3438;--input: #323d42;--ring: #4d80ff;--chart-1: #4d80ff;--chart-2: #2fc088;--chart-3: #fbbf24;--chart-4: #34d399;--chart-5: #f0565a;--sidebar: #161e21;--sidebar-foreground: #e7eceb;--sidebar-primary: #4d80ff;--sidebar-primary-foreground: #ffffff;--sidebar-accent: #1f2d44;--sidebar-accent-foreground: #7aa2ff;--sidebar-border: #232c30;--sidebar-ring: #4d80ff;--radius: .5rem;--shadow-color: rgba(0, 0, 0, .35)}*{box-sizing:border-box}:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif;font-synthesis:none;color-scheme:dark}body{margin:0;color:var(--foreground);background:var(--background);font-size:16px;line-height:1.75}button,select,textarea{font:inherit;color:inherit}button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;padding:6px 12px;border:1px solid var(--border);border-radius:var(--radius);background:transparent;cursor:pointer;font-size:14px}button:hover{background:var(--accent)}button:disabled{opacity:.4;cursor:default}button:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid var(--ring);outline-offset:3px}.app{display:flex;flex-direction:column;height:100dvh;overflow:hidden;background:radial-gradient(ellipse at 50% 0%,color-mix(in srgb,var(--primary) 10%,transparent),transparent 65%)}header{flex:none;display:flex;align-items:center;justify-content:space-between;padding:16px 28px;border-bottom:1px solid var(--border);gap:12px}.brand,.header-actions{display:flex;align-items:center;gap:12px}.brand-icon{width:40px;height:40px;display:grid;place-items:center;border:1px solid var(--border);border-radius:12px;color:var(--accent-foreground);background:var(--accent)}.brand strong{display:block;font-size:16px;line-height:22px;font-weight:600}.brand small{display:block;font-size:12px;color:var(--muted-foreground)}.settings{flex:none;max-height:38dvh;overflow:auto;padding:16px max(20px,calc((100% - 704px)/2));border-bottom:1px solid var(--border);background:var(--card);font-size:13px;overflow-wrap:anywhere}.settings p{margin:6px 0}.settings small{font-size:12px;color:var(--muted-foreground)}.settings button{min-height:28px;vertical-align:middle}.settings select{background:var(--background);border:1px solid var(--input);border-radius:6px;padding:4px 8px}.notice{flex:none;max-height:24dvh;overflow:auto;margin:12px auto 0;width:min(704px,calc(100% - 32px));padding:12px 16px;border:1px solid var(--border);background:var(--card);border-radius:12px;font-size:14px;overflow-wrap:anywhere}.notice.error{display:flex;justify-content:space-between;align-items:flex-start;border-color:color-mix(in srgb,var(--destructive) 50%,var(--border));color:var(--destructive)}.notice small{display:block;font-size:12px;color:var(--muted-foreground)}.notice button{border:0;padding:0 4px;min-height:24px;font-size:22px}.viewport{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain}.content{width:min(704px,calc(100% - 40px));margin:0 auto;padding:32px 0}.welcome{padding:min(12dvh,100px) 0 24px}.eyebrow{font-size:12px;letter-spacing:.12em;color:var(--accent-foreground)}.welcome h1{font-size:28px;font-weight:500;margin:12px 0 4px}.welcome p{margin:0 0 28px;color:var(--muted-foreground);font-size:14px}.starters,.suggestions{display:flex;gap:8px;flex-wrap:wrap}.starters button,.suggestions button{padding:10px 14px;text-align:left;justify-content:space-between;gap:20px;background:color-mix(in srgb,var(--card) 70%,transparent)}.starters button span,.suggestions button span{color:var(--muted-foreground)}.message{font-size:16px;line-height:1.75;overflow-wrap:anywhere;margin-bottom:28px;min-width:0}.message.user{max-width:85%;width:fit-content;margin-left:auto;border:1px solid var(--border);border-radius:16px 16px 4px;padding:10px 16px;background:var(--accent);white-space:pre-wrap}.speaker{display:flex;gap:8px;align-items:center;font-size:12px;color:var(--muted-foreground);margin-bottom:10px}.message h1{font-size:20px}.message h2{font-size:18px}.message h3{font-size:16px}.message h1,.message h2,.message h3{margin:20px 0 10px}.message p{margin:12px 0}.message a{color:var(--accent-foreground)}.message li{margin:4px 0}.message pre{overflow-x:auto;padding:12px;background:var(--card);border:1px solid var(--border);border-radius:8px;font-size:13px}.message code{font-size:.875em}.message blockquote{margin-left:0;border-left:2px solid var(--primary);padding-left:16px;font-style:normal}.table-scroll{max-width:100%;overflow:auto}table{border-collapse:collapse;width:100%;font-size:14px}th,td{border:1px solid var(--border);padding:8px 12px;text-align:left}.working,.diagnostics{font-size:12px;color:var(--muted-foreground)}.working{display:flex;align-items:center;gap:8px}.pulse{width:6px;height:6px;border-radius:50%;background:var(--primary)}.diagnostics{margin-top:20px;overflow-wrap:anywhere}.diagnostics summary{cursor:pointer}.diagnostics pre{white-space:pre-wrap}.bottom{flex:none;position:relative;padding:10px 20px max(12px,env(safe-area-inset-bottom))}.composer-wrap{max-width:704px;margin:0 auto}.composer{padding:16px;border:1px solid var(--input);border-radius:24px;background:var(--card)}.composer:focus-within{border-color:var(--ring)}.composer textarea{display:block;width:100%;max-height:160px;min-height:56px;border:0;outline:none;resize:none;background:transparent;padding:0;line-height:1.7}.composer textarea::placeholder{color:var(--muted-foreground)}.composer-tools{display:flex;justify-content:space-between;align-items:center;padding-top:8px}.composer-tools>span{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--muted-foreground)}.send{border:none;border-radius:50%;width:44px;height:44px;padding:0;color:var(--accent-foreground);background:var(--accent)}.send:hover{background:var(--secondary)}.send.stop{color:var(--foreground)}.footnote{margin:8px 0 0;font-size:12px;color:var(--muted-foreground);text-align:center}.scroll-bottom{position:absolute;top:-38px;left:calc(50% - 18px);background:var(--card);border-radius:50%;min-height:36px;width:36px;padding:0}.scroll-bottom:disabled{visibility:hidden}.key-field{margin:10px 0}.key-field>label{display:block;margin-bottom:4px}.key-field>div{display:flex;gap:8px}.key-field button{flex:none;white-space:nowrap}.key-field input{min-width:0;width:100%;color:var(--foreground);background:var(--background);border:1px solid var(--input);border-radius:6px;padding:8px 10px;font:inherit}.key-field input:focus{outline:2px solid var(--ring);outline-offset:1px}.key-field>small{display:block;margin-top:5px}@media(max-width:600px){header{padding:12px 16px}.brand-icon{display:none}.header-actions{gap:6px}.header-actions button{padding:6px 9px}.content{width:calc(100% - 32px);padding-top:24px}.welcome h1{font-size:24px}.starters{flex-direction:column}.bottom{padding-left:16px;padding-right:16px}.composer{padding:14px;border-radius:20px}.message.user{max-width:90%}}
