:root{--ink:#213c42;--muted:#718184;--teal:#167c7a;--pale:#e9f4f0;--line:#dfe8e4;--paper:#fffefa;--talk:1;font-family:Inter,"PingFang SC","Microsoft YaHei",system-ui,sans-serif;color:var(--ink);background:#f4f6f2;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.5}button,a,select,input{outline-offset:4px}button{border:0}a{color:var(--teal);text-decoration:none}button:focus-visible,a:focus-visible{outline:2px solid var(--teal)}.topbar{max-width:1480px;margin:auto;padding:24px 40px;display:flex;justify-content:space-between;align-items:center;gap:20px}.brand{display:flex;gap:12px;align-items:center;color:var(--ink);font-size:19px;font-weight:700;letter-spacing:.5px}.brand-icon{width:42px;height:42px;border-radius:14px;background:var(--teal);color:white;display:grid;place-items:center;font-size:29px}.brand small{display:block;font-weight:400;font-size:11px;color:var(--muted);letter-spacing:1px;margin-top:4px}.top-actions{display:flex;gap:22px;align-items:center;font-size:13px}.connection{font-size:12px;color:var(--teal);border-radius:30px;background:#e6efe8;padding:7px 12px}.connection::before{content:'●';font-size:8px;margin-right:7px}.quiet{background:transparent;color:var(--muted);padding:7px 2px;font-size:13px}.quiet:hover{color:var(--teal)}.layout{display:grid;grid-template-columns:330px minmax(0,1fr);gap:26px;max-width:1400px;margin:6px auto 32px;padding:0 32px;min-height:740px}.character-panel{border-radius:24px;background:#e4eeea;padding:28px 25px;position:relative;overflow:hidden}.eyebrow{font-size:12px;color:#6a817c;letter-spacing:2px}.eyebrow span{float:right;opacity:.55}.stage{height:290px;position:relative;display:flex;align-items:center;justify-content:center;margin:10px -10px 2px;isolation:isolate}.orbit{border:1px solid #bbd5cd;border-radius:50%;position:absolute;left:50%;top:46%;transform:translate(-50%,-50%);opacity:.65}.orbit-one{width:255px;height:255px}.orbit-two{width:204px;height:204px;border-style:dashed}.star{position:absolute;color:#73a899;z-index:1}.s1{left:21px;top:58px;font-size:30px}.s2{right:20px;top:145px;font-size:17px}.s3{left:48px;bottom:68px;font-size:30px}.avatar-wrap{width:240px;height:230px;z-index:2;display:flex;align-items:center;justify-content:center;position:relative}.avatar-wrap img{width:225px;height:225px;object-fit:contain;animation:float 5s ease-in-out infinite;filter:drop-shadow(0 14px 13px #226c6d13);border-radius:28px}.avatar-shadow{position:absolute;width:120px;height:12px;background:#6d9c8d26;border-radius:50%;bottom:-2px;filter:blur(4px);z-index:-1}.stage-caption{position:absolute;bottom:-1px;font-size:12px;display:flex;align-items:center;gap:7px;color:#567e70}.status-dot{height:6px;width:6px;background:#4a9d83;border-radius:50%}.stage[data-state=thinking] .status-dot{animation:pulse 1s infinite}.stage[data-state=speaking] img{animation:speak .45s ease-in-out infinite alternate}.stage[data-state=speaking] .orbit-one{animation:ring 1.5s infinite}.character-title{display:flex;align-items:center;gap:12px;margin-top:30px}.character-title h1{font-size:29px;letter-spacing:2px;margin:0}.character-title span{font-size:10px;border:1px solid #bed1c7;padding:4px 7px;border-radius:5px;color:#56796e}.character-copy{font-size:13px;color:#5b756d;line-height:1.9;min-height:50px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-wrap}.voice-card{background:#ffffffa8;border:1px solid #ffffffbd;border-radius:16px;padding:17px;margin-top:27px}.card-top{display:flex;align-items:center;gap:9px;font-size:13px;margin-bottom:14px}.tiny-icon{display:grid;place-items:center;width:25px;height:25px;border-radius:8px;background:#d9eae2;color:var(--teal)}select{border:1px solid #d5e3dc;border-radius:9px;color:var(--ink);background:#fffefa;padding:9px;font-size:12px;max-width:100%}#provider{width:100%}.voice-card p{color:#7b8b83;font-size:11px;line-height:1.7;min-height:36px}.voice-tools{display:flex;justify-content:space-between;align-items:center;gap:10px}.voice-tools label{font-size:11px;color:var(--muted)}.voice-tools select{border:0;background:transparent;padding:4px}.small-note{font-size:11px;color:#7b9288;line-height:1.9;margin:18px 3px 0}.chat-panel{border:1px solid var(--line);border-radius:24px;background:var(--paper);display:flex;flex-direction:column;overflow:hidden;min-width:0}.chat-heading{padding:30px 34px 22px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #edf0e9}.chat-heading h2{font-size:25px;letter-spacing:1px;font-weight:600;margin:9px 0 0}.messages{padding:28px 34px;flex:1;height:380px;min-height:300px;max-height:60vh;overflow:auto;scroll-behavior:smooth;scrollbar-width:thin;scrollbar-color:#d3e0da transparent}.message-row{margin-bottom:24px;display:flex;gap:11px;align-items:flex-start}.message-row.user{flex-direction:row-reverse}.message-avatar{flex:0 0 30px;width:30px;height:30px;background:#e9f2ec;border-radius:10px;object-fit:contain;padding:2px;margin-top:2px}.user .message-avatar{font-size:11px;display:grid;place-items:center;background:#e5eeed;color:var(--teal)}.message-content{max-width:84%;min-width:0}.message-label{font-size:10px;color:#93a19b;margin:0 2px 7px}.user .message-label{text-align:right}.bubble{font-size:14px;line-height:1.85;background:#f0f5ef;padding:15px 18px;border-radius:0 16px 16px 16px;white-space:pre-wrap;overflow-wrap:anywhere}.user .bubble{background:#e0eeee;border-radius:16px 0 16px 16px}.message-controls{display:flex;gap:16px;align-items:center;font-size:10px;color:#93a19b;margin:5px 2px}.message-controls .quiet{font-size:11px}.typing::after{content:'●';font-size:9px;color:#6b9c8c;animation:pulse 1s infinite;margin-left:5px}.notice{margin:0 30px 8px;padding:10px 12px;background:#fff2df;border:1px solid #edddc4;border-radius:9px;color:#916627;font-size:12px;line-height:1.6}.composer-area{padding:6px 30px 16px}.suggestions{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:15px}.suggestions button{padding:7px 10px;border:1px solid var(--line);background:transparent;color:#6d8179;border-radius:20px;font-size:11px}.suggestions button:hover{background:var(--pale)}.composer{border:1px solid #d9e5dd;border-radius:16px;padding:14px 15px 10px;background:#fff;box-shadow:0 5px 18px #2c4d3c03}.composer:focus-within{border-color:#7bb9a5;box-shadow:0 0 0 3px #167c7a0b}.composer textarea{display:block;width:100%;resize:none;border:none;background:transparent;line-height:1.7;font-size:14px;min-height:55px;max-height:150px;outline:none;color:var(--ink)}textarea::placeholder{color:#a4b1aa}.composer-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px}.composer-bottom>span{font-size:10px;color:#9aa89f}#sendButton,.primary,#cancelButton{background:var(--teal);color:white;border-radius:10px;padding:10px 18px;font-size:13px}#sendButton span{margin-left:17px}#cancelButton{background:#937852}.chat-footer{display:flex;align-items:center;gap:16px;padding-top:10px;font-size:11px;color:#7e8c85}.switch{display:flex;align-items:center;gap:5px}.switch input{accent-color:var(--teal)}#usage{margin-left:auto;font-size:10px}.chat-footer .quiet{font-size:11px}.privacy-note{font-size:10px;color:#a1ada6;line-height:1.6;margin:6px 0 0}.banner{margin:16px 30px 0;font-size:12px;background:#eaf4ec;color:#5d7868;border-radius:8px;padding:10px 13px}.hidden{display:none!important}dialog{width:min(510px,calc(100% - 32px));border:1px solid var(--line);border-radius:22px;padding:27px;background:var(--paper);color:var(--ink);box-shadow:0 25px 90px #263b3b30;max-height:88vh;overflow:auto}dialog::backdrop{background:#1c3b3b55;backdrop-filter:blur(4px)}dialog h2{font-size:19px;margin:0 0 20px}dialog p{font-size:13px;color:var(--muted)}.dialog-heading{display:flex;justify-content:space-between;align-items:flex-start}dialog label{display:block;font-size:12px;margin:13px 0 7px}dialog input:not([type=checkbox]),dialog textarea{display:block;width:100%;border:1px solid #d6e1d9;border-radius:9px;padding:11px;background:white;color:var(--ink);margin-top:8px;font-size:13px;line-height:1.6}dialog .field-help{font-size:11px;line-height:1.7;margin:6px 0}.checkline{display:flex!important;gap:7px;align-items:center}.checkline input{accent-color:var(--teal)}.dialog-actions{display:flex;justify-content:space-between;gap:12px;margin-top:21px}.error-text{color:#a45037!important} .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}@keyframes float{0%,100%{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(-9px) rotate(2deg)}}@keyframes speak{from{transform:translateY(-3px) rotate(-1deg) scale(1)}to{transform:translateY(-7px) rotate(1deg) scale(1.025)}}@keyframes pulse{50%{opacity:.3}}@keyframes ring{50%{opacity:.2;transform:translate(-50%,-50%) scale(1.06)}}@media(min-width:1500px){.layout{min-height:800px}.messages{height:460px}}@media(max-width:950px){.layout{grid-template-columns:260px minmax(0,1fr);gap:16px;padding:0 20px}.topbar{padding:20px}.character-panel{padding:22px 17px}.stage{transform:scale(.84);margin:-15px -30px -10px}.chat-heading{padding:26px 24px 20px}.messages{padding:25px 20px}.composer-area{padding:6px 20px 16px}.chat-footer{flex-wrap:wrap;gap:6px 15px}#usage{margin-left:0}}@media(max-width:680px){.topbar{padding:16px;gap:10px}.brand{font-size:15px}.brand small{font-size:9px}.brand-icon{width:33px;height:33px}.top-actions{gap:10px}.top-actions a{display:none}.connection{max-width:100px;font-size:10px;padding:6px 8px}.layout{display:flex;flex-direction:column;padding:0 12px;gap:12px;margin-bottom:18px}.character-panel{display:grid;grid-template-columns:90px 1fr;gap:0 14px;padding:16px 18px;border-radius:17px}.character-panel>.eyebrow,.small-note,.character-title>span,.stage-caption,.orbit,.star{display:none}.stage{grid-column:1;grid-row:1/4;width:90px;height:110px;margin:0;transform:none}.avatar-wrap{width:90px;height:100px}.avatar-wrap img{width:105px;height:105px}.avatar-shadow{width:60px;bottom:2px}.character-title{grid-column:2;margin-top:0}.character-title h1{font-size:23px}.character-copy{grid-column:2;font-size:11px;line-height:1.6;margin:5px 0;min-height:0;-webkit-line-clamp:2}.voice-card{grid-column:1/3;margin-top:15px;padding:12px;display:grid;grid-template-columns:1fr 1fr;gap:4px 12px}.card-top{font-size:11px;margin:0}.voice-card p{grid-column:1/3;min-height:0;margin:3px 0;font-size:10px}.voice-tools{grid-column:1/3}.voice-card #provider{font-size:11px;padding:6px}.chat-panel{border-radius:17px}.chat-heading{padding:20px}.chat-heading h2{font-size:22px}.messages{height:310px;max-height:55vh;padding:22px 16px}.message-content{max-width:88%}.bubble{font-size:13px;padding:12px 14px}.message-avatar{width:25px;height:25px;flex-basis:25px}.composer-area{padding:5px 14px 12px}.suggestions button{font-size:10px}.composer-bottom>span{font-size:9px}.privacy-note{font-size:9px}.notice,.banner{margin-left:15px;margin-right:15px}.chat-footer{font-size:10px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;scroll-behavior:auto!important}}

.guide{max-width:860px;margin:42px auto;padding:38px 46px;background:#fffdf7;border:1px solid #e3e8e0;border-radius:24px;color:#263c37;line-height:1.95}.guide h1{font-size:30px;line-height:1.4;margin:28px 0}.guide h2{font-size:22px;margin:42px 0 14px;padding-top:16px;border-top:1px solid #e4e9e2}.guide p{margin:16px 0}.guide code{font-family:ui-monospace,Consolas,monospace;font-size:.87em;background:#edf3ee;padding:2px 5px;border-radius:4px;overflow-wrap:anywhere}.guide pre{background:#173e36;color:#eefbf3;padding:18px 22px;border-radius:12px;overflow:auto;line-height:1.65}.guide pre code{background:none;padding:0;color:inherit;white-space:pre}.guide a{color:#21715d;overflow-wrap:anywhere}.guide footer{margin-top:40px;color:#74827b;font-size:13px}@media(max-width:680px){.guide{margin:12px;padding:22px 20px;border-radius:16px}.guide h1{font-size:25px}.guide h2{font-size:20px}}

.language-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:10px 0}.language-options label,.voice-extra{font-size:11px;color:#526f65;display:block}.language-options select,.voice-extra select{display:block;width:100%;margin-top:5px;font-size:12px;padding:8px;border:1px solid #d8e3db;border-radius:7px;background:#fffefa;color:var(--ink)}.voice-extra{margin:10px 0}.voice-extra#voiceDetail{font-size:10px;line-height:1.7;min-height:0}.preset-button{width:100%;padding:12px;background:#e5f1eb;color:#216f59;border:1px solid #bfd8c9;border-radius:9px;font-size:13px;margin:0 0 3px}.search-options{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:4px 0 10px;font-size:11px;color:#74877d}.search-options .checkline{margin:0;font-size:12px;color:#355f52}.search-options input{accent-color:var(--teal)}#searchQueryRow{margin-bottom:10px}#searchQuery{width:100%;padding:10px 12px;background:#f6f9f5;border:1px solid #d9e5db;border-radius:8px;font-size:12px;color:var(--ink)}.sources{font-size:11px;color:#5d756c;margin-top:10px;padding:10px 12px;background:#f4f8f0;border:1px solid #e2eadd;border-radius:9px;line-height:1.7}.sources summary{cursor:pointer;color:#386b57}.sources p{margin:8px 0}.sources a{overflow-wrap:anywhere}.sources small{display:block;margin-top:4px;color:#79867d}.hidden{display:none!important}@media(max-width:680px){.language-options,.voice-extra{grid-column:1/3}.voice-extra{margin:3px 0}.language-options{margin:5px 0}.search-options{font-size:10px;gap:4px 12px}.character-copy{max-height:38px}}
