.chat-ui{display:flex;width:100%;height:100%;min-height:0;flex-direction:column;overflow:hidden;background:#f7faf6;color:#243024;font-family:DM Sans,sans-serif;font-size:14px}.chat-header{display:flex;height:auto;min-height:74px;align-items:center;gap:12px;padding:14px 18px;border-bottom:1px solid #e2ebe1;background:#fff}.chat-avatar,.chat-message-avatar{display:grid;flex:0 0 auto;place-items:center;border-radius:50%;background:#076807;color:#fff;font-family:Georgia,serif;font-size:15px;font-weight:700}.chat-avatar{width:40px;height:40px}.chat-header-copy{display:flex;min-width:0;flex:1;flex-direction:column;gap:3px}.chat-header-copy h2{margin:0;color:#203020;font-size:16px;font-weight:700;line-height:1.2}.chat-header-copy span,.chat-status{color:#687768;font-size:12px;line-height:1.3}.chat-status{display:flex;align-items:center;gap:6px}.chat-status i{width:7px;height:7px;border-radius:50%;background:#27813a}.chat-messages{display:flex;flex:1;flex-direction:column;gap:18px;overflow-y:auto;padding:20px 16px;overscroll-behavior:contain}.chat-message,.chat-loading{display:flex;align-items:flex-end;gap:8px}.chat-message-user{justify-content:flex-end}.chat-message-avatar{width:27px;height:27px;font-size:11px}.chat-bubble{max-width:min(84%,320px);padding:11px 13px 8px;border:1px solid #e2ebe1;border-radius:15px 15px 15px 4px;background:#fff;box-shadow:0 2px 6px #31251b09}.chat-message-user .chat-bubble{border-color:#076807;border-radius:15px 15px 4px;background:#076807;color:#fff}.chat-bubble p{margin:0;color:inherit;font-size:14px;font-weight:400;line-height:1.55;overflow-wrap:anywhere;white-space:pre-wrap}.chat-bubble time{display:block;margin-top:5px;color:currentColor;font-size:10px;opacity:.58;text-align:right}.chat-message-image{display:block;max-width:100%;max-height:260px;margin-top:8px;border-radius:10px;object-fit:contain}.chat-bubble a{display:block;color:inherit;font-size:11px}.chat-image-hint{display:inline-block;margin-top:4px;opacity:.75}.chat-loading .chat-bubble{display:flex;align-items:center;gap:9px;color:#687768;font-size:12px}.chat-dots{display:inline-flex;gap:3px}.chat-dots i{width:5px;height:5px;border-radius:50%;animation:chat-dot 1.1s infinite ease-in-out;background:#769576}.chat-dots i:nth-child(2){animation-delay:.15s}.chat-dots i:nth-child(3){animation-delay:.3s}@keyframes chat-dot{0%,60%,to{opacity:.35;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}.chat-composer{display:flex;flex-direction:column;gap:10px;padding:12px 14px 10px;border-top:1px solid #e2ebe1;background:#fff}.chat-attachment-list{display:flex;max-height:72px;gap:8px;overflow-x:auto}.chat-attachment{display:flex;min-width:0;max-width:210px;align-items:center;gap:7px;padding:4px 6px 4px 4px;border:1px solid #e2ebe1;border-radius:9px;background:#f7faf6}.chat-attachment img{width:42px;height:42px;flex:0 0 auto;border-radius:6px;object-fit:cover}.chat-attachment span{overflow:hidden;color:#475847;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.chat-attachment button,.chat-attach-button,.chat-send-button{display:grid;flex:0 0 auto;place-items:center;border:0;cursor:pointer}.chat-attachment button{width:24px;height:24px;border-radius:50%;background:transparent;color:#718171;font-size:14px}.chat-attachment button:hover{background:#edf4ec;color:#076807}.chat-mode-row{display:grid;grid-template-columns:max-content 105px;align-items:center;gap:7px;color:#687768;font-size:11px}.chat-mode-row label{font-size:11px}.chat-mode-row select{width:105px;padding:4px 22px 4px 8px;border:1px solid #dce8da;border-radius:7px;background:#fff;color:#3f503f;font:inherit;font-size:11px}.chat-mode-row span{grid-column:1 / -1;text-align:left}.chat-model-selectors{display:grid;grid-template-columns:minmax(0,1fr);gap:7px}.chat-model-selectors-auto{grid-template-columns:repeat(2,minmax(0,1fr))}.chat-model-choice{display:flex;min-width:0;flex-direction:column;gap:4px;padding:8px;border:1px solid #e2ebe1;border-radius:9px;background:#f7faf6;color:#506050;font-size:11px}.chat-model-choice>span{color:#3f503f;font-weight:700}.chat-model-choice select{width:100%;min-width:0;padding:6px 22px 6px 7px;border:1px solid #dce8da;border-radius:6px;background:#fff;color:#3f503f;font:inherit;font-size:11px;text-overflow:ellipsis}.chat-model-choice select:disabled{cursor:wait;opacity:.7}.chat-model-choice small{color:#687768;font-size:10px;line-height:1.35;overflow-wrap:anywhere}.chat-model-error{margin:0;color:#a13e31;font-size:11px;font-weight:400;line-height:1.4}.chat-input-row{display:flex;align-items:flex-end;gap:8px;padding:6px;border:1px solid #dce8da;border-radius:14px;background:#fff}.chat-file-input{display:none}.chat-input-row:focus-within{border-color:#4b9b4b;box-shadow:0 0 0 3px #0768071a}.chat-input-row textarea{width:100%;min-height:38px;max-height:120px;resize:vertical;padding:9px 2px;border:0;outline:0;background:transparent;color:#203020;font-family:inherit;font-size:13px;line-height:1.5}.chat-input-row textarea::placeholder{color:#889788}.chat-attach-button,.chat-send-button{width:36px;height:36px;border-radius:10px;font-size:19px}.chat-attach-button{background:transparent;color:#718171}.chat-attach-button:hover{background:#edf4ec;color:#076807}.chat-send-button{background:#076807;color:#fff}.chat-send-button:hover:not(:disabled){background:#055305}.chat-send-button:disabled{cursor:not-allowed;opacity:.42}.chat-stop-button{background:#a53d32}.chat-stop-button:hover{background:#842d25}.chat-composer-hint{margin:-4px 0 0;color:#889788;font-size:10px;font-weight:400;text-align:center}.chat-send-button:focus-visible,.chat-attach-button:focus-visible,.chat-attachment button:focus-visible,.chat-mode-row select:focus-visible{outline:2px solid #4b9b4b;outline-offset:2px}.chat-model-choice select:focus-visible{outline:2px solid #4b9b4b;outline-offset:2px}@media(max-width:600px){.chat-header{min-height:calc(74px + env(safe-area-inset-top));padding-top:max(14px,env(safe-area-inset-top));padding-right:60px}.chat-messages{padding:16px 12px}.chat-composer{padding:10px 10px max(10px,env(safe-area-inset-bottom))}}@media(prefers-reduced-motion:reduce){.chat-dots i{animation:none}}
