.sort-tool{--sort-primary:#356fd3;--sort-primary-dark:#285ab3;--sort-primary-soft:#edf4ff;--sort-success:#18864b;--sort-ink:#263244;--sort-muted:#68758a;--sort-line:#dfe5ee;--sort-line-soft:#edf0f5;--sort-surface:#f7f9fc;--sort-radius-sm:10px;--sort-radius-md:14px;color:var(--sort-ink)}.sort-tool-surface{border:1px solid #dfe8f6;border-radius:16px;box-shadow:0 8px 28px rgba(31,48,78,.06);padding:24px}.sort-options-card{background:var(--sort-surface);border:1px solid var(--sort-line-soft);border-radius:var(--sort-radius-md);box-shadow:none;margin-bottom:24px;padding:20px}.sort-options-layout{align-items:start;display:grid;gap:24px;grid-template-columns:minmax(250px,.9fr) minmax(0,1.9fr)}.sort-cleanup-field,.sort-order-field{min-width:0}.sort-cleanup-field{border-left:1px solid var(--sort-line);padding-left:24px}.sort-field-label{align-items:center;color:#5e6c80;display:flex;font-weight:700;gap:8px;line-height:1.45;margin-bottom:10px}.sort-field-label .svg-inline--fa,.sort-field-label svg{color:var(--sort-primary);flex:0 0 auto;width:16px}.sort-cleanup-heading{align-items:center;display:flex;justify-content:space-between}.cleanup-count,.cleanup-toggle{color:var(--sort-primary-dark);font-size:.9rem}.cleanup-toggle{align-items:center;background:0 0;border:0;display:none;font-weight:700;gap:8px;min-height:44px;padding:6px 0 6px 12px}.cleanup-count{background:#fff;border:1px solid #cbd9f2;border-radius:999px;padding:3px 8px}.cleanup-toggle .svg-inline--fa,.cleanup-toggle svg{font-size:.75rem;transition:transform .18s ease}.cleanup-toggle[aria-expanded=true] .svg-inline--fa,.cleanup-toggle[aria-expanded=true] svg{transform:rotate(180deg)}.cleanup-options{display:grid;grid-template-columns:repeat(3,minmax(132px,1fr))}.cleanup-option{align-items:center;border-radius:8px;color:#39465a;cursor:pointer;display:flex;gap:9px;line-height:1.4;min-height:38px;min-width:0;padding:7px 8px;transition:background-color .16s ease,color .16s ease}.cleanup-option:hover{background:#fff;color:var(--sort-primary-dark)}.cleanup-option .form-check-input{cursor:pointer;flex:0 0 auto;margin:0}.cleanup-option span{overflow-wrap:anywhere}.auto-detect-note{align-items:center;color:#738096;display:flex;font-size:.9rem;gap:6px;justify-content:flex-end;margin-top:8px}.auto-detect-note .svg-inline--fa,.auto-detect-note svg{color:var(--sort-primary)}.editor-tabs{background:var(--sort-surface);border:1px solid var(--sort-line);border-radius:12px;display:none;gap:4px;margin-bottom:12px;padding:4px}.editor-tab{background:0 0;border:0;border-radius:8px;color:var(--sort-muted);flex:1 1 50%;font-weight:700;min-height:40px;padding:8px 12px}.editor-tab.is-active{background:#fff;box-shadow:0 1px 4px rgba(31,48,78,.12);color:var(--sort-primary-dark)}.sort-workspace{align-items:center;display:grid;gap:12px;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);width:100%}.editor-pane{min-width:0}.editor-wrapper{background:#fff;border:1px solid var(--sort-line);border-radius:var(--sort-radius-md);box-shadow:none;overflow:hidden}.editor-wrapper:focus-within{border-color:#8db0ec;box-shadow:0 0 0 3px rgba(53,111,211,.1)}.editor-toolbar{background:#fff;border-bottom:1px solid var(--sort-line-soft);gap:12px;justify-content:space-between;min-height:56px;padding:9px 12px 9px 16px}.editor-actions,.editor-title,.editor-toolbar{align-items:center;display:flex}.editor-title{font-weight:750;gap:8px;min-width:0}.editor-title .svg-inline--fa,.editor-title svg{color:var(--sort-primary);flex:0 0 auto}.editor-title--result .svg-inline--fa,.editor-title--result svg{color:var(--sort-success)}.editor-actions{flex:0 0 auto;gap:6px}.tool-action{align-items:center;background:#fff;border:1px solid var(--sort-line);border-radius:var(--sort-radius-sm);color:#48566b;display:inline-flex;font-size:.9rem;font-weight:700;gap:7px;justify-content:center;line-height:1.2;min-height:36px;padding:7px 10px;text-transform:none;transition:background-color .16s ease,border-color .16s ease,color .16s ease}.tool-action:hover{background:var(--sort-primary-soft);border-color:#a9c1ea;color:var(--sort-primary-dark)}.tool-action--ghost{background:0 0;border-color:transparent}.tool-action--danger:hover{background:#fff3f3;border-color:#f0b8bd;color:#b52c38}.tool-action--secondary{border-color:#b8c8df;color:#38557f}.tool-action:disabled{background:#f6f7f9;border-color:#e3e7ed;color:#9aa4b2;cursor:not-allowed;opacity:1}.sort-tool .editor-container{background:#fff;display:flex;margin:0 auto}.sort-tool .editor-container--result,.sort-tool .editor-container--result textarea{background:#fbfcfe}.sort-tool .editor-container .line-numbers,.sort-tool .editor-container textarea{font-family:Consolas,Monaco,"Courier New",monospace;font-size:.95rem;height:30rem;line-height:1.6;padding:12px}.sort-tool .line-numbers{background:#f7f9fc;border-right:1px solid var(--sort-line-soft);color:#8c98a8;margin:0;min-width:44px;overflow:hidden;text-align:right;user-select:none}.sort-tool .editor-container textarea{border:0;border-radius:0;flex:1 1 auto;min-width:0;outline:0;overflow:auto;resize:none;white-space:pre}.sort-tool .editor-container textarea:focus{box-shadow:none}.sort-tool .editor-footer-bar,.sort-tool .editor-meta-bar{align-items:center;border-top:1px solid var(--sort-line-soft);display:flex;font-size:.9rem}.sort-tool .editor-meta-bar{background:var(--sort-surface);color:var(--sort-muted);gap:8px 16px;justify-content:space-between;line-height:1.45;min-height:37px;padding:8px 14px}.editor-meta-total{color:var(--sort-primary);flex:0 0 auto;font-weight:750}.editor-meta-total--result{color:var(--sort-success)}.editor-meta-detail{text-align:right}.sort-tool .editor-footer-bar{background:#fff;color:#7a8698;gap:7px;line-height:1.5;min-height:40px;padding:9px 14px}.editor-footer-bar .svg-inline--fa,.editor-footer-bar svg{color:#8594a8;flex:0 0 auto}.editor-footer-bar--result .svg-inline--fa,.editor-footer-bar--result svg{color:var(--sort-success)}.sort-tool .editor-middle-action{display:flex;justify-content:center;width:auto}.sort-primary-action{align-items:center;background:var(--sort-primary);border:1px solid var(--sort-primary);border-radius:999px;box-shadow:0 5px 14px rgba(53,111,211,.2);color:#fff;display:inline-flex;font-size:.88rem;font-weight:750;gap:8px;justify-content:center;min-height:42px;padding:9px 14px;text-transform:none;transition:background-color .16s ease,box-shadow .16s ease,transform .16s ease;white-space:nowrap}.sort-primary-action:hover{background:var(--sort-primary-dark);box-shadow:0 7px 18px rgba(53,111,211,.25);transform:translateY(-1px)}.sort-action-arrow--stacked{display:none}.sort-info-grid{display:grid;gap:16px;grid-template-columns:repeat(2,minmax(0,1fr));margin-top:24px}.sort-tool .tip-card{background:var(--sort-surface);border:1px solid var(--sort-line-soft);border-radius:var(--sort-radius-md);padding:16px}.sort-tool .tip-header{align-items:center;display:flex;gap:12px;margin-bottom:10px}.sort-tool .tip-header h6{font-weight:750;margin:0}.sort-tool .feature-icon-box{align-items:center;background:var(--sort-primary-soft);border-radius:10px;color:var(--sort-primary);display:flex;flex:0 0 auto;font-size:15px;height:34px;justify-content:center;width:34px}.sort-tool .tip-body{color:var(--sort-muted);font-size:.92rem;line-height:1.65;margin:0;padding-left:20px}.sort-tool .tip-body li+li{margin-top:4px}.sort-tool button:focus-visible,.sort-tool input:focus-visible,.sort-tool select:focus-visible,.sort-tool textarea:focus-visible{outline:3px solid rgba(53,111,211,.24);outline-offset:2px}@media screen and (max-width:1399.98px){.sort-options-layout{gap:20px;grid-template-columns:minmax(220px,.85fr) minmax(0,1.65fr)}.cleanup-options{grid-template-columns:repeat(2,minmax(150px,1fr))}}@media screen and (max-width:1199.98px){.sort-options-layout{grid-template-columns:minmax(220px,.8fr) minmax(0,1.2fr)}.sort-tool .sort-workspace{align-items:stretch;grid-template-columns:minmax(0,1fr)}.sort-tool .editor-middle-action{padding:2px 0}.sort-primary-action{border-radius:10px;min-width:180px}.sort-action-arrow--desktop{display:none}.sort-action-arrow--stacked{display:inline-block}.sort-tool .editor-container .line-numbers,.sort-tool .editor-container textarea{height:22rem}}@media screen and (max-width:991.98px){.sort-options-layout{grid-template-columns:minmax(0,1fr)}.sort-cleanup-field{border-left:0;border-top:1px solid var(--sort-line);padding-left:0;padding-top:18px}.auto-detect-note{justify-content:flex-start}.sort-info-grid{grid-template-columns:minmax(0,1fr)}}@media screen and (max-width:767.98px){.sort-tool-section{margin-left:-4px;margin-right:-4px}.sort-tool-surface{border-radius:14px;padding:12px}.sort-options-card{margin-bottom:16px;padding:14px}.sort-options-layout{gap:16px}.sort-cleanup-field{padding-top:8px}.sort-cleanup-heading .sort-field-label{margin-bottom:0;min-width:0}.cleanup-toggle{flex:0 0 auto;display:inline-flex;padding-left:8px}.cleanup-toggle>span:first-child{display:none}.cleanup-count{white-space:nowrap}.cleanup-options{display:none;grid-template-columns:repeat(2,minmax(0,1fr));margin-top:10px}.cleanup-options.is-open{display:grid}.cleanup-option{min-height:46px;padding:8px}.auto-detect-note{margin-top:10px}.editor-tabs{display:flex}.editor-pane{display:none}.editor-pane.is-active{display:block}.sort-tool .editor-middle-action{padding:10px 0 12px}.sort-primary-action{min-height:46px;width:100%}.sort-action-arrow--stacked{transform:rotate(-90deg)}.editor-toolbar{min-height:54px;padding:8px 8px 8px 12px}.editor-actions{gap:2px}.tool-action{min-height:44px;padding:7px 8px}.action-label-full{display:none}.sort-tool .editor-container .line-numbers,.sort-tool .editor-container textarea{height:19rem}.sort-tool .editor-meta-bar{align-items:flex-start;flex-direction:column;gap:3px;min-height:52px;padding:8px 12px}.editor-meta-detail{text-align:left}.sort-tool .editor-footer-bar{min-height:38px;padding:8px 12px}.sort-info-grid{margin-top:16px}}@media screen and (max-width:419.98px){.cleanup-options{grid-template-columns:minmax(0,1fr)}.cleanup-option{padding-left:10px}.tool-action{min-width:40px}}@media screen and (min-width:1600px){.sort-tool .editor-container .line-numbers,.sort-tool .editor-container textarea{height:38rem}}@media screen and (min-width:1900px){.sort-tool .editor-container .line-numbers,.sort-tool .editor-container textarea{height:46rem}}@media (prefers-reduced-motion:reduce){.sort-tool *,.sort-tool ::after,.sort-tool ::before{scroll-behavior:auto!important;transition-duration:.01ms!important}}