:root{color-scheme:dark;font-family:Inter,Segoe UI,Arial,sans-serif;background:radial-gradient(circle at 20% 20%,#14264f,#090d1f 50%,#05060d);color:#e7eeff}*{box-sizing:border-box}html,body,#root{margin:0;height:100%}.app-shell{height:100vh;padding:.8rem 1rem;overflow:hidden;display:flex;flex-direction:column}.top-bar{display:flex;align-items:center;gap:1rem;margin-bottom:.6rem}.top-bar h1{margin:0;font-size:1.45rem;letter-spacing:.5px;white-space:nowrap}.top-progress{display:flex;align-items:center;gap:.5rem;min-width:120px}.progress-track-inline{flex:1;height:8px;border-radius:99px;overflow:hidden;background:#0f1b38;border:1px solid #304a7b;min-width:80px}.progress-label{font-size:.82rem;color:#a8c4ff;white-space:nowrap}.top-bar input{width:min(300px,100%);margin-left:auto;border:1px solid #42588a;background:#111a35;color:#dfe8ff;border-radius:10px;padding:.65rem .8rem;outline:none}.content-full{position:relative;flex:1;min-height:0}.tree-area{border:1px solid #314975;background:#0a1224bf;border-radius:14px;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:grid;place-items:center;padding:.45rem;height:100%;overflow:auto}.detail-overlay{position:absolute;top:0;right:0;bottom:0;left:0;z-index:9}.detail-panel{position:absolute;top:0;right:0;width:380px;max-width:90vw;height:100%;border:1px solid #314975;background:#0a1224eb;border-radius:14px 0 0 14px;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);padding:1rem;display:flex;flex-direction:column;gap:.7rem;overflow:hidden;z-index:10;animation:slideIn .36s cubic-bezier(.22,1,.36,1) both}.detail-description{max-height:30%;overflow-y:auto;flex-shrink:0;scrollbar-width:thin;scrollbar-color:#3a5a8f #0c1628;white-space:pre-wrap;word-wrap:break-word}.detail-description::-webkit-scrollbar{width:5px}.detail-description::-webkit-scrollbar-track{background:#0c1628;border-radius:4px}.detail-description::-webkit-scrollbar-thumb{background:#3a5a8f;border-radius:4px}.detail-image{flex-shrink:0;margin:8px 0;border-radius:8px;overflow:hidden;border:1px solid #1e3a5f}.detail-image img{width:100%;height:auto;display:block;border-radius:8px}.panel-close{align-self:flex-end;background:none;border:1px solid #4a6aa0;color:#d8e7ff;font-size:1.3rem;line-height:1;width:32px;height:32px;border-radius:8px;cursor:pointer;display:grid;place-items:center;flex-shrink:0}.tree-canvas{display:block;width:100%;height:100%;touch-action:none;-webkit-user-select:none;user-select:none}.tree-link{fill:none;stroke:#4868a8;stroke-width:1.4;opacity:.8;animation:branchReveal 1.2s cubic-bezier(.2,.9,.2,1) both;animation-delay:calc(var(--depth, 1) * .2s + var(--stagger, 0) * 60ms)}.tree-link.is-active-link{stroke:#7fa9ff;stroke-width:2;opacity:1;stroke-dasharray:8 6;animation:branchReveal 1.2s cubic-bezier(.2,.9,.2,1) both,flowDash 1.8s linear infinite;animation-delay:calc(var(--depth, 1) * .2s + var(--stagger, 0) * 60ms),0s}.tree-link.is-search-path{stroke:#e63946;stroke-width:2.6;opacity:1;animation:branchReveal 1.2s cubic-bezier(.2,.9,.2,1) both;animation-delay:calc(var(--depth, 1) * .2s + var(--stagger, 0) * 60ms)}.tree-link.is-search-path.is-active-link{stroke:#e63946;stroke-width:2.6;opacity:1;stroke-dasharray:8 6;animation:branchReveal 1.2s cubic-bezier(.2,.9,.2,1) both,flowDash 1.8s linear infinite;animation-delay:calc(var(--depth, 1) * .2s + var(--stagger, 0) * 60ms),0s}.tree-node-anchor{cursor:pointer}.is-pacing .tree-node-anchor{pointer-events:none}.tree-node{animation:nodeEnter .6s cubic-bezier(.22,1,.36,1) both;animation-delay:calc(var(--depth, 0) * .2s + var(--stagger, 0) * 60ms)}.node-circle{fill:#172a54;stroke:#7fa9ff;stroke-width:1.6}.node-root{fill:#1d3368;stroke:#8eb6ff;stroke-width:2.2;animation:rootPulse 2.8s ease-in-out infinite}.is-selected{stroke:#ffd86c;stroke-width:2.6}.is-active-reading{fill:#8a6f2a;animation:activeReadingPulse 1.95s ease-in-out infinite}.is-highlighted{fill:#28488f;stroke:#d6e6ff;stroke-width:2.8}.is-completed{stroke:#7be29b;stroke-width:2.8}.is-search-path-node{stroke:#e63946;stroke-width:2.8;filter:drop-shadow(0 0 6px rgba(230,57,70,.6))}.node-label{fill:#e5eeff;font-size:.74rem;font-weight:500;pointer-events:none;paint-order:stroke;stroke:#0a1224;stroke-width:3px;stroke-linejoin:round}.node-dot{fill:#8db2ff}@keyframes slideIn{0%{transform:translate(100%);opacity:0}to{transform:translate(0);opacity:1}}@keyframes slideOut{0%{transform:translate(0);opacity:1}to{transform:translate(100%);opacity:0}}.detail-panel.sliding-out{animation:slideOut .3s cubic-bezier(.55,0,1,.45) both}.history-panel{border:1px solid #355182;border-radius:10px;padding:.65rem .7rem;background:#111c3ab8}.history-panel h3{margin:0 0 .35rem;font-size:.94rem}.progress-fill{display:block;height:100%;background:linear-gradient(90deg,#4f7de3,#8db7ff);transition:width .42s ease}.history-panel ul{list-style:none;margin:0;padding:0;display:grid;gap:.2rem;font-size:.86rem}.history-panel li span{color:#9fc0f7}.mark-read-btn,.next-step-btn{border:1px solid #5374ad;background:#122245;color:#d8e7ff;border-radius:9px;padding:.48rem .62rem;cursor:pointer;width:fit-content;flex-shrink:0}.auto-complete-hint{font-size:.85rem;color:#8bacd0;font-style:italic;margin:.5rem 0}.next-step-panel{border:1px solid #3a598f;border-radius:10px;padding:.65rem;background:#132142b8}.next-step-panel h3{margin:0 0 .35rem;font-size:.95rem}.next-step-panel p{margin:0 0 .5rem}.detail-panel h2{margin:0;font-size:1.25rem}.detail-panel p{margin:0;line-height:1.5;color:#d7e4ff}.comparison-block h3{margin:0 0 .6rem;font-size:1rem}.comparison-grid{display:grid;grid-template-columns:1fr 1fr;gap:.6rem}.comparison-card{border:1px solid #3c568c;border-radius:10px;padding:.6rem;background:#111c3a}.comparison-card strong{display:block;margin-bottom:.4rem}.comparison-card ul{list-style:none;margin:0;padding:0;display:grid;gap:.25rem}.docs-link{margin-top:auto;color:#b8d4ff;text-decoration:none;border:1px solid #5473aa;width:fit-content;padding:.5rem .7rem;border-radius:10px}.share-actions{display:flex;gap:.5rem;margin-top:.75rem}.share-btn{flex:1;padding:.55rem .75rem;border-radius:10px;border:1px solid #5473aa;background:transparent;color:#b8d4ff;cursor:pointer;font-size:.85rem;transition:background .2s,border-color .2s}.share-btn:hover{background:#6366f126;border-color:#818cf8}.share-btn-img{border-color:#ef4444;color:#fca5a5}.share-btn-img:hover{background:#ef444426;border-color:#f87171}.code-block-section{border:1px solid #3a5a8f;border-radius:10px;overflow:hidden;background:#0c1628;flex:1;min-height:120px;display:flex;flex-direction:column}.code-block-header{display:flex;align-items:center;justify-content:space-between;padding:.35rem .7rem;background:#152240;border-bottom:1px solid #2c4878}.code-block-lang{font-size:.72rem;color:#7fa9ff;font-weight:600;text-transform:uppercase;letter-spacing:.5px}.code-copy-btn{background:none;border:1px solid #4a6aa0;color:#b8d4ff;font-size:.72rem;padding:.2rem .55rem;border-radius:6px;cursor:pointer;transition:background .2s}.code-copy-btn:hover{background:#1d3368}.code-block{margin:0;padding:.7rem .8rem;overflow:auto;flex:1;font-family:Cascadia Code,Fira Code,Consolas,monospace;font-size:.78rem;line-height:1.55;color:#c8dcff;white-space:pre;-moz-tab-size:4;tab-size:4}.code-block::-webkit-scrollbar{width:7px;height:7px}.code-block::-webkit-scrollbar-track{background:#0c1628;border-radius:4px}.code-block::-webkit-scrollbar-thumb{background:#3a5a8f;border-radius:4px}.code-block::-webkit-scrollbar-thumb:hover{background:#5479b8}.code-block code{font-family:inherit}@keyframes nodeEnter{0%{opacity:0;transform:scale(0)}70%{opacity:1;transform:scale(1.08)}to{opacity:1;transform:scale(1)}}@keyframes branchReveal{0%{opacity:0;stroke-dashoffset:32}to{opacity:.8;stroke-dashoffset:0}}@keyframes flowDash{0%{stroke-dashoffset:0}to{stroke-dashoffset:-28}}@keyframes searchFlowDash{0%{stroke-dashoffset:0}to{stroke-dashoffset:-28}}@keyframes rootPulse{0%,to{transform:scale(1);fill:#1d3368;stroke:#8eb6ff;filter:drop-shadow(0 0 10px rgba(109,160,255,.55))}40%{transform:scale(1.09);fill:#2b4d9c;stroke:#d8e7ff;filter:drop-shadow(0 0 18px rgba(134,183,255,.95))}70%{transform:scale(.97);fill:#214184;stroke:#a6c8ff;filter:drop-shadow(0 0 14px rgba(129,177,255,.72))}}@keyframes activeReadingPulse{0%,to{fill:#7c6324;stroke:#ffd86c;filter:drop-shadow(0 0 8px rgba(255,220,110,.42))}45%{fill:#c5a34d;stroke:#ffe8a0;filter:drop-shadow(0 0 18px rgba(255,225,138,.92))}70%{fill:#9b7f39;stroke:#ffdd7e;filter:drop-shadow(0 0 12px rgba(255,218,118,.68))}}@media (max-width: 720px){.app-shell{padding:.4rem .5rem}.top-bar{flex-wrap:wrap;gap:.4rem .6rem}.top-bar h1{font-size:1.05rem}.top-progress{min-width:80px;order:2}.top-bar input{width:100%;order:3;margin-left:0;padding:.55rem .7rem;font-size:.95rem}.tree-area{border-radius:10px;padding:.2rem}.detail-overlay{z-index:20}.detail-panel{width:100vw;max-width:100vw;height:100vh;border-radius:0;bottom:0;top:0;right:0;padding:.8rem .9rem;animation:slideUp .36s cubic-bezier(.22,1,.36,1) both}.detail-panel.sliding-out{animation:slideDown .3s cubic-bezier(.55,0,1,.45) both}.detail-panel h2{font-size:1.1rem}.detail-panel p{font-size:.88rem}.panel-close{width:36px;height:36px;font-size:1.4rem}.mark-read-btn,.next-step-btn{padding:.55rem .7rem;font-size:.92rem}.code-block{font-size:.78rem;max-height:200px}.docs-link{font-size:.9rem;padding:.5rem .65rem}}@media (max-width: 420px){.top-bar h1{font-size:.92rem}.detail-panel{height:60vh;padding:.65rem .7rem}}@keyframes slideUp{0%{transform:translateY(100%);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes slideDown{0%{transform:translateY(0);opacity:1}to{transform:translateY(100%);opacity:0}}
