.letterhead-letter-fields{display:grid;grid-template-columns:1fr;gap:10px;padding:0;border:0;background:none}.entry-block-letter>.letterhead-letter-fields>h2{display:none}.entry-block-letter .check{display:flex;align-items:center;gap:8px}#official-letterhead .letterhead-editor{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}#official-letterhead .letterhead-editor>label{display:flex;flex-direction:column;gap:5px;min-width:0}#official-letterhead .letterhead-editor textarea{min-height:90px}#official-letterhead .letterhead-editor input,#official-letterhead .letterhead-editor textarea{max-width:100%}#official-letterhead .letterhead-preview{width:100%;height:800px;border:1px solid #d1ddd5;margin-top:16px}@media(max-width:700px){#official-letterhead .letterhead-editor{grid-template-columns:1fr}#official-letterhead .letterhead-preview{height:650px}}

.letterhead-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
#letterhead-viewer{width:min(100vw,1050px);height:94dvh;max-height:100dvh;padding:0;border:0;border-radius:10px}
#letterhead-viewer::backdrop{background:#0007}
.letterhead-viewer-bar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:12px;background:white;position:sticky;top:0;z-index:2}
#letterhead-viewer .letterhead-preview{width:100%;height:calc(100% - 90px);border:0}
@media(max-width:600px){#letterhead-viewer{width:100vw;height:100dvh;max-width:100vw;margin:0;border-radius:0}.letterhead-viewer-bar button{min-height:44px}.letterhead-viewer-bar{padding-top:max(12px,env(safe-area-inset-top))}}
