.algo-space{color:#242b28;font-size:14px;max-width:1450px;margin:auto}.algo-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:8px 0 26px}.algo-heading p,.algo-caption,.algo-heading span{color:#68736d}.algo-heading h1{font-size:28px;margin:6px 0 10px;font-weight:650}.algo-space button,.algo-space input,.algo-space select,.algo-space textarea,.algo-space a{font:inherit}.algo-space button,.algo-space select,.algo-space input{min-height:38px;border:1px solid #dce2de;border-radius:6px;background:#fff;color:inherit;padding:8px 12px}.algo-space button{cursor:pointer}.algo-space button:disabled{opacity:.5;cursor:default}.algo-space button:hover:not(:disabled){background:#f0f4f1}.algo-space button.primary{background:#1d543f;color:#fff;border-color:#1d543f}.algo-space a{color:#1c6045;text-decoration:none;display:inline-flex;gap:5px;align-items:center}.algo-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.algo-tabs{display:flex;gap:22px;border-bottom:1px solid #dce2de;margin-bottom:24px;overflow:auto}.algo-tabs button{border:0;border-radius:0;background:transparent;padding:12px 0;white-space:nowrap}.algo-tabs button[aria-current=page]{border-bottom:2px solid #245b44;font-weight:650}.algo-tabs small{font-size:11px;margin-left:7px;color:#7c4d22}.algo-layout{display:grid;grid-template-columns:210px minmax(0,1fr);gap:28px}.algo-lists{border-right:1px solid #e2e7e3;padding-right:20px}.algo-lists h2{font-size:13px;font-weight:500;color:#6a756e;margin:5px 0 12px}.algo-lists>button{display:flex;justify-content:space-between;width:100%;text-align:left;border:0;margin:3px 0}.algo-lists>button.chosen{background:#eaf0eb;font-weight:600}.algo-lists>button span{color:#77817b;font-weight:400}.algo-lists form{display:flex;gap:4px;margin:16px 0}.algo-lists input{min-width:0;width:100%}.algo-lists p{font-size:12px;color:#737d77;line-height:1.8}.algo-progress{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}.algo-progress h2,.algo-panel h2{font-size:20px;margin:0 0 8px}.algo-progress p{margin:0;color:#69766e}.algo-progress progress{width:160px;height:7px;accent-color:#36805e}.algo-filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}.algo-search{display:flex;align-items:center;border:1px solid #dce2de;border-radius:6px;padding-left:10px;flex:1;min-width:210px;background:#fff}.algo-search input{border:0;width:100%;min-width:0;background:transparent}.algo-table{background:#fff;border-top:1px solid #e1e6e2}.algo-table-head,.algo-row{display:grid;grid-template-columns:40px minmax(180px,1fr) 120px 55px;align-items:center;gap:12px;padding:12px 4px;border-bottom:1px solid #edf0ed}.algo-table-head{color:#738078;font-size:12px}.algo-space .algo-check{min-height:22px;width:22px;height:22px;border-radius:50%;padding:0;display:grid;place-items:center;justify-self:center}.algo-space .algo-check.done{color:#327554;background:#edf5ef;border-color:#b7d5c1}.algo-space .algo-title{border:0;background:transparent;text-align:left;padding:3px 0}.algo-title strong{font-weight:550}.algo-title small{display:block;color:#818b84;font-size:12px;margin-top:5px}.algo-tags{font-size:12px;color:#69736d}.algo-tags small{display:block;margin-top:5px}.algo-count{text-align:right;font-variant-numeric:tabular-nums;color:#7a857e;font-size:12px;padding-right:6px}.algo-space .easy{color:#287148}.algo-space .hard{color:#b54840}.algo-empty{padding:45px 16px;color:#7b847d;text-align:center;line-height:1.8}.algo-caption{font-size:12px;line-height:1.8}.algo-panel{background:#fff;border:1px solid #e0e5e1;border-radius:8px;padding:28px;max-width:900px;line-height:1.9}.algo-panel ol{padding-left:20px}.algo-panel ul{list-style:none;padding:0}.algo-panel li{margin:10px 0}.algo-panel li svg{vertical-align:middle;color:#287148;margin-right:10px}.algo-summary{white-space:pre-wrap;font:inherit;background:#f3f6f3;padding:20px;border-radius:6px}.algo-error{background:#fff0ee;color:#973c31;padding:10px 14px}.algo-notice{background:#edf5ee;color:#2c6343;padding:10px 14px}.algo-stack{display:flex!important;flex-direction:column;gap:8px;margin:14px 0}.algo-space textarea{width:100%;box-sizing:border-box;border:1px solid #dce2de;padding:12px;border-radius:6px;resize:vertical;line-height:1.6;background:#fff}.algo-space details{margin:18px 0}.algo-space summary{cursor:pointer;line-height:1.8}.algo-overlay{position:fixed;inset:0;background:#17241d66;z-index:100;display:flex;justify-content:flex-end}.algo-detail{width:min(680px,100%);background:#fff;overflow:auto;padding:28px;box-sizing:border-box;box-shadow:-10px 0 35px #0001}.algo-detail header{display:flex;justify-content:space-between;align-items:center;gap:12px}.algo-detail header p,.algo-detail h3 small{color:#7a847e;font-size:12px;font-weight:400}.algo-detail h2{font-size:23px;margin:8px 0 22px}.algo-detail>.algo-actions{margin:12px 0}.algo-detail pre{background:#f5f7f5;padding:14px;overflow:auto;font:13px/1.65 Consolas,monospace}.algo-detail h3{font-size:16px;margin-top:28px}.algo-submission{border-bottom:1px solid #e7eae7;padding-bottom:12px}.algo-demo-bar{padding:14px 24px;background:#eaf1eb;display:flex;gap:14px;align-items:center;justify-content:space-between;font:14px system-ui}.algo-demo-wrap{max-width:1240px;margin:30px auto;padding:0 24px}.algo-space :focus-visible{outline:2px solid #357958;outline-offset:3px}@media(max-width:850px){.algo-layout{grid-template-columns:1fr}.algo-lists{border-right:0;padding:0;display:flex;flex-wrap:wrap;gap:5px}.algo-lists h2,.algo-lists p{width:100%}.algo-lists>button{width:auto;gap:10px}.algo-lists form{margin:0}.algo-lists>details{width:100%;margin:8px 0}.algo-heading{align-items:flex-start}.algo-heading h1{font-size:24px}.algo-progress progress{width:100px}}@media(max-width:550px){.algo-heading{flex-direction:column;gap:14px}.algo-tabs{gap:18px}.algo-tabs small,.algo-table-head{display:none}.algo-row{grid-template-columns:30px minmax(0,1fr) 65px;gap:8px}.algo-tags{grid-column:2;grid-row:auto;display:flex;gap:8px}.algo-tags small{margin:0}.algo-count{grid-column:3;grid-row:auto}.algo-check{grid-row:span 2}.algo-title{grid-column:2/4}.algo-filters select{flex:1;min-width:0;padding:8px}.algo-detail,.algo-panel{padding:18px}.algo-panel code{overflow-wrap:anywhere}.algo-demo-wrap{padding:0 14px;margin:20px auto}}.algo-detail{position:fixed;inset:0 0 0 auto;margin:0;border:0;height:100dvh;max-height:100dvh;max-width:100vw}.algo-detail::backdrop{background:#17241d66}@media(max-width:550px){.algo-search{flex-basis:100%;min-width:0}.algo-filters select{min-width:85px}.algo-lists>p{margin:4px 0}.algo-lists form{max-width:230px}}.algo-sheet-directory{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:16px 0;border-bottom:1px solid #dce4dc;margin-bottom:16px}.algo-sheet-directory p{flex-basis:100%;margin:0;color:#536558;font-size:13px}.algo-sheet-directory label{display:flex;flex-direction:column;gap:6px;max-width:100%;font-size:13px}.algo-sheet-directory select{max-width:100%;padding:9px;border:1px solid #ccd8ce;border-radius:6px;background:#fff;color:#243c2d}.algo-sheet-directory a{color:#286347}.algo-sheet-directory>span{font-size:12px;color:#536558}@media(max-width:700px){.algo-sheet-directory label,.algo-sheet-directory select{width:100%}}
