:root{color:#302e2a;font-synthesis:none;--ink:#302e2a;--muted:#736e65;--line:#e3dfd6;--accent:#a6482d;--accent-soft:#f7e8df;--rail:#f1efe8;background:#fbfaf7;font-family:Inter Variable,-apple-system,BlinkMacSystemFont,PingFang SC,Microsoft YaHei,sans-serif}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit;color:inherit}button,a{touch-action:manipulation}a{color:inherit;text-decoration:none}button{cursor:pointer;background:0 0;border:0}button:disabled{cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid var(--accent);outline-offset:3px}button svg,a svg{flex:none}svg{stroke-width:1.65px}button{line-height:1.3}[hidden]{display:none!important}.sr{clip-path:inset(50%);width:1px;height:1px;position:absolute;overflow:hidden}.workspace{grid-template-columns:236px minmax(0,1fr);height:100dvh;display:grid;overflow:hidden}.rail{background:var(--rail);border-right:1px solid var(--line);flex-direction:column;min-height:0;padding:25px 16px 17px;display:flex}.brand{letter-spacing:-.8px;align-items:center;gap:10px;padding:0 7px;font-size:19px;font-weight:635;display:flex}.brand img{border-radius:8px}.new{text-align:left;background:#fcfbf7;border:1px solid #d6cfc4;border-radius:9px;align-items:center;gap:10px;margin:38px 0 32px;padding:11px 13px;font-size:14px;font-weight:550;display:flex;box-shadow:0 1px 2px #39250d08}.new svg:last-child,.rail-foot svg:last-child{color:#827b70;margin-left:auto}.rail-label{color:var(--muted);padding:0 12px 9px;font-size:12px}#history{min-height:0;overflow:auto}.history-item{text-align:left;color:#6b6259;border-radius:8px;align-items:center;gap:9px;width:100%;padding:10px 12px;font-size:13px;display:flex}.history-item span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.history-item[aria-current=true]{color:#473b31;background:#e7e2d8}.history-item:hover,.rail-foot a:hover{background:#e9e5dc}.rail-foot{border-top:1px solid #dcd7ce;margin-top:auto;padding-top:14px}.rail-foot a{border-radius:8px;align-items:center;gap:10px;padding:10px 12px;font-size:13px;display:flex}.chat{background:#fcfbf8;flex-direction:column;min-width:0;min-height:0;display:flex;position:relative}.topbar{border-bottom:1px solid var(--line);flex:none;justify-content:space-between;align-items:center;height:64px;margin:0 30px;font-size:13px;display:flex}.topbar>div,.top-link{align-items:center;gap:10px;min-width:0;display:flex}.topbar>div>svg,.topbar #chat-title{color:var(--muted)}#chat-title{white-space:nowrap;text-overflow:ellipsis;max-width:35vw;overflow:hidden}.topbar strong{white-space:nowrap;font-weight:590}.top-link{color:var(--muted);white-space:nowrap;gap:4px}.menu,.backdrop{display:none}.surface{flex-direction:column;flex:1;justify-content:center;align-items:center;min-height:0;padding:24px 24px 5vh;display:flex;overflow:auto}.welcome,.dock,.messages{width:min(100%,742px)}.welcome{padding:0 5px 25px}.portrait{background:#e2cab3;border:3px solid #fffdf8;border-radius:23px;outline:1px solid #ddc7ae;width:78px;height:78px;overflow:hidden;transform:rotate(-3deg);box-shadow:1px 4px #dcbda24a}.portrait img{object-fit:cover;width:100%;height:100%}.welcome h1{letter-spacing:-2.3px;margin:22px 0 7px;font-size:clamp(34px,3.45vw,52px);font-weight:520;line-height:1.35}.welcome h1 em{color:var(--accent);font-family:Georgia,serif;font-weight:400}.welcome p{color:var(--muted);margin:0;font-size:15px;line-height:1.7}.dock{flex:none}#ask{background:#fffefa;border:1px solid #d9d1c5;border-radius:19px;padding:16px 16px 11px;box-shadow:0 5px 18px #5843230a,0 1px 3px #58432308}#ask:focus-within{border-color:#bca99a}#ask.dragging{outline:2px dashed var(--accent);outline-offset:3px}textarea#question{resize:none;background:0 0;border:0;outline:0;width:100%;min-height:58px;max-height:150px;padding:2px 3px;font-size:16px;line-height:1.55;display:block}textarea::placeholder{color:#918b81}.toolbar,.toolbar>div{align-items:center;display:flex}.toolbar{justify-content:space-between;margin-top:7px}.toolbar>div{gap:4px}.tool,.shortcuts button{align-items:center;gap:7px;font-size:13px;display:inline-flex}.tool{color:#6c665d;border-radius:7px;padding:7px 9px}.tool[aria-pressed=true]{color:var(--accent);background:var(--accent-soft)}.tool:hover,.shortcuts button:hover,.icon:hover{background:#ede8df}.send{background:var(--accent);color:#fff;border-radius:11px;place-items:center;width:38px;height:37px;display:grid}.send:disabled{color:#9c897b;background:#e9dfd5}.shortcuts{flex-wrap:wrap;gap:8px;margin:16px 1px;display:flex}.shortcuts button{border:1px solid var(--line);color:#645d51;background:#f9f7f2;border-radius:20px;padding:8px 13px}.shortcuts svg{color:#8d7259}.privacy{text-align:center;color:var(--muted);padding:8px 14px 12px;font-size:11px;line-height:1.6}.privacy span{margin:0 4px}.privacy a{text-underline-offset:2px;text-decoration:underline}#status{color:#8c4129;margin:8px 3px 0;font-size:13px}#status:empty{display:none}.icon{border-radius:6px;place-items:center;width:31px;height:31px;display:inline-grid;position:relative}.menu{display:none}button[data-tip]{position:relative}button[data-tip]:is(:hover,:focus-visible):after{content:attr(data-tip);color:#fff;white-space:nowrap;z-index:4;background:#39332e;border-radius:6px;padding:5px 8px;font-size:11px;position:absolute;bottom:calc(100% + 5px);right:0}.topbar button[data-tip]:after{inset:100% auto auto 0}.attachment{border:1px solid var(--line);border-radius:8px;align-items:center;gap:9px;width:fit-content;max-width:100%;margin-bottom:10px;padding:4px 5px;font-size:12px;display:flex}.attachment img{object-fit:cover;border-radius:5px;width:39px;height:37px}.attachment span{text-overflow:ellipsis;white-space:nowrap;max-width:45vw;overflow:hidden}.messages:empty{display:none}.chat.has-turns .surface{justify-content:flex-start;padding:0;overflow:hidden}.has-turns .messages{overscroll-behavior:contain;scrollbar-gutter:stable;flex:1;width:100%;padding:28px max(22px,50% - 371px) 12px;display:block;overflow:auto}.has-turns .dock{width:min(100% - 44px,742px);padding:8px 0 0}.has-turns #question{min-height:36px}.has-turns .privacy{padding-bottom:8px}.user-turn{flex-direction:column;align-items:flex-end;margin:0 0 22px;display:flex}.bubble{color:#382e25;white-space:pre-wrap;overflow-wrap:anywhere;background:#eee8de;border-radius:17px 17px 4px;max-width:85%;padding:11px 16px;line-height:1.65}.user-photo{border:1px solid var(--line);object-fit:contain;border-radius:11px;max-width:min(280px,80%);max-height:200px;margin-bottom:6px}.bot-turn{margin:0 0 28px}.speaker{align-items:center;gap:8px;margin-bottom:8px;font-size:13px;font-weight:600;display:flex}.speaker img{border-radius:8px;width:26px;height:26px}.answer{overflow-wrap:anywhere;font-size:15px;line-height:1.8}.answer p,.answer ul,.answer ol{margin:6px 0 12px}.answer h2,.answer h3,.answer h4{margin:16px 0 6px;font-size:17px}.answer pre{background:#eeeae3;border-radius:8px;max-width:100%;padding:12px;overflow:auto}.answer code{font-size:.88em}.cite,.source{color:var(--accent);cursor:pointer}.cite{padding:0 2px;font-size:.83em;font-weight:600}.sources,.turn-tools{flex-wrap:wrap;gap:6px;margin-top:7px;display:flex}.source{text-align:left;background:#f5efe6;border-radius:6px;padding:5px 8px;font-size:12px}.turn-tools button,.retry{color:var(--muted);margin-right:12px;padding:5px 0;font-size:12px}.turn-tools button:hover,.retry{text-decoration:underline}.progress{color:var(--muted);font-size:14px}.progress:before{content:"";background:#bd7151;border-radius:50%;width:7px;height:7px;margin-right:8px;animation:1.4s infinite alternate pulse;display:inline-block}@keyframes pulse{to{opacity:.3}}.issue{border:1px solid var(--line);background:#fffefa;border-radius:12px;margin-top:12px;padding:15px}.issue h3{margin:0 0 9px;font-size:15px}.issue label{color:var(--muted);margin-top:10px;font-size:12px;display:block}.issue input,.issue textarea{border:1px solid var(--line);width:100%;font:inherit;background:#fff;border-radius:6px;margin-top:3px;padding:9px}.issue textarea{resize:vertical;min-height:160px}.issue button,.doc-link{background:var(--accent);color:#fff;border-radius:7px;padding:9px 13px;font-size:13px}.issue p{color:var(--muted);font-size:12px}.issue a{color:var(--accent);text-decoration:underline}.issue button:disabled{opacity:.55}dialog{border:0;border-left:1px solid var(--line);width:min(440px,96vw);max-width:100%;height:100dvh;max-height:100dvh;color:var(--ink);background:#fcfbf7;margin:0;padding:20px 24px;inset:0 0 0 auto;box-shadow:-8px 0 35px #3023150f}dialog::backdrop{background:#2d231f38}dialog header,dialog header span,.doc-link{align-items:center;gap:8px;display:flex}dialog header{border-bottom:1px solid var(--line);color:var(--muted);justify-content:space-between;padding-bottom:14px;font-size:13px}#doc-text h2{margin:24px 0 10px;font-size:23px}#doc-text p{white-space:pre-line;font-size:14px;line-height:1.8}.doc-link{width:fit-content;margin-top:22px}@media (width<=760px){.workspace{grid-template-columns:1fr}.rail{visibility:hidden;z-index:12;width:min(285px,82vw);position:fixed;inset:0 auto 0 0;transform:translate(-101%)}.workspace.rail-open .rail{visibility:visible;transform:none}.backdrop{z-index:11;background:#30251d50;display:block;position:fixed;inset:0}.menu{display:grid}.topbar{height:53px;margin:0 14px}.topbar>div{gap:6px}.surface{padding:12px 18px 3vh}.welcome{padding-bottom:21px}.welcome h1{letter-spacing:-1.4px;margin-top:19px;font-size:clamp(31px,7.9vw,43px)}.welcome p{font-size:14px}.portrait{border-radius:19px;width:65px;height:65px}.shortcuts{gap:6px}.shortcuts button{padding:7px 9px;font-size:12px}.shortcuts button svg{width:14px}.has-turns .dock{width:calc(100% - 24px)}.has-turns .messages{padding:18px 16px 8px}.privacy{padding-bottom:max(8px, env(safe-area-inset-bottom))}.top-link{font-size:12px}.bubble{max-width:91%}.welcome h1 em{letter-spacing:-1px}}@media (height<=540px){.surface{justify-content:flex-start}.welcome .portrait{display:none}.welcome h1{margin-top:0}.shortcuts{margin:7px 0}.privacy{padding:4px}.surface{padding-bottom:0}}@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important}}.history-row{border-radius:8px;align-items:center;display:flex}.history-row:has([aria-current=true]){background:#e7e2d8}.history-row .history-item{flex:1;min-width:0}.history-action{width:32px;height:32px;color:var(--muted);border-radius:6px;flex:none;justify-content:center;align-items:center;margin-right:3px;display:flex;position:relative}.history-action:hover,.history-action:focus-visible{color:var(--accent);background:#dfd5c9}@media (hover:hover){.history-action{opacity:0}.history-row:hover .history-action,.history-row:focus-within .history-action{opacity:1}}.history-dialog{border:1px solid var(--line);border-radius:15px;width:min(370px,100% - 32px);height:fit-content;margin:auto;padding:22px;inset:0}.history-dialog h2{margin:0 0 8px;font-size:19px}#delete-chat p{color:var(--muted);overflow-wrap:anywhere;font-size:14px;line-height:1.65}.history-dialog div{justify-content:flex-end;gap:8px;display:flex}.history-dialog button{border:1px solid var(--line);border-radius:7px;padding:8px 14px;font-size:13px}#delete-chat #confirm-delete,.history-dialog .primary{background:var(--accent);color:#fff;border-color:var(--accent)}#storage-warning{color:var(--accent);margin:8px 3px 0;font-size:13px}#storage-warning:empty{display:none}#rename-form label{color:var(--muted);margin:16px 0 6px;font-size:13px;display:block}#new-title{border:1px solid var(--line);background:#fff;border-radius:7px;width:100%;margin-bottom:16px;padding:9px}@media (hover:hover){.history-row:not(:hover):not(:focus-within) .history-action{width:0;margin:0;padding:0;overflow:hidden}}.log-attachment,.sent-log{border:1px solid var(--line);overflow-wrap:anywhere;background:#f5f1e9;border-radius:9px;max-width:100%;margin-bottom:9px;padding:8px 10px;font-size:13px}.log-attachment>div{align-items:center;gap:8px;display:flex}.log-attachment>div span{flex:1}.log-attachment summary,.sent-log summary{cursor:pointer}.log-attachment details{margin-top:4px}.log-attachment p,.sent-log p{color:var(--muted);font-size:12px}#log-excerpt,.sent-log pre{white-space:pre-wrap;width:100%;max-height:210px;font:12px/1.5 ui-monospace,monospace;overflow:auto}#log-excerpt{border:1px solid var(--line);resize:vertical;background:#fff;border-radius:5px;padding:7px}.sent-log{width:fit-content;max-width:min(100%,580px)}
