*,:before,:after{box-sizing:border-box;margin:0;padding:0}body{background:#f0f4f8;height:100vh;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,sans-serif;overflow:hidden}#root{flex-direction:column;height:100vh;display:flex}@keyframes cb-spin{to{transform:rotate(360deg)}}.cb-app{background:linear-gradient(160deg,#e8f4fd 0%,#f5f5f5 100%);flex-direction:column;height:100vh;display:flex}.cb-container{flex-direction:column;height:100%;display:flex;position:relative;overflow:hidden}.cb-welcome{flex-direction:column;flex:1;justify-content:center;align-items:center;gap:12px;padding:24px 20px;display:flex}.cb-welcome-avatar{border:3px solid #ff6b35;border-radius:50%;width:72px;height:72px;overflow:hidden;box-shadow:0 4px 16px #ff6b354d}.cb-welcome-avatar img{object-fit:contain;width:100%;height:100%}.cb-welcome-title{color:#007cc3;font-size:26px;font-weight:700}.cb-welcome-sub{color:#666;margin-bottom:8px;font-size:14px}.cb-history-btn{color:#fff;cursor:pointer;background:#007cc3;border:none;border-radius:10px;align-items:center;gap:8px;padding:9px 18px;font-size:13px;font-weight:500;transition:background .2s;display:inline-flex}.cb-history-btn:hover:not(:disabled){background:#005fa3}.cb-history-btn:disabled{opacity:.55;cursor:not-allowed}.cb-history-bar{flex-shrink:0;justify-content:center;padding:8px 16px 0;display:flex}.cb-history-btn--inline{padding:7px 14px;font-size:12px}.cb-recommended{flex-direction:column;gap:10px;width:100%;max-width:280px;margin-top:8px;display:flex}.cb-recommended-btn{color:#fff;cursor:pointer;text-align:left;background:#007cc3;border:none;border-radius:14px;align-items:center;gap:10px;padding:12px 18px;font-size:14px;font-weight:500;transition:background .2s,transform .15s;display:flex}.cb-recommended-btn:hover{background:#005fa3;transform:translateY(-1px)}.cb-message-list{scroll-behavior:smooth;flex-direction:column;flex:1;gap:4px;padding:12px 16px;display:flex;overflow-y:auto}.cb-message-list::-webkit-scrollbar{width:4px}.cb-message-list::-webkit-scrollbar-thumb{background:#c1d5e6;border-radius:4px}.cb-message-pair{flex-direction:column;gap:8px;margin:8px 0;display:flex}.cb-msg{align-items:flex-end;gap:8px;display:flex}.cb-msg--user{justify-content:flex-end}.cb-msg--bot{justify-content:flex-start}.cb-avatar{border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:34px;height:34px;font-size:13px;font-weight:600;display:flex;overflow:hidden}.cb-avatar--user{color:#fff;background:#007cc3;border:2px solid #007cc3}.cb-avatar--bot{background:#fff;border:2px solid #e2e8f0}.cb-avatar--bot img{object-fit:contain;width:100%;height:100%}.cb-msg-bubble{word-break:break-word;border-radius:18px;max-width:75%;padding:12px 16px;line-height:1.5}.cb-msg-bubble small{opacity:.7;text-align:right;margin-top:6px;font-size:11px;display:block}.cb-msg-bubble--user{color:#fff;background:#007cc3;border-radius:18px 0 18px 18px}.cb-msg-bubble--user small{color:#fffc}.cb-msg-bubble--bot{color:#333;background:#fff;border-radius:0 18px 18px;box-shadow:0 2px 8px #00000014}.cb-msg-bubble--bot small{color:#888}.cb-msg-content{flex-direction:column;gap:8px;max-width:80%;display:flex}.cb-msg-text{font-size:14px}.cb-msg-text a{color:#007cc3;word-break:break-all}.cb-msg-text ul,.cb-msg-text ol{padding-left:18px;line-height:1.5}.cb-msg-text li{margin-bottom:6px}.cb-msg-text h1,.cb-msg-text h2,.cb-msg-text h3{margin-bottom:6px;font-size:16px}.cb-cursor{animation:.7s step-end infinite cb-blink}@keyframes cb-blink{50%{opacity:0}}.cb-typing{align-items:center;gap:4px;padding:4px 0;display:flex}.cb-typing span{background:#007cc3;border-radius:50%;width:8px;height:8px;animation:1.2s ease-in-out infinite cb-bounce}.cb-typing span:nth-child(2){animation-delay:.2s}.cb-typing span:nth-child(3){animation-delay:.4s}@keyframes cb-bounce{0%,80%,to{opacity:.5;transform:scale(.6)}40%{opacity:1;transform:scale(1)}}.cb-quick-replies{flex-wrap:wrap;gap:6px;margin-top:4px;display:flex}.cb-quick-reply-btn{color:#007cc3;cursor:pointer;white-space:break-spaces;background:#fff;border:1.5px solid #007cc3;border-radius:16px;padding:6px 12px;font-size:12px;font-weight:500;transition:background .15s,color .15s}.cb-quick-reply-btn:hover{color:#fff;background:#007cc3}.cb-resources{flex-wrap:wrap;gap:10px;display:flex}.cb-resource-card{cursor:pointer;background:#fff;border-radius:14px;width:calc(50% - 5px);padding:12px 14px;transition:box-shadow .15s,transform .15s;box-shadow:0 2px 8px #0000001a}.cb-resource-card:hover{transform:translateY(-1px);box-shadow:0 4px 14px #00000026}.cb-resource-card-header{justify-content:space-between;align-items:flex-start;gap:6px;margin-bottom:6px;display:flex}.cb-resource-name{-webkit-line-clamp:2;-webkit-box-orient:vertical;flex:1;font-size:13px;font-weight:600;line-height:1.3;display:-webkit-box;overflow:hidden}.cb-resource-icon{flex-shrink:0;font-size:16px}.cb-resource-desc{color:#666;-webkit-line-clamp:3;-webkit-box-orient:vertical;font-size:12px;line-height:1.4;display:-webkit-box;overflow:hidden}.cb-search-bar{background:#007cc3;border-top:1px solid #ffffff26;flex-shrink:0;align-items:center;gap:8px;padding:12px 16px;display:flex}.cb-input{color:#fff;caret-color:#fff;background:0 0;border:none;outline:none;flex:1;padding:8px 0;font-size:14px}.cb-input::placeholder{color:#ffffffbf}.cb-input:disabled{opacity:.6;cursor:not-allowed}.cb-send-btn{color:#fff;cursor:pointer;background:#ffffff1f;border:1px solid #ffffff59;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:38px;height:38px;transition:background .15s;display:flex}.cb-send-btn:hover:not(:disabled){background:#ffffff40}.cb-send-btn:disabled{opacity:.5;cursor:not-allowed}.cb-send-spinner{border:2px solid #fff6;border-top-color:#fff;border-radius:50%;width:16px;height:16px;animation:.7s linear infinite cb-spin}.cb-modal-overlay{z-index:1000;background:#0000008c;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0}.cb-modal{background:#fff;border-radius:16px;flex-direction:column;width:100%;max-width:700px;height:90vh;display:flex;overflow:hidden;box-shadow:0 20px 60px #0000004d}.cb-modal-header{border-bottom:1px solid #e2e8f0;flex-shrink:0;justify-content:space-between;align-items:center;gap:12px;padding:16px 20px;display:flex}.cb-modal-title{color:#333;text-overflow:ellipsis;white-space:nowrap;flex:1;font-size:16px;font-weight:600;overflow:hidden}.cb-modal-actions{flex-shrink:0;align-items:center;gap:8px;display:flex}.cb-modal-link-btn{color:#007cc3;background:#e8f4fd;border-radius:6px;padding:6px 12px;font-size:13px;font-weight:500;text-decoration:none;transition:background .15s}.cb-modal-link-btn:hover{background:#d0e8f8}.cb-modal-close-btn{color:#555;cursor:pointer;background:#f1f5f9;border:none;border-radius:6px;justify-content:center;align-items:center;width:30px;height:30px;font-size:14px;transition:background .15s;display:flex}.cb-modal-close-btn:hover{background:#e2e8f0}.cb-modal-body{flex:1;overflow:hidden}@media (width<=480px){.cb-welcome{gap:8px;padding:16px 12px}.cb-welcome-title{font-size:20px}.cb-recommended{max-width:100%}.cb-msg-bubble{max-width:88%;padding:10px 12px}.cb-resource-card{width:100%}.cb-search-bar{padding:10px 12px}.cb-modal{border-radius:10px;height:95vh}}
