.document-preview{white-space:pre-wrap;overflow-wrap:anywhere;max-height:450px;overflow:auto;background:#f5f8fa;border:1px solid #d9e5ec;border-radius:12px;padding:20px;font:14px/1.8 ui-monospace,monospace}.lbl input{display:block;width:100%;margin-top:8px;padding:14px;border:1px solid #ccdbe5;border-radius:9px;font:inherit}.picker{margin:20px 0}.source-card{padding:13px 16px;margin:12px 0;border:1px solid #dbe6ea;border-radius:11px;background:#f7fafb}.source-card summary{font-weight:700;cursor:pointer}.source-card pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.7}.task-grid .task{min-height:128px}@media print{#sources{break-inside:auto}}

/* V3.6: Markdown documents and AI source excerpts are displayed as readable documents. */
.document-preview{white-space:normal;font-family:inherit;font-size:15px;line-height:1.85;color:#243c50;background:#f7fafb;}
.document-preview h1,.source-content h1{font-size:23px;line-height:1.4;margin:0 0 16px;color:#173448;}
.document-preview h2,.source-content h2{font-size:19px;line-height:1.5;margin:20px 0 8px;color:#183a4e;}
.document-preview h3,.source-content h3{font-size:17px;line-height:1.5;margin:16px 0 8px;}
.document-preview p,.source-content p{margin:9px 0 14px;}
.document-preview ul,.document-preview ol,.source-content ul,.source-content ol{padding-left:28px;}
.document-preview .md-table-wrap,.source-content .md-table-wrap{max-width:100%;overflow-x:auto;}
.source-content{padding:14px 5px 3px;line-height:1.85;overflow-wrap:anywhere;font-size:15px;color:#263d50;}
.source-content h1:first-child,.source-content h2:first-child,.source-content h3:first-child,.source-content p:first-child{margin-top:0;}
@media print{.document-preview{max-height:none;overflow:visible;}}
