/* A quiet conversation canvas revealed after the existing entrance animation. */
#about.entrance{--chat-ink:#212121;--chat-muted:#737373;min-height:540px;background:#fff}
.entrance-pattern{background:#f7f7f7}
.entrance[data-ready=true] .entrance-pattern{display:none}
#about .entrance-nav{gap:4px;padding:4px;border:0;border-radius:12px;background:#fff;box-shadow:none;backdrop-filter:none}
#about .entrance-nav-item{min-width:76px;min-height:40px;padding:8px 20px;border:0;border-radius:8px;background:transparent;box-shadow:none;color:#686868;-webkit-text-fill-color:currentColor;font-size:14px;font-weight:500;letter-spacing:0}
#about .entrance-nav-item.is-current{background:#f4f4f4;color:#212121;-webkit-text-fill-color:currentColor}
#about .entrance-nav-item:hover{background:#f4f4f4;color:#212121}
#about .entrance-nav-item:focus-visible{outline-color:#777}
.chat-reveal{position:absolute;inset:104px 24px 72px;z-index:4;display:flex;justify-content:center;color:var(--chat-ink);opacity:0;visibility:hidden;transition:opacity .2s ease;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif}
.entrance[data-ready=true] .chat-reveal{opacity:1;visibility:visible}
.chat-panel{position:relative;display:flex;flex-direction:column;justify-content:center;width:min(768px,100%);height:100%;min-height:0;padding:0;background:transparent;border:0;border-radius:0;box-shadow:none;text-align:left}
.chat-welcome{flex-shrink:0;text-align:center;margin-bottom:32px}
.chat-welcome h1{font-size:32px;font-weight:600;line-height:1.35;letter-spacing:-.035em;color:#212121;white-space:pre-line;overflow-wrap:anywhere}
.chat-messages{display:none;flex:1;min-height:0;padding:22px 4px 24px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#ddd transparent;outline-offset:-3px}
.chat-panel.has-messages{justify-content:flex-end}
.chat-panel.has-messages .chat-messages{display:block}
.chat-composer{width:100%;flex-shrink:0;margin:0;border:1px solid #e3e3e3;border-radius:28px;padding:18px 16px 12px 22px;background:#fff;box-shadow:0 2px 7px #0000000c;transition:border-color .15s}
.chat-composer:focus-within{border-color:#d0d0d0}
#chatInput{display:block;width:100%;height:28px;max-height:168px;min-height:28px;padding:0 6px 0 0;resize:none;overflow-y:hidden;background:transparent;border:0;outline:0;border-radius:0;font:400 16px/28px -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:#212121;scrollbar-width:thin;scrollbar-color:#ccc transparent}
#chatInput::placeholder{color:#858585;opacity:1}
/* Autogrowing textareas must measure their actual height, including in reduced-motion mode. */
#chatInput{transition-property:none}
.chat-composer-bottom{display:flex;justify-content:flex-end;margin-top:10px}
#chatSend{display:grid;place-items:center;flex-shrink:0;width:36px;height:36px;min-width:36px;padding:8px;border:0;border-radius:50%;background:#212121;color:#fff;transition:background .15s}
#chatSend:disabled{background:#e9e9e9;color:#fff;cursor:default}
#chatSend:not(:disabled):hover{background:#444}
#chatSend svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.chat-footnote{flex-shrink:0;color:#8c8c8c;text-align:center;font-size:11px;line-height:1.6;padding:14px 8px 0;white-space:pre-line;overflow-wrap:anywhere}
.chat-message{margin:0 0 32px;max-width:100%;font-size:16px;line-height:1.85;overflow-wrap:anywhere;color:#212121}
.chat-message-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.chat-message-body{white-space:pre-wrap}
.chat-message--assistant{padding:0 4px}
.chat-message--user{width:fit-content;max-width:80%;margin-left:auto}
.chat-message--user .chat-message-body{padding:10px 20px;background:#f4f4f4;border-radius:24px;color:#212121}
.chat-pending{display:flex;align-items:center;gap:4px;font-size:13px;color:#777;padding:0 4px}
.chat-pending i{display:block;width:5px;height:5px;border-radius:50%;background:#777;animation:chat-thinking 1.4s ease infinite}
.chat-pending i:nth-child(2){animation-delay:.16s}.chat-pending i:nth-child(3){animation-delay:.32s}.chat-pending span{margin-left:8px}
.chat-error{flex-shrink:0;margin:0 4px 12px;padding:0;color:#9b3a32;font-size:13px;line-height:1.6}
.chat-error[hidden],.chat-welcome[hidden]{display:none}
.chat-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.chat-panel :is(button,a,.chat-messages):focus-visible{outline:2px solid #737373;outline-offset:3px}
.entrance[data-ready=true] .entrance-scroll{color:#8c8c8c;font-size:14px;font-weight:400;letter-spacing:0;gap:2px;bottom:15px}
.entrance-scroll{width:max-content;max-width:calc(100% - 32px);text-align:center;overflow-wrap:anywhere}
.entrance-scroll svg{width:20px;height:18px;animation:entrance-down 1.6s ease-in-out infinite}
.entrance-scroll:focus-visible{outline-color:#737373}
.chat-nojs{position:absolute;inset:35% 20px auto;z-index:6;text-align:center;padding:30px;background:#fff;color:#212121}
.chat-nojs h1{font-size:24px}.chat-nojs a{display:inline-block;margin-top:12px;text-decoration:underline}
@keyframes chat-thinking{0%,70%,100%{opacity:.35}35%{opacity:1}}
@media(min-width:2000px){.chat-panel{width:960px}.chat-welcome h1{font-size:40px}.chat-message,#chatInput{font-size:20px}.chat-footnote{font-size:13px}.chat-composer{padding:22px 20px 16px 26px}}
@media(max-width:700px){
 #about.entrance{min-height:500px}.chat-reveal{inset:96px 16px 82px}.chat-welcome{margin-bottom:28px}.chat-welcome h1{font-size:26px;letter-spacing:-.04em}.chat-composer{border-radius:26px;padding:16px 12px 10px 18px}.chat-composer-bottom{margin-top:10px}.chat-footnote{font-size:10px;padding:12px 2px 0}.chat-messages{padding:16px 0 20px}.chat-message{font-size:15px;margin-bottom:26px}.chat-message--user{max-width:88%}.chat-message--user .chat-message-body{padding:10px 16px}.chat-error{font-size:12px}.entrance[data-ready=true] .entrance-scroll{font-size:13px;bottom:10px}
}
@media(max-height:700px){.chat-reveal{top:88px;bottom:76px}.chat-welcome{margin-bottom:24px}.chat-footnote{padding-top:10px}.entrance[data-ready=true] .entrance-scroll{bottom:4px}}
@media(prefers-reduced-motion:reduce){.chat-reveal,.chat-composer,#chatSend{transition:none}.chat-pending i,.entrance-scroll svg{animation:none}}
