.line-sorter-panel{--ls-blue: var(--outil-action,#2554d8);--ls-blue-dark: var(--primary-dark,#0f2f5f);--ls-blue-hover: var(--outil-action-hover,#1d4ed8);--ls-text: var(--outil-texte,#12345f);--ls-muted: #66758f;--ls-border: var(--outil-bord,#b9cafa);--ls-soft: #f4f7ff;--ls-result-bg: #fbfdff;--ls-focus: rgba(37,84,216,0.18);--ls-radius: 18px;display: grid;gap: 1rem}.line-sorter-panel :where(h1,h2,h3,h4,h5,h6,p){margin: 0}.line-sorter-intro{color: var(--ls-blue-dark);font-size: 1.05rem;line-height: 1.55}.line-sorter-card{border: 1px solid var(--ls-border);border-radius: var(--ls-radius);background: #fff;padding: 1rem 1.05rem 1.05rem;box-sizing: border-box}.line-sorter-section-title,.line-sorter-field-title,.line-sorter-control-title{color: var(--ls-blue-dark);font-weight: 850;line-height: 1.15;letter-spacing: -0.02em}.line-sorter-section-title,.line-sorter-field-title{font-size: 1.16rem}.line-sorter-control-title{font-size: 0.94rem;text-align: center}.line-sorter-settings-card{display: grid;gap: 0.85rem}.line-sorter-card-head{display: grid;justify-items: center;gap: 0.45rem;text-align: center}.line-sorter-help{max-width: 62rem;color: var(--ls-blue-dark);font-size: 1rem;line-height: 1.45}.line-sorter-settings-layout{display: grid;grid-template-columns: minmax(0,1.2fr) minmax(15rem,0.8fr);gap: 0.9rem;align-items: end}.line-sorter-control,.line-sorter-options-block{display: grid;gap: 0.38rem}.line-sorter-selector,.line-sorter-options-grid{border: 1px solid var(--ls-border);border-radius: 15px;background: #fff;padding: 0.25rem;box-sizing: border-box}.line-sorter-selector{min-block-size: 48px;display: grid;gap: 0.25rem}.line-sorter-selector-type{grid-template-columns: repeat(3,minmax(0,1fr))}.line-sorter-selector-order{grid-template-columns: repeat(2,minmax(0,1fr))}.line-sorter-selector-button,.line-sorter-option-text{min-block-size: 40px;border: 0;border-radius: 10px;background: transparent;color: var(--ls-blue-dark);font: inherit;font-size: 0.9rem;font-weight: 720;line-height: 1.12;text-align: center;transition: transform 0.14s ease,background-color 0.14s ease,color 0.14s ease,box-shadow 0.14s ease}.line-sorter-selector-button{padding: 0.45rem 0.6rem;cursor: pointer}.line-sorter-selector-button:hover,.line-sorter-selector-button:focus-visible{background: var(--ls-soft);color: var(--ls-blue-hover)}.line-sorter-selector-button.is-active{background: var(--ls-blue);color: #fff;box-shadow: 0 8px 18px rgba(37,84,216,0.18)}.line-sorter-selector-button.is-active:hover,.line-sorter-selector-button.is-active:focus-visible{background: var(--ls-blue-hover);color: #fff}.line-sorter-selector-button:focus-visible,.line-sorter-option-input:focus-visible + .line-sorter-option-text{outline: 3px solid var(--ls-focus);outline-offset: 2px}.line-sorter-selector-button:active,.line-sorter-selector-button.is-pressed,.line-sorter-option-input:active + .line-sorter-option-text,.line-sorter-option.is-pressed .line-sorter-option-text{transform: translateY(1px) scale(0.985)}.line-sorter-options-block{justify-items: center}.line-sorter-options-grid{inline-size: min(100%,48rem);display: grid;grid-template-columns: repeat(4,minmax(0,1fr));gap: 0.25rem}.line-sorter-option{position: relative;min-inline-size: 0;cursor: pointer}.line-sorter-option-input{position: absolute;inline-size: 1px;block-size: 1px;opacity: 0;pointer-events: none}.line-sorter-option-text{display: flex;align-items: center;justify-content: center;padding: 0.45rem 0.55rem;box-sizing: border-box;overflow-wrap: anywhere}.line-sorter-option:hover .line-sorter-option-text{background: var(--ls-soft)}.line-sorter-option-input:checked + .line-sorter-option-text{background: var(--ls-blue);color: #fff;box-shadow: 0 8px 18px rgba(37,84,216,0.18)}.line-sorter-option:hover .line-sorter-option-input:checked + .line-sorter-option-text{background: var(--ls-blue-hover)}.line-sorter-workspace{display: grid;grid-template-columns: repeat(2,minmax(0,1fr));gap: 1rem;align-items: stretch}.line-sorter-text-card{display: flex;flex-direction: column;gap: 0.8rem;min-block-size: 100%}.line-sorter-field-head{display: grid;grid-template-columns: minmax(0,1fr) auto;align-items: baseline;gap: 1rem}.line-sorter-meta{color: var(--ls-muted);font-size: 0.92rem;font-weight: 800;line-height: 1.2;text-align: right;white-space: nowrap}.line-sorter-textarea{inline-size: 100%;block-size: 17rem;min-block-size: 17rem;max-block-size: 17rem;border: 1px solid var(--ls-border);border-radius: 15px;background: #fff;color: var(--ls-text);box-sizing: border-box;padding: 0.9rem 1rem;font: inherit;font-size: 1rem;line-height: 1.5;resize: none;overflow-y: auto}.line-sorter-result{background: var(--ls-result-bg)}.line-sorter-textarea::placeholder{color: #7d8aa3;opacity: 1}.line-sorter-textarea:focus{outline: none;border-color: var(--ls-blue);box-shadow: 0 0 0 4px var(--ls-focus)}.line-sorter-card-actions{display: grid;justify-items: center;gap: 0.55rem}.line-sorter-clear,.line-sorter-copy,.line-sorter-download{inline-size: min(100%,16rem);min-inline-size: 0;block-size: 48px;min-block-size: 48px;display: inline-flex;align-items: center;justify-content: center;gap: 0.65rem;box-sizing: border-box;cursor: pointer;transition: transform 0.14s ease,box-shadow 0.14s ease,border-color 0.14s ease,background-color 0.14s ease,color 0.14s ease,opacity 0.14s ease}.line-sorter-clear:active:not(:disabled),.line-sorter-copy:active:not(:disabled),.line-sorter-download:active:not(:disabled),.line-sorter-clear.is-pressed:not(:disabled),.line-sorter-copy.is-pressed:not(:disabled),.line-sorter-download.is-pressed:not(:disabled){transform: translateY(1px) scale(0.985)}.line-sorter-clear:disabled,.line-sorter-copy:disabled,.line-sorter-download:disabled{cursor: not-allowed;opacity: 0.55;box-shadow: none}.line-sorter-copy-icon-wrap,.line-sorter-download-icon-wrap,.line-sorter-copy-icon-wrap svg,.line-sorter-download-icon-wrap svg{inline-size: 18px;block-size: 18px;display: inline-flex;flex: 0 0 auto}.line-sorter-status{color: #b42318;font-size: 0.92rem;font-weight: 800;line-height: 1.25;text-align: center}.line-sorter-status:empty{display: none}@media (max-width: 980px){.line-sorter-settings-layout,.line-sorter-workspace{grid-template-columns: 1fr}.line-sorter-textarea{block-size: 16rem;min-block-size: 16rem;max-block-size: 16rem}}@media (max-width: 640px){.line-sorter-card{padding: 0.9rem}.line-sorter-selector-type{grid-template-columns: 1fr}.line-sorter-options-grid{inline-size: min(100%,22rem);grid-template-columns: repeat(2,minmax(0,1fr))}.line-sorter-options-grid .line-sorter-option:last-child:nth-child(odd){grid-column: 1 / -1;justify-self: center;inline-size: min(100%,10.5rem)}.line-sorter-field-head{grid-template-columns: 1fr;gap: 0.35rem}.line-sorter-meta{text-align: left;white-space: normal}.line-sorter-card-actions{justify-content: stretch}.line-sorter-clear,.line-sorter-copy,.line-sorter-download{inline-size: 100%}}@media (max-width: 380px){.line-sorter-options-grid{grid-template-columns: 1fr}.line-sorter-options-grid .line-sorter-option:last-child:nth-child(odd){grid-column: auto;inline-size: 100%}}