:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:#203638;background:#f6f9fa;font-size:16px;--teal:#14796e;--muted:#65787a;--line:#dfe8e8;--shadow:0 12px 40px #173a3a0c}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #65bcb1;outline-offset:3px}button{transition:background .15s,box-shadow .15s}a{color:inherit;text-decoration:none}.brand{display:flex;align-items:center;gap:12px;font-size:1.28rem;font-weight:700;letter-spacing:.02em}.brand img{width:38px;height:38px}h1,h2,h3,p{margin-top:0}button.primary,.primary{background:var(--teal);color:white;border:0;border-radius:12px;padding:12px 23px;font-weight:600;min-height:44px}.primary:hover{background:#0d645c}.secondary{padding:10px 16px;border:1px solid var(--line);background:white;border-radius:10px;min-height:44px}.secondary:hover{background:#f0f7f5}.text-button{background:none;border:0;padding:12px 4px;color:var(--teal);font-size:.92rem}.icon-button{width:42px;height:42px;border:0;background:transparent;border-radius:9px;font-size:1.4rem;color:var(--muted)}.icon-button:hover{background:#e8f1ee}.eyebrow{font-size:.76rem;letter-spacing:.16em;font-weight:600;color:var(--teal)}.auth-shell{min-height:100dvh;display:grid;grid-template-columns:1.1fr 1fr}.auth-intro{background:#e6f0ed;padding:44px 10%;display:flex;flex-direction:column;justify-content:space-between;gap:75px;position:relative;overflow:hidden}.auth-intro:after{content:"";position:absolute;right:-180px;bottom:-180px;width:500px;height:500px;border:1px solid #c8dcd5;border-radius:50%;pointer-events:none}.auth-intro h1{font-size:clamp(2.6rem,5vw,4.7rem);line-height:1.25;letter-spacing:-.05em;margin:28px 0}.auth-intro p{font-size:1.05rem;line-height:1.9;color:#526c66}.intro-tags{display:flex;flex-wrap:wrap;gap:10px;margin-top:35px}.intro-tags span{font-size:.85rem;padding:8px 12px;border:1px solid #c6dbd3;border-radius:99px;color:#47675d}.intro-foot{font-size:.85rem;color:#647d74}.auth-panel{display:flex;align-items:center;justify-content:center;padding:50px 35px;background:#fff}.auth-panel form{width:100%;max-width:350px}.auth-panel h2{font-size:1.8rem;margin-bottom:12px}.auth-panel p{color:var(--muted);line-height:1.6;font-size:.95rem}.auth-panel label,dialog label{display:flex;flex-direction:column;gap:9px;font-size:.9rem;margin:20px 0 0}input{width:100%;padding:13px 14px;border:1px solid #d5e0df;border-radius:10px;background:white;color:#203638;min-height:46px}input::placeholder,textarea::placeholder{color:#8a999b}#auth-submit{width:100%;margin-top:5px}#auth-toggle{display:block;width:100%;margin:12px 0}.auth-note{text-align:center;border-top:1px solid var(--line);padding-top:23px;margin-top:20px!important;font-size:.8rem!important}.error{color:#b64b42!important;min-height:1.5em;margin:12px 0 6px!important;font-size:.88rem!important}.mini-brand{display:none}.app-shell{display:grid;grid-template-columns:272px minmax(0,1fr);height:100dvh}aside{background:white;border-right:1px solid var(--line);padding:30px 20px 18px;display:flex;flex-direction:column;gap:28px;min-height:0}aside .brand{gap:10px;font-size:1.15rem}aside .brand img{width:34px;height:34px}.new-chat{display:block;width:100%;background:#edf5f2;color:#176c60;font-weight:600;border:1px solid #dcebe5;border-radius:11px;padding:13px}.new-chat:hover{background:#dfefea}.list-heading{font-size:.78rem;color:#7a8a8b;letter-spacing:.08em;margin:3px 8px -15px}#history{flex:1;overflow:auto;min-height:0}.history-empty{font-size:.85rem;color:#8c999b;line-height:1.8;padding:8px}.history-row{display:flex;align-items:center;border-radius:9px;margin:4px 0}.history-row.selected{background:#edf4f2}.history-row:hover{background:#f1f5f4}.history-item{padding:13px 10px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;text-align:left;border:0;background:none;color:#405657;flex:1;min-width:0;font-size:.9rem}.delete-chat{border:0;background:none;color:#8a9998;font-size:1.1rem;padding:10px;opacity:0}.history-row:hover .delete-chat,.delete-chat:focus-visible,.selected .delete-chat{opacity:1}.account{border:0;border-top:1px solid var(--line);padding:20px 4px 4px;display:flex;align-items:center;gap:11px;background:white;text-align:left;width:100%}.avatar{display:grid;place-items:center;width:37px;height:37px;border-radius:50%;background:#e5efeb;color:#30685d;font-weight:600}.account strong{display:block;font-size:.91rem;margin-bottom:5px}.account small{display:block;color:#80918e;font-size:.75rem}.account-dots{margin-left:auto;color:#6b827e}main{min-width:0;display:flex;flex-direction:column;min-height:0;background:radial-gradient(ellipse at 70% 20%,#eff6f4 0%,#f7fafa 60%)}header{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:21px 34px;border-bottom:1px solid #e8eeee;min-height:83px;background:#f7fafbd9}.header-left{display:flex;align-items:center;gap:12px;min-width:0}#chat-title{font-size:.95rem;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#526969}#menu{display:none}.model-picker{position:relative;flex-shrink:0}.model-picker:after{content:"";position:absolute;width:6px;height:6px;border-right:1.5px solid #5b7870;border-bottom:1.5px solid #5b7870;right:13px;top:15px;transform:rotate(45deg);pointer-events:none}select{appearance:none;background:white;border:1px solid var(--line);border-radius:9px;padding:9px 31px 9px 13px;color:#355d54;font-size:.82rem;min-height:37px}.scroll{overflow:auto;flex:1;min-height:0;scroll-behavior:smooth;overscroll-behavior:contain}.welcome{max-width:850px;margin:0 auto;text-align:center;padding:clamp(35px,8vh,95px) 25px 20px}.welcome-mark{width:66px;height:66px;background:#e4efea;border-radius:23px;padding:10px;margin:0 auto 25px;box-shadow:0 0 0 10px #eaf3ef66}.welcome-mark img{width:46px;height:46px}.welcome h1{font-size:clamp(1.7rem,2.7vw,2.5rem);letter-spacing:-.035em;font-weight:600;margin:18px 0 14px}.welcome>p{color:#7b8d8c;line-height:1.9;font-size:.96rem}.suggestions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin-top:43px}.suggestions button{text-align:left;padding:22px 18px;border:1px solid #e0e9e6;border-radius:14px;background:#ffffffc9;box-shadow:0 4px 15px #183d2803}.suggestions button:hover{border-color:#a4cec1;background:#fff;box-shadow:var(--shadow)}.suggestions span{display:block;color:#688d80;font-size:.73rem;letter-spacing:.05em;margin-bottom:14px}.suggestions strong{display:block;font-size:.95rem;font-weight:500;line-height:1.6}.suggestions small{display:block;font-size:.76rem;color:#84938f;line-height:1.7;margin-top:6px}.messages{max-width:870px;margin:0 auto;padding:30px 30px 18px}.message{margin:0 0 28px}.message-label{font-size:.75rem;color:#7f9290;margin-bottom:9px;display:flex;align-items:center;gap:8px}.message-label img{height:22px;width:22px;border-radius:7px}.message.user{display:flex;flex-direction:column;align-items:flex-end;margin-bottom:30px}.message.user .bubble{background:#e4efea;padding:13px 19px;border-radius:17px 17px 4px 17px;max-width:88%;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8}.message.assistant .bubble{line-height:1.9;color:#294342;overflow-wrap:anywhere;font-size:1rem}.message .bubble p{margin:0 0 12px;white-space:pre-wrap}.message .bubble p:last-child{margin-bottom:0}.bubble pre{white-space:pre;overflow:auto;background:#edf2f2;padding:16px;border-radius:12px;font-size:.85rem}.bubble code{background:#eaf0ef;border-radius:4px;padding:2px 4px;font-size:.9em}.bubble pre code{padding:0}.bubble a{color:var(--teal);text-decoration:underline}.bubble ul,.bubble ol{padding-left:24px}.bubble li{margin:5px 0}.bubble h3{margin:18px 0 8px;font-size:1.1rem}.bubble.streaming{white-space:pre-wrap}.message-note{font-size:.77rem;color:#9a7062;margin-top:8px}.retry{font-size:.8rem;padding:4px 8px;margin-top:6px}.composer-wrap{padding:0 30px max(16px,env(safe-area-inset-bottom));width:100%;max-width:930px;margin:auto}.composer{border:1px solid #ccdcd5;background:white;border-radius:19px;padding:15px 19px 12px;box-shadow:0 6px 25px #173e2c08}.composer:focus-within{border-color:#83b4a1;box-shadow:0 3px 25px #255a3c0d}textarea{width:100%;resize:none;border:none;background:transparent;outline:none!important;line-height:1.7;min-height:56px;max-height:180px;color:#26403b;padding:0 2px;font-size:1rem}.composer-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:8px}.composer-bottom>span{font-size:.75rem;color:#84918e}.composer .primary{padding:9px 22px;min-height:39px;font-size:.86rem;border-radius:10px}.stop-button{border:1px solid #afc8bd;background:#f1f6f3;padding:10px 16px;border-radius:10px;color:#2e6354;font-size:.86rem}.footnote{font-size:.7rem;color:#8b9b97;text-align:center;margin:12px 0 0;line-height:1.6}.chat-status{font-size:.82rem;color:#7b9189;min-height:20px;margin:0 5px 7px}.mobile-break{display:none}.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}dialog{border:1px solid #dce6e1;box-shadow:0 24px 80px #173e2c2b;border-radius:20px;padding:26px;width:min(470px,calc(100% - 32px));max-height:90dvh;overflow:auto;color:#25443a}dialog::backdrop{background:#19362c55;backdrop-filter:blur(3px)}.dialog-head{display:flex;align-items:center;justify-content:space-between}.dialog-head h2,dialog h2{font-size:1.3rem;margin:0 0 8px}.dialog-head button{margin-top:-10px}dialog p{font-size:.88rem;line-height:1.7;color:#788b82}dialog section{border-top:1px solid var(--line);margin-top:22px;padding-top:23px}dialog h3{font-size:1rem;margin-bottom:10px}dialog .secondary{margin-top:12px;font-size:.9rem}#new-invite{font-family:monospace;font-size:.8rem}.danger{color:#a6554b}.dialog-actions{display:flex;justify-content:flex-end;align-items:center;gap:10px}.dialog-actions .secondary{margin:0}.danger-button{border:0;border-radius:10px;background:#a94c40;color:#fff;padding:12px 18px}.toast{position:fixed;left:50%;bottom:30px;transform:translateX(-50%);background:#263f36;color:white;border-radius:12px;padding:13px 22px;z-index:20;max-width:calc(100% - 32px);font-size:.9rem;box-shadow:var(--shadow)}
@media(min-width:1500px){.welcome{padding-top:12vh}.suggestions{margin-top:50px}}@media(max-width:1000px){.app-shell{grid-template-columns:235px minmax(0,1fr)}aside{padding:25px 15px 18px}.suggestions{gap:10px}.suggestions button{padding:18px 12px}.suggestions small{display:none}.auth-intro{padding:35px 8%}.intro-tags{gap:6px}.intro-tags span{font-size:.75rem}}@media(max-width:700px){.app-shell{display:block}main{height:100dvh}aside{position:fixed;left:0;top:0;bottom:0;width:280px;z-index:12;transform:translateX(-100%);transition:transform .2s}.app-shell.sidebar-open aside{transform:translateX(0)}.backdrop{position:fixed;inset:0;background:#153e3244;border:0;z-index:11}#menu{display:block}header{padding:10px 14px 10px 8px;min-height:67px;gap:8px}.header-left{gap:2px}#chat-title{max-width:125px;font-size:.87rem}select{font-size:.76rem;padding-left:9px}.welcome{padding:48px 23px 15px}.welcome h1{font-size:1.85rem}.welcome>p{font-size:.9rem;line-height:1.8}.mobile-break{display:block}.suggestions{grid-template-columns:1fr;margin-top:28px;gap:9px}.suggestions button{display:flex;align-items:center;gap:15px;padding:16px;text-align:left;border-radius:12px}.suggestions span{margin:0;font-size:.71rem;min-width:69px}.suggestions strong{font-size:.88rem}.suggestions small{display:none}.welcome-mark{width:56px;height:56px;border-radius:19px;padding:8px;margin-bottom:23px}.welcome-mark img{width:40px;height:40px}.eyebrow{font-size:.69rem}.composer-wrap{padding:0 14px max(12px,env(safe-area-inset-bottom))}.composer{padding:13px 14px 10px;border-radius:16px}.composer textarea{font-size:16px;min-height:49px}.footnote{font-size:.67rem;margin-top:9px}.footnote span{display:none}.composer-bottom>span{font-size:.71rem}.messages{padding:22px 20px 12px}.message.user .bubble{max-width:92%}.message.assistant .bubble{font-size:1rem}.chat-status{margin-bottom:4px;min-height:17px}.auth-shell{display:block;background:white}.auth-intro{display:none}.auth-panel{min-height:100dvh;padding:38px 28px}.mini-brand{display:flex;align-items:center;gap:10px;font-size:1.25rem;font-weight:600;margin-bottom:42px}.mini-brand img{width:35px;height:35px}.auth-panel h2{font-size:1.7rem}.delete-chat{opacity:1}.toast{bottom:20px;width:max-content;text-align:center}.suggestions button:last-child{margin-bottom:0}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.composer-options{display:flex;align-items:center;gap:18px}.composer-options>span{font-size:.75rem;color:#84918e}.search-toggle{display:flex;align-items:center;gap:7px;cursor:pointer;font-size:.875rem;color:#55776a;white-space:nowrap}.search-toggle input{width:16px;height:16px;min-height:0;padding:0;accent-color:var(--teal)}.search-toggle:has(input:checked){color:var(--teal);font-weight:600}.sources{margin-top:20px;padding-top:13px;border-top:1px solid var(--line);font-size:.875rem;color:#6b8176}.sources-heading{font-size:.75rem;margin-bottom:8px}.source-link{display:block;width:fit-content;font-size:.875rem;margin:5px 0}.citation{font-size:.8rem;margin:0 3px;font-weight:600}.chat-status,select{font-size:.875rem}.footnote,.eyebrow,.account small,.suggestions span,.suggestions small,.composer-bottom>span{font-size:max(.75rem,12px)}@media(max-width:700px){.composer-options>span{display:none}.footnote{font-size:.75rem}.search-toggle{font-size:.875rem}select{font-size:.875rem}.model-picker{max-width:205px}.model-picker select{max-width:100%}.sources{font-size:.875rem}}
