/* "Text PDF" panel over the page (JS/TextPdf.js). Same frame as the PDF viewer (CS/PdfViewer.css). */
html.qq-text-open { overflow: hidden; }
.qq-text { align-items: flex-start; background: rgba(10, 20, 36, .62); box-sizing: border-box; display: flex; height: 100%; justify-content: center; left: 0; overflow: auto; padding: 40px 16px; position: fixed; top: 0; width: 100%; z-index: 2000; }
.qq-text-panel { background: #fff; border-radius: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); color: #13233a; max-width: 560px; width: 100%; }
.qq-text-head { align-items: center; border-bottom: 1px solid #d9e1ec; display: flex; justify-content: space-between; padding: 12px 16px; }
.qq-text-title { font-size: 1.15rem; margin: 0; }
.qq-text-close { background: none; border: 0; border-radius: 8px; color: #5b6b80; cursor: pointer; font-size: 1.7rem; line-height: 1; padding: 2px 10px 6px; }
.qq-text-close:hover { background: #eef2f7; color: #13233a; }
.qq-text-body { padding: 14px 18px 18px; }
.qq-text-file { margin: 0 0 8px; }
.qq-text-file a { color: #0a4fb8; font-weight: 700; }
.qq-text-to { margin: 0 0 12px; }
.qq-text-label { display: block; font-size: .85rem; font-weight: 700; margin-bottom: 4px; }
.qq-text-msg { border: 1px solid #7f95b5; border-radius: 8px; box-sizing: border-box; color: #13233a; font: inherit; font-size: .95rem; padding: 8px 10px; resize: vertical; width: 100%; }
.qq-text-msg:focus-visible { outline: 3px solid rgba(10, 91, 214, .35); outline-offset: 1px; }
.qq-text-send { margin-top: 14px; }
.qq-text-scan { align-items: center; background: #e8f0fb; border: 1px solid #b9cbe4; border-radius: 10px; display: flex; gap: 16px; margin-bottom: 12px; padding: 12px; }
.qq-text-qr { background: #fff; flex: 0 0 auto; line-height: 0; padding: 8px; }
.qq-text-qr img, .qq-text-qr canvas { height: 160px; width: 160px; }
.qq-text-how { display: flex; flex-direction: column; gap: 6px; line-height: 1.4; }
.qq-text-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.qq-text-btn { background: #fff; border: 1px solid #c3cfdf; border-radius: 8px; color: #13233a; cursor: pointer; font: inherit; font-size: .92rem; font-weight: 600; padding: 8px 14px; text-decoration: none; white-space: nowrap; }
.qq-text-btn:hover { border-color: #0a5bd6; color: #0a4fb8; }
.qq-text-primary { background: #0a5bd6; border-color: #0a5bd6; color: #fff; flex: 1 1 100%; font-size: 1.05rem; padding: 12px 14px; text-align: center; }
.qq-text-primary:hover { background: #0849ad; color: #fff; }
.qq-text-recent { border-top: 1px solid #d9e1ec; margin-top: 16px; padding-top: 10px; }
.qq-text-recent h3 { font-size: .95rem; margin: 0 0 6px; }
.qq-text-recent ul { list-style: none; margin: 0; padding: 0; }
.qq-text-recent li { border-bottom: 1px solid #eef2f7; display: flex; flex-wrap: wrap; font-size: .88rem; gap: 2px 10px; padding: 5px 0; }
.qq-text-rname { flex: 1 1 200px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qq-text-rsent { color: #5b6b80; }
.qq-text-ropen { color: #5b6b80; }
.qq-text-ropen.yes { color: #147a3b; font-weight: 700; }
.qq-text-note { color: #5b6b80; font-size: .8rem; margin: 6px 0 0; }
html.dark .qq-text-panel { background: #16223a; color: #eef3fb; }
html.dark .qq-text-head, html.dark .qq-text-recent { border-color: #2b3d5a; }
html.dark .qq-text-close { color: #c3cfe0; }
html.dark .qq-text-close:hover { background: #22324f; color: #fff; }
html.dark .qq-text-file a { color: #8fb8ff; }
html.dark .qq-text-msg { background: #0e1828; border-color: #3a4f70; color: #eef3fb; }
html.dark .qq-text-scan { background: #1b2b47; border-color: #34507c; }
html.dark .qq-text-btn:not(.qq-text-primary) { background: transparent; border-color: #3a4f70; color: #eef3fb; }
html.dark .qq-text-recent li { border-color: #22324f; }
html.dark .qq-text-rsent, html.dark .qq-text-ropen, html.dark .qq-text-note { color: #9fb0c8; }
html.dark .qq-text-ropen.yes { color: #5fd38a; }
@media (max-width: 640px) {
    .qq-text { padding: 0; }
    .qq-text-panel { border-radius: 0; min-height: 100%; }
    .qq-text-scan { flex-direction: column; text-align: center; }
}
