.patient-chat{background:#fff;border:1px solid #d9e7e4;border-radius:24px;flex-direction:column;min-height:420px;margin-top:22px;display:flex;overflow:clip}.chat-header{background:#fbfdfd;border-bottom:1px solid #e4eeec;justify-content:space-between;align-items:center;gap:16px;padding:17px 22px;display:flex}.chat-header h2{margin:0;font-size:18px}.chat-header p,.chat-header small{color:#617773;margin:3px 0 0;font-size:12px}.chat-header>small{text-align:right}.chat-thread{flex-direction:column;gap:20px;min-height:320px;padding:24px;display:flex}.chat-turn{flex-direction:column;gap:10px;display:flex}.bubble{overflow-wrap:anywhere;border-radius:20px;max-width:min(78%,680px);padding:12px 16px;line-height:1.55}.bubble p{margin:0}.user-bubble{color:#fff;background:#0b766e;border-bottom-right-radius:6px;align-self:flex-end}.assistant-bubble{color:#173431;background:#edf8f6;border-bottom-left-radius:6px;align-self:flex-start}.assistant-bubble>ul{margin:9px 0 0;padding-left:19px}.assistant-bubble>ul>li{margin:8px 0;padding-left:2px}.assistant-bubble details{margin-top:7px}.assistant-bubble summary{cursor:pointer;color:#0b766e;align-items:center;gap:4px;font-size:12px;font-weight:750;list-style:none;display:flex}.assistant-bubble summary::-webkit-details-marker{display:none}.assistant-bubble summary svg{width:14px}.source-sheet{background:#fff;border:1px solid #d8e6e3;border-radius:13px;min-width:min(420px,72vw);margin-top:9px;padding:12px}.source-sheet article small{color:#617773;font-size:11px;display:block}.source-sheet blockquote{border-left:2px solid #9bc7c0;margin:7px 0 9px;padding-left:10px;font-size:13px;line-height:1.45}.source-sheet hr{border:0;border-top:1px solid #e4eeec;margin:12px 0}.source-sheet button,.retry{color:#0b766e;background:#eef8f6;border:0;border-radius:9px;padding:7px 9px;font-size:12px;font-weight:800}.more-timeline{border-top:1px solid #d8e6e3;padding-top:8px}.more-timeline p{color:#617773;margin-top:6px;font-size:12px}.checking{color:#56716c;font-size:13px}.typing{align-items:center;gap:5px;height:12px;margin-top:9px;display:flex}.typing i{background:#0b766e;border-radius:50%;width:7px;height:7px;animation:1.1s ease-in-out infinite chatDot}.typing i:nth-child(2){animation-delay:.14s}.typing i:nth-child(3){animation-delay:.28s}.composer{-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#fffffff5;border-top:1px solid #e2ecea;align-items:flex-end;gap:8px;padding:12px;display:flex;position:sticky;bottom:0}.composer textarea{resize:none;border:1px solid #caddd9;border-radius:16px;flex:1;min-height:48px;max-height:130px;padding:13px 14px;line-height:1.4}.composer button{color:#fff;background:#0b766e;border:0;border-radius:15px;width:48px;height:48px;transition:transform .1s,background .1s}.composer button:active{background:#159487;transform:scale(.91)}.composer button:disabled{opacity:.42;cursor:default}.composer svg{width:20px}.conversation-history{background:#fff;border:1px solid #d9e7e4;border-radius:18px;margin-top:18px;padding:18px}.conversation-history>summary{cursor:pointer;align-items:center;gap:10px;display:flex}.conversation-history>summary span{background:#edf8f6;border-radius:999px;margin-left:auto;padding:3px 9px}@keyframes chatDot{0%,60%,to{opacity:.25;transform:translateY(0)}30%{opacity:1;transform:translateY(-4px)}}@media (max-width:700px){.patient-chat{border-radius:18px;min-height:calc(100dvh - 210px)}.chat-header{padding:14px 16px}.chat-header>small{display:none}.chat-thread{padding:16px}.bubble{max-width:88%}.source-sheet{min-width:min(300px,74vw)}.composer{padding-bottom:max(12px,env(safe-area-inset-bottom))}}
