/**handles:wprc-chat**/
.wprc-chat{--bg:#0d1117;--surface:#161b22;--surface2:#21262d;--border:#30363d;--text:#e6edf3;--muted:#8b949e;--accent:#a78bfa;--accent2:#60a5fa;--green:#3fb950;--red:#f85149;--user-bubble:linear-gradient(135deg, #7c3aed, #2563eb);--bot-bubble:#1c2128;--radius:18px;display:flex;flex-direction:column;background:var(--bg);color:var(--text);border-radius:16px;border:1px solid var(--border);overflow:hidden;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;font-size:15px;line-height:1.5;position:relative;min-height:400px}.wprc-chat.light{--bg:#ffffff;--surface:#f6f8fa;--surface2:#eaecef;--border:#d0d7de;--text:#1f2328;--muted:#656d76;--bot-bubble:#f6f8fa;--user-bubble:linear-gradient(135deg, #7c3aed, #2563eb)}.wprc-header{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1rem;border-bottom:1px solid var(--border);background:var(--surface);flex-shrink:0}.wprc-logo{display:flex;align-items:center;gap:.6rem}.wprc-logo-icon{width:34px;height:34px;border-radius:10px;background:linear-gradient(135deg,#7c3aed,#2563eb);display:flex;align-items:center;justify-content:center;font-size:1rem;flex-shrink:0}.wprc-logo strong{display:block;font-size:.95rem}.wprc-logo small{display:block;font-size:.72rem;color:var(--muted)}.wprc-header-right{display:flex;align-items:center;gap:.6rem}.wprc-status-dot{width:8px;height:8px;border-radius:50%;background:var(--green);box-shadow:0 0 6px var(--green);animation:wprc-pulse 2s infinite}@keyframes wprc-pulse{0%,100%{opacity:1}50%{opacity:.4}}.wprc-btn-reset{padding:.3rem .7rem;border-radius:8px;border:1px solid var(--border);background:0 0;color:var(--muted);font-size:.75rem;cursor:pointer;transition:all .2s}.wprc-btn-reset:hover{border-color:var(--accent);color:var(--accent)}.wprc-terminated{background:linear-gradient(135deg,#2d0a0a,#1a0000);border-bottom:1px solid #f8514960;padding:.85rem 1rem;display:flex;align-items:flex-start;gap:.75rem;font-size:.85rem;flex-shrink:0}.wprc-terminated-icon{font-size:1.4rem;flex-shrink:0}.wprc-terminated strong{color:var(--red);display:block}.wprc-terminated p{color:var(--muted);margin:.25rem 0 0}.wprc-btn-reset-inline{background:0 0;border:1px solid var(--red);color:var(--red);padding:.2rem .6rem;border-radius:6px;cursor:pointer;font-size:.78rem;margin-top:.4rem}.wprc-btn-reset-inline:hover{background:var(--red);color:#fff}.wprc-messages{flex:1;overflow-y:auto;padding:1.25rem;display:flex;flex-direction:column;gap:1rem;scroll-behavior:smooth}.wprc-messages::-webkit-scrollbar{width:4px}.wprc-messages::-webkit-scrollbar-track{background:0 0}.wprc-messages::-webkit-scrollbar-thumb{background:var(--border);border-radius:4px}.wprc-empty{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:var(--muted);gap:.5rem;padding:2rem}.wprc-empty-icon{font-size:2.5rem;opacity:.4}.wprc-empty p{font-size:.88rem}.wprc-msg{display:flex;gap:.65rem;animation:wprc-fadeup .25s ease}@keyframes wprc-fadeup{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}.wprc-msg.user{flex-direction:row-reverse}.wprc-avatar{width:32px;height:32px;border-radius:10px;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:.9rem}.wprc-msg.user .wprc-avatar{background:var(--user-bubble)}.wprc-msg.bot .wprc-avatar{background:var(--surface2);border:1px solid var(--border)}.wprc-bubble{max-width:78%;padding:.7rem 1rem;border-radius:var(--radius);font-size:.9rem;word-break:break-word;line-height:1.6}.wprc-msg.user .wprc-bubble{background:var(--user-bubble);color:#fff;border-bottom-right-radius:4px}.wprc-msg.bot .wprc-bubble{background:var(--bot-bubble);border:1px solid var(--border);border-bottom-left-radius:4px;color:var(--text)}.wprc-bubble p{margin:.3rem 0}.wprc-bubble p:first-child{margin-top:0}.wprc-bubble p:last-child{margin-bottom:0}.wprc-badges{display:flex;gap:.35rem;flex-wrap:wrap;margin-top:.45rem}.wprc-badge{font-size:.67rem;padding:.12rem .5rem;border-radius:6px;font-weight:600}.wprc-badge.cached{background:#1e2d1e;color:var(--green);border:1px solid #2d4a2d}.wprc-badge.live{background:#1a1f2e;color:var(--accent2);border:1px solid #1e3a5f}.wprc-sources-toggle{font-size:.72rem;color:var(--muted);cursor:pointer;margin-top:.5rem;background:0 0;border:none;font-family:inherit;display:inline-flex;align-items:center;gap:.3rem;padding:0}.wprc-sources-toggle:hover{color:var(--accent)}.wprc-sources-list{display:none;margin-top:.45rem;border-left:2px solid var(--border);padding-left:.75rem}.wprc-sources-list.open{display:block}.wprc-source-item{font-size:.75rem;color:var(--muted);padding:.25rem 0;border-bottom:1px solid var(--border)}.wprc-source-item:last-child{border-bottom:none}.wprc-source-item a{color:var(--accent2);text-decoration:none}.wprc-source-item a:hover{text-decoration:underline}.wprc-source-score{color:var(--accent);font-weight:700;margin-right:.3rem}.wprc-typing .wprc-bubble{padding:.65rem .9rem}.wprc-dots{display:flex;gap:.35rem;align-items:center;height:18px}.wprc-dot{width:7px;height:7px;border-radius:50%;background:var(--muted);animation:wprc-bounce .9s infinite}.wprc-dot:nth-child(2){animation-delay:.15s}.wprc-dot:nth-child(3){animation-delay:.3s}@keyframes wprc-bounce{0%,100%,60%{transform:translateY(0)}30%{transform:translateY(-6px)}}.wprc-input-wrap{flex-shrink:0;padding:.75rem;border-top:1px solid var(--border);background:var(--surface)}.wprc-input-row{display:flex;gap:.5rem;align-items:flex-end;background:var(--bg);border:1px solid var(--border);border-radius:14px;padding:.5rem .5rem .5rem .85rem;transition:border-color .2s}.wprc-input-row:focus-within{border-color:var(--accent)}.wprc-input{flex:1;background:0 0;border:none;outline:0;color:#fff;font-size:.92rem;font-family:inherit;resize:none;max-height:200px;min-height:24px;line-height:1.5}.wprc-input::placeholder{color:var(--muted)}.wprc-send-btn{width:36px;height:36px;border-radius:9px;border:none;background:linear-gradient(135deg,#7c3aed,#2563eb);color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0;font-size:1rem;transition:opacity .2s}.wprc-send-btn:hover{opacity:.88}.wprc-send-btn:disabled{opacity:.35;cursor:not-allowed}.wprc-hint{font-size:.7rem;color:var(--muted);text-align:center;margin-top:.4rem}.wprc-hint kbd{background:var(--surface2);border:1px solid var(--border);padding:.05rem .35rem;border-radius:4px;font-size:.67rem}.wprc-locked .wprc-input-row{opacity:.4;pointer-events:none;filter:saturate(0)}