.doc-search{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0}.doc-search input{min-width:200px;flex:1}.doc-search select{width:auto}.doc-search .form-error:empty{display:none}.doc-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px;margin:22px 0}.doc-card{display:flex;flex-direction:column;text-align:left;align-items:flex-start;gap:10px;padding:22px;border:1px solid #dce5ef;border-radius:14px;background:white;min-width:0;color:#172b43}.doc-card strong{font-size:18px;line-height:1.5;overflow-wrap:anywhere}.doc-card-meta,.doc-card small{font-size:13px;color:#60738a}.doc-card p{color:#52657a;line-height:1.6;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.doc-card:hover{border-color:#527cd2;background:#f9fbff}.doc-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.85}.doc-files{margin:20px 0;display:grid;gap:8px}.doc-files a{overflow-wrap:anywhere}.doc-paper{background:#fff;border:1px solid #e2e8f0;padding:36px;color:#172b43}.doc-paper header{display:flex;align-items:center;justify-content:space-between;gap:16px}.doc-paper header img{width:220px;max-width:65%;height:82px;object-fit:contain}.doc-paper header>strong{font-size:27px;white-space:nowrap}.doc-address{font-size:12px;color:#64748b;padding-bottom:14px;border-bottom:2px solid #17314d}.doc-paper dl{display:grid;grid-template-columns:75px 1fr;gap:10px;margin:24px 0}.doc-paper dd{margin:0;overflow-wrap:anywhere}.doc-paper h3{font-size:20px;padding:15px 0;border-bottom:1px solid #dce5ef;overflow-wrap:anywhere}.doc-paper footer{text-align:center;margin-top:35px}.doc-paper footer strong{font-size:21px}.doc-paper footer p{font-size:13px;color:#64748b}.doc-attachments{margin-top:25px}.doc-actions{flex-wrap:wrap}.doc-empty{padding:30px 0}#doc-editor textarea{line-height:1.8;min-height:100px}#doc-editor .field{margin-bottom:16px}@media(max-width:600px){.doc-search{width:100%}.doc-search input{min-width:0;width:100%}.doc-cards{grid-template-columns:1fr}.doc-card{padding:18px}.doc-paper{padding:16px}.doc-paper header img{width:175px}.doc-paper header>strong{font-size:22px}.doc-paper dl{grid-template-columns:65px 1fr;font-size:14px}.doc-actions>*{flex:1;text-align:center}.doc-paper footer strong{font-size:18px}}
/* r105: aligned company letter and compact safe text editor */
.doc-paper{color:#111;max-width:800px;margin:0 auto;padding:38px 32px;box-sizing:border-box}.doc-paper header{justify-content:center}.doc-paper header img{width:230px;max-width:90%;height:90px}.doc-address{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;color:#222;border-bottom:3px solid #111;padding:8px 0 14px}.doc-paper dl{grid-template-columns:76px minmax(0,1fr);gap:7px 12px;margin:0;padding:16px 0;border-bottom:3px solid #111;font-size:14px;font-weight:600}.doc-paper dt{position:relative}.doc-paper dt:after{content:':';position:absolute;right:0}.doc-paper dd{line-height:1.6}.doc-paper footer{text-align:right;margin-top:48px}.doc-paper footer strong{font-size:17px}.doc-paper footer p{color:#111;font-weight:600}.doc-greeting{margin:22px 0;line-height:1.85}.doc-letter-body{line-height:1.85;overflow-wrap:anywhere}.doc-letter-body p{margin:0 0 8px;white-space:pre-wrap}.doc-toolbar{display:flex;flex-wrap:wrap;gap:6px;padding:10px;background:#f3f6fa;border:1px solid #d4deea;border-radius:8px 8px 0 0}.doc-toolbar button{padding:8px 12px}.doc-fixed-greeting{background:#f5f7fa;padding:12px;margin:8px 0;font-size:14px;line-height:1.6}.doc-fixed-greeting small{display:block;color:#66778a;font-size:12px}#letter-rich{border:1px solid #d4deea;border-top:0;border-radius:0 0 8px 8px;min-height:260px;max-height:500px;overflow:auto;padding:16px;line-height:1.8;font-size:15px;white-space:pre-wrap;overflow-wrap:anywhere;outline-offset:2px}#letter-rich p{margin:0 0 8px}#doc-live-preview{margin-top:24px}#doc-editor textarea[hidden]{display:none}@media(max-width:600px){.doc-paper{padding:20px 14px}.doc-paper dl{grid-template-columns:64px minmax(0,1fr);font-size:13px}.doc-address{font-size:11px}.doc-paper footer strong{font-size:14px}.doc-toolbar button{padding:8px;font-size:13px}#letter-rich{min-height:220px}.doc-greeting,.doc-letter-body{font-size:14px}.doc-paper header img{height:76px}}
.doc-image-page{margin-top:24px}.doc-image-page img{display:block;max-width:100%;max-height:700px;object-fit:contain;margin:20px auto}.doc-image-page h4{overflow-wrap:anywhere}.doc-letter-existing,#doc-letter-pending{display:grid;gap:8px;margin:8px 0}.doc-letter-existing a,#doc-letter-pending span{overflow-wrap:anywhere;min-width:0;flex:1}
.doc-align-left{text-align:left}.doc-align-center{text-align:center}.doc-align-right{text-align:right}
