:root{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Helvetica Neue",sans-serif;color:#161918;background:#fff;font-synthesis:none;--green:#00815e;--line:#e5e7e6;--muted:#626864}
*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button{cursor:pointer;-webkit-tap-highlight-color:transparent}button:disabled{cursor:default;opacity:.42}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid var(--green);outline-offset:4px}svg{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}button{color:inherit}[hidden]{display:none!important}
.app{max-width:560px;height:100vh;height:100dvh;margin:auto;display:flex;flex-direction:column;padding:0 14px;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}.header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:20px 12px 18px;flex:none}.brand{border:0;background:none;display:flex;align-items:center;text-align:left;gap:16px;padding:0}.brand-icon{width:40px;height:40px;color:var(--green)}.brand strong{display:block;font-size:24px;line-height:1.3;letter-spacing:.01em}.brand small{display:block;font-size:16px;color:#565b58;margin-top:4px}.icon-button{border:0;background:none;padding:4px;color:var(--green);width:44px;height:44px}.icon-button svg{width:32px;height:32px}
.conversation{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scroll-behavior:smooth}.empty{min-height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px 4px 60px}.welcome-icon{color:var(--green);width:72px;height:72px;stroke-width:2.1}h1{font-size:31px;line-height:1.4;letter-spacing:.01em;margin:22px 0 10px;font-weight:650}.empty>p,.login>p{font-size:19px;line-height:1.7;color:#555b57;margin:0;text-align:center}.suggestions{width:100%;display:grid;gap:12px;margin-top:50px}.suggestions button{border:1px solid #dedfdf;border-radius:13px;background:#fff;min-height:64px;padding:16px 22px;display:flex;align-items:center;justify-content:space-between;text-align:left;font-size:20px;font-weight:600}.suggestions svg{width:20px;height:20px;color:#858b87}.suggestions button:hover{background:#f7f9f8}
footer{flex:none;padding:12px 0 8px}#composer{background:#f2f3f3;border:1px solid transparent;border-radius:28px;padding:9px 10px 9px 22px;display:flex;align-items:flex-end;gap:10px}#composer:focus-within{border-color:#a2ccbc}textarea{resize:none;border:0;background:transparent;outline:none!important;padding:9px 0;flex:1;width:100%;min-height:44px;max-height:144px;line-height:26px;font-size:18px;color:#202521}textarea::placeholder{color:#808783}.send{background:var(--green);border:0;border-radius:50%;color:#fff;width:46px;height:46px;display:grid;place-items:center;flex:none}.send svg{width:26px;height:26px;stroke-width:2.4}.send:hover{background:#006f50}.send:disabled{opacity:.5}#stop svg{fill:currentColor;stroke:none}#status{font-size:14px;color:var(--muted);text-align:center;margin:13px 0 5px;line-height:1.5}
#messages{padding:25px 2px 12px;display:flex;flex-direction:column;gap:24px}#messages:empty{display:none}.message{max-width:100%;font-size:17px;line-height:1.8;overflow-wrap:anywhere;white-space:pre-wrap}.message.user{align-self:flex-end;max-width:88%;background:#eaf5ef;border-radius:20px 20px 5px 20px;padding:10px 17px}.message.assistant{align-self:stretch;padding:0 6px}.message-label{font-size:12px;font-weight:600;color:var(--green);margin-bottom:5px;letter-spacing:.02em}.message-body{white-space:pre-wrap}.message-note{font-size:12px;color:#8a6560;margin-top:6px}.thinking{color:var(--muted)}.thinking:after{content:"";display:inline-block;width:6px;height:6px;margin-left:8px;background:var(--green);border-radius:50%;animation:pulse 1.4s infinite}@keyframes pulse{50%{opacity:.25}}
.error{background:#fff2ef;color:#8c3b2d;border-radius:10px;font-size:14px;line-height:1.6;padding:10px 14px;margin-top:8px}.login{flex:1;overflow-y:auto;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:28px 16px}.login h1{font-size:29px}.login>p{font-size:17px}.login form{width:100%;max-width:360px;display:grid;gap:12px;margin-top:30px}.login label{font-size:14px;font-weight:600}.login input{border:1px solid #d9dfdc;border-radius:12px;background:#f8faf9;padding:15px;font-size:17px;width:100%}.primary{border:0;background:var(--green);color:#fff;border-radius:12px;padding:15px;font-size:17px;font-weight:600}.login .login-note{font-size:12px;color:#818984;margin-top:24px;line-height:1.8}
dialog{border:1px solid var(--line);border-radius:22px;width:min(500px,calc(100% - 32px));max-height:80dvh;padding:20px;box-shadow:0 20px 80px #0002}dialog::backdrop{background:#10231a66}.dialog-heading{display:flex;justify-content:space-between;align-items:center}.dialog-heading h2{font-size:21px;margin:0}.close,.text-button{border:0;background:none;color:var(--green);font-size:15px;padding:10px}.dialog-footer{border-top:1px solid var(--line);padding-top:12px;margin-top:15px;font-size:12px;color:var(--muted)}#chat-list{display:grid;gap:4px;margin-top:18px;max-height:47dvh;overflow:auto}#chat-list button{border:0;background:none;text-align:left;padding:14px 12px;border-radius:10px;font-size:16px;overflow-wrap:anywhere}#chat-list button.selected{background:#edf6f1;color:#006f50}#chat-list small{display:block;color:#848b87;font-size:12px;margin-top:4px}
@media(max-width:600px){.app{padding-left:18px;padding-right:18px}.header{padding:17px 0 15px}.brand{gap:11px}.brand-icon{width:31px;height:31px}.brand strong{font-size:21px}.brand small{font-size:13px;margin-top:3px}.icon-button svg{width:29px;height:29px}.welcome-icon{width:60px;height:60px}h1{font-size:26px;margin-top:20px}.empty{padding-bottom:40px}.empty>p{font-size:15px}.suggestions{margin-top:34px;gap:10px}.suggestions button{font-size:17px;padding:14px 17px;min-height:55px}textarea{font-size:17px}#status{font-size:12px}footer{padding-top:10px}.message{font-size:16px}.login h1{font-size:26px}}
@media(max-height:570px){.empty{padding:18px 4px}.empty .welcome-icon{display:none}.empty h1{margin-top:0}.suggestions{margin-top:18px}.login{justify-content:flex-start}.login>.welcome-icon{display:none}.header{padding-top:10px;padding-bottom:10px}.brand small{display:none}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important}}
