.quickselect-page .mom-hero{grid-template-columns:74px minmax(0,1fr) 260px 88px 186px;gap:24px;height:123px;margin-bottom:13px;padding-inline:19px}.quickselect-page .mom-hero h1{letter-spacing:-1.1px;font-size:40px}.quickselect-page .mom-hero-title{transform:translateY(-5px)}.quickselect-page .mom-hero-icon{transform:translateY(-8px)}.qs-hero-art-slot{width:260px;height:100px;position:relative}.quickselect-page .mom-hero-title>p{font-size:15px}.qs-hero-art{width:300px;height:130px;display:block;position:absolute;top:-26px;left:-55px;max-width:none!important}.quickselect-page .mom-tabs{gap:11px}.qs-main-layout{grid-template-columns:minmax(0,2.2fr) minmax(0,1fr) 349px;align-items:start;gap:12px;display:grid}.qs-panel{min-width:0;padding:12px}.qs-panel>header{gap:14px;margin-bottom:12px}.qs-panel h2{letter-spacing:-.45px;font-size:16px;line-height:1.25}.qs-panel header p{margin-top:4px;font-size:12px;line-height:1.4}.qs-panel-icon{color:#087cff;background:#e8f3ff;border:1px solid #d3eaff;border-radius:8px;flex:0 0 38px;place-items:center;width:38px;height:38px;display:grid}.qs-panel-icon svg{stroke-width:2.3px;width:26px;height:26px}.qs-visualizer{min-height:495px}.qs-visualizer>header{border-bottom:1px solid var(--mom-line);margin-bottom:12px;padding-bottom:13px}.qs-visualizer>header h2{font-size:18px}.qs-input-controls{align-items:end;gap:10px;display:flex}.qs-dataset{flex:1;min-width:0}.qs-dataset>span,.qs-rank{color:#415b87;font-size:12px;font-weight:600;display:block}.qs-dataset>div{flex-wrap:wrap;gap:7px;margin-top:4px;display:flex}.qs-dataset input{color:#0068fb;text-align:center;background:linear-gradient(135deg,#f1f8ff,#f9fcff);border-color:#c8dfff;flex:1;width:calc(16.6667% - 5.83333px);min-width:38px;height:40px;font-size:15px;font-weight:700}.qs-rank{flex-shrink:0;width:105px}.qs-rank input{text-align:center;width:100%;height:40px;margin-top:4px;font-size:15px;display:block}.quickselect-page .qs-run-step{border-radius:8px;flex-shrink:0;height:49px;min-height:49px;padding:9px 17px;font-size:13px}.qs-pivot-controls{border-bottom:1px solid var(--mom-line);align-items:end;gap:10px;margin-top:10px;padding-bottom:13px;display:flex}.qs-pivot-controls>label{color:#415b87;flex-direction:column;flex:1;gap:4px;font-size:12px;display:flex}.qs-pivot-controls select{width:100%;height:37px;font-size:12px}.qs-pivot-controls>button{color:#0673ff;flex:0 0 137px;height:37px;font-weight:600}.qs-pivot-controls .qs-auto-run{background:linear-gradient(145deg,#e2f1ff,#edf6ff);border-color:#0000}.qs-seed-label{align-items:center;gap:10px;margin-top:10px;font-size:12px;display:flex}.qs-seed-label input{width:120px}.qs-edited{padding:6px 0!important;font-size:11px!important}.qs-partition{padding-top:5px}.qs-partition h3{margin-bottom:10px;font-size:14px;line-height:1.5}.qs-partition-layout{grid-template-columns:minmax(0,1fr) 154px;gap:14px;display:grid}.qs-bands{gap:7px;min-width:0;padding-top:0;display:flex}.qs-band{text-align:center;flex-basis:0;min-width:0}.qs-band>b{white-space:nowrap;font-size:11px;font-weight:600;line-height:17px;display:block}.qs-band-count{color:#087e40;margin-top:1px;font-size:11px;line-height:17px;display:block}.qs-band.equal .qs-band-count{color:#6f2edd}.qs-band.upper .qs-band-count{color:#c53832}.qs-bracket{border:1px solid #2b9dff;border-bottom:0;border-radius:5px 5px 0 0;height:9px;margin:7px 0 6px}.qs-band.equal .qs-bracket{border-color:#a265ff}.qs-band.upper .qs-bracket{border-color:#fa777d}.qs-band-values{align-items:stretch;gap:4px;min-width:0;display:flex}.qs-band-values>div{flex-direction:column;flex:1;gap:7px;min-width:0;display:flex}.qs-band-values strong{overflow-wrap:anywhere;background:linear-gradient(145deg,#d7ecff,#bddfff);border-radius:6px;place-items:center;min-width:0;height:48px;padding:4px;font-size:18px;font-weight:700;display:grid}.qs-band.equal strong{background:linear-gradient(145deg,#e6d7ff,#d5b9fd);box-shadow:inset 0 0 0 1px #b186ff}.qs-band.upper strong{color:#aa2624;background:linear-gradient(145deg,#ffe4e6,#ffcfd3)}.qs-band-values small{color:#6a80a4;font-size:11px}.qs-empty-band{color:#7b91af;border:1px dashed var(--mom-line);background:#f3f7fc;border-radius:5px;place-items:center;height:48px;font-size:20px;display:grid!important}.qs-partition-legend{background:linear-gradient(135deg,#f3f7fc,#fafcff);border-radius:8px;align-self:start;margin-top:0;padding:10px 8px;font-size:10px}.qs-partition-legend>div{white-space:nowrap;align-items:center;gap:5px;margin-bottom:11px;display:flex}.qs-partition-legend i{background:#17a4ff;border:2px solid #fff;border-radius:3px;flex-shrink:0;width:11px;height:11px;box-shadow:0 0 0 1px #daedff}.qs-partition-legend i.equal{background:#ae76f6}.qs-partition-legend i.upper{background:#ff8c92}.qs-partition-legend>div>b{background:#fff;border-radius:3px;margin-left:auto;padding:2px 5px;font-size:11px}.qs-partition-legend>p{border-top:1px solid #e0e9f5;padding-top:9px;font-size:10px;line-height:1.5}.qs-result{color:#008443;background:#e8fbf0;border-radius:7px;align-items:center;gap:9px;margin-top:18px;padding:12px;font-weight:700;display:flex}.qs-recursion{min-height:495px;max-height:495px;padding:12px;overflow:auto}.qs-recursion>header{gap:7px;margin-bottom:8px}.qs-recursion>header h2{font-size:14px}.qs-recursion .qs-panel-icon{background:0 0;border:0;flex-basis:20px;width:20px;height:22px}.qs-recursion .qs-panel-icon svg{width:17px;height:17px}.qs-trace-list{border-left:1px solid #d3dfee;gap:10px;margin-left:17px;padding-left:7px;display:grid}.quickselect-page button.qs-trace-node{text-align:left;color:#4e6896;background:#f6f8fc;border:0;border-radius:8px;flex-direction:column;justify-content:start;align-items:stretch;gap:3px;width:100%;min-height:99px;padding:7px 10px;font-size:12px;line-height:1.3;display:flex;position:relative}.qs-trace-node span,.qs-trace-node strong{display:block}.qs-trace-node>span:first-of-type{margin-bottom:1px}.quickselect-page button.qs-trace-node.current{background:linear-gradient(110deg,#f1f7ff,#eff8f5);box-shadow:inset 2px 0 #0075ff}.qs-trace-node.future{opacity:.72}.qs-trace-node>strong{color:#098d3b;font-size:12px;font-weight:500}.qs-trace-number{color:#fff;background:#208fff;border:2px solid #fff;border-radius:50%;place-items:center;width:20px;height:20px;font-size:11px;display:grid;position:absolute;top:3px;left:-20px}.qs-trace-node.future .qs-trace-number{background:#9eb6d3}.quickselect-page button.qs-trace-node.found{opacity:1;color:#235d56;background:#effbf4}.qs-trace-node.found .qs-trace-number{background:#0aaf72;font-size:13px}.qs-trace-node.found>strong{color:#00803b;font-weight:700}.qs-sidecards{grid-template-rows:225px 202px 54px;gap:10px;min-width:0;display:grid}.qs-sidecards>article{background:linear-gradient(120deg,#eefaf5,#f6fcf9);border:1px solid #d9eee6;border-radius:11px;padding:12px 16px}.qs-sidecards h2{letter-spacing:-.4px;align-items:center;gap:12px;margin-bottom:12px;font-size:17px;line-height:1.2;display:flex}.qs-sidecards h2>svg{flex-shrink:0;width:24px;height:24px}.qs-takeaways h2 svg{color:#edb40c;fill:#ffe066}.qs-sidecards article>p{align-items:start;gap:10px;margin-bottom:8px;font-size:12.5px;line-height:1.3;display:flex}.qs-sidecards article>p>svg{color:#fff;fill:#08a167;flex:0 0 18px;width:18px;height:18px}.qs-sidecards article.qs-pitfalls{background:linear-gradient(120deg,#fff0f3,#fff5f7);border-color:#f8dce5}.qs-pitfalls h2{margin-bottom:10px}.qs-pitfalls h2 svg{color:#f52d52}.qs-pitfalls>p{gap:8px!important;margin-bottom:7px!important;font-size:11.5px!important;line-height:1.35!important}.qs-pitfalls>p>span{color:#fff;background:#ff3c64;border-radius:50%;flex:0 0 15px;place-items:center;width:15px;height:15px;font-weight:800;display:grid}.qs-sidecards article.qs-pro-tip{background:linear-gradient(120deg,#f8f1ff,#f1edff);border-color:#ece2fd;padding:5px 12px}.qs-pro-tip h2{color:#6f2bdc;gap:8px;margin-bottom:0;font-size:15px}.qs-pro-tip h2 svg{color:#a46aff;width:21px;height:21px}.qs-sidecards .qs-pro-tip>p{color:#4f5d92;margin:0 0 0 29px;font-size:11px;line-height:1.3;display:block}.qs-bottom-layout{grid-template-columns:1.36fr .99fr 1.08fr;align-items:stretch;gap:10px;margin-top:4px;display:grid}.qs-bottom-layout .qs-panel{min-height:185px;padding:10px 12px}.qs-bottom-layout .qs-panel>header{gap:10px;margin-bottom:9px}.qs-bottom-layout h2{font-size:14px}.qs-bottom-layout header p{font-size:11px;line-height:1.35}.qs-bottom-layout .qs-panel-icon{border:0;flex-basis:35px;width:35px;height:35px}.qs-table-scroll{max-width:100%;overflow:auto}.qs-worked table{border-collapse:collapse;width:100%;font-size:10px;line-height:1.25}.qs-worked th{white-space:nowrap;background:#e5efff;border:1px solid #cddff5;padding:3px 4px;font-weight:600}.qs-worked td{white-space:nowrap;text-align:center;border:1px solid #dce6f4;padding:2px 4px}.qs-worked td:nth-child(2){text-align:left;font-weight:600}.qs-worked .active td{background:#f1f7ff}.qs-worked-answer{color:#058039;background:#e9fcf0;border-radius:4px;align-items:center;gap:6px;margin-top:5px;padding:5px 8px;font-size:12px;font-weight:700;display:flex}.qs-complexity-chart{font-size:9px}.qs-chart-legend{white-space:nowrap;color:#52678c;gap:15px;margin-bottom:3px;padding-left:24px;font-size:9px;display:flex}.qs-chart-legend span{align-items:center;gap:5px;display:flex}.qs-chart-legend i{background:#087cff;border-radius:50%;flex-shrink:0;width:8px;height:8px}.qs-chart-legend span:last-child i{background:#ff4051;border-radius:1px;transform:rotate(45deg)}.qs-complexity-chart svg{width:100%;height:auto;max-height:120px;display:block}.qs-complexity-chart text{fill:#405c90;font:9px system-ui}.qs-chart-grid line{stroke:#dce7f5;stroke-width:.6px}.qs-linear,.qs-quadratic{fill:none;stroke:#0878ff;stroke-width:2.6px}.qs-quadratic{stroke:#f45;stroke-dasharray:6 4}.qs-linear-dot{fill:#0878ff}.qs-quadratic-dot{fill:#f45}.qs-complexity-chart>small{color:var(--mom-muted);text-align:center;margin-top:2px;font-size:8px;display:block}.qs-correctness .mom-proof-tabs{gap:2px;padding-left:0}.qs-correctness .mom-proof-tabs button{height:29px;font-size:11px}.qs-proof-content{background:var(--mom-soft);color:var(--mom-muted);border-radius:6px;margin-top:7px;padding:9px;font-size:11px;line-height:1.45}.qs-proof-content>b{color:var(--mom-ink);font-size:12px}.qs-proof-content>p{margin-top:4px}.qs-bulk-editor{border-top:1px solid var(--mom-line);margin-top:18px}.qs-bulk-editor label{flex-direction:column;gap:5px;margin:10px 0;font-size:12px;display:flex}.qs-bulk-editor textarea{resize:vertical;width:100%}.qs-bulk-editor button{margin-right:8px}.qs-bulk-editor select{max-width:160px}.quickselect-page>.qs-panel p{padding:10px 0;font-size:14px;line-height:1.6}.quickselect-page>.qs-panel label{flex-direction:column;gap:7px;max-width:330px;margin:12px 0;display:flex}.quickselect-page>.qs-panel>textarea{resize:vertical;width:100%}.qs-experiment-actions{flex-wrap:wrap;gap:10px;margin:15px 0;display:flex}.qs-saved{border-top:1px solid var(--mom-line);justify-content:space-between;align-items:center;gap:10px;padding:14px 0;display:flex}@media (width>=1121px){.app-shell:has(.quickselect-page){grid-template-columns:260px minmax(0,1fr)}.app-shell .workspace.category-page:has(.mom-page.quickselect-page){padding:10px 14px 0 15px}.app-shell:has(.quickselect-page) .sidebar-header{padding-bottom:10px}.app-shell:has(.quickselect-page) .sidebar-footer{margin-bottom:123px}.app-shell:has(.quickselect-page) .sidebar-section-label{padding-top:2px}.app-shell:has(.quickselect-page) .sidebar-category-toggle{min-height:36px}.qs-partition-layout{gap:21px;padding-left:11px;padding-right:2px}.qs-band.equal{min-width:70px}.qs-band.upper{min-width:112px}}@media (width<=1550px) and (width>=1121px){.qs-main-layout{grid-template-columns:minmax(0,2fr) minmax(0,1fr) 285px;gap:10px}.quickselect-page .mom-hero{grid-template-columns:60px minmax(0,1fr) 190px 72px 150px;gap:12px;padding-inline:15px}.quickselect-page .mom-hero h1{font-size:34px}.qs-hero-art,.qs-hero-art-slot{width:190px}.qs-panel{padding:10px}.qs-panel header p{font-size:10px}.qs-visualizer>header h2{font-size:16px}.qs-rank{width:70px;font-size:10px}.quickselect-page .qs-run-step{padding-inline:10px;font-size:11px}.qs-dataset>span{font-size:10px}.qs-dataset>div{gap:4px}.qs-dataset input{width:calc(16.6667% - 3.33333px);min-width:27px;font-size:13px}.qs-input-controls{gap:6px}.qs-pivot-controls>button{flex-basis:95px;font-size:11px}.qs-partition-layout{grid-template-columns:minmax(0,1fr) 115px;gap:8px}.qs-partition-legend{padding:8px 5px;font-size:8px}.qs-partition-legend>div{gap:3px}.qs-band>b,.qs-band-count{font-size:9px}.qs-band-values strong{font-size:16px}.qs-recursion h2{font-size:13px}.quickselect-page button.qs-trace-node,.qs-trace-node>strong{font-size:10px}.qs-sidecards>article{padding-inline:12px}.qs-sidecards article>p{font-size:11px}.qs-sidecards .qs-pitfalls>p{font-size:10px!important}.qs-sidecards h2{font-size:16px}.qs-bottom-layout h2{font-size:12px}.qs-bottom-layout header p{font-size:9px}.qs-worked table{font-size:8px}.qs-worked-answer{font-size:10px}.qs-chart-legend{gap:8px;padding-left:10px;font-size:8px}.qs-correctness .mom-proof-tabs button{font-size:9px}.qs-proof-content{font-size:10px}.qs-complexity-chart>small{font-size:7px}}@media (width<=1120px){.quickselect-page .mom-hero{grid-template-columns:60px minmax(0,1fr) 100px;gap:12px;height:auto}.qs-hero-art-slot{display:none}.qs-main-layout{grid-template-columns:minmax(0,1fr) 290px}.qs-sidecards{grid-column:1/-1;grid-template-rows:auto;grid-template-columns:repeat(3,minmax(0,1fr))}.qs-recursion{min-height:495px}.qs-sidecards article{min-height:180px}.qs-sidecards article.qs-pro-tip{padding:12px}.qs-sidecards .qs-pro-tip>p{margin-top:8px;margin-left:0;font-size:12px}.qs-bottom-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.qs-correctness{grid-column:1/-1}.qs-rank{width:75px}.qs-dataset input{min-width:32px}.quickselect-page .qs-run-step{padding-inline:10px;font-size:11px}.qs-pivot-controls>button{flex-basis:95px}.qs-partition-layout{grid-template-columns:minmax(0,1fr)}.qs-partition-legend{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.qs-partition-legend>div{margin:0}.qs-partition-legend p{border:0;padding:0}.qs-panel h2{font-size:15px}.qs-panel header p{font-size:11px}.qs-visualizer{min-height:495px}}@media (width<=750px){.qs-main-layout{grid-template-columns:minmax(0,1fr)}.qs-recursion{min-height:0;max-height:460px}.qs-trace-list{border:0;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-left:8px;padding-left:8px}.qs-trace-number{left:-17px}.qs-sidecards{grid-template-columns:minmax(0,1fr)}.qs-sidecards article{min-height:0}.qs-bottom-layout{grid-template-columns:minmax(0,1fr)}.qs-correctness{grid-column:auto}.qs-visualizer{min-height:430px}.quickselect-page .mom-hero h1{font-size:30px}.qs-input-controls{flex-wrap:wrap;gap:8px}.qs-dataset{flex-basis:100%}.qs-dataset>div{gap:5px}.qs-dataset input{flex:1;width:calc(16.6667% - 4.16667px);min-width:34px;font-size:14px}.qs-rank{flex:1;max-width:140px}.quickselect-page .qs-run-step{flex:1;height:40px;min-height:40px}.qs-pivot-controls{flex-wrap:wrap;gap:8px}.qs-pivot-controls label{flex-basis:100%}.qs-pivot-controls>button{flex:1}.qs-band>b{white-space:normal;place-items:center;min-height:30px;font-size:9px;display:grid}.qs-band-count{font-size:10px}.qs-bands{gap:4px}.qs-band-values{gap:3px}.qs-band-values strong{height:42px;padding:3px 2px;font-size:14px}.qs-partition h3{font-size:13px}.qs-partition-legend{gap:10px;font-size:10px}.qs-panel-icon{flex-basis:28px;width:28px;height:32px}.qs-panel-icon svg{width:23px}.qs-visualizer>header h2{font-size:16px}.qs-panel>header{gap:9px}.qs-visualizer header p{font-size:11px}.qs-bottom-layout header p{font-size:10px}.qs-chart-legend{gap:8px;padding-left:10px;font-size:8px}.qs-trace-node.future{opacity:.85}.qs-trace-list .qs-trace-node{min-height:125px;font-size:10px}.qs-trace-node>strong{font-size:10px}.qs-saved{flex-wrap:wrap}.quickselect-page .mom-hero{grid-template-columns:45px minmax(0,1fr)}.qs-worked table{font-size:9px}.qs-worked th{padding-inline:3px}.qs-worked-answer{font-size:11px}}[data-theme=dark] .qs-sidecards>article,[data-theme=dark] .qs-sidecards article.qs-pitfalls,[data-theme=dark] .qs-sidecards article.qs-pro-tip,[data-theme=dark] .qs-partition-legend,[data-theme=dark] .qs-trace-node,[data-theme=dark] .qs-dataset input{background:var(--mom-surface);color:var(--mom-ink)}[data-theme=dark] .qs-rank,[data-theme=dark] .qs-dataset>span,[data-theme=dark] .qs-pivot-controls label{color:var(--mom-muted)}[data-theme=dark] .quickselect-page button.qs-trace-node.current,[data-theme=dark] .quickselect-page button.qs-trace-node.found,[data-theme=dark] .qs-worked th,[data-theme=dark] .qs-worked .active td{background:var(--mom-soft);color:var(--mom-ink)}[data-theme=dark] .qs-proof-content,[data-theme=dark] .qs-complexity-chart text{color:var(--mom-muted);fill:var(--mom-muted)}[data-theme=dark] .qs-trace-node>strong,[data-theme=dark] .qs-trace-node.found>strong{color:#65d6a1}[data-theme=dark] .qs-sidecards .qs-pro-tip>p{color:var(--mom-muted)}@media (width>=1551px){.quickselect-page .mom-search{flex-basis:924px}.quickselect-page .mom-study{justify-content:center;width:118px}.quickselect-page #account-trigger{gap:6px;width:172px;padding-inline:8px}.quickselect-page #account-label{flex-shrink:0;max-width:none;font-size:11.5px}.quickselect-page .account-avatar{flex-basis:28px;width:28px;height:28px}.quickselect-page .mom-tabs button:first-child{min-width:110px}.quickselect-page .mom-tabs button:nth-child(2){min-width:140px}.quickselect-page .mom-tabs button:nth-child(3){min-width:110px}.quickselect-page .mom-tabs button:nth-child(4){min-width:121px}.quickselect-page .mom-tabs button:nth-child(5){min-width:150px}.quickselect-page .mom-tabs button:nth-child(6){min-width:111px}.quickselect-page .qs-dataset{padding-left:10px;padding-right:5px}.quickselect-page .qs-input-controls{gap:10px}.quickselect-page .qs-partition-legend{font-size:11px}.quickselect-page .qs-trace-list{gap:6px;padding-left:1px}.quickselect-page button.qs-trace-node{padding-inline:16px}.quickselect-page button.qs-trace-node.current{box-shadow:none}.quickselect-page .qs-pitfalls>p{margin-bottom:6px!important;font-size:12px!important;line-height:16px!important}.quickselect-page .qs-sidecards .qs-pro-tip>p{font-size:12px}.quickselect-page .qs-bottom-layout{grid-template-columns:minmax(0,537fr) minmax(0,388fr) minmax(0,447fr)}.quickselect-page .qs-worked table{font-size:11px}.quickselect-page .qs-chart-legend{font-size:10px}.quickselect-page .qs-complexity-chart svg{height:100px;margin-top:5px}.quickselect-page .qs-complexity-chart text{font-size:11px}.quickselect-page .qs-proof-content{font-size:12px;line-height:15px}.quickselect-page .qs-complexity .qs-panel-icon svg{stroke:none}}.quickselect-page .qs-dataset input{appearance:textfield}.quickselect-page .qs-dataset input::-webkit-inner-spin-button{appearance:none;margin:0}.quickselect-page .qs-dataset input::-webkit-outer-spin-button{appearance:none;margin:0}@media (width>=1551px){.quickselect-page .qs-run-step>svg:first-child{width:17px;height:17px}.quickselect-page .qs-pivot-controls{padding-left:10px;padding-right:4px}.quickselect-page .qs-pivot-controls>button{flex:0 0 136px}.quickselect-page .qs-pivot-controls>button:last-child{flex-basis:170px}.quickselect-page .qs-auto-run svg{fill:currentColor}.quickselect-page .qs-sidecards article.qs-pro-tip{padding-block:2px}.quickselect-page .qs-sidecards .qs-pro-tip>p{line-height:13px}.quickselect-page .qs-bottom-layout{grid-template-columns:minmax(0,537fr) minmax(0,388fr) minmax(0,437fr)}.quickselect-page .qs-worked>header{margin-bottom:14px}.quickselect-page .qs-worked table{line-height:12px}.quickselect-page .qs-worked-answer{padding-block:4px;line-height:14px}.quickselect-page .qs-correctness>header{margin-bottom:1px}}.qs-complexity-chart{position:relative}.qs-complexity-chart g[role=button]{cursor:pointer}.qs-complexity-chart g[role=button]:focus-visible{outline:none}.qs-complexity-chart g[role=button]:focus-visible circle:not([fill=transparent]){stroke:#5a40e0;stroke-width:3px}.qs-growth-inspection{border:1px solid var(--mom-line);background:var(--mom-surface);color:var(--mom-ink);pointer-events:none;border-radius:6px;padding:7px;font-size:11px;position:absolute;bottom:28px;left:10px;right:10px;box-shadow:0 3px 12px #173c6522}
