:root{--ink:#193a3b;--muted:#728788;--green:#175d55;--line:#dde7e3;--paper:#f6f8f4;font-family:Inter,"Microsoft YaHei",system-ui,sans-serif;color:var(--ink);background:var(--paper)}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;border:0}button:disabled{cursor:wait;opacity:.5}button,select,input,textarea{outline-color:#62a98e}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.sprite{position:absolute;width:0;height:0}[hidden]{display:none!important}.brand{display:flex;align-items:center;gap:12px;letter-spacing:-.5px;font-size:22px}.brand-mark{width:40px;height:44px;background:var(--green);color:white;display:grid;place-items:center;border-radius:14px}.brand-mark svg{width:21px;height:25px}.shell{display:grid;grid-template-columns:245px 1fr;min-height:100dvh}.sidebar{background:#edf2ec;border-right:1px solid var(--line);padding:32px 22px;display:flex;flex-direction:column;position:fixed;width:245px;height:100dvh}.new-chat{display:flex;align-items:center;justify-content:center;gap:8px;padding:13px;margin:34px 0 21px;background:white;border:1px solid var(--line);border-radius:12px;color:var(--ink)}nav{display:grid;gap:7px}nav button{display:flex;align-items:center;gap:12px;padding:13px 16px;text-align:left;background:transparent;color:#5a7471;border-radius:12px}nav button.active{background:#d9e9dd;color:var(--green);font-weight:600}.badge{margin-left:auto;background:var(--green);color:white;border-radius:20px;padding:1px 6px;font-size:11px}.recent{margin-top:32px;overflow:auto}.eyebrow{font-size:10px;letter-spacing:2.1px;color:var(--muted);margin:0 0 10px}.recent button{width:100%;text-align:left;padding:10px 3px;color:#68807c;background:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}.sidebar-bottom{margin-top:auto;display:flex;align-items:center;gap:7px;font-size:10px;padding-top:20px;color:var(--muted)}.sidebar-bottom button{margin-left:auto;background:transparent;font-size:10px;color:var(--muted)}.dot{width:6px;height:6px;background:#a1b6af;border-radius:50%;display:inline-block}.dot.online{background:#278970}main{grid-column:2;min-width:0;padding:37px 54px 0}header{display:flex;justify-content:space-between;align-items:center;padding-bottom:23px;border-bottom:1px solid var(--line)}header h2{font-size:19px;font-weight:500;margin:0}.model-chip{border:1px solid #d0dfd7;border-radius:20px;padding:7px 13px;font-size:10px;white-space:nowrap}.tab{padding-top:29px;max-width:1000px;margin:auto}.chat-tab{display:flex;flex-direction:column;min-height:calc(100dvh - 137px);padding-top:10px}.welcome{text-align:center;margin:auto;padding:34px 0 46px;width:100%}.voice-orb{width:112px;height:112px;border-radius:38%;margin:0 auto 30px;background:radial-gradient(circle at 30% 25%,#c8e7d0,#a2cdb6 54%,#6aaba0);box-shadow:inset 0 0 28px #ffffff75,0 20px 50px #164e3420;display:grid;place-items:center;transform:rotate(-8deg)}.voice-orb svg{width:36px;height:42px;transform:rotate(8deg);color:#286d5f;stroke-width:1.3}.welcome h1{font-weight:500;font-size:27px;letter-spacing:-.7px;margin:0 0 13px}.welcome p{font-size:13px;color:var(--muted)}.quick-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;max-width:570px;margin:37px auto 0}.quick-grid button{text-align:left;background:#ffffff85;border:1px solid var(--line);border-radius:14px;padding:19px 22px;color:var(--ink);font-size:13px}.quick-grid button:hover{background:#e6f0e8}.quick-grid span{display:block;margin-top:9px;font-size:10px;color:var(--muted)}.composer-wrap{position:sticky;bottom:0;margin-top:auto;padding:10px 0 20px;background:var(--paper)}.composer{display:flex;gap:11px;align-items:center;background:white;border:1px solid #ccded3;border-radius:18px;padding:14px 15px;box-shadow:0 5px 30px #244a3410}.composer textarea{resize:none;flex:1;min-width:0;border:0;background:transparent;max-height:150px;line-height:1.6;font-size:13px}.icon-button{width:28px;display:grid;place-items:center;background:transparent;color:#88a095;padding:0;cursor:pointer}.icon-button.recording{color:#ad413d;animation:pulse 1s infinite}.send{width:36px;height:36px;border-radius:11px;background:var(--green);color:white;display:grid;place-items:center}.send svg{width:18px}.composer-meta{display:flex;justify-content:space-between;gap:5px;color:var(--muted);font-size:10px;margin:12px 10px 0}.composer-meta label{white-space:nowrap;display:flex;align-items:center;gap:4px}.composer-meta input{accent-color:var(--green);margin:0;width:12px}.messages{padding:24px 0;display:grid;gap:26px}.message{max-width:92%;font-size:14px;line-height:1.9;word-break:break-word}.message.user{justify-self:end;background:#e2ebe0;padding:12px 20px;border-radius:17px 17px 3px 17px;max-width:82%}.message.assistant{display:flex;gap:14px}.avatar{width:27px;height:30px;flex-shrink:0;background:var(--green);color:#fff;border-radius:9px;display:grid;place-items:center;margin-top:3px}.avatar svg{width:15px}.message-content{min-width:0}.message-text{white-space:pre-wrap}.message-controls{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}.message-controls button,.message-controls a{color:var(--green);background:transparent;padding:4px 0;font-size:11px;text-decoration:none;margin-right:12px}.sources{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.sources a{font-size:11px;color:var(--green);padding:4px 9px;border:1px solid var(--line);border-radius:9px;text-decoration:none}.section-intro h3{font-size:24px;font-weight:500;margin:6px 0 10px}.section-intro p{color:var(--muted);font-size:13px;margin-bottom:29px}.cards{display:grid;gap:14px}.card{background:white;border:1px solid var(--line);border-radius:17px;padding:24px;margin-bottom:15px;min-width:0}.card h3{margin:0 0 20px;font-size:17px;font-weight:500}.card h4{margin:0 0 10px;font-size:15px}.card p{line-height:1.8;font-size:13px;white-space:pre-wrap;word-break:break-word}.small{font-size:11px!important;color:var(--muted);line-height:1.8}.empty{padding:35px;text-align:center;background:#eef3ec;border-radius:16px;color:var(--muted);font-size:13px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.settings-grid label,.auth label{display:block;font-size:12px;margin-bottom:17px}.settings-grid input:not([type=checkbox]),.settings-grid select,.auth input,.inline-form input{display:block;width:100%;border:1px solid var(--line);border-radius:9px;background:#fbfcfa;padding:11px 12px;margin-top:9px;color:var(--ink);min-width:0}.settings-grid label.check{display:flex;gap:8px;align-items:center}.check input{accent-color:var(--green)}.primary,.secondary{padding:11px 16px;border-radius:9px;font-size:12px;background:var(--green);color:white}.secondary{background:#eaf0e8;color:var(--ink)}.actions{display:flex;gap:9px;flex-wrap:wrap;align-items:center;margin-top:15px}.inline-form{display:flex;align-items:center;gap:10px;margin-bottom:23px}.inline-form input{margin:0;flex:1}.inline-form button{white-space:nowrap}.auth{min-height:100dvh;display:grid;place-items:center;padding:20px;background:radial-gradient(ellipse at 20% 30%,#c6dfcc,#f4f6ef 65%)}.auth-card{width:min(100%,410px);background:#ffffffd9;border:1px solid white;padding:38px;border-radius:25px;box-shadow:0 30px 100px #20473312}.auth-card .brand{margin-bottom:38px}.auth h1{font-size:25px;font-weight:500}.auth-card>p:not(.eyebrow){color:var(--muted);font-size:13px;line-height:1.8}.auth form{margin-top:25px}.auth .primary{width:100%;padding:13px}.auth #login-error{color:#ad413d}.toast{position:fixed;z-index:20;bottom:95px;left:50%;transform:translateX(-50%);background:#173e37;color:white;padding:13px 22px;border-radius:12px;font-size:12px;max-width:90%;box-shadow:0 10px 40px #0002}dialog{border:1px solid var(--line);border-radius:19px;padding:28px;max-width:570px;width:calc(100% - 28px);color:var(--ink)}dialog::backdrop{background:#12382e66;backdrop-filter:blur(4px)}.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:15px}.dialog-head h3{font-size:19px;font-weight:500}dialog pre{white-space:pre-wrap;word-break:break-word;background:#f2f6ef;padding:18px;border-radius:10px;font-size:13px;line-height:1.8;max-height:45dvh;overflow:auto}dialog audio{width:100%}dialog p{font-size:12px;color:var(--muted)}#image-preview{font-size:11px;padding:8px;color:var(--muted)}#image-preview img{width:52px;height:52px;object-fit:cover;border-radius:8px;vertical-align:middle;margin-right:10px}@keyframes pulse{50%{opacity:.3}}@media(max-width:950px){.shell{grid-template-columns:205px 1fr}.sidebar{width:205px;padding:27px 18px}main{padding:30px 28px 0}.welcome h1{font-size:23px}.settings-grid{grid-template-columns:1fr}}@media(max-width:650px){.shell{display:block}.sidebar{bottom:0;width:100%;height:auto;padding:0;background:#eef3ed;z-index:5;border-top:1px solid var(--line);border-right:0;padding-bottom:env(safe-area-inset-bottom)}.sidebar>.brand,.new-chat,.recent,.sidebar-bottom{display:none}.sidebar nav{display:flex;gap:0;justify-content:space-around;padding:8px 2px}.sidebar nav button{position:relative;flex:1;flex-direction:column;gap:5px;padding:5px 3px;font-size:9px;background:transparent}.sidebar nav button.active svg{stroke-width:2.2}.sidebar nav svg{width:20px;height:20px}.badge{position:absolute;top:0;right:20%;font-size:8px}main{padding:25px 19px 74px}header{padding-bottom:18px}header h2{font-size:15px}.eyebrow{font-size:8px;letter-spacing:1.8px}.model-chip{padding:6px 9px;font-size:9px}.chat-tab{min-height:calc(100dvh - 183px);padding-top:0}.welcome{padding:35px 0 28px}.voice-orb{width:88px;height:88px;margin-bottom:25px}.voice-orb svg{width:29px;height:34px}.welcome h1{font-size:21px;letter-spacing:-.9px}.welcome p{font-size:11px;line-height:1.8}.quick-grid{gap:9px;margin-top:27px}.quick-grid button{padding:16px 14px;font-size:11px}.quick-grid span{font-size:8px}.composer-wrap{padding-bottom:13px;bottom:66px}.composer{gap:7px;padding:12px;border-radius:15px}.composer textarea{font-size:12px}.composer-meta{font-size:8px;margin:10px 3px 0}.send{width:31px;height:31px}.icon-button{width:24px}.icon-button svg{width:19px}.messages{gap:20px}.message{max-width:100%;font-size:13px}.message.assistant{gap:10px}.section-intro h3{font-size:21px}.section-intro p{font-size:11px}.card{padding:20px}.auth-card{padding:30px}.inline-form{gap:7px}.inline-form input{font-size:11px}.inline-form button{padding:11px}.toast{bottom:155px}.settings-grid{gap:0}}
.header-actions{display:flex;align-items:center;gap:12px}#mobile-new-chat{display:none}@media(max-width:650px){#mobile-new-chat{display:grid}}
.recent button[aria-current=true]{color:var(--green);font-weight:600;background:#d9e9dd;border-radius:7px;padding-left:7px}.recent #all-history{color:var(--green);font-weight:600}#history-button{white-space:nowrap;padding:9px 12px}#history-dialog{max-height:85dvh;padding:22px}#history-list{max-height:55dvh;overflow:auto;margin-top:12px}.history-row{display:flex;flex-direction:column;gap:5px;width:100%;padding:13px;text-align:left;border-radius:10px;background:transparent;color:var(--ink);border-bottom:1px solid var(--line)}.history-row:hover,.history-row[aria-current=true]{background:#e6f0e8}.history-title{font-size:13px;white-space:normal;overflow-wrap:anywhere}.history-row .small{font-size:10px!important}.older-messages{align-self:center;margin-top:14px}@media(max-width:650px){main>header{gap:12px;flex-wrap:wrap}.header-actions{gap:8px}#history-button{font-size:11px;padding:8px 10px}#history-dialog{padding:18px;width:calc(100% - 24px)}#history-list{max-height:53dvh}}
.camera-photo{display:block;max-width:100%;width:640px;height:auto;margin-top:14px;border-radius:12px}
.result-card audio,#result-content audio{display:block;width:100%;max-width:640px;margin-top:12px}
.result-card{padding:16px;background:white;border:1px solid var(--line);border-radius:12px;margin:12px 0;min-width:0}.result-card h4{margin:0 0 6px}.result-card .small{margin:5px 0}.result-card .actions{flex-wrap:wrap;gap:8px}.result-card a{text-decoration:none;padding:8px 12px;border-radius:9px;color:var(--green);font-size:12px}.result-card video,.result-card iframe{width:100%;max-width:640px;margin-top:12px;border:0;border-radius:8px}.result-card iframe{height:260px;background:white}.result-excerpt{white-space:pre-wrap;max-height:210px;overflow:auto;font-size:12px}.job-card p{font-size:13px}#file-preview{font-size:12px;padding:8px;overflow-wrap:anywhere}#file-preview button{margin-left:8px}#result-dialog{max-width:960px;max-height:90dvh}#result-content{max-height:65dvh;overflow:auto;margin:15px 0;line-height:1.8;overflow-wrap:anywhere}#result-content p{font-size:14px;color:var(--ink);white-space:pre-wrap}#result-content iframe{width:100%;height:62dvh;border:0;background:white}#result-content video{width:100%;max-height:60dvh}#result-content table{border-collapse:collapse;max-width:100%;font-size:13px}#result-content td{border:1px solid var(--line);padding:10px;white-space:pre-wrap}.slide-preview{background:#101e2b;color:#eef3f7;padding:26px;border-radius:12px;margin-bottom:18px}.slide-preview h2{color:#6fe6cc;font-size:26px}.slide-preview p{color:#eef3f7!important}#result-download{text-decoration:none;display:inline-block}
#reply-audio{position:fixed;z-index:10;bottom:20px;right:20px;max-width:calc(100% - 40px);width:320px}@media(max-width:650px){#reply-audio{bottom:80px;right:19px}}
