:root{font-family:-apple-system,BlinkMacSystemFont,PingFang SC,Helvetica Neue,Arial,sans-serif;color:#181818;background:#f5f5f5;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;font-size:16px}*{box-sizing:border-box}body{margin:0}button{font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}button:disabled{cursor:default}button:focus-visible,[tabindex]:focus-visible{outline:2px solid #28843c;outline-offset:3px}button{touch-action:manipulation}.chat-shell{max-width:430px;height:100vh;height:100dvh;margin:0 auto;background:#ededed;display:flex;flex-direction:column;overflow:hidden;position:relative;box-shadow:0 0 0 1px #e7e7e7}.chat-header{flex:none;padding:env(safe-area-inset-top) 12px 0;min-height:calc(56px + env(safe-area-inset-top));display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #dedede;background:#ededed;z-index:2}h1{font-size:17px;font-weight:600;letter-spacing:.02em;margin:0;line-height:24px}.header-icon{width:40px;height:44px;display:flex;align-items:center;justify-content:center}.header-icon svg{width:23px;fill:none;stroke:currentColor;stroke-width:1.9}.more{font-size:18px;letter-spacing:3px;padding-bottom:7px}.chat-history{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 12px 20px;scrollbar-width:thin;scrollbar-color:#ccc transparent;overflow-anchor:none}.timestamp{text-align:center;color:#969696;font-size:12px;line-height:18px;margin:20px 0 18px}.message{display:flex;align-items:flex-start;gap:10px;margin:0 0 14px;animation:arrive .2s ease-out}.outgoing{flex-direction:row-reverse}.avatar{flex:0 0 40px;width:40px;height:40px;border-radius:4px;overflow:hidden;background:#c0cbd0}.avatar svg{width:100%;height:100%;fill:#728e8d}.avatar svg .moon{fill:#f6e9c9}.avatar svg .hill{fill:#466e6f}.avatar-user{background:#d6d8cd}.avatar-user svg{fill:#8d9687}.bubble{position:relative;max-width:72%;min-height:40px;padding:9px 12px;background:#fff;border-radius:5px;line-height:1.45;overflow-wrap:anywhere;white-space:pre-wrap}.bubble:before{content:"";position:absolute;top:14px;left:-5px;width:10px;height:10px;background:inherit;transform:rotate(45deg);border-radius:1px}.outgoing .bubble{background:#95ec69}.outgoing .bubble:before{left:auto;right:-5px}.composer{position:relative;flex:none;background:#f7f7f7;border-top:1px solid #dedede;padding:8px 12px calc(8px + env(safe-area-inset-bottom))}.choices{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px;max-height:32dvh;overflow-y:auto;padding:3px}.choice{border:1px solid transparent;background:#eaeaea;color:#444;border-radius:18px;padding:8px 12px;font-size:14px;line-height:20px;min-height:44px;text-align:left;max-width:100%;overflow-wrap:anywhere}.choice:hover{background:#e1e1e1}.choice[aria-pressed=true]{background:#e8f2e3;border-color:#8dbb79;color:#245a21}.input-row{display:flex;align-items:flex-end;gap:9px}.draft{flex:1;min-width:0;min-height:44px;max-height:100px;overflow-y:auto;border-radius:5px;background:#fff;padding:11px 10px;line-height:22px;overflow-wrap:anywhere}.placeholder{color:#b2b2b2;font-size:14px}.send{flex:none;min-height:44px;padding:0 16px;border:0;border-radius:5px;background:#07c160;color:#fff;font-size:15px;font-weight:500}.send:disabled{background:#e9e9e9;color:#b6b6b6}.send:not(:disabled):hover{background:#06ad56}.new-message{position:absolute;right:12px;top:-45px;border:1px solid #e2e2e2;background:#fff;color:#427747;border-radius:6px;min-height:36px;padding:7px 12px;font-size:13px;box-shadow:0 2px 8px #0000000a}.notice{display:flex;align-items:center;gap:8px;padding:6px 12px;background:#fff5de;color:#755c25;font-size:12px}.notice button{background:none;border:0;font-size:20px;min-height:44px;min-width:44px;margin-left:auto;color:inherit}.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 arrive{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}@media(prefers-reduced-motion:reduce){*{animation:none!important;scroll-behavior:auto!important}}@media(max-height:500px){.choices{max-height:25dvh}.chat-header{min-height:44px}}.avatar{object-fit:cover;object-position:center}
