:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;--bg:#111318;--card:#1d2430;--card-2:#1e293bd1;--text:#e8edf2;--muted:#94a3b8;--line:#e2e8f01f;--primary:#14b8a6;--accent:#f59e0b;--danger:#ef4444;--shadow:0 16px 40px #02081752;--assistant-safe-gutter:6rem}*{box-sizing:border-box}html{scroll-behavior:smooth}body{min-width:320px;color:var(--text);letter-spacing:0;background:radial-gradient(circle at 14% 8%,#14b8a624,#0000 30rem),radial-gradient(circle at 88% 4%,#f59e0b1a,#0000 26rem),linear-gradient(135deg,#111318f5,#121b1efa),#111318;margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Microsoft YaHei,sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}::selection{color:#fff;background:#14b8a673}.app-shell{flex-direction:column;min-height:100vh;display:flex}.site-header{z-index:40;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);background:#0f172ac7;border-bottom:1px solid #e2e8f01a;position:sticky;inset-block-start:0}.site-nav{grid-template-columns:minmax(200px,260px) 1fr auto;align-items:center;gap:1rem;width:100%;max-width:1680px;margin:0 auto;padding:1rem 1.25rem;display:grid}.brand{color:var(--text);text-align:left;background:0 0;border:0;align-items:center;gap:.8rem;display:inline-flex}.brand strong{letter-spacing:0;font-size:1rem;display:block}.brand-logo-mark{color:#fff;background:linear-gradient(135deg,#061827,#0b2638 58%,#10202b);border:1px solid #7dd3fc47;border-radius:8px;flex:none;place-items:center;width:2.5rem;height:2.5rem;display:grid;box-shadow:0 16px 32px #0ea5e92e}.brand-logo-mark svg{fill:#061827;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2.2px;width:2rem;height:2rem}.project-icon-grid{stroke:#7dd3fc;stroke-opacity:.18;stroke-width:2px}.project-icon-path-a{stroke:#5eead4;stroke-width:5px}.project-icon-path-b{stroke:#fbbf24;stroke-width:3.5px;opacity:.92}.brand-logo-mark circle,.assistant-mark circle{fill:#f8fafc;stroke:none}.nav-links{scrollbar-width:thin;justify-content:center;gap:.35rem;display:flex;overflow-x:auto}.nav-link{color:#cbd5e1;white-space:nowrap;background:0 0;border:0;border-radius:8px;align-items:center;gap:.5rem;min-height:42px;padding:.625rem .875rem;font-size:.875rem;font-weight:700;transition:all .18s;display:inline-flex}.icon-glyph{color:#5eead4;letter-spacing:0;background:#0f172a73;border:1px solid #e2e8f01f;border-radius:6px;place-items:center;min-width:1.35rem;height:1.35rem;font-size:.68rem;font-weight:900;display:inline-grid}.nav-link:hover,.nav-link-active{color:var(--text);background:#14b8a624}.main-grid{flex:1;grid-template-columns:minmax(310px,390px) minmax(0,1fr);gap:1rem;width:100%;max-width:1680px;margin:0 auto;padding:1rem 1.25rem 2.5rem;display:grid}.control-panel{align-content:start;gap:1rem;display:grid}.workspace{min-width:0}.page-panel,.panel-card{box-shadow:var(--shadow);background:#1e293bb8;border:1px solid #e2e8f01a;border-radius:8px}.page-panel{min-height:calc(100vh - 7rem);padding:1.25rem}.panel-card{min-width:0;padding:1rem}.panel-card h2,.panel-card h3,.page-panel h1,.page-panel h2{color:var(--text);margin:0}.panel-card p,.page-panel p{color:#cbd5e1;line-height:1.75}.card-head,.section-head{justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:1rem;display:flex}.section-head h1,.section-head h2{font-size:clamp(1.35rem,2vw,2rem)}.section-head p{color:var(--muted);margin:.35rem 0 0}.preset-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:.55rem;margin:.75rem 0 1rem;display:grid}.filter-chip,.mini-action{color:#cbd5e1;background:#0f172a94;border:1px solid #e2e8f01a;border-radius:8px;justify-content:center;align-items:center;gap:.5rem;min-height:38px;font-size:.88rem;font-weight:700;transition:all .18s;display:inline-flex}.filter-chip:hover,.mini-action:hover,.mini-action-active{color:var(--text);background:#14b8a629;border-color:#14b8a685}.form-label{color:#cbd5e1;gap:.55rem;margin-top:.8rem;font-size:.92rem;font-weight:700;display:grid}.form-label small{color:var(--muted);font-weight:600}textarea,.chat-form input,.form-label input,.page-sync-bar input{color:#e2e8f0;background:#0f172ab8;border:1px solid #e2e8f01f;border-radius:8px;outline:none;width:100%;transition:all .18s}textarea{resize:vertical;min-height:92px;padding:.9rem 1rem;line-height:1.55}textarea:focus,.chat-form input:focus,.form-label input:focus,.page-sync-bar input:focus{border-color:#14b8a6b3;box-shadow:0 0 0 3px #14b8a624}.form-label input,.page-sync-bar input{min-height:42px;padding:.65rem .75rem}.btn-primary,.btn-secondary,.btn-ghost{white-space:nowrap;border-radius:8px;justify-content:center;align-items:center;gap:.625rem;padding:.875rem 1.125rem;font-size:.95rem;font-weight:800;line-height:1;text-decoration:none;transition:all .2s;display:inline-flex}.btn-primary{color:#fff;background:linear-gradient(135deg,#14b8a6,#f59e0b);border:1px solid #14b8a6a6;box-shadow:0 16px 32px #14b8a638}.btn-primary:hover{transform:translateY(-2px);box-shadow:0 22px 44px #14b8a64d}.btn-primary:disabled,.btn-secondary:disabled,.btn-ghost:disabled{cursor:not-allowed;opacity:.62;box-shadow:none;transform:none}.btn-secondary{color:#e2e8f0;background:#1e293bd6;border:1px solid #e2e8f029}.btn-secondary:hover{background:#14b8a61f;border-color:#14b8a673;transform:translateY(-2px)}.full{width:100%}.navbar-version{color:var(--muted);white-space:nowrap;text-align:right;font-size:.78rem}.navbar-version button{color:#5eead4;font:inherit;background:0 0;border:0;padding:0;font-weight:800}.navbar-version button:hover{text-decoration:underline}.navbar-version a{color:#5eead4;text-decoration:none}.navbar-version a:hover{text-decoration:underline}.action-row,.toolbar{flex-wrap:wrap;align-items:center;gap:.65rem;display:flex}.toolbar input[type=range]{accent-color:var(--primary);flex:240px}.toolbar.compact{justify-content:flex-end}.range-label{color:#cbd5e1;grid-template-columns:1fr auto;gap:.5rem;margin:.8rem 0;display:grid}.range-label input{width:100%;accent-color:var(--primary);grid-column:1/-1}.check-row{color:#cbd5e1;align-items:center;gap:.6rem;margin-top:.85rem;display:flex}.check-row input{accent-color:var(--primary)}.status-line{color:#5eead4;margin:.8rem 0 0;font-size:.9rem}.scale-warning{color:#fde68a;background:#f59e0b1a;border:1px solid #f59e0b57;border-radius:8px;margin:.8rem 0 0;padding:.75rem .85rem;font-size:.86rem;line-height:1.6}.metric-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.9rem;display:grid}.metric-card{background:#0f172a6b;border:1px solid #e2e8f01a;border-radius:8px;gap:.35rem;min-height:124px;padding:1rem;display:grid}.metric-card b{color:#5eead4;font-size:clamp(1.75rem,3.2vw,2.8rem);line-height:1}.metric-card span{color:#cbd5e1;font-weight:700}.metric-card small{color:var(--muted);line-height:1.4}.result-explainer-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:.85rem;margin-top:1rem;display:grid}.result-explainer-grid article{background:#14b8a612;border:1px solid #14b8a62e;border-radius:8px;gap:.4rem;min-height:116px;padding:.9rem;display:grid}.result-explainer-grid strong{color:#5eead4}.result-explainer-grid span{color:#cbd5e1;font-size:.88rem;line-height:1.7}.content-grid,.doc-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin-top:1rem;display:grid}.sequence-view{overflow-wrap:anywhere;background:#0f172a80;border:1px solid #e2e8f01a;border-radius:8px;min-height:58px;max-height:220px;padding:.8rem;line-height:2.2;overflow:auto}.char-token{color:#e2e8f0;background:#0f172ac2;border:1px solid #e2e8f01f;border-radius:6px;justify-content:center;align-items:center;min-width:1.65rem;height:1.85rem;margin:.12rem;font-weight:800;display:inline-flex}.char-token.common{color:#5eead4;border-color:#14b8a673}.char-token.s1{color:#fbbf24;border-color:#f59e0b73}.char-token.s2{color:#fca5a5;border-color:#ef444473}.muted{color:var(--muted)}.scs-alternative-list{background:#f59e0b14;border:1px solid #f59e0b38;border-radius:8px;flex-wrap:wrap;align-items:center;gap:.45rem;margin-top:.75rem;padding:.65rem;display:flex}.scs-alternative-list strong{color:#fcd34d;margin-right:.25rem}.scs-alternative-list code{color:#e2e8f0;background:#0f172aa3;border:1px solid #e2e8f01a;border-radius:6px;padding:.24rem .45rem;font-family:Cascadia Mono,Consolas,monospace;font-size:.82rem}.scs-alternative-list span{color:var(--muted);font-size:.82rem}.analysis-strip{grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin-top:1rem;display:grid}.analysis-strip>div{background:#14b8a614;border:1px solid #14b8a62e;border-radius:8px;gap:.35rem;padding:1rem;display:grid}.analysis-strip strong{color:#5eead4}.analysis-strip span{color:#cbd5e1;line-height:1.7}.visual-stack,.perf-stack{gap:1rem;display:grid}.step-note{color:#fcd34d;margin:0}.mode-tabs{flex-wrap:wrap;gap:.65rem;display:flex}.speed-control{color:#cbd5e1;align-items:center;gap:.55rem;font-size:.88rem;font-weight:700;display:inline-flex}.speed-control input{width:130px;accent-color:var(--primary)}.animation-explainer{grid-template-columns:1.25fr .75fr .85fr 1.15fr;gap:.8rem;display:grid}.animation-explainer>div{background:#0f172a6b;border:1px solid #e2e8f01a;border-radius:8px;grid-template-rows:auto 1fr;gap:.35rem;min-height:82px;padding:.85rem;display:grid}.animation-explainer strong{color:#5eead4}.animation-explainer span{color:#cbd5e1;line-height:1.65}.animation-detail{background:#0f172a5c;border:1px solid #e2e8f01f;border-radius:10px;margin-top:1rem;padding:1.1rem 1.2rem}.animation-detail-head{align-items:center;gap:.55rem;margin-bottom:.6rem;display:flex}.animation-detail-head .icon-glyph{color:#5eead4;background:#14b8a629;border-radius:50%;justify-content:center;align-items:center;width:22px;height:22px;font-size:.78rem;font-weight:700;display:inline-flex}.animation-detail-head strong{color:#e2e8f0;font-size:.95rem}.animation-detail-intro{color:#cbd5e1;border-bottom:1px solid #e2e8f014;margin:0 0 .65rem;padding-bottom:.65rem;font-size:.88rem;line-height:1.7}.animation-detail-body p{color:#94a3b8;margin:0;font-size:.85rem;line-height:1.75}.scs-construction,.seq-construction{background:#0f172a7a;border:1px solid #e2e8f01a;border-radius:8px;flex-wrap:wrap;align-items:center;gap:.35rem;min-height:72px;padding:.85rem;display:flex;overflow:auto}.scs-construction-label,.seq-construction-label{color:var(--muted);flex-shrink:0;margin-right:.4rem;font-size:.72rem;font-weight:600}.scs-final-result,.seq-final-result{background:#14b8a60f;border-color:#14b8a633;margin-top:.6rem}.backtrack-answer-board{background:#0f172a94;border:1px solid #7dd3fc2e;border-radius:8px;gap:.7rem;padding:.85rem;display:grid}.backtrack-answer-head{flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:.8rem;display:flex}.backtrack-answer-head div{gap:.22rem;min-width:min(100%,280px);display:grid}.backtrack-answer-head strong{color:#e8edf2;font-size:.96rem}.backtrack-answer-head span,.backtrack-limit-note{color:#94a3b8;font-size:.82rem;line-height:1.55}.backtrack-answer-actions,.backtrack-tree{flex-wrap:wrap;gap:.45rem;display:flex}.backtrack-answer-chip{color:#dbeafe;background:#0f172a80;border:1px solid #e2e8f024;border-radius:8px;align-items:center;gap:.4rem;max-width:100%;min-height:2rem;padding:.32rem .55rem;font-size:.78rem;font-weight:900;display:inline-flex}.backtrack-answer-chip-active{color:#f8fafc;background:#14b8a629;border-color:#5eead48c}.backtrack-answer-chip code,.backtrack-tree-row code{text-overflow:ellipsis;white-space:nowrap;max-width:16rem;overflow:hidden}.path-color-dot{border-radius:999px;flex:none;width:.72rem;height:.72rem;box-shadow:0 0 0 2px #0f172ae6}.backtrack-tree{display:grid}.backtrack-tree-row{background:#1e293b7a;border-left:4px solid;border-radius:8px;grid-template-columns:auto minmax(5rem,auto) minmax(0,1fr);align-items:center;gap:.55rem;padding:.45rem .55rem;display:grid}.backtrack-tree-row span{color:#f8fafc;font-size:.76rem;font-weight:900}.backtrack-tree-row em{color:#94a3b8;text-overflow:ellipsis;white-space:nowrap;font-size:.78rem;font-style:normal;overflow:hidden}.backtrack-limit-note{color:#fcd34d;margin:0}.dp-table-wrap{background:#0f172a73;border:1px solid #e2e8f01a;border-radius:8px;max-height:68vh;overflow:auto}.dp-table{border-collapse:collapse;width:100%;min-width:720px}.dp-table th,.dp-table td{text-align:center;border:1px solid #e2e8f01a;min-width:38px;height:34px;font-size:.85rem}.dp-table th{z-index:1;color:#cbd5e1;background:#0f172af5;position:sticky;top:0}.path-cell{outline-offset:-2px;color:#f8fafc;outline:2px solid #f8fafc5c;font-weight:900}.active-cell{color:#f8fafc;font-weight:900;box-shadow:inset 0 0 0 3px #f59e0be6}.tie-cell{box-shadow:inset 0 0 0 3px #ef4444b8}.tie-rule-note{color:#fcd34d!important}.pending-cell{color:#0000}.pending-char{color:#0000;opacity:.55;border-style:dashed;min-width:1.65rem}.active-char{outline-offset:2px;outline:2px solid #f59e0b}.empty-state{min-height:240px;color:var(--muted);place-items:center;display:grid}.chart-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;display:grid}.chart-grid-quad canvas{min-height:320px}.chart-legend{color:#cbd5e1;flex-wrap:wrap;gap:1rem;margin-bottom:.85rem;font-size:.88rem;font-weight:700;display:flex}.chart-legend span{align-items:center;gap:.45rem;display:inline-flex}.legend-dot{border-radius:999px;width:.7rem;height:.7rem;display:inline-block}.dot-standard{background:#14b8a6}.dot-optimized{background:#f59e0b}.dot-hirschberg{background:#60a5fa}.legend-line{border-top:2px dashed #e2e8f08c;width:1.6rem;height:0;display:inline-block}.perf-config-bar{background:#0f172a66;border:1px solid #e2e8f01a;border-radius:8px;flex-wrap:wrap;align-items:center;gap:1rem;padding:.75rem 1rem;display:flex}.perf-config-item{color:var(--muted);align-items:center;gap:.45rem;font-size:.82rem;display:flex}.perf-config-item select{color:var(--text);background:#1e293bd6;border:1px solid #e2e8f02e;border-radius:6px;padding:.3rem .55rem;font-size:.8rem}.perf-config-summary{color:#5eead4;margin-left:auto;font-size:.8rem;font-weight:600}.perf-run-status{background:#0f172a8f;border:1px solid #94a3b82e;border-left:4px solid #94a3b8;border-radius:8px;gap:.7rem;padding:.9rem 1rem;display:grid}.perf-run-status-running{background:#f59e0b1a;border-left-color:#f59e0b}.perf-run-status-done{background:#22c55e1a;border-left-color:#22c55e}.perf-run-status-error{background:#ef44441a;border-left-color:#ef4444}.perf-run-head,.perf-run-metrics{flex-wrap:wrap;align-items:center;gap:.55rem .85rem;min-width:0;display:flex}.perf-run-head strong{color:#f8fafc;font-size:.95rem}.perf-run-head span:last-child{color:var(--muted);font-size:.86rem}.perf-run-dot{background:#94a3b8;border-radius:999px;flex:none;width:.7rem;height:.7rem}.perf-run-status-running .perf-run-dot{background:#f59e0b;animation:1s ease-in-out infinite perfPulse}.perf-run-status-done .perf-run-dot{background:#22c55e}.perf-run-status-error .perf-run-dot{background:#ef4444}.perf-run-metrics span{color:#dbeafe;background:#0f172a61;border:1px solid #e2e8f01f;border-radius:6px;padding:.35rem .5rem;font-size:.78rem;font-weight:700;line-height:1.2}.perf-progress-track{background:#0f172ac7;border:1px solid #e2e8f01a;border-radius:999px;height:.48rem;overflow:hidden}.perf-progress-track span{border-radius:inherit;background:linear-gradient(90deg,#22c55e,#f59e0b);width:0;height:100%;transition:width .18s;display:block}@keyframes perfPulse{0%,to{box-shadow:0 0 #f59e0b61}50%{box-shadow:0 0 0 .35rem #f59e0b00}}.chart-card{position:relative}.chart-card canvas{background:#0f172a73;border:1px solid #e2e8f01a;border-radius:8px;width:100%}.chart-export-btn{color:var(--muted);cursor:pointer;z-index:2;background:#1e293be0;border:1px solid #e2e8f024;border-radius:6px;padding:.18rem .5rem;font-size:.7rem;position:absolute;top:.45rem;right:.45rem}.chart-export-btn:hover{color:#5eead4;border-color:#14b8a666}.perf-analysis-detail{grid-template-columns:repeat(2,minmax(0,1fr));gap:.85rem;display:grid}.perf-analysis-section h3{color:#5eead4;margin:0 0 .5rem;font-size:.92rem}.perf-export-bar{background:#14b8a60f;border:1px solid #14b8a629;border-radius:8px;flex-wrap:wrap;align-items:center;gap:.65rem;padding:.75rem 1rem;display:flex}.perf-export-label{color:var(--muted);font-size:.82rem;font-weight:600}.insight-list{color:#cbd5e1;gap:.65rem;margin:.85rem 0 0;padding-left:1.1rem;line-height:1.7;display:grid}.compact-head{align-items:center;margin-bottom:.75rem}.table-wrap{background:#0f172a6b;border:1px solid #e2e8f01a;border-radius:8px;overflow:auto}.data-table{border-collapse:collapse;width:100%;min-width:880px}.data-table th,.data-table td{text-align:right;color:#cbd5e1;border-bottom:1px solid #e2e8f014;padding:.75rem .85rem;font-size:.86rem}.data-table th:first-child,.data-table td:first-child{text-align:left}.data-table .empty-table-cell{text-align:center;color:var(--muted)}.data-table th{color:#e8edf2;background:#0f172af5;font-weight:800;position:sticky;top:0}canvas{background:#1e293bb8;border:1px solid #e2e8f01a;border-radius:8px;width:100%;height:320px}.doc-grid .panel-card{min-height:150px}.algorithm-lab{grid-template-columns:220px minmax(0,1fr) 280px;gap:1rem;margin-top:1rem;display:grid}.algorithm-topic-list{align-content:start;gap:.55rem;display:grid}.algorithm-topic{color:#cbd5e1;text-align:left;background:#0f172a7a;border:1px solid #e2e8f01a;border-radius:8px;align-items:center;gap:.65rem;min-height:46px;padding:.7rem .8rem;font-weight:800;transition:all .18s;display:flex}.algorithm-topic:hover,.algorithm-topic-active{color:var(--text);background:#14b8a624;border-color:#14b8a685}.algorithm-detail{gap:.85rem;display:grid}.algorithm-detail h2{margin:0;font-size:clamp(1.25rem,2vw,1.8rem)}.algorithm-detail p{margin:0}.algorithm-stepper{flex-wrap:wrap;gap:.55rem;display:flex}.algorithm-step-card{background:#14b8a614;border:1px solid #14b8a638;border-radius:8px;gap:.4rem;padding:1rem;display:grid}.algorithm-step-card strong{color:#5eead4}.algorithm-step-card span{color:#e2e8f0;line-height:1.75}.algorithm-explain-grid{gap:.65rem;display:grid}.algorithm-explain-item{background:#0f172a57;border:1px solid #e2e8f014;border-radius:8px;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:.65rem;padding:.75rem;display:grid}.algorithm-explain-item p{color:#cbd5e1;margin:0;line-height:1.7}.algorithm-code-card{background:#0f172a80;border:1px solid #e2e8f01a;border-radius:8px;gap:.55rem;padding:1rem;display:grid}.algorithm-code-card strong{color:#5eead4}.algorithm-code-card pre,.cpp-output,.cpp-code-editor{font-family:Cascadia Mono,Consolas,monospace}.algorithm-code-card pre,.cpp-output{white-space:pre-wrap;color:#e2e8f0;margin:0;line-height:1.65;overflow:auto}.algorithm-current dl{gap:.7rem;margin:.85rem 0 0;display:grid}.algorithm-current dl div{border-bottom:1px solid #e2e8f014;justify-content:space-between;gap:1rem;padding-bottom:.6rem;display:flex}.algorithm-current dt{color:var(--muted);font-weight:700}.algorithm-current dd{color:#5eead4;margin:0;font-weight:900}.flow-svg{background:#0f172a6b;border:1px solid #e2e8f01a;border-radius:8px;width:100%;margin-top:1rem}.flow-svg rect{fill:#14b8a62e;stroke:#14b8a6b8}.flow-svg text{fill:#e8edf2;text-anchor:middle;dominant-baseline:middle;font-weight:800}.flow-svg path{fill:none;stroke:#f59e0bd1;stroke-width:4px;stroke-linecap:round}.algorithm-flow-card{background:#0f172a6b;border:1px solid #e2e8f01a;border-radius:8px;gap:1rem;margin-top:1rem;padding:1rem;display:grid}.algorithm-flow-card h3{margin:0}.algorithm-flow{align-items:stretch;gap:.7rem;padding-bottom:.2rem;display:flex;overflow-x:auto}.flow-node-wrap{flex:none;align-items:center;gap:.7rem;display:inline-flex}.flow-node{background:#14b8a61a;border:1px solid #14b8a66b;border-radius:8px;gap:.45rem;width:150px;min-height:90px;padding:.8rem;display:grid}.flow-node span{color:#fcd34d;background:#f59e0b2e;border-radius:999px;place-items:center;width:1.6rem;height:1.6rem;font-weight:900;display:grid}.flow-node strong{color:#e8edf2;line-height:1.45}.flow-arrow{background:#f59e0bd1;width:42px;height:2px;position:relative}.flow-arrow:after{content:"";border-top:2px solid #f59e0bd1;border-right:2px solid #f59e0bd1;width:.55rem;height:.55rem;position:absolute;top:50%;right:-1px;transform:translateY(-50%)rotate(45deg)}.references-layout{grid-template-columns:minmax(300px,.82fr) minmax(420px,1.18fr);gap:1rem;display:grid}.references-layout-compact{grid-template-columns:1fr}.reference-list{grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:.75rem;display:grid}.reference-list-row{grid-template-columns:1fr}.reference-list-compact{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}.reference-list-compact.reference-list-row{grid-template-columns:1fr}.reference-card{color:var(--text);text-align:left;cursor:pointer;background:#0f172a85;border:1px solid #e2e8f01a;border-radius:8px;gap:.55rem;padding:1rem;transition:all .18s;display:grid}.reference-list-compact .reference-card{gap:.45rem;padding:.8rem}.reference-card-active,.reference-card:hover{background:#14b8a61f;border-color:#14b8a685;transform:translateY(-2px)}.reference-card:focus-visible{outline-offset:3px;outline:3px solid #14b8a659}.reference-card strong{line-height:1.45}.reference-card em{color:#fcd34d;font-style:normal;line-height:1.5}.reference-card small{color:var(--muted);line-height:1.45}.reference-card p{color:#cbd5e1;margin:0;font-size:.9rem}.reference-card .reference-method{color:#dbeafe}.reference-card .reference-note{color:#5eead4}.reference-list-row .reference-card{grid-template-columns:auto minmax(0,1.2fr) minmax(0,1fr) auto;grid-template-areas:"tag title method actions""tag zh note actions""tag meta note actions";align-items:center;gap:.35rem 1rem;padding:.75rem .85rem}.reference-list-row .reference-card .tag{grid-area:tag}.reference-list-row .reference-card strong{grid-area:title}.reference-list-row .reference-card em{grid-area:zh}.reference-list-row .reference-card small{grid-area:meta}.reference-list-row .reference-card .reference-method{grid-area:method}.reference-list-row .reference-card .reference-note{grid-area:note}.reference-list-row .reference-card .reference-actions{grid-area:actions;place-self:center end;margin-top:0}.reference-actions{flex-wrap:wrap;gap:.5rem;margin-top:.2rem;display:flex}.standalone-page{background:radial-gradient(circle at 16% 10%,#14b8a61f,#0000 30rem),linear-gradient(135deg,#111318fa,#121b1efa);min-height:100vh}.standalone-header{z-index:30;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);background:#0f172ad6;border-bottom:1px solid #e2e8f01a;justify-content:space-between;align-items:center;gap:1rem;padding:.9rem 1.25rem;display:flex;position:sticky;top:0}.standalone-header strong{color:var(--text);font-size:1rem;display:block}.standalone-header span{color:var(--muted);margin-top:.2rem;font-size:.84rem;display:block}.standalone-main{gap:1rem;width:min(1680px,100vw - 2rem);margin:0 auto;padding:1rem 0 2rem;display:grid}.compact-control-head{justify-content:space-between;align-items:center;gap:1rem;margin-bottom:.75rem;display:flex}.visual-control-grid{grid-template-columns:minmax(240px,1fr) minmax(240px,1fr) minmax(280px,.8fr);align-items:start;gap:.85rem;display:grid}.visual-control-grid textarea{min-height:110px;max-height:180px}.visual-control-actions{gap:.75rem;display:grid}.preset-grid-compact{grid-template-columns:repeat(2,minmax(0,1fr));margin:0}.visual-full-panel{min-height:auto}.reference-reader-layout{grid-template-columns:minmax(0,1fr) minmax(360px,430px);gap:1rem;width:min(1680px,100vw - 2rem);margin:0 auto;padding:1rem 0 2rem;display:grid}.reference-pdf-panel,.reference-ai-panel{min-width:0}.reader-paper-head{background:#1e293bb8;border:1px solid #e2e8f01a;border-radius:8px;gap:.55rem;margin-bottom:1rem;padding:1rem;display:grid}.reader-paper-head h1{margin:0;font-size:clamp(1.2rem,2vw,1.85rem)}.reader-paper-head p{color:#cbd5e1;margin:0}.reader-paper-head small{color:var(--muted);line-height:1.55}.reference-method-panel{background:#14b8a614;border:1px solid #14b8a633;border-radius:8px;gap:.45rem;margin-bottom:1rem;padding:.85rem 1rem;display:grid}.reference-method-panel strong{color:#5eead4}.reference-method-panel p{color:#dbeafe;margin:0;line-height:1.65}.reference-method-panel ul{color:#cbd5e1;margin:0;padding-left:1.1rem;line-height:1.65}.reference-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;display:grid}.reference-code-panel{background:#1e293bb8;border:1px solid #e2e8f01a;border-radius:8px;gap:.85rem;margin-bottom:1rem;padding:1rem;display:grid}.reference-code-panel h3,.reference-code-panel p{margin:0}.cpp-runner-grid{grid-template-columns:minmax(0,1.25fr) minmax(260px,.75fr);gap:1rem;display:grid}.cpp-code-editor{resize:vertical;white-space:pre;min-height:420px;font-size:.82rem;overflow:auto}.cpp-runner-side{align-content:start;gap:.85rem;display:grid}.cpp-output{background:#0f172aa3;border:1px solid #e2e8f01a;border-radius:8px;min-height:128px;padding:.85rem}.page-sync-bar{background:#0f172a6b;border:1px solid #e2e8f01a;border-radius:8px;flex-wrap:wrap;align-items:center;gap:.7rem;margin-bottom:1rem;padding:.75rem;display:flex}.page-sync-bar label{color:#cbd5e1;align-items:center;gap:.45rem;font-weight:800;display:inline-flex}.page-sync-bar input{width:92px}.reference-compare-grid{grid-template-columns:minmax(0,1fr) minmax(320px,.46fr);align-items:stretch;gap:1rem;display:grid}.translation-panel{background:#14b8a614;border:1px solid #14b8a633;border-radius:8px;align-content:start;gap:.75rem;min-height:calc(100vh - 250px);max-height:calc(100vh - 170px);padding:1rem;display:grid;overflow:auto}.translation-panel h2{color:#e8edf2;margin:0;font-size:1.25rem}.translation-panel p{color:#dbeafe;margin:0;line-height:1.8}.reference-pdf-frame{min-height:calc(100vh - 250px)}.reference-ai-panel{align-self:start;position:sticky;top:5.25rem}.tag{color:#fcd34d;background:#f59e0b1f;border:1px solid #f59e0b47;border-radius:8px;align-items:center;width:max-content;padding:.35rem .65rem;font-size:.78rem;font-weight:800;display:inline-flex}.pdf-frame{background:#fff;border:1px solid #e2e8f01f;border-radius:8px;width:100%;min-height:70vh}.modal-backdrop{z-index:60;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#020817b8;place-items:start center;padding:5rem 1.25rem 2rem;display:grid;position:fixed;inset:0}.modal-panel{background:#111318f5;border:1px solid #e2e8f01f;border-radius:8px;width:min(1180px,96vw);max-height:84vh;padding:1rem;overflow:auto;box-shadow:0 24px 60px #0208177a}.guide-backdrop{z-index:90}.guide-panel{gap:1rem;padding:1.15rem;display:grid}.guide-head{border-bottom:1px solid #e2e8f01a;justify-content:space-between;align-items:flex-start;gap:1rem;padding-bottom:1rem;display:flex}.guide-head h1{letter-spacing:0;margin:.65rem 0 .25rem;font-size:clamp(1.45rem,2.3vw,2.25rem)}.guide-head p{color:var(--muted);margin:0;line-height:1.7}.guide-close{color:#e2e8f0;background:#0f172aad;border:1px solid #e2e8f024;border-radius:8px;flex:none;place-items:center;width:2.25rem;height:2.25rem;font-size:1.35rem;line-height:1;display:grid}.guide-actions,.guide-footer-actions{flex-wrap:wrap;gap:.65rem;display:flex}.guide-footer-actions{border-top:1px solid #e2e8f01a;justify-content:flex-end;padding-top:1rem}.guide-grid,.guide-example-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.85rem;display:grid}.guide-card,.guide-release,.guide-example-card{background:#0f172a7a;border:1px solid #e2e8f01a;border-radius:8px;padding:.95rem}.guide-card h2,.guide-release h3{color:var(--text);margin:0 0 .45rem}.guide-card p,.guide-release li,.guide-example-card span{color:#cbd5e1;line-height:1.7}.guide-section{gap:.8rem;display:grid}.compact-head{margin-bottom:0}.guide-example-card{text-align:left;color:var(--text);gap:.4rem;display:grid}.guide-example-card:hover{background:#14b8a61f;border-color:#14b8a673}.guide-example-card strong{color:#5eead4;font-size:.98rem}.guide-release ul{margin:.4rem 0 0;padding-left:1.15rem}.long-text{white-space:pre-wrap;overflow-wrap:anywhere;color:#e2e8f0;max-height:52vh;margin:0;font-family:Cascadia Mono,Consolas,monospace;line-height:1.8;overflow:auto}.chat-shell{pointer-events:none;z-index:70;flex-direction:column;align-items:flex-end;display:flex;position:fixed;bottom:1.25rem;right:1.25rem}.chat-panel{pointer-events:none;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);opacity:0;background:#0f172af5;border:1px solid #e2e8f01a;border-radius:8px;flex-direction:column;width:min(100vw - 2rem,430px);max-height:min(720px,100dvh - 6rem);margin-bottom:1rem;transition:all .24s;display:flex;overflow:hidden;transform:translateY(16px)scale(.96);box-shadow:0 24px 60px #0208178c}.chat-panel-open{pointer-events:auto;opacity:1;transform:translateY(0)scale(1)}.chat-inline-wrap{min-width:0}.chat-panel-inline{opacity:1;pointer-events:auto;flex-direction:column;width:100%;height:auto;max-height:calc(100vh - 6.5rem);margin:0;display:flex;transform:none}.chat-head{background:#1e293bcc;border-bottom:1px solid #e2e8f01a;grid-template-columns:auto minmax(0,1fr) auto;align-items:flex-start;gap:.42rem .75rem;padding:.85rem;display:grid}.chat-title-block{flex:1;min-width:0}.chat-title-block p{margin:0;font-weight:800}.chat-title-block .chat-status-row{color:var(--muted);text-overflow:ellipsis;flex-wrap:wrap;align-items:center;gap:.5rem;margin-top:.18rem;font-size:.78rem;display:flex;overflow:hidden}.chat-head-actions{flex:none;align-items:flex-start;gap:.45rem;display:flex}.assistant-mark{color:#f8fafc;background:linear-gradient(135deg,#061827,#0b2638 58%,#10202b);border:1px solid #7dd3fc47;border-radius:8px;flex:none;place-items:center;width:2.4rem;height:2.4rem;display:grid;box-shadow:0 0 0 3px #0ea5e91a}.assistant-mark svg{fill:#061827;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;width:1.9rem;height:1.9rem}.assistant-mark-small{border-radius:7px;width:1.8rem;height:1.8rem;margin-top:.1rem}.assistant-mark-small svg{width:1.45rem;height:1.45rem}.icon-button{color:#cbd5e1;background:#ffffff0f;border:0;border-radius:8px;place-items:center;width:2rem;height:2rem;display:grid}.chat-content-scroll{scrollbar-width:thin;flex-direction:column;flex:auto;min-height:0;display:flex;overflow-y:auto}.chat-context-card{background:#14b8a612;border:1px solid #14b8a62e;border-radius:8px;gap:.55rem;margin:.65rem .75rem 0;padding:.7rem;display:grid}.chat-context-card-message{margin:0}.chat-context-card-head{justify-content:space-between;align-items:center;gap:.5rem;display:flex}.chat-context-card-head strong{color:#e8edf2;font-size:.84rem}.chat-context-card-head span{color:#fcd34d;font-size:.72rem;font-weight:800}.chat-context-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem;display:grid}.chat-context-grid div{background:#0f172a6b;border:1px solid #e2e8f014;border-radius:8px;gap:.16rem;min-width:0;padding:.48rem;display:grid}.chat-context-grid span,.chat-section-label{color:#94a3b8;font-size:.7rem;font-weight:800}.chat-context-grid strong{color:#dbeafe;text-overflow:ellipsis;white-space:nowrap;font-size:.78rem;line-height:1.35;overflow:hidden}.chat-context-strip{flex-wrap:wrap;gap:.4rem;padding:0;display:flex}.chat-context-strip span{text-overflow:ellipsis;white-space:nowrap;color:#cbd5e1;background:#14b8a614;border:1px solid #5eead433;border-radius:8px;max-width:100%;padding:.28rem .48rem;font-size:.72rem;font-weight:700;overflow:hidden}.chat-mode,.quick-prompts{border-bottom:1px solid #e2e8f014;gap:.45rem;padding:.65rem .75rem;display:grid}.chat-mode{grid-template-columns:auto minmax(0,1fr);align-items:center;gap:.55rem;padding-block:.48rem}.chat-mode-options,.quick-prompt-options{flex-wrap:wrap;gap:.45rem;display:flex}.chat-mode-options{scrollbar-width:thin;flex-wrap:nowrap;gap:.32rem;overflow-x:auto}.chat-mode-options .mini-action{flex:none;min-height:32px;padding:.32rem .58rem;font-size:.78rem}.chat-body{flex-direction:column;gap:.65rem;min-height:132px;max-height:min(40vh,340px);padding:.85rem;display:flex;overflow-y:auto}.chat-panel-inline .chat-body{flex:0 auto;min-height:138px;max-height:min(46vh,380px)}.chat-row{justify-content:flex-start;align-items:flex-start;gap:.45rem;display:flex}.chat-row-user{justify-content:flex-end}.chat-row-context{display:block}.chat-message-stack{gap:.28rem;max-width:calc(100% - 2.1rem);display:grid}.chat-message-stack-user{justify-items:end;max-width:78%}.chat-bubble{white-space:pre-wrap;overflow-wrap:anywhere;border-radius:8px;width:-moz-fit-content;width:fit-content;max-width:calc(100% - 2.1rem);margin:0;padding:.62rem .76rem;font-size:.9rem;line-height:1.55}.chat-message-stack .chat-bubble{max-width:100%}.chat-bubble-user{color:#fff;background:linear-gradient(135deg,#14b8a6,#f59e0b)}.chat-bubble-service{color:#e2e8f0;background:#1e293be6;border:1px solid #e2e8f01a}.chat-source-note{color:#94a3b8;border-top:1px solid #94a3b81f;align-items:center;width:-moz-fit-content;width:fit-content;margin-inline:.2rem;padding:.38rem .1rem 0;font-size:.72rem;line-height:1.35;display:inline-flex}.chat-regenerate-button{color:#dbeafe;background:#14b8a61a;border:1px solid #5eead442;border-radius:8px;justify-self:start;width:max-content;max-width:100%;min-height:30px;padding:.35rem .55rem;font-size:.74rem;font-weight:800}.chat-regenerate-button:hover:not(:disabled){color:#fff;background:#14b8a62e;border-color:#5eead485}.typing{align-items:center;gap:.35rem;display:inline-flex}.typing-text{color:#cbd5e1;font-weight:700}.typing-dot{background:#5eead4;border-radius:999px;width:.4rem;height:.4rem;animation:.9s ease-in-out infinite typing-dot}.delay-150{animation-delay:.15s}.delay-300{animation-delay:.3s}.chat-form{border-top:1px solid #e2e8f01a;gap:.55rem;padding:.72rem;display:flex}.chat-mode-input{border-top:1px solid #e2e8f014;border-bottom:0}.chat-form input{min-width:0;padding:.74rem .85rem}.chat-fab{pointer-events:auto;color:#fff;background:#0f172af5;border:1px solid #5eead46b;border-radius:999px;place-items:center;width:3.5rem;height:3.5rem;font-size:1.25rem;transition:all .2s;display:grid;box-shadow:0 22px 44px #14b8a64d}.chat-fab .assistant-mark-small{margin:0;transform:scale(1.08)}.chat-fab:hover{transform:translateY(-3px)}.site-footer{width:100%;max-width:1680px;padding:0 var(--assistant-safe-gutter) 1.2rem 1.25rem;color:var(--muted);justify-content:space-between;gap:1rem;margin:0 auto;font-size:.86rem;display:flex}.footer-contact{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:.55rem;display:inline-flex}.site-footer a{color:#5eead4;text-decoration:none}.site-footer a:hover{text-decoration:underline}.footer-link-button{color:#5eead4;font:inherit;background:0 0;border:0;padding:0;font-weight:800}.footer-link-button:hover{text-decoration:underline}.footer-contact small{color:#fcd34d}.site-footer-standalone{padding-top:.2rem;padding-bottom:1.2rem}.page-enter,.page-enter-soft,.page-enter-rise,.page-enter-scale,.page-enter-slide-left,.page-enter-slide-right{opacity:1;transform:none}@keyframes typing-dot{0%,to{opacity:.45;transform:translateY(0)}50%{opacity:1;transform:translateY(-3px)}}@keyframes page-enter{0%{opacity:0;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}@keyframes page-enter-soft{0%{opacity:0;filter:blur(8px)}to{opacity:1;filter:blur()}}@keyframes page-enter-rise{0%{opacity:0;transform:translateY(24px)scale(.985)}to{opacity:1;transform:translateY(0)scale(1)}}@keyframes page-enter-scale{0%{opacity:0;transform:scale(.98)}to{opacity:1;transform:scale(1)}}@keyframes page-enter-slide-left{0%{opacity:0;transform:translate(18px)}to{opacity:1;transform:translate(0)}}@keyframes page-enter-slide-right{0%{opacity:0;transform:translate(-18px)}to{opacity:1;transform:translate(0)}}@media (max-width:1180px){.site-nav,.main-grid,.references-layout,.algorithm-lab,.visual-control-grid,.reference-reader-layout,.reference-detail-grid,.cpp-runner-grid,.reference-compare-grid{grid-template-columns:1fr}.nav-links{justify-content:flex-start}.metric-grid,.result-explainer-grid,.content-grid,.doc-grid,.analysis-strip,.chart-grid,.reference-list,.perf-insight-grid,.animation-explainer,.guide-grid,.guide-example-grid{grid-template-columns:1fr}.site-footer{flex-direction:column}.page-panel{min-height:auto}.reference-ai-panel{position:static}.chat-panel-inline{height:auto;min-height:0;max-height:none}.chat-panel-inline .chat-body{max-height:360px}.reference-list-row .reference-card{grid-template-columns:1fr;grid-template-areas:none}.reference-list-row .reference-card .tag,.reference-list-row .reference-card strong,.reference-list-row .reference-card em,.reference-list-row .reference-card small,.reference-list-row .reference-card .reference-method,.reference-list-row .reference-card .reference-note,.reference-list-row .reference-card .reference-actions{grid-area:auto}.reference-list-row .reference-card .reference-actions{justify-self:start}}@media (max-width:640px){.site-nav,.main-grid{padding-inline:.8rem}.site-nav{gap:.75rem}.site-footer{padding-inline:.8rem}.brand,.btn-secondary{width:100%}.preset-grid{grid-template-columns:1fr}.metric-card{min-height:104px}.action-row>*{flex:100%}.modal-backdrop{padding:4rem .75rem 1rem}.chat-shell{bottom:.6rem;left:auto;right:.6rem}.chat-panel{width:calc(100vw - 1.2rem);max-height:calc(100dvh - 5rem);margin-bottom:.65rem}.chat-head{gap:.38rem .55rem;padding:.72rem}.chat-head-actions{align-items:flex-end}.chat-mode{padding-block:.42rem}.chat-context-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.quick-prompt-options .mini-action{flex:140px}.chat-body{max-height:32vh}.chat-fab{width:3.1rem;height:3.1rem;display:grid}}@media (max-width:360px){.chat-context-grid{grid-template-columns:1fr}}
