/* Universal Tool Studio — P1 professional text suite */
.ucs-text-suite-workspace{align-items:start}
.ucs-text-card{min-width:0}
.ucs-text-area-field textarea{min-height:250px;resize:vertical}
.ucs-text-output{min-height:230px;max-height:620px}
.ucs-text-result-status{margin:-4px 0 10px;color:#64748b;font-size:12px;font-weight:700}
.ucs-text-options{display:grid;gap:10px}
.ucs-text-meter{height:10px;overflow:hidden;border-radius:999px;background:#e2e8f0}
.ucs-text-meter>span{display:block;height:100%;background:var(--ucs-brand,#4f46e5);transition:width .15s ease}
.ucs-text-meter.is-over>span{background:#e11d48}
.ucs-text-table-wrap{max-height:520px;overflow:auto;border:1px solid var(--ucs-line,#e2e8f0);border-radius:12px;background:#fff}
.ucs-text-table{width:100%;border-collapse:collapse;font-size:12px}
.ucs-text-table th,.ucs-text-table td{padding:9px 10px;border-bottom:1px solid #eef2f7;text-align:left;vertical-align:top}
.ucs-text-table th{position:sticky;top:0;z-index:1;background:#f8fafc;color:#334155;font-weight:850}
.ucs-text-table td{color:#475569;overflow-wrap:anywhere}
.ucs-text-table tr:last-child td{border-bottom:0}
.ucs-text-highlight-preview{min-height:150px;max-height:340px;overflow:auto;padding:14px;border:1px solid #dbe4f0;border-radius:12px;background:#fff;color:#334155;white-space:pre-wrap;overflow-wrap:anywhere;font:13px/1.65 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.ucs-text-highlight-preview mark{padding:1px 2px;border-radius:3px;background:#fde68a;color:#78350f}
.ucs-text-parts{display:grid;gap:8px;max-height:520px;overflow:auto}
.ucs-text-diff{overflow:auto;border:1px solid #e2e8f0;border-radius:12px;background:#fff;font:12px/1.55 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.ucs-text-diff-row{display:grid;grid-template-columns:28px minmax(0,1fr);border-bottom:1px solid #f1f5f9}
.ucs-text-diff-row:last-child{border-bottom:0}
.ucs-text-diff-row code{display:block;padding:7px 10px;white-space:pre-wrap;overflow-wrap:anywhere;color:#334155}
.ucs-text-diff-mark{display:flex;align-items:center;justify-content:center;padding:7px 4px;border-right:1px solid #eef2f7;color:#64748b;font-weight:900}
.ucs-text-diff-row.is-add{background:#f0fdf4}.ucs-text-diff-row.is-add .ucs-text-diff-mark{color:#166534}
.ucs-text-diff-row.is-remove{background:#fff1f2}.ucs-text-diff-row.is-remove .ucs-text-diff-mark{color:#be123c}
.ucs-text-stats>span{min-height:34px}
@media (min-width:900px){.ucs-text-suite-workspace{grid-template-columns:minmax(0,1.08fr) minmax(340px,.92fr)}.ucs-text-suite-workspace>.ucs-pro-card:nth-child(2){position:sticky;top:24px}}
@media (max-width:760px){.ucs-text-table{min-width:560px}.ucs-text-area-field textarea{min-height:210px}}
.ucs-text-mini-actions{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}
.ucs-text-mini-actions .ucs-button{min-height:32px;padding:5px 8px;font-size:10px}
