.container--text-formatter{max-width:1040px}.formatter-workspace{display:grid;gap:1rem;padding:clamp(1rem,3vw,1.6rem);border:1px solid var(--color-border);border-radius:var(--radius-lg);background:var(--color-surface)}.formatter-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}.formatter-heading h2,.formatter-heading p{margin:0}.formatter-heading p,.formatter-count,.field-help{color:var(--color-text-muted)}.formatter-workspace textarea,.formatter-workspace input[type="text"],.formatter-workspace select{box-sizing:border-box;width:100%;max-width:100%;border:1px solid #6b7f83;border-radius:.65rem;background:#fff;color:var(--color-text);font:inherit}.formatter-workspace textarea{min-width:0;padding:.8rem;line-height:1.6;resize:vertical;overflow-wrap:anywhere}.formatter-workspace input[type="text"],.formatter-workspace select{min-height:44px;padding:.6rem .7rem}.formatter-section-title{margin:.25rem 0 0;font-size:1.15rem}.formatter-tabs{display:flex;gap:.45rem;max-width:100%;padding:.25rem;overflow-x:auto;scrollbar-width:thin;border-radius:.7rem;background:#e3ecec}.formatter-tabs [role="tab"]{flex:0 0 auto;min-height:44px;padding:.6rem .85rem;border:0;border-radius:.55rem;background:transparent;color:#24464a;font:inherit;font-weight:700;cursor:pointer}.formatter-tabs [role="tab"][aria-selected="true"]{background:#146b63;color:#fff}.formatter-tabs [role="tab"]:focus-visible,.formatter-workspace input:focus-visible,.formatter-workspace textarea:focus-visible,.formatter-workspace select:focus-visible,.formatter-workspace button:focus-visible{outline:3px solid #f3a712;outline-offset:2px}.formatter-workspace form{display:grid;gap:1rem}.formatter-workspace [role="tabpanel"]{display:grid;min-width:0;gap:1rem;padding:1rem;border:1px solid var(--color-border);border-radius:.7rem;background:#f4f8f8}.formatter-workspace [hidden]{display:none!important}.formatter-workspace fieldset{display:grid;min-width:0;gap:.7rem;margin:0;padding:.8rem;border:1px solid #afc0c2;border-radius:.6rem}.formatter-workspace legend{padding:0 .35rem;font-weight:700}.formatter-choice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.65rem}.formatter-choice-grid--wide{grid-template-columns:repeat(2,minmax(0,1fr))}.formatter-choice-grid label,.formatter-inline label{min-width:0}.formatter-options{display:grid;gap:.75rem}.formatter-inline,.formatter-presets,.formatter-actions{display:flex;flex-wrap:wrap;gap:.65rem}.formatter-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem}.formatter-field-grid label,.formatter-workspace label[data-line-sort-settings]{display:grid;gap:.35rem;font-weight:700}.formatter-run{justify-self:start}.formatter-result{display:grid;gap:.75rem;padding-top:.4rem}.formatter-actions .button{min-height:44px}.formatter-count{margin:-.55rem 0 0;text-align:right}.formatter-result textarea{background:#f8fbfb}.formatter-workspace .form-error,.formatter-workspace .action-status{min-height:1.5em;margin:0}.formatter-workspace .form-error{color:#a32020;font-weight:700}@media(max-width:640px){.container--text-formatter{padding-inline:.75rem}.formatter-heading{align-items:stretch;flex-direction:column}.formatter-heading .button{align-self:flex-start}.formatter-choice-grid,.formatter-choice-grid--wide,.formatter-field-grid{grid-template-columns:1fr}.formatter-tabs{margin-inline:-.25rem}.formatter-actions{display:grid;grid-template-columns:1fr}.formatter-actions .button,.formatter-run{width:100%}.formatter-workspace [role="tabpanel"]{padding:.8rem}}
