:root{font-family:Avenir Next,PingFang SC,Microsoft YaHei,Segoe UI,sans-serif;color:#173b43;background:#eaf1ed;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400}*,*:before,*:after{box-sizing:border-box}html,body,#root{width:100%;min-width:320px;min-height:100%;margin:0}body{min-height:100vh}button,input,select,textarea{font:inherit}button,a,[role=button]{-webkit-tap-highlight-color:transparent}:focus-visible{outline:2px solid #167c80;outline-offset:3px}::selection{color:#fff;background:#167c80}*{box-sizing:border-box;margin:0;padding:0}:root{--primary-color: #167c80;--secondary-color: #79a98a;--highlight-color: #df7959;--text-color: #173b43;--light-bg: #eaf1ed;--dark-bg: #123b46;--border-color: #d5e2dc;--hover-color: #11676c;--panel-bg: #fafbf8;--control-bg: #f1f6f2;--button-bg: #e5efea;--button-hover: #dce9e3;--primary-color-rgb: 22, 124, 128;--water-color: #267d89;--land-color: #79a98a;--visited-color: #8ccf9b;--current-color: #df7959;--exploring-color: #7157c8;--ocean-deep: #0c6d89;--shoreline-color: #e8c98e;--stack-bg: #f1f6f2;--stack-item: #e3f2fd;--stack-top: #bbdefb;--queue-bg: #f1f6f2;--queue-item: #e8f5e9;--queue-front: #c8e6c9}html,body{height:100%;overflow:hidden;color:var(--text-color);background:var(--light-bg);line-height:1.45}.app-container{position:relative;isolation:isolate;display:flex;flex-direction:column;width:100%;height:100vh;min-height:0;padding:6px 8px 46px;overflow:hidden;background:radial-gradient(ellipse at 8% 12%,rgba(194,222,212,.5),transparent 33%),radial-gradient(ellipse at 96% 85%,rgba(201,225,215,.42),transparent 28%),#eaf1ed}.app-container:before{position:absolute;z-index:-1;top:0;right:0;bottom:0;left:0;background-image:repeating-radial-gradient(ellipse at 90% 0%,transparent 0 44px,rgba(22,124,128,.035) 45px 46px,transparent 47px 72px);content:"";pointer-events:none}.top-section{position:relative;z-index:2;flex:0 0 auto;margin-bottom:5px;padding:4px 14px 3px;border:1px solid rgba(203,219,210,.9);border-radius:14px;background:#fafbf8e0;box-shadow:0 5px 18px #1c42430b}.problem-introduction{display:flex;justify-content:center;gap:12px;margin:0 auto;color:#54716f;font-size:.7rem;text-align:center}.problem-rule-label{color:#21585b;font-weight:650}.problem-introduction span+span{padding-left:16px;border-left:1px solid #d7e4dc}.bottom-section,.main-content{position:relative;display:flex;flex:1 1 auto;gap:7px;min-height:0;overflow:hidden}.left-column{display:flex;flex:0 0 270px;flex-direction:column;gap:7px;min-height:0;max-height:100%;padding:8px 7px;overflow:auto;border:1px solid #d8e4dd;border-radius:14px;background:#fafbf8f0;box-shadow:0 8px 24px #1c42430e;scrollbar-color:#b8cec3 transparent;scrollbar-width:thin}.right-column,.visualization-area{display:flex;flex:1 1 auto;flex-direction:column;min-width:0;min-height:0;max-height:100%;padding:5px;overflow:hidden;border:1px solid #d4e1da;border-radius:12px;background:#fafbf8d1;box-shadow:0 8px 24px #1c42430e}.back-to-list{display:inline-flex;align-items:center;gap:7px;color:#37666a;text-decoration:none}.back-to-list:hover{color:var(--primary-color)}.back-arrow{font-size:1rem;line-height:1}.back-text{font-size:.76rem;font-weight:600}.title-link{color:inherit;text-decoration:none}.title-link h1{color:var(--dark-bg);font-weight:650}.results{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;margin-top:1rem;padding:.5rem}.result-count{color:var(--primary-color);font-size:1.2rem;font-weight:700}.result-message{color:var(--text-color);font-size:.9rem;text-align:center}@media (max-width: 800px){html,body{height:auto;min-height:100%;overflow:auto}.app-container{height:auto;min-height:100vh;padding:5px 6px 72px;overflow:visible}.top-section{margin-bottom:4px;padding:3px 8px 2px}.problem-introduction{flex-direction:column;gap:1px;font-size:.67rem}.problem-introduction span+span{padding-left:0;border-left:0}.bottom-section,.main-content{flex-direction:column;gap:5px;overflow:visible}.right-column{order:1;flex:0 0 auto;min-height:48vh;padding:4px;overflow:visible}.left-column{order:2;flex:0 0 auto;max-height:none;overflow:visible}}@media (max-width: 420px){.app-container{padding-right:7px;padding-left:7px}.top-section{padding-right:8px;padding-left:8px}}@media (prefers-reduced-motion: reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.animation-controls-footer{position:fixed;z-index:100;right:0;bottom:0;left:0;display:flex;align-items:center;gap:12px;height:46px;padding:5px 10px;border-top:1px solid #cbdcd2;background:#fafbf8f5;box-shadow:0 -5px 18px #1c424312;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.control-buttons{display:flex;align-items:center;gap:5px;margin:0}.control-button{position:relative;display:flex;align-items:center;justify-content:center;width:32px;height:32px;min-width:32px;margin:0;padding:0;overflow:hidden;border:1px solid #d6e2db;border-radius:8px;color:#315d5d;background:#f2f6f2;box-shadow:none;cursor:pointer;transition:background-color .15s ease,border-color .15s ease,transform .15s ease}.control-button:hover{transform:translateY(-1px);border-color:#9cbcae;background:#e7f0e9;box-shadow:none}.control-button:active{transform:translateY(0)}.control-button:disabled{transform:none;opacity:.4;box-shadow:none;cursor:not-allowed}.play-button{width:38px;height:38px;min-width:38px;border-color:#167c80;color:#fff;background:#167c80;box-shadow:0 3px 8px #167c8033}.play-button:hover{border-color:#11676c;color:#fff;background:#11676c;box-shadow:0 3px 8px #167c8033}.play-button.playing{border-color:#b9573b;background:#c76649}.play-button.playing:hover{background:#b9573b}.reset-button{color:#a04f39;background:#fbefea;border-color:#ecd2c9}.reset-button:hover{color:#903e2c;background:#f6e3dc;border-color:#dcae9f}.animation-controls-footer .animation-progress{position:relative;display:flex;flex:1;align-items:center;gap:10px;min-width:0;margin:0}.step-info{min-width:62px;margin:0;padding:4px 7px;border-radius:6px;color:#42615f;background:#edf3ee;font-size:.72rem;font-weight:650;text-align:center;font-variant-numeric:tabular-nums}.animation-progress .progress-container{position:relative;flex:1;height:6px;overflow:visible;border-radius:4px;background:#dce7e0;cursor:pointer;touch-action:none}.animation-progress .progress-fill{position:relative;height:100%;overflow:hidden;border-radius:inherit;background:#57928b;transition:width .18s ease}.animation-progress .progress-fill:after{position:absolute;top:0;right:0;bottom:0;left:0;transform:translate(-100%);background:linear-gradient(90deg,transparent,rgba(255,255,255,.35),transparent);content:""}.animation-progress .progress-fill.playing:after{animation:progress-shine 1.5s linear infinite}@keyframes progress-shine{to{transform:translate(100%)}}.animation-progress .progress-handle{position:absolute;z-index:2;top:50%;width:14px;height:14px;transform:translate(-50%,-50%);border:2px solid #fff;border-radius:50%;background:#167c80;box-shadow:0 0 0 1px #167c80;transition:left .18s ease}.animation-progress .progress-handle:hover,.animation-progress .progress-handle:active{transform:translate(-50%,-50%) scale(1.12)}.animation-progress .progress-handle:before{position:absolute;top:-4px;right:-4px;bottom:-4px;left:-4px;border:1px solid rgba(22,124,128,.3);border-radius:50%;content:""}.progress-container.dragging{height:12px}.progress-container.dragging .progress-handle{transform:translate(-50%,-50%) scale(1.15)}.progress-handle.pulse-handle{animation:handle-pulse .45s ease-out}@keyframes handle-pulse{50%{box-shadow:0 0 0 6px #167c802e}}.speed-control{position:relative;display:flex;align-items:center;gap:7px;min-width:106px;margin-left:0;color:#42615f;font-size:.76rem}.speed-control span{font-weight:550}.speed-select{position:absolute;width:1px;height:1px;opacity:0}.custom-select-container{position:relative;min-width:62px;-webkit-user-select:none;user-select:none}.custom-select-trigger{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 8px;border:1px solid #d1dfd7;border-radius:7px;color:#315958;background:#fff;font-size:.76rem;font-weight:600;cursor:pointer}.custom-select-trigger:hover{border-color:#9cbcae;background:#f6f9f6}.custom-select-arrow{display:inline-block;width:0;height:0;border-top:4px solid #54716f;border-right:4px solid transparent;border-left:4px solid transparent}.custom-select-options{position:absolute;z-index:12;right:0;bottom:calc(100% + 7px);min-width:76px;padding:4px;border:1px solid #d1dfd7;border-radius:8px;background:#fff;box-shadow:0 6px 18px #123b461f}.custom-select-option{padding:6px 8px;border-radius:5px;color:#315958;font-size:.76rem;cursor:pointer}.custom-select-option:hover{background:#edf5f0}.custom-select-option.selected{color:#11676c;background:#e4f0e9;font-weight:700}.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.tooltip{position:fixed!important;z-index:999999!important;max-width:250px!important;padding:7px 10px!important;border:1px solid rgba(255,255,255,.12)!important;border-radius:6px!important;color:#fff!important;background:#173b43f5!important;box-shadow:0 4px 12px #123b462e!important;font-size:12px!important;font-weight:500!important;line-height:1.45!important;text-align:center!important;pointer-events:none!important;white-space:normal!important;-webkit-backdrop-filter:blur(4px)!important;backdrop-filter:blur(4px)!important}.tooltip:after{position:absolute!important;top:100%!important;left:50%!important;margin-left:-5px!important;border:5px solid transparent!important;border-top-color:#173b43f5!important;content:""!important}.tooltip-primary{background:#173b43f5!important}.tooltip-primary:after{border-top-color:#173b43f5!important}.control-button svg{width:20px;height:20px}.control-button:hover svg{transform:scale(1.04);transition:transform .15s ease}.control-icon{display:flex;align-items:center;justify-content:center;font-family:Arial,sans-serif;font-size:13px;font-weight:700;line-height:1}.play-button .control-icon{font-size:15px}@media (max-width: 800px){.animation-controls-footer{gap:6px;height:50px;padding:5px 7px}.control-buttons{gap:3px}.control-button{width:29px;height:29px;min-width:29px}.play-button{width:35px;height:35px;min-width:35px}.control-buttons{flex:0 0 auto}.animation-controls-footer .animation-progress{flex:1 1 0}.speed-control{flex:0 0 auto}.animation-controls-footer .animation-progress{gap:6px}.step-info{min-width:48px;padding:4px;font-size:.67rem}.speed-control{min-width:76px;gap:4px;font-size:.68rem}.custom-select-container{min-width:52px}.speed-control>span{display:none}.custom-select-trigger{gap:4px;padding:5px 6px;font-size:.68rem}}@media (max-width: 460px){.animation-controls-footer{gap:4px;height:46px;padding:4px 5px}.control-buttons{gap:2px}.control-button{width:27px;height:29px;min-width:27px;border-radius:6px}.play-button{width:32px;height:34px;min-width:32px}.control-icon{font-size:11px}.play-button .control-icon{font-size:13px}.animation-controls-footer .animation-progress{gap:4px}.step-info{min-width:42px;font-size:.62rem}.speed-control{min-width:56px}.speed-control>span{display:none}}@media (prefers-reduced-motion: reduce){.control-button,.animation-progress .progress-fill,.animation-progress .progress-handle{transition:none}.animation-progress .progress-fill.playing:after,.progress-handle.pulse-handle{animation:none}}.controls{display:flex;flex:1 0 auto;flex-direction:column;gap:.65rem;width:100%;min-height:0;overflow:visible;padding:0}.grid-controls{display:flex;flex-direction:column;gap:.8rem;width:100%;padding:.8rem;border:1px solid #dbe7df;border-radius:11px;background:#f5f8f4}.control-group{display:flex;flex-direction:column;gap:.45rem;min-width:0}.size-control-group{margin:0}.size-controls-row{display:flex;align-items:center;gap:.4rem;width:100%}.size-label{display:flex;align-items:center;gap:.3rem;white-space:nowrap;font-size:.8rem}.size-label input{width:42px;min-width:32px;padding:.25rem}.compact-size-inputs{display:flex;align-items:center;gap:.35rem;width:100%;color:#42615f;font-size:.78rem}.compact-size-inputs span{white-space:nowrap}.compact-size-inputs input,input[type=number]{width:44px;min-width:36px;padding:.35rem .2rem;border:1px solid #cbdad1;border-radius:6px;color:var(--text-color);background:#fff;font-size:.82rem;text-align:center;font-variant-numeric:tabular-nums}.compact-size-inputs input:focus,.custom-grid-input:focus{border-color:var(--primary-color);outline:2px solid rgba(22,124,128,.18);outline-offset:1px}.dice-button{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;min-width:34px;margin-left:auto;padding:0;border:1px solid #cbdad1;border-radius:7px;color:#315d5d;background:#fff;cursor:pointer}.dice-button:hover{background:#eaf2ed}label{display:flex;align-items:center;gap:.35rem;font-size:.8rem}input[type=range]{flex:1;accent-color:var(--primary-color)}button{padding:.48rem .65rem;border:1px solid #d1dfd7;border-radius:7px;color:#315958;background:#fff;font-size:.8rem;font-weight:550;cursor:pointer;transition:background-color .15s ease,border-color .15s ease,color .15s ease}button:hover{border-color:#8fb8a7;background:#edf5f0}.control-group button:first-child{border-color:#167c80;color:#fff;background:#167c80}.control-group button:first-child:hover{border-color:#11676c;background:#11676c}.control-group button:nth-child(2),.control-group button:nth-child(3){color:#315958;background:#fff}.control-group button:nth-child(2):hover,.control-group button:nth-child(3):hover{background:#edf5f0}.probability-label{display:flex;justify-content:space-between;margin-bottom:.15rem;color:#476462;font-size:.78rem;font-weight:600;font-variant-numeric:tabular-nums}.probability-slider-container{position:relative;width:100%;height:8px;overflow:visible;border-radius:10px;background:#dce8e1}.probability-slider{position:absolute;z-index:2;top:-8px;right:0;bottom:-8px;left:0;width:100%;height:24px;margin:0;opacity:0;cursor:pointer}.probability-slider-fill{position:absolute;top:0;left:0;height:100%;border-radius:inherit;background:#6f9d81;pointer-events:none}.probability-slider-fill:after{position:absolute;top:50%;right:-6px;width:14px;height:14px;transform:translateY(-50%);border:2px solid #fff;border-radius:50%;background:#40775d;box-shadow:0 1px 4px #123b4638;content:""}.probability-slider-container:focus-within{outline:2px solid rgba(22,124,128,.32);outline-offset:4px}.result{margin-top:.5rem;padding:.65rem;border-radius:8px;background:#f1f6f2;text-align:center;font-weight:650}.count{color:#b7503a}.algorithm-selector{margin:0;padding:.75rem;border:1px solid #dbe7df;border-radius:10px;background:#f7f9f6}.algorithm-header{display:flex;flex-direction:column;gap:.55rem}.algo-label{color:#476462;font-size:.78rem;font-weight:650}.radio-options{display:flex;gap:.45rem}.tiny-radio{position:relative;display:flex;flex:1;align-items:center;gap:.4rem;min-width:0;padding:.48rem .6rem;border:1px solid #d8e3dc;border-radius:7px;color:#4d6662;background:#fff;cursor:pointer;-webkit-user-select:none;user-select:none}.tiny-radio:hover{background:#f1f6f2}.tiny-radio.selected{border-color:#7da99a;color:#205d5d;background:#e8f2ec}.tiny-radio input[type=radio]{position:absolute;width:1px;height:1px;opacity:0}.tiny-radio .radio-dot{position:relative;flex:0 0 13px;width:13px;height:13px;border:1.5px solid #9aafaa;border-radius:50%;background:#fff}.tiny-radio.selected .radio-dot{border-color:var(--primary-color)}.tiny-radio.selected .radio-dot:after{position:absolute;top:3px;right:3px;bottom:3px;left:3px;border-radius:50%;background:var(--primary-color);content:""}.tiny-radio:focus-within{outline:2px solid #167c80;outline-offset:2px}.algo-name{color:inherit;font-size:.79rem;font-weight:650}.algo-description{flex-basis:100%;margin-left:1rem;color:#55727a;font-size:.66rem;line-height:1.25}.tiny-radio{flex-wrap:wrap}.compact-selector{margin:0}@media (max-width: 800px){.controls{flex-direction:row;flex-wrap:wrap}.control-group{flex:1 1 100%}}.custom-grid-container{position:relative;z-index:5;width:100%;margin:0}.custom-grid-label{display:flex;flex-direction:column;gap:.45rem;color:#476462;font-size:.78rem;font-weight:600}.custom-grid-input{width:100%;min-height:90px;max-height:180px;padding:.65rem;resize:vertical;overflow:auto;border:1px solid #cbdad1;border-radius:8px;color:#24474b;background:#fff;font-family:SFMono-Regular,Consolas,Liberation Mono,monospace;font-size:.78rem;line-height:1.5}.custom-grid-container button{width:100%;margin-top:.55rem;padding:.55rem .7rem;border:1px solid #d1dfd7;border-radius:7px;color:#315958;background:#fff;font-size:.79rem;font-weight:600;cursor:pointer}.custom-grid-container button:hover{border-color:#9cbcae;background:#edf5f0}.legend{display:grid;grid-template-columns:1fr 1fr;gap:.5rem .65rem;margin-top:auto;padding:.75rem;border:1px solid #dbe7df;border-radius:10px;background:#f5f8f4}.legend-item{display:flex;align-items:center;gap:.4rem;min-width:0;font-size:.73rem}.legend-item span{line-height:1.2}.legend-text{display:flex;flex-direction:column;line-height:1.15}.legend-sub-text{margin-top:2px;color:#718681;font-size:.63rem}.legend-color{flex:0 0 13px;width:13px;height:13px;border:1px solid #bdcfc5;border-radius:4px}.legend-color.water{border-color:#126c7c;background:#267d89}.legend-color.land{border-color:#4b9667;background:#79a98a}.legend-color.visited{border-color:#4b9667;background:#8ccf9b repeating-linear-gradient(135deg,rgba(255,255,255,.5) 0 2px,transparent 2px 4px)}.legend-color.current{border-color:#a84c2c;background:#df7959}.legend-color.exploring{border-color:#45329b;background:#7157c8}.visualization-container{display:flex;flex-direction:column;width:100%;height:100%;min-height:0;overflow:hidden}.grid-with-ds-container{display:flex;flex:1 1 auto;gap:12px;min-height:0}.top-message{display:flex;align-items:center;min-height:32px;max-height:52px;flex-shrink:0;overflow:auto;margin-bottom:4px;padding:.35rem .65rem;border:1px solid #cbded5;border-left:3px solid #167c80;border-radius:8px;color:#28565a;background:#eff6f1;font-size:.86rem;line-height:1.45}.grid-scene{display:flex;flex:1 1 auto;min-width:0;min-height:0;overflow:hidden;border-radius:13px}.grid-with-ds-container .ds-visualizer{flex-shrink:0}@media (max-width: 800px){.visualization-container{height:auto;min-height:0;overflow:visible}.grid-with-ds-container{flex:0 0 auto;flex-direction:column;overflow:visible}.grid-scene{flex:0 0 45vh;min-height:280px;max-height:560px}.grid-with-ds-container .ds-visualizer{flex:0 0 260px;height:260px}}.island-grid-container{position:relative;display:flex;justify-content:center;align-items:center;width:100%;height:100%;min-width:0;min-height:0;overflow:hidden;border:1px solid rgba(14,82,97,.25);border-radius:9px;background:radial-gradient(ellipse at 50% 45%,rgba(97,172,180,.22),transparent 74%),#d6e8e4}.island-grid-container:before,.island-grid-container:after{position:absolute;top:12px;right:12px;bottom:12px;left:12px;border:1px solid rgba(26,104,111,.09);border-radius:10px;content:"";pointer-events:none}.island-grid-container:after{top:20px;right:20px;bottom:20px;left:20px;border-color:#1a686f0e}.island-grid-container svg{position:relative;z-index:1;display:block;width:100%;height:100%;max-width:100%;max-height:100%;overflow:visible;object-fit:contain}.ocean-base{stroke:#126c7c;stroke-width:1}.ocean-texture{pointer-events:none;opacity:.72}.land-tile{transition:fill .16s ease,stroke .16s ease}.shoreline{opacity:.92}.visited-tile{stroke-dasharray:3 1}.current-tile{filter:drop-shadow(0 0 4px rgba(223,121,89,.7))}.exploring-tile{filter:drop-shadow(0 0 3px rgba(255,255,255,.65))}.direction-arrow{pointer-events:none;filter:drop-shadow(0 1px 2px rgba(9,55,70,.65))}.grid-axis text{fill:#315c64;font-size:10px;font-family:inherit;font-weight:600}@media (prefers-reduced-motion: reduce){.land-tile{transition:none}}@media (max-width: 800px){.island-grid-container{min-height:300px;border-radius:8px}}.ds-visualizer{display:flex;flex:0 0 220px;flex-direction:column;width:220px;min-width:200px;height:100%;margin-left:0;overflow:hidden;border:1px solid #d2e0d9;border-radius:12px;background:#f8faf7;box-shadow:0 5px 16px #18424b0f}.ds-visualizer h3{display:flex;flex-shrink:0;align-items:center;justify-content:center;gap:.4rem;margin:0;padding:.7rem;color:#f5fbf9;background:#174b52;font-size:.9rem;font-weight:650}.ds-operation{display:flex;align-items:center;justify-content:space-between;gap:.35rem;padding:.5rem .7rem;color:#426a68;background:#eaf2ed;font-size:.69rem;font-weight:650}.ds-operation-line{flex:1;height:1px;background:#b8cec3}.stack-container,.queue-container{display:flex;flex:1;flex-direction:column;gap:.45rem;min-height:90px;overflow:auto;padding:.7rem;background:#f8faf7;scrollbar-width:thin;scrollbar-color:#b7cbcb transparent}.stack-container::-webkit-scrollbar,.queue-container::-webkit-scrollbar{width:6px}.stack-container::-webkit-scrollbar-thumb,.queue-container::-webkit-scrollbar-thumb{border-radius:4px;background:#b7cbcb}.stack-container.has-items,.queue-container.has-items{padding-bottom:.7rem}.empty-message{display:grid;place-items:center;min-height:92px;padding:1rem;border:1px dashed #b9d1c7;border-radius:8px;color:#718681;background:#f0f6f1;font-size:.82rem;text-align:center}.stack-item,.queue-item{position:relative;padding:.62rem .7rem;border:1px solid #d4e4dc;border-radius:8px;color:#214650;background:#fff;box-shadow:0 1px 4px #18424b0b;font-size:.82rem;font-weight:600;text-align:center;transition:background-color .14s ease,border-color .14s ease}.stack-item.stack-top{border-color:#75a9d7;background:#d8e9fb}.stack-item .item-label,.queue-item .item-label{position:absolute;top:-.42rem;right:.35rem;padding:.1rem .35rem;border-radius:4px;color:#fff;background:#315f7a;font-size:.6rem;font-weight:700}.queue-item.queue-front{border-color:#84b99b;background:#d9eee4}.queue-item.queue-back{border-color:#d4a86b;background:#f9e8d1}.item-position{font-variant-numeric:tabular-nums}.item-custom-label{margin-top:.25rem;color:#60767c;font-size:.73rem}.ds-bottom{display:flex;flex-shrink:0;align-items:center;justify-content:space-between;gap:.4rem;padding:.6rem .7rem;border-top:1px solid #dbe8e1;color:#426a68;background:#eef5f0;font-size:.69rem}.ds-info{color:#426a68;font-weight:650}.ds-total{font-variant-numeric:tabular-nums}.ds-count{font-size:.76rem;font-weight:500;opacity:.8}@media (max-width: 800px){.ds-visualizer{flex:0 0 250px;width:100%;min-width:0;height:250px}}@media (prefers-reduced-motion: reduce){.stack-item,.queue-item{transition:none}}.github-link{display:inline-flex;align-items:center;justify-content:center;color:#24292e;transition:all .3s ease;padding:5px 12px;margin:0;border-radius:20px;text-decoration:none;gap:6px;background-color:#f6f8fa;border:1px solid rgba(27,31,35,.15);box-shadow:0 1px 3px #00000014,0 1px 2px #00000008;font-size:.75rem;cursor:pointer;-webkit-user-select:none;user-select:none;max-height:32px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif}.github-icon{color:#24292e;transition:all .3s ease;display:flex}.github-link span{font-size:.8rem;font-weight:500;white-space:nowrap;margin-top:1px}.github-link:hover{background-color:#f3f4f6;border-color:#1b1f2326;transition-duration:.1s;text-decoration:none}.github-link:focus{outline:none;box-shadow:0 0 0 3px #0366d64d}.github-link:active{background-color:#ebecf0;border-color:#1b1f2333;transition:none}.language-selector{position:relative;margin-left:auto;display:flex;align-items:center;gap:5px;font-size:12px;z-index:1000}.language-selector-title{font-weight:700;color:#333}.language-selector-options{display:flex;gap:3px}.language-selector-options button{background-color:#f0f0f0;border:1px solid #ccc;border-radius:4px;padding:2px 6px;cursor:pointer;font-size:11px;transition:all .2s ease}.language-selector-options button:hover{background-color:#e0e0e0}.language-selector-options button.active{background-color:#4a6cb3;color:#fff;border-color:#3a5b93}@media (max-width: 768px){.language-selector{position:relative;margin-left:0;justify-content:flex-end;margin-bottom:10px}}.title-wrapper{position:relative;width:100%;margin:0}.title-container{position:relative;display:flex;align-items:center;justify-content:center;width:100%;min-height:26px;padding:0 110px}.main-title{margin:0;color:#123b46;font-size:clamp(.94rem,1.35vw,1.12rem);font-weight:700;line-height:1.2;text-align:center;letter-spacing:-.025em}.title-right{display:flex;align-items:center;margin-left:.55rem}.language-selector-container{position:absolute;z-index:5;top:50%;right:0;transform:translateY(-50%)}.title-link{position:relative;display:inline-block;padding:.1rem 0;border:0;color:inherit;background:transparent;font:inherit;cursor:pointer}.title-link:hover{color:#167c80}.title-link:focus-visible{outline:2px solid #167c80;outline-offset:4px}.title-link:after{position:absolute;right:0;bottom:-3px;left:0;height:1px;transform:scaleX(0);transform-origin:right;background:#167c80;content:"";transition:transform .18s ease}.title-link:hover:after{transform:scaleX(1);transform-origin:left}.title-link:hover:before{position:absolute;z-index:10;bottom:-30px;left:50%;padding:4px 8px;transform:translate(-50%);border-radius:5px;color:#fff;background:#174b52;box-shadow:0 3px 10px #123b4629;content:attr(data-tooltip);font-size:.72rem;font-weight:500;white-space:nowrap}.back-to-list{position:absolute;left:0;display:flex;align-items:center;gap:4px;padding:5px 8px;border:1px solid #dce8e1;border-radius:7px;color:#426a68;background:#f4f8f4;font-size:.74rem;text-decoration:none;transition:color .15s ease,border-color .15s ease,background-color .15s ease}.back-to-list:hover{border-color:#a8c9b6;color:#11676c;background:#eaf3ed}@media (max-width: 560px){.title-container{justify-content:flex-start;min-height:28px;padding:0 150px 0 0}.title-link{flex:1 1 auto;min-width:0}.main-title{max-width:100%;font-size:.78rem;line-height:1.15;text-align:left;overflow-wrap:anywhere}.title-right,.back-to-list{display:none}.language-selector-container{right:0}}
