.text-document-form .document-editor-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,.82fr);gap:24px;align-items:start}.document-editor-controls{min-width:0}.text-document-form #document-texts{display:grid;gap:16px}.text-document-form #document-texts.manual-columns{grid-template-columns:repeat(2,minmax(0,1fr))}.text-document-form #document-texts label{min-width:0}.text-document-form textarea{min-height:260px;line-height:1.6;white-space:pre-wrap;resize:vertical}.text-document-form #document-counter{font-weight:650;color:#36536c}.text-document-form #document-counter.document-limit{color:#b52232}.text-document-form .fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.text-document-form .fields label{min-width:0}.text-document-form .fields select,.text-document-form .fields input{width:100%;min-width:0}.text-document-form input[type=color]{height:43px;padding:5px}.text-document-preview{position:sticky;top:88px;min-width:0;background:#f3f5f6;border:1px solid #dce2e7;border-radius:10px;padding:14px}.document-preview-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#29444f}.document-preview-heading span{font-size:11px;background:#e2e8ec;padding:4px 7px;border-radius:4px}.document-page-controls{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}.document-page-controls span{font-size:11px;white-space:nowrap}.document-canvas-wrap{padding:10px;background:#e5eaee;min-height:240px;max-height:70vh;overflow:auto}.document-canvas-wrap canvas{display:block;width:100%;height:auto;background:#fff;box-shadow:0 2px 12px #15283b1a}.document-canvas-wrap canvas[hidden]{display:none}.document-updating{opacity:.45}.document-page-controls button{min-height:40px;padding:8px;font-size:11px}.text-document-preview .hint{font-size:12px;line-height:1.5;min-height:36px}@media(max-width:1050px){.text-document-form .document-editor-layout{grid-template-columns:1fr}.text-document-preview{position:static}.document-canvas-wrap canvas{max-width:760px;margin:auto}.document-canvas-wrap{max-height:650px}}@media(max-width:650px){.text-document-form .fields{grid-template-columns:repeat(2,minmax(0,1fr))}.text-document-form #document-texts.manual-columns{grid-template-columns:1fr}.text-document-form textarea{min-height:220px}.text-document-preview{padding:10px}.document-canvas-wrap{padding:7px;max-height:600px}}

.text-document-preview>label{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;margin:12px 0}.text-document-preview>label select{width:150px;font-size:12px;padding:8px}
