.dp-table-container{position:relative;width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:auto;padding:10px}.dp-table-svg{display:block;flex-shrink:0}.legend{display:flex;justify-content:center;gap:20px;margin-top:15px;padding-top:10px;border-top:1px solid #eee}.legend-item{display:flex;align-items:center;gap:6px;font-size:13px;color:#666}.legend-item .dot{width:16px;height:16px;border-radius:3px;border:2px solid}.legend-item .dot.current{background:#fff59d;border-color:#f9a825}.legend-item .dot.source{background:#ffecb3;border-color:#ff9800}.legend-item .dot.match{background:#a5d6a7;border-color:#2e7d32}.legend-item .arrow-legend{width:24px;height:4px;border-radius:2px;position:relative}.legend-item .arrow-legend:after{content:"";position:absolute;right:-4px;top:-3px;border:5px solid transparent;border-left-width:8px}.legend-item .arrow-legend.green{background:#4caf50}.legend-item .arrow-legend.green:after{border-left-color:#4caf50}.legend-item .arrow-legend.blue{background:#2196f3}.legend-item .arrow-legend.blue:after{border-left-color:#2196f3}.legend-item .arrow-legend.orange{background:#ff9800}.legend-item .arrow-legend.orange:after{border-left-color:#ff9800}.cell-tooltip{position:absolute;z-index:1000;pointer-events:none;display:flex;align-items:center}.tooltip-arrow{width:0;height:0;border-top:10px solid transparent;border-bottom:10px solid transparent;border-right:12px solid #2196F3;flex-shrink:0;filter:drop-shadow(-2px 0 2px rgba(0,0,0,.1))}.tooltip-content{background:linear-gradient(135deg,#2196f3,#1976d2);color:#fff;border-radius:8px;padding:10px 14px;box-shadow:0 4px 16px #2196f34d;min-width:160px;max-width:280px;font-size:13px}.tooltip-header{display:flex;align-items:center;gap:8px;margin-bottom:8px;padding-bottom:6px;border-bottom:1px solid rgba(255,255,255,.3)}.tooltip-header .cell-pos{font-family:Consolas,monospace;font-weight:600;font-size:14px}.tooltip-header .cell-value{background:#fff3;padding:2px 8px;border-radius:4px;font-weight:700;font-size:16px}.tooltip-lcs{display:flex;align-items:center;gap:6px;margin-bottom:8px}.tooltip-lcs .lcs-label{font-size:12px;opacity:.9}.tooltip-lcs .lcs-value{background:#fffffff2;color:#1565c0;font-weight:700;font-family:Consolas,monospace;font-size:15px;padding:2px 8px;border-radius:4px}.tooltip-strings{display:flex;flex-direction:column;gap:4px}.tooltip-string{display:flex;align-items:center;gap:6px;font-family:Consolas,monospace}.tooltip-label{font-size:11px;opacity:.8;min-width:22px}.tooltip-char{display:inline-block;width:20px;height:20px;line-height:20px;text-align:center;border-radius:3px;background:#ffffff26;color:#ffffffe6;font-size:13px}.tooltip-char.highlight{background:#4caf50;color:#fff;font-weight:700;box-shadow:0 0 0 2px #ffffff80}.tooltip-empty{color:#ffffffb3;font-style:italic;font-size:12px}.code-panel{height:100%;display:flex;flex-direction:column;font-family:Consolas,Monaco,Courier New,monospace;background:#1e1e1e}.inline-values{margin-left:12px;display:inline-flex;align-items:center;gap:8px;font-size:10px;font-family:Consolas,Monaco,Courier New,monospace;flex-wrap:wrap}.inline-var{color:#858585;background:#ffffff0f;padding:2px 6px;border-radius:3px;border:1px solid rgba(255,255,255,.08)}.inline-var.param{background:#4ec9b01a;border-color:#4ec9b033;color:#4ec9b0}.inline-val.str{color:#ce9178;font-style:italic}.inline-var.dim{background:#64b5f61a;border-color:#64b5f633;color:#64b5f6}.inline-var.loop-var{background:#ffd54f1a;border-color:#ffd54f33;color:#ffd54f}.inline-condition{color:#888;font-size:9px;padding:1px 4px;background:#ffffff08;border-radius:2px}.inline-var.char-var{background:#9cdcfe1a;border-color:#9cdcfe33}.inline-val.char{color:#ce9178;font-weight:700}.inline-var.source-var{background:#81c7841a;border-color:#81c78433;color:#81c784}.inline-op{color:#d4d4d4;font-weight:600}.max-values{gap:4px}.inline-max-label{color:#dcdcaa;font-weight:600}.inline-comma{color:gray}.cell-label{font-size:8px;color:#888;margin-right:2px;vertical-align:super}.inline-var.winner{background:#81c78440;border-color:#81c78466;color:#81c784}.inline-var.winner .inline-val{color:#a5d6a7;font-weight:700}.inline-var.loser{background:#ef535026;border-color:#ef535040;color:#999;opacity:.8}.inline-var.loser .inline-val{color:#ef9a9a}.inline-val{color:#ce9178;font-weight:600}.inline-val.result{color:#4fc3f7;font-weight:700}.inline-val.result.final{color:#ffd54f;font-size:12px;text-shadow:0 0 4px rgba(255,213,79,.5)}.inline-assign{color:#9cdcfe;margin-left:4px}.inline-result{padding:2px 8px;border-radius:3px;font-weight:600}.inline-result.match{background:#81c7844d;color:#81c784;border:1px solid rgba(129,199,132,.4)}.inline-result.mismatch{background:#ffb74d4d;color:#ffb74d;border:1px solid rgba(255,183,77,.4)}.inline-result-label{color:#888;font-size:9px;margin-left:4px}.return-values .inline-var{background:#2196f326;border-color:#2196f34d}.bp-area{width:16px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.breakpoint{color:#e51400;font-size:10px;animation:pulse 1s ease-in-out infinite}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}.code-header{display:flex;align-items:center;gap:8px;padding:10px 14px;background:#2d2d2d;border-bottom:1px solid #404040;flex-shrink:0}.code-icon{font-size:16px}.code-title{color:#e0e0e0;font-size:13px;font-weight:500;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}.code-pos{margin-left:auto;background:#4a4a4a;color:#ffd54f;padding:3px 10px;border-radius:4px;font-size:12px;font-weight:600}.code-body{flex:1;overflow-y:auto;overflow-x:hidden}.code-pre{margin:0;padding:8px 0;font-size:11px;line-height:1.6}.line{display:flex;align-items:center;padding:2px 4px 2px 0;min-height:22px;border-left:3px solid transparent;transition:all .15s ease}.line.hl{border-left-color:#ffd54f}.line.hl-init{background:#64b5f626;border-left-color:#64b5f6}.line.hl-loop{background:#ffd54f1f;border-left-color:#ffd54f}.line.hl-compare{background:#9cdcfe26;border-left-color:#9cdcfe}.line.hl-match{background:#81c78433;border-left-color:#81c784}.line.hl-mismatch{background:#ffb74d33;border-left-color:#ffb74d}.line.hl-return{background:#2196f326;border-left-color:#2196f3}.ln{min-width:28px;padding:0 10px 0 8px;text-align:right;color:#606060;font-size:11px;-webkit-user-select:none;user-select:none;flex-shrink:0}.lc{color:#d4d4d4;white-space:pre}.kw{color:#569cd6}.cls{color:#4ec9b0}.fn{color:#dcdcaa}.num{color:#b5cea8}.var{color:#9cdcfe}.code-footer{padding:8px 14px;background:#2d2d2d;border-top:1px solid #404040;flex-shrink:0}.status{color:#aaa;font-size:11px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}.code-body::-webkit-scrollbar{width:8px;height:8px}.code-body::-webkit-scrollbar-track{background:#2d2d2d}.code-body::-webkit-scrollbar-thumb{background:#555;border-radius:4px}.code-body::-webkit-scrollbar-thumb:hover{background:#666}html,body,#root{height:100%;width:100%;overflow:hidden}.app{width:100%;height:100vh;display:flex;flex-direction:column;background:#f5f5f5;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;overflow:hidden}.header{width:100%;height:50px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:0 20px;background:linear-gradient(135deg,#2196f3,#1565c0);color:#fff;flex-shrink:0}.header h1{font-size:18px;font-weight:600;white-space:nowrap}.header-controls{display:flex;flex-direction:row;align-items:center;gap:16px}.input-group{display:flex;flex-direction:row;align-items:center;gap:6px}.input-group label{font-size:13px;font-weight:500}.input-group input{width:140px;padding:6px 10px;font-size:14px;font-family:Consolas,Monaco,monospace;border:none;border-radius:4px;background:#fffffff2}.input-group input:focus{outline:2px solid rgba(255,255,255,.5)}.input-group input:disabled{background:#fff9;color:#666}.action-btn{padding:8px 20px;font-size:13px;font-weight:600;border:none;border-radius:4px;cursor:pointer}.action-btn.start{background:#27ae60;color:#fff}.action-btn.reset{background:#fff3;color:#fff;border:1px solid rgba(255,255,255,.3)}.action-btn:disabled{opacity:.5;cursor:not-allowed}.main{flex:1;display:flex;flex-direction:row!important;width:100%;overflow:hidden}.code-section{width:1572px;min-width:1572px;height:100%;display:flex;flex-direction:column;background:#1e1e1e;flex-shrink:0}.table-section{flex:1;height:100%;display:flex;flex-direction:column;background:#fff;border-left:1px solid #ddd;border-right:1px solid #ddd;min-width:0}.section-header{display:flex;align-items:center;justify-content:space-between;padding:10px 16px;background:#fafafa;border-bottom:1px solid #e0e0e0;flex-shrink:0}.section-title{font-size:14px;font-weight:600;color:#333}.progress-container{display:flex;align-items:center;gap:12px;flex:1}.step-badge{background:#2196f3;color:#fff;padding:3px 10px;border-radius:12px;font-size:12px;white-space:nowrap;flex-shrink:0}.progress-bar-wrapper{flex:1;height:8px;background:#e0e0e0;border-radius:4px;position:relative;min-width:100px}.progress-bar-fill{position:absolute;top:0;left:0;height:100%;background:linear-gradient(90deg,#4caf50,#8bc34a);border-radius:4px;transition:width .1s ease;pointer-events:none}.progress-bar-input{position:absolute;top:50%;left:0;width:100%;height:20px;transform:translateY(-50%);opacity:0;cursor:pointer;margin:0}.progress-bar-input:disabled{cursor:not-allowed}.progress-bar-wrapper:hover .progress-bar-fill{background:linear-gradient(90deg,#43a047,#7cb342)}.table-area{flex:1;display:flex;align-items:center;justify-content:center;overflow:hidden;padding:0}.welcome-box{text-align:center;color:#888}.welcome-icon{font-size:48px;margin-bottom:16px}.welcome-title{font-size:16px;font-weight:500;color:#555;margin-bottom:8px}.welcome-sub{font-size:13px;color:#999}.info-section{width:280px;min-width:280px;height:100%;display:flex;flex-direction:column;gap:10px;padding:12px;background:#fafafa;overflow-y:auto;flex-shrink:0}.strings-box{background:#fff;border-radius:8px;padding:12px;box-shadow:0 1px 3px #0000001a}.string-row{display:flex;align-items:center;gap:10px;margin-bottom:8px}.string-row:last-child{margin-bottom:0}.str-label{font-size:12px;font-weight:700;color:#2196f3;min-width:24px}.chars{display:flex;gap:4px;flex-wrap:wrap}.char{width:28px;height:28px;display:flex;align-items:center;justify-content:center;font-family:Consolas,monospace;font-size:15px;font-weight:600;border:2px solid #e0e0e0;border-radius:4px;background:#fff}.char.active{background:#fff3cd;border-color:#ffc107;transform:scale(1.1)}.char.lcs{background:#d4edda;border-color:#28a745;color:#155724}.controls-box{background:#fff;border-radius:8px;padding:12px;box-shadow:0 1px 3px #0000001a}.btn-row{display:flex;gap:8px;justify-content:center;margin-bottom:12px}.ctrl-btn{width:40px;height:36px;font-size:16px;border:none;border-radius:6px;cursor:pointer;display:flex;align-items:center;justify-content:center;background:#e9ecef;color:#495057}.ctrl-btn.play{background:#28a745;color:#fff}.ctrl-btn.pause{background:#ffc107;color:#212529}.ctrl-btn.trace{background:#1976d2;color:#fff}.ctrl-btn:disabled{opacity:.4;cursor:not-allowed}.ctrl-btn.with-shortcut{width:auto;min-width:50px;padding:4px 10px;flex-direction:column;gap:2px}.ctrl-btn .btn-icon{font-size:16px;line-height:1}.ctrl-btn .shortcut-hint{font-size:9px;font-weight:600;color:inherit;opacity:.7;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;line-height:1}.ctrl-btn.play .shortcut-hint,.ctrl-btn.pause .shortcut-hint{opacity:.8}.ctrl-btn:hover:not(:disabled) .shortcut-hint{opacity:1}.speed-row{display:flex;align-items:center;gap:8px;justify-content:center}.speed-label{font-size:12px;color:#666}.speed-val{font-size:12px;font-weight:600;color:#2196f3;min-width:35px}.speed{width:80px;height:4px;cursor:pointer}.explain-box{background:#fff;border-radius:8px;flex:1;display:flex;flex-direction:column;box-shadow:0 1px 3px #0000001a;overflow:hidden;min-height:200px}.explain-header{padding:10px 14px;font-size:13px;font-weight:600;color:#333;background:#f8f9fa;border-bottom:2px solid #2196F3}.intro{padding:16px;text-align:center}.intro-title{font-size:14px;font-weight:600;color:#333;margin-bottom:6px}.intro-example{font-size:12px;color:#666;margin-bottom:16px}.rules{display:flex;flex-direction:column;gap:10px}.rule{display:flex;align-items:center;gap:10px;padding:10px;border-radius:8px;text-align:left}.rule.match{background:#d4edda;border:1px solid #c3e6cb}.rule.mismatch{background:#fff3cd;border:1px solid #ffeeba}.rule-icon{font-size:20px}.rule strong{font-size:12px;display:block;color:#333}.rule p{font-size:11px;color:#666;margin:3px 0 0}.waiting{padding:30px;text-align:center;color:#999;font-size:13px}.step-explain{padding:16px;display:flex;flex-direction:column;gap:12px}.compare-box{display:flex;align-items:center;justify-content:center;gap:12px;padding:14px;background:#f8f9fa;border-radius:8px}.compare-char{width:42px;height:42px;display:flex;align-items:center;justify-content:center;font-family:Consolas,monospace;font-size:22px;font-weight:700;border:3px solid #dee2e6;border-radius:8px;background:#fff}.compare-char.match{background:#d4edda;border-color:#28a745;color:#155724}.compare-op{font-size:24px;font-weight:700;color:#666}.result-box{display:flex;align-items:flex-start;gap:10px;padding:12px;border-radius:8px}.result-box.match{background:#d4edda;border:1px solid #c3e6cb}.result-box.mismatch{background:#fff3cd;border:1px solid #ffeeba}.result-icon{font-size:20px}.result-text strong{font-size:13px;display:block;margin-bottom:4px;color:#333}.result-text p{font-size:12px;color:#555;margin:0}.result-text p strong{display:inline;font-size:16px;color:#28a745}.hint{text-align:center;font-size:11px;color:#888;background:#f8f9fa;padding:8px;border-radius:6px}.complete{padding:20px;text-align:center}.complete-icon{font-size:40px;margin-bottom:10px}.complete-title{font-size:16px;font-weight:600;color:#28a745;margin-bottom:16px}.lcs-result{background:#d4edda;padding:16px;border-radius:8px}.lcs-len{font-size:13px;margin-bottom:6px}.lcs-len strong{font-size:28px;color:#28a745}.lcs-str{font-size:13px}.lcs-str code{font-family:Consolas,monospace;font-size:18px;font-weight:600;color:#155724}.trace-hint{font-size:12px;color:#888;margin-top:10px}*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;background-color:#f5f5f5;color:#333;line-height:1.5;overflow:hidden}#root{width:100%;height:100vh}
