.texts-page{display:grid;grid-template-columns:230px minmax(0,1fr) 220px;gap:20px;padding:20px;height:calc(100vh - 100px);overflow:auto;background:#f1f5f9}
.texts-library,.texts-fields{background:white;border:1px solid #e2e8f0;border-radius:12px;padding:16px;overflow:auto}
.texts-heading,.texts-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}
.texts-heading h2{font-size: var(--ef-font-panel-title);margin:0}.texts-fields h3{font-size: var(--ef-font-panel-title)}.texts-actions label{flex:1;font-weight: var(--ef-font-weight-semibold);max-width:520px}
.texts-workspace{min-width:0}.text-library-item,.text-field-item{display:block;width:100%;text-align:left;border:0;border-radius:7px;background:transparent;padding:10px;margin-top:4px;color:#334155}
.text-library-item:hover,.text-field-item:hover{background:#f1f5f9}.text-library-item.selected{background:#f3e8ff;color:#7e22ce}.texts-fields summary{font-weight: var(--ef-font-weight-semibold);padding:9px 0;cursor:pointer}
@media(max-width:1100px){.texts-page{grid-template-columns:180px minmax(0,1fr)}.texts-fields{grid-column:1/-1}}
.text-blocks-page { grid-template-columns:minmax(230px,1fr) minmax(420px,2.6fr) minmax(250px,1.1fr); gap:14px; padding:16px; }
.text-blocks-page .texts-fields { grid-column:auto; }
.text-blocks-page .texts-library,.text-blocks-page .texts-fields { padding:13px; }
.text-blocks-page .text-library-item { overflow-wrap:anywhere; }
.text-blocks-page .text-folder-row { display:flex; align-items:center; min-width:0; }
.text-blocks-page .text-folder-toggle { flex:0 0 24px; border:0; background:transparent; color:#64748b; padding:5px; }
.text-blocks-page .text-folder-row .text-library-item { min-width:0; }
.text-blocks-page .text-field-item { padding:5px 9px; margin-top:3px; border:1px solid #e2e8f0; background:#f8fafc; font-size: var(--ef-font-compact); line-height:1.25; overflow-wrap:anywhere; }
.text-blocks-page .text-field-item[data-placeholder-category="customer"] { color:#1e40af; background:#dbeafe; border-color:#93c5fd; }
.text-blocks-page .text-field-item[data-placeholder-category="company"] { color:#115e59; background:#ccfbf1; border-color:#5eead4; }
.text-blocks-page .text-field-item[data-placeholder-category="positions"] { color:#6d28d9; background:#ede9fe; border-color:#a78bfa; }
.text-blocks-page .text-field-item[data-placeholder-category="totals"] { color:#9a3412; background:#fff7ed; border-color:#fdba74; }
.text-blocks-page .text-field-item:hover { filter:brightness(.96); }
.text-blocks-page .texts-fields summary { padding:7px 0; font-size: var(--ef-font-body); }
@media(max-width:1000px) { .text-blocks-page { grid-template-columns:240px minmax(0,1fr); } .text-blocks-page .texts-fields { grid-column:1/-1; max-height:300px; } }
@media(max-width:650px) { .text-blocks-page { grid-template-columns:minmax(0,1fr); } .text-blocks-page .texts-library { max-height:220px; } }
