/* Reuse the research workspace cards, type scale and responsive grid. */
#chat-connect{padding:0;max-width:560px}
#chat-key{font-size:12px}
.chat-workflow-label{font-size:10px;font-weight:600;letter-spacing:1.4px;color:var(--teal);margin:0 0 10px}
.chat-workflow-help{font-size:12px;color:var(--muted);line-height:1.8;margin:0}
#chat-compose .workflow-block{padding-bottom:20px;border-bottom:1px solid var(--border)}
#chat-compose .note-block{padding-top:20px}
.chat-example-heading{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.chat-example-heading h3{font-size:11px;font-weight:600;margin:0;color:#435964}
.chat-example-help{font-size:11px;color:var(--muted);line-height:1.7;margin:8px 0 10px}
#chat-example{border:1px solid #d7e0e5;border-radius:5px;background:#fff;padding:8px 12px}
#chat-message{min-height:230px;resize:vertical}
.pdf-card{margin-bottom:16px}
#chat-pdf{display:block;width:100%;margin:10px 0;font-size:12px}
#chat-pdf-extract,#chat-pdf-remove{border:1px solid #d7e0e5;border-radius:5px;padding:8px 12px;background:#fff}
#chat-pdf-status{display:block;margin:10px 0;line-height:1.7}
#chat-pdf-text{width:100%;min-height:140px;margin:10px 0;resize:vertical}
#chat-compose .input-footer{flex-wrap:wrap;gap:6px}
#chat-compose .limits-note{line-height:1.7;color:var(--muted)}
.chat-result-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 24px;border-bottom:1px solid #edf0f2;flex-wrap:wrap}
#chat-limits{font-size:10px;color:var(--muted)}
#chat-sync{font-size:11px;padding:6px 0}
#chat-status{margin:0;padding:14px 24px;font-size:11px;line-height:1.7;color:#37695f;border-bottom:1px solid #edf0f2;overflow-wrap:anywhere}
#chat-messages{padding:4px 24px 20px;max-height:680px;overflow:auto}
#chat-messages:empty{display:none}
.chat-results:has(.chat-message) .chat-empty-state{display:none}
.chat-message{margin:16px 0;padding:16px;border:1px solid var(--border);border-radius:8px;background:#f8fafb}
.chat-message.user{margin-left:20px;background:#f2f6f7}
.chat-message.assistant{margin-right:20px;border-color:#d7e7e2;background:#edf5f3}
.chat-message h3{font-size:9px;font-weight:600;letter-spacing:1.2px;color:#5b7a71;margin:0 0 10px}
.chat-message p{font-size:12px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;margin:0;color:#25434e}
#chat-shield{text-align:center;padding:65px 24px;color:var(--muted)}
#chat-shield p{font-size:12px;line-height:1.8;margin:12px 0 22px}
@media(max-width:600px){#chat-connect{max-width:none}.chat-message.user,.chat-message.assistant{margin-left:0;margin-right:0}#chat-messages{padding:4px 17px 17px}.chat-result-toolbar,#chat-status{padding-left:17px;padding-right:17px}#chat-compose{padding:17px}}

.chat-review-section{padding-top:14px;margin-top:14px;border-top:1px solid #d7e2e0}
.chat-review-section h4{font-size:11px;margin:0 0 8px;color:#244f47}
.chat-review-section p{font-size:11px;line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere}
.chat-privacy-details{margin-top:16px}
.chat-privacy-details summary{cursor:pointer;font-size:12px;font-weight:600;color:var(--teal);padding:8px 0}
.chat-privacy-details summary:focus-visible{outline:2px solid var(--teal);outline-offset:3px}
.chat-privacy-details table{width:100%;table-layout:fixed;border-collapse:collapse;margin-top:12px;font-size:10px}
.chat-privacy-details caption{text-align:left;color:var(--muted);padding-bottom:6px}
.chat-privacy-details th,.chat-privacy-details td{padding:8px 5px;border-bottom:1px solid #d7e2e0;text-align:left;vertical-align:top;overflow-wrap:anywhere;white-space:pre-wrap}
#chat-blocked:not(:empty){margin:16px 24px;padding:16px;border:1px solid #dfc4ac;border-radius:8px;background:#fff8ef}
#chat-blocked>.chat-review-section:first-child{border-top:0;margin-top:0;padding-top:0}
@media(max-width:600px){#chat-blocked:not(:empty){margin:14px 17px}}
