:root{color-scheme:light;--ink:#14243a;--muted:#5f7188;--blue:#2563a8;--blue-dark:#17365c;--line:#d7e3ef;--soft:#f3f8fd;--cyan:#2aa7c7;--coral:#f18b42;--gold:#b69ad5;--white:#fff;--shadow:0 12px 36px #14243a0d}
*{box-sizing:border-box}
body{margin:0;color:var(--ink);background:#fff;font-family:Inter,"Segoe UI","Microsoft YaHei",Arial,sans-serif;font-size:14px;-webkit-font-smoothing:antialiased}
button,input,select{font:inherit}
button,a,input,select{-webkit-tap-highlight-color:transparent}
button{cursor:pointer}
button:disabled{opacity:.45;cursor:default}
a{color:inherit;text-decoration:none}
button{color:inherit}
button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:2px solid #4879b0;outline-offset:3px}
[hidden]{display:none!important}
h1,h2,h3,p{margin:0}
svg{display:block}
button{border:0;background:none}
select{background:#fff}
 .site-header{height:68px;padding:0 28px;display:flex;align-items:center;border-bottom:1px solid var(--line);gap:54px;background:#fff;position:relative;z-index:5}
.brand{display:flex;gap:10px;align-items:center;font-weight:750;font-size:21px;letter-spacing:-.8px;white-space:nowrap}
.brand svg{width:33px;height:33px;fill:var(--blue);stroke:var(--blue);stroke-width:1.4}
.brand-light{font-weight:400;color:#6f97c4;font-size:16px;letter-spacing:-.3px}
.site-header nav{align-self:stretch;display:flex;gap:30px}
.nav-link{display:flex;align-items:center;font-size:13px;color:var(--muted);position:relative;font-weight:600}
.nav-link.active{color:var(--blue)}
.nav-link.active:after{content:"";position:absolute;bottom:0;left:0;right:0;height:3px;background:var(--blue);border-radius:3px 3px 0 0}
.header-end{margin-left:auto;display:flex;align-items:center;gap:20px}
.release-pill{font-size:11px;letter-spacing:.3px;color:var(--muted);display:flex;align-items:center;gap:7px}
.release-pill i,.live-dot{width:6px;height:6px;display:inline-block;background:#5b88bc;border-radius:50%}
.button{border-radius:7px;min-height:40px;padding:11px 17px;display:inline-flex;align-items:center;justify-content:center;gap:14px;font-weight:600;font-size:13px;white-space:nowrap;transition:background .15s,transform .15s}
.button:hover{transform:translateY(-1px)}
.button.primary{background:var(--blue);color:white;box-shadow:0 2px 4px #20354d0a}
.button.primary:hover{background:var(--blue-dark)}
.button.secondary{border:1px solid #b2c0cf;background:white}
.button.quiet{background:var(--soft)}
.button.compact{padding:9px 13px;min-height:34px;font-size:12px}
.eyebrow{font-size:9px;letter-spacing:1.8px;font-weight:700;color:#6690c1}
.workspace{display:grid;grid-template-columns:285px minmax(410px,1fr) 360px;height:calc(100dvh - 68px);min-height:620px;max-height:1400px}
.search-panel,.detail-panel{display:flex;flex-direction:column;min-width:0;overflow:hidden;background:#fff}
.search-panel{border-right:1px solid var(--line)}
.search-top{padding:29px 20px 0}
.search-top h1{font-size:20px;letter-spacing:-.8px;margin:10px 0 23px;font-weight:650}
.accent-dot{color:#628dbf;margin-left:2px}
.search-box{display:flex;align-items:center;gap:8px;border:1px solid #c7d0dc;border-radius:7px;background:#fafbfe;padding:10px 10px}
.search-box svg{width:16px;height:16px;stroke:#5282b9;stroke-width:1.6;fill:none;flex-shrink:0}
.search-box input{border:0;background:none;outline:none!important;min-width:0;width:100%;color:var(--ink);font-size:12px}
.search-box input::placeholder{color:#6d96c4}
.search-box kbd{border:1px solid var(--line);border-radius:3px;padding:0 4px;font-size:10px;color:#7299c5}
.filter-row{display:flex;gap:8px;margin-top:10px}
.filter-row select{width:50%;padding:8px 7px;border:1px solid var(--line);border-radius:5px;color:#4471a5;font-size:11px;cursor:pointer}
.sidebar-tabs{display:flex;gap:22px;align-items:center;border-bottom:1px solid var(--line);margin-top:23px}
.sidebar-tabs button{font-size:12px;padding:0 0 12px;color:#648fc0;position:relative}
.sidebar-tabs button.active{color:var(--blue);font-weight:650}
.sidebar-tabs button.active:after{content:"";position:absolute;height:2px;background:var(--blue);bottom:-1px;left:0;right:0}
.sidebar-tabs>span{margin-left:auto;color:#6690c1;font-size:10px;padding-bottom:12px}
.result-list{overflow-y:auto;flex:1;padding:8px 10px 18px;scrollbar-width:thin;scrollbar-color:#c7d0dc transparent}
.result-item{width:100%;text-align:left;border-radius:7px;padding:15px 12px 14px;position:relative;border:1px solid transparent;margin:2px 0;transition:background .15s}
.result-item:hover{background:#f4f8fc}
.result-item.active{background:#e7eff9;border-color:#dae7f5}
.result-item.active:before{content:"";position:absolute;left:-10px;top:14px;bottom:14px;width:3px;border-radius:0 2px 2px 0;background:#3b628f}
.result-item h3{font-size:14px;font-weight:600;color:#284463;line-height:1.55;padding-right:14px}
.result-item.active h3{color:#253d59}
.result-item .result-arrow{float:right;color:#5d8abd;font-size:16px}
.result-path{color:#648fc0;font-size:10px;line-height:1.8;margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.result-meta{display:flex;gap:7px;margin-top:8px;align-items:center}
.mini-pill{font-size:9px;background:#ecf3fa;color:#497bb4;padding:3px 6px;border-radius:3px;line-height:1.2}
.active .mini-pill{background:#c9d3dd;color:#3c6492}
.result-meta .connection-count{font-size:9px;color:#799ec8;margin-left:auto}
.sidebar-foot{border-top:1px solid var(--line);padding:15px 19px;display:flex;align-items:center;gap:7px;color:#7299c6;font-size:10px}
.tree-node{font-size:12px;margin:2px 0}
.tree-node summary{cursor:pointer;padding:8px;color:#4472a6}
.tree-children{border-left:1px solid #d7e5f4;padding-left:9px;margin-left:14px}
.tree-leaf{padding:7px 8px;display:block;width:100%;text-align:left;font-size:11px;line-height:1.6;border-radius:4px}
.tree-leaf.active{background:#e7eff9;color:var(--blue)}
.tree-leaf:hover{background:#f2f6fb}
.tree-explore{font-size:10px;color:var(--blue);padding:6px 10px}
.graph-panel{display:flex;flex-direction:column;position:relative;min-width:0;background:#fbfcfe}
.graph-top{display:flex;align-items:center;justify-content:space-between;padding:28px 26px 17px;gap:15px}
.graph-top h2{font-size:20px;line-height:1.4;margin-top:7px;letter-spacing:-.4px;font-weight:650}
.view-switch{display:flex;background:#e9f0f9;padding:3px;border-radius:6px;gap:2px;flex-shrink:0}
.view-switch button{font-size:11px;padding:7px 11px;border-radius:4px;color:#6690c0}
.view-switch button.active{background:#fff;box-shadow:0 1px 4px #2b47680c;color:#32547a}
.graph-controls{display:flex;align-items:center;justify-content:space-between;padding:0 26px 16px;gap:10px}
.segmented{display:flex;gap:7px}
.segmented button{font-size:10px;border:1px solid #c7d1dc;border-radius:4px;padding:6px 10px;color:#5f8bbd;background:#fff}
.segmented button.active{background:#e2ecf7;color:#32547b;border-color:#c1cbd8}
.depth-control{font-size:10px;color:#6791c1;display:flex;align-items:center;gap:6px}
.depth-control select{border:0;background:transparent;color:#39608d;font-size:10px;cursor:pointer}
.network-stage{flex:1;min-height:300px;position:relative;overflow:hidden;background-image:radial-gradient(#c1ccd8 .6px,transparent .6px);background-size:21px 21px}
.network-stage>svg{width:100%;height:100%;position:absolute;touch-action:none}
.graph-edge{stroke:#99aabf;stroke-width:1.25;opacity:.68;fill:none}
.graph-edge.topic{stroke:#cbb87f;stroke-dasharray:4 4;opacity:.6}
.graph-node{cursor:pointer;outline:none}
.graph-node circle{transition:stroke-width .12s,filter .12s}
.graph-node:hover circle,.graph-node:focus-visible circle{stroke:var(--blue);stroke-width:3;filter:drop-shadow(0 3px 4px #26405d22)}
.graph-node text{font-family:inherit;fill:#325379;paint-order:stroke;stroke:#fbfcfe;stroke-width:4;stroke-linejoin:round;font-size:11px;pointer-events:none}
.graph-node.selected text{font-size:15px;font-weight:700;fill:#223852;stroke-width:5}
.graph-node.indirect text{fill:#6892c1;font-size:10px}
.graph-node .node-ring{fill:none;stroke:#c6d0db;stroke-width:8}
.graph-status{position:absolute;top:10px;left:26px;color:#7ca0ca;font-size:10px;max-width:85%;pointer-events:none}
.canvas-hint{position:absolute;bottom:16px;left:26px;color:#7ea2cb;font-size:10px;pointer-events:none}
.canvas-tools{position:absolute;right:20px;bottom:18px;display:flex;flex-direction:column;background:#fff;border:1px solid #d6e4f4;border-radius:6px;box-shadow:var(--shadow);overflow:hidden}
.canvas-tools button{width:31px;height:29px;color:#5886bb;font-size:18px}
.canvas-tools button+button{border-top:1px solid #e5eef8}
.canvas-tools button:hover{background:#e8f0f9}
.graph-tooltip{position:absolute;pointer-events:none;z-index:4;max-width:260px;padding:9px 12px;background:#fff;border:1px solid #c2cdd9;border-radius:6px;box-shadow:var(--shadow);font-size:11px;line-height:1.8}
.graph-tooltip small{color:#6791c1}
.graph-legend{display:flex;gap:13px;align-items:center;flex-wrap:wrap;padding:11px 25px 18px;font-size:9px;color:#628dbf}
.graph-legend>span{display:flex;align-items:center;gap:5px}
.legend-dot{height:7px;width:7px;border-radius:50%;display:inline-block}
.legend-dot.focus{background:var(--blue)}
.legend-dot.prerequisite{background:#d8a58c}
.legend-dot.successor{background:#879cb4}
.legend-dot.topic{background:#d5c38c}
.edge-key{margin-left:auto;font-size:9px;color:#7a9ec8}
.graph-footer{padding:18px 25px;display:flex;justify-content:space-between;align-items:center;border-top:1px solid #d7e5f4;background:#eff5fb;gap:10px}
.graph-footer p{font-size:11px;color:#5584ba;margin-top:6px}
.graph-footer .eyebrow{font-size:8px;letter-spacing:1.5px}
.graph-footer .button{font-size:11px;min-height:36px;padding:10px 12px;gap:8px}
.detail-panel{border-left:1px solid var(--line)}
.detail-heading{padding:28px 24px 20px}
.detail-heading .meta-top{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#6f97c4;margin-bottom:15px}
.detail-heading .meta-top .small-tag{color:#406a9b;letter-spacing:1px;font-size:9px}
.detail-heading h2{font-size:27px;line-height:1.4;letter-spacing:-.8px;margin-bottom:8px;font-weight:650}
.breadcrumb{font-size:10px;line-height:1.9;color:#6892c1}
.breadcrumb button{padding:0;cursor:pointer;color:inherit}
.breadcrumb button:hover{color:var(--blue);text-decoration:underline}
.node-tags{display:flex;gap:6px;align-items:center;margin-top:13px}
.node-tags .tag{font-size:10px;padding:4px 7px;border-radius:4px;background:#eaf1f9;color:#4574aa}
.known-button{margin-left:auto;font-size:10px;color:#5d8abd;padding:4px 0}
.known-button.active{color:#32547b}
.node-counts{display:grid;grid-template-columns:repeat(3,1fr);margin-top:22px;border-top:1px solid #dfeaf7;padding-top:16px}
.node-counts>div{display:flex;flex-direction:column;gap:5px}
.node-counts>div:not(:first-child){padding-left:18px;border-left:1px solid #dde9f6}
.node-counts strong{font-size:21px;font-weight:500;font-variant-numeric:tabular-nums}
.node-counts span{font-size:9px;color:#6892c2}
.detail-tabs{display:flex;justify-content:space-around;padding:0 16px;border-bottom:1px solid var(--line);flex-shrink:0}
.detail-tabs button{font-size:12px;color:#7299c5;padding:13px 6px 12px;position:relative}
.detail-tabs button.active{color:var(--blue);font-weight:650}
.detail-tabs button.active:after{content:"";position:absolute;left:5px;right:5px;bottom:-1px;height:2px;background:var(--blue)}
.detail-tabs .tab-count{font-size:9px;margin-left:3px;color:#859ab3}
.detail-content{padding:21px 23px;overflow-y:auto;flex:1;scrollbar-width:thin;scrollbar-color:#c7d0dc transparent}
.resource-card{border:1px solid #d7e5f4;border-radius:7px;padding:16px;margin-bottom:13px;background:#fff}
.resource-card .card-label{font-size:9px;color:#5c89bc;display:flex;align-items:center;gap:6px;margin-bottom:9px;letter-spacing:.5px}
.card-label i{width:5px;height:5px;border-radius:1px;background:#6b94c2}
.resource-card h3{font-size:13px;font-weight:600;line-height:1.8;margin-bottom:8px}
.resource-card p{font-size:12px;line-height:1.95;color:#4471a5;white-space:pre-wrap;overflow-wrap:anywhere}
.resource-provenance{font-size:9px;color:#8197b0;margin-top:13px;display:flex;gap:5px;flex-wrap:wrap}
.resource-provenance span{border:1px solid #e3edf8;padding:2px 4px;border-radius:3px}
.section-mini{font-size:9px;letter-spacing:1.2px;color:#789dc8;margin:22px 0 10px}
.section-mini:first-child{margin-top:0}
.related-link{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e4edf8;padding:10px 0;gap:10px;width:100%;text-align:left;font-size:11px;color:#4879b1}
.related-link span{color:#879cb4}
.detail-foot{padding:13px 20px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:10px}
.text-button{font-size:10px;color:#5f8bbe;padding:2px 0}
.text-button:hover{color:var(--blue)}
.empty-state{font-size:12px;line-height:1.9;padding:25px 15px;color:#7097c4;text-align:center}
.empty-state strong{display:block;color:#4471a5;margin-bottom:5px;font-weight:500}
.show-more{padding:12px 0;font-size:11px;color:var(--blue);width:100%}
.exercise-choice{font-size:11px;line-height:1.8;color:#4778af;padding:6px 9px;border:1px solid #d9e6f5;border-radius:5px;margin:5px 0;white-space:pre-wrap}
.exercise-solution{margin-top:14px;border-top:1px dashed #c3cdd9;padding-top:12px}
.exercise-solution summary{font-size:11px;cursor:pointer;color:var(--blue)}
.exercise-solution p{margin-top:9px;font-size:11px}
.standard-card{border-left:3px solid #cfb47c}
.standard-meta{font-size:9px;color:#779cc7;margin-bottom:10px}
.source-id{font-size:8px;color:#7f96af;overflow-wrap:anywhere;margin-top:12px;line-height:1.6}
.textbook-stage{overflow:auto;flex:1;padding:8px 25px 24px}
.textbook-note{font-size:11px;line-height:1.9;color:#5a88bc;padding:12px 14px;border:1px solid #c9d3dd;border-radius:6px;margin-bottom:15px;background:#fff}
.publisher-group{border:1px solid #c6d0db;border-radius:8px;background:#fff;margin:0 0 16px;overflow:hidden}
.publisher-header{padding:16px 16px 10px;display:flex;gap:12px;align-items:center}
.book-symbol{height:33px;width:26px;border-radius:2px 4px 4px 2px;border-left:4px solid #5282b8;background:#c5cfdb;display:flex;align-items:center;justify-content:center;font-size:10px;color:#4471a5}
.publisher-header h3{font-size:13px;font-weight:600}
.publisher-header small{font-size:9px;color:#6a93c2;display:block;margin-top:4px}
.volume-row{border-top:1px solid #e3edf8;padding:12px 16px}
.volume-row header{display:flex;justify-content:space-between;gap:8px;align-items:center;font-size:11px;color:#4574aa}
.volume-row header small{font-size:9px;color:#799ec8}
.catalog-track{display:flex;gap:9px;overflow:auto;padding:12px 0 4px;align-items:stretch}
.chapter-stop{background:#f6f9fc;border:1px solid #d6e4f4;border-radius:5px;padding:8px;min-width:95px;max-width:135px;flex-shrink:0;position:relative}
.chapter-stop.current{background:#dee9f6;border-color:#869bb3}
.chapter-stop .unit-label{font-size:9px;color:#6993c2;margin-bottom:6px}
.chapter-stop button{font-size:10px;color:#416da0;text-align:left;padding:3px 0;line-height:1.6;display:block;width:100%;overflow-wrap:anywhere}
.chapter-stop button.current{color:#2d4b6d;font-weight:650}
.chapter-stop .no-mapping{font-size:9px;color:#8b9fb6;line-height:1.6}
.track-arrow{align-self:center;font-size:12px;color:#7ca0ca}
.textbook-mini .publisher-name{font-size:12px;margin-bottom:12px}
.textbook-mini .book-position{padding:9px 0;border-top:1px solid #e3edf8;display:flex;justify-content:space-between;align-items:center;font-size:11px;gap:10px}
.textbook-mini .book-position small{color:#759bc7;font-size:9px}
.textbook-mini .button{font-size:10px;padding:7px 10px;min-height:28px;margin-top:10px;background:#e8f0f9}
.about-page{background:#fff}
.about-hero{max-width:1100px;margin:auto;padding:88px 40px 58px;position:relative}
.about-hero:after{content:"";position:absolute;width:260px;height:260px;right:35px;top:75px;border:1px solid #bec9d6;border-radius:50%;box-shadow:0 0 0 45px #eff5fb,0 0 0 46px #d9e6f5,0 0 0 87px #f8fafd;z-index:0;pointer-events:none}
.about-hero>*{position:relative;z-index:1}
.about-hero h1{font-size:54px;line-height:1.35;letter-spacing:-2px;margin:23px 0;max-width:650px;font-weight:600}
.about-hero h1 span{color:#5b88bc}
.about-hero>p{max-width:635px;font-size:14px;line-height:2.1;color:#5080b7;background:#ffffffaa}
.hero-actions{display:flex;gap:12px;margin:28px 0 20px}
.hero-annotation{font-size:10px;letter-spacing:2px;color:#7299c5}
.about-stats{display:grid;grid-template-columns:repeat(6,1fr);max-width:1020px;margin:0 auto 50px;border-top:1px solid #d5e4f4;border-bottom:1px solid #d5e4f4;padding:27px 0;gap:10px}
.about-stats>div{text-align:center;border-right:1px solid #d5e4f4}
.about-stats>div:last-child{border:0}
.about-stats strong{display:block;font-size:28px;font-weight:500;color:#2e4c6f}
.about-stats span{font-size:10px;display:block;margin-top:7px;color:#6a93c2}
.about-section{max-width:1100px;margin:0 auto;padding:22px 40px 44px}
.section-heading{display:flex;justify-content:space-between;gap:50px;align-items:center;margin-bottom:24px}
.section-heading h2{font-size:24px;letter-spacing:-.7px;margin-top:10px;font-weight:550}
.section-heading p{font-size:12px;line-height:1.9;max-width:300px;color:#5d8abd}
.about-section figure{margin:0;border:1px solid #dbe7f5;border-radius:10px;padding:16px;background:#fff}
.about-section img{display:block;width:100%;height:auto}
.about-section figcaption{font-size:10px;line-height:1.8;color:#6892c2;padding:16px 5px 3px}
.about-bottom{max-width:1020px;margin:30px auto 70px;display:grid;grid-template-columns:1.5fr 1fr;gap:80px;padding-top:35px;border-top:1px solid #d6e4f4}
.about-bottom h2{margin:12px 0 20px;font-size:24px;font-weight:550}
.about-bottom p{font-size:12px;line-height:2;color:#4f80b7;margin-bottom:12px}
.download-card{border-radius:8px;background:#eef4fb;border:1px solid #c5cfdb;padding:24px}
.download-card strong{font-size:16px;font-weight:600}
.download-card p{margin:10px 0 18px}
.download-card>a:not(.button){display:block;font-size:11px;color:#5a88bc;margin-top:15px}
.about-footer{border-top:1px solid #d9e6f5;padding:22px 35px;display:flex;justify-content:space-between;color:#799ec8;font-size:10px}
.loading-screen{height:calc(100vh - 68px);display:flex;align-items:center;justify-content:center;flex-direction:column;background:#f9fbfd}
.loading-screen h1{font-weight:500;font-size:23px;margin:25px 0 12px}
.loading-screen p{font-size:12px;color:#658fc0}
.loader-orbit{width:46px;height:46px;border:1px solid #c1cbd8;border-top:2px solid #39608c;border-radius:50%;animation:spin 1s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}
}
dialog{padding:0;border:1px solid #bcc7d5;border-radius:12px;max-width:660px;width:calc(100% - 40px);box-shadow:0 25px 100px #1a2b3e33;color:var(--ink)}
dialog::backdrop{background:#15243544;backdrop-filter:blur(3px)}
.dialog-header{display:flex;justify-content:space-between;align-items:center;padding:26px 28px 10px}
.dialog-header h2{font-size:24px;margin-top:8px;font-weight:550}
.icon-button{font-size:25px;color:#6f97c4;width:30px;height:30px}
.dialog-description{padding:0 28px;font-size:12px;color:#5a88bc;line-height:1.9}
.known-summary{padding:12px 28px;font-size:11px;color:#4878af}
.path-content{max-height:48vh;overflow:auto;padding:0 28px 20px}
.path-step{display:flex;align-items:center;gap:13px;padding:12px 0;border-bottom:1px solid #d9e6f5}
.path-step .step-number{width:25px;height:25px;border-radius:50%;background:#e3ecf7;display:flex;align-items:center;justify-content:center;font-size:10px;color:#4879b0;flex-shrink:0}
.path-step .step-name{font-size:13px;text-align:left;padding:0;color:#33557c;line-height:1.8}
.path-step small{display:block;color:#6f97c4;font-size:9px;line-height:1.9}
.path-step .known-step{margin-left:auto;font-size:10px;color:#5282b9;white-space:nowrap}
.dialog-bottom{padding:16px 28px;background:#f2f6fb;border-top:1px solid #d9e6f5;display:flex;justify-content:space-between;gap:15px;font-size:9px;color:#6f97c4;line-height:1.9}
.toast{position:fixed;bottom:26px;left:50%;transform:translateX(-50%);background:#284463;color:white;padding:12px 21px;border-radius:7px;font-size:12px;box-shadow:var(--shadow);z-index:99}
.loading-inline{font-size:11px;color:#739ac6;padding:25px 0}
.retry-button{font-size:11px;color:var(--blue);text-decoration:underline;margin-top:10px}
.network-list{padding:25px;overflow:auto;flex:1}
.network-list .related-link{background:#fff;padding:14px}
.query-note{font-size:10px;color:#7299c6;padding:10px;line-height:1.8}

@media(min-width:1650px){.workspace{grid-template-columns:310px minmax(500px,1fr) 390px}
.search-top{padding-left:25px;padding-right:25px}
.detail-heading{padding:30px 28px 22px}
.detail-content{padding:23px 28px}
.result-item{padding:17px}
.graph-top{padding-top:30px}
}

@media(max-width:1200px){.workspace{grid-template-columns:245px minmax(340px,1fr) 310px}
.site-header{padding:0 20px;gap:30px}
.brand-light{display:none}
.search-top{padding-left:15px;padding-right:15px}
.search-top h1{font-size:18px}
.graph-top{padding:23px 18px 16px;gap:8px}
.graph-top h2{font-size:18px}
.view-switch button{font-size:10px;padding:6px 8px}
.graph-controls{padding:0 18px 12px}
.segmented{gap:4px}
.segmented button{padding:5px 7px;font-size:9px}
.detail-heading{padding:24px 18px 18px}
.detail-content{padding:18px}
.graph-footer{padding:15px 18px}
.graph-footer p{max-width:180px;font-size:10px;line-height:1.7}
.graph-legend{padding-left:18px;gap:8px}
.edge-key{width:100%;margin-left:0}
}

@media(max-width:950px){.workspace{grid-template-columns:240px minmax(0,1fr);height:auto;max-height:none}
.search-panel{grid-row:1/3;height:calc(100dvh - 68px);position:sticky;top:0}
.graph-panel{min-height:620px;height:calc(80dvh - 68px)}
.detail-panel{grid-column:2;border-top:1px solid var(--line);max-height:650px}
.detail-content{min-height:180px}
.header-end .release-pill{display:none}
.about-hero:after{opacity:.3}
.about-stats{margin:0 30px 40px}
.about-bottom{margin:20px 40px 50px;gap:35px}
.graph-footer p{max-width:none}
.edge-key{width:auto;margin-left:auto}
.about-hero h1{font-size:44px}
}

@media(max-width:620px){.site-header{height:58px;padding:0 14px;gap:20px}
.brand{font-size:18px;gap:5px}
.brand svg{width:27px;height:27px}
.site-header nav{gap:15px}
.nav-link{font-size:11px}
.header-end{display:none}
.workspace{display:flex;flex-direction:column}
.search-panel{height:auto;position:static;max-height:325px;border-right:0;border-bottom:1px solid var(--line)}
.search-top{padding:17px 16px 0}
.search-top .eyebrow,.search-top h1{display:none}
.filter-row{margin-top:8px}
.sidebar-tabs{margin-top:14px}
.result-list{display:flex;overflow:auto;flex-shrink:0;padding:7px 10px;max-height:145px}
.result-list.tree-mode{display:block;max-height:210px}
.result-item{min-width:165px;width:165px;padding:11px}
.result-item h3{font-size:12px}
.result-path{font-size:9px}
.result-item.active:before{display:none}
.result-meta{margin-top:4px}
.connection-count{display:none}
.sidebar-foot{display:none}
.graph-panel{min-height:550px;height:65dvh}
.graph-top{padding:20px 16px 12px}
.graph-top h2{font-size:18px}
.graph-controls{padding:0 16px 8px}
.graph-legend{padding:10px 16px;gap:9px}
.edge-key{width:100%;margin:0}
.graph-footer{padding:14px 16px}
.graph-footer p{font-size:9px;max-width:170px}
.detail-panel{max-height:800px;border-left:0}
.detail-heading{padding:24px}
.detail-heading h2{font-size:26px}
.detail-content{padding:22px;max-height:500px}
.about-hero{padding:45px 24px}
.about-hero h1{font-size:35px}
.about-hero:after{width:100px;height:100px;right:20px}
.about-hero>p{font-size:12px}
.about-stats{grid-template-columns:repeat(3,1fr);gap:22px;margin:0 24px 30px}
.about-stats>div:nth-child(3){border:0}
.about-stats strong{font-size:23px}
.about-section{padding:20px 20px 25px}
.section-heading{display:block}
.section-heading h2{font-size:20px}
.section-heading p{margin-top:12px}
.about-section figure{padding:8px}
.about-bottom{display:block;margin:20px 24px 40px}
.download-card{margin-top:25px}
.about-footer{padding:20px;gap:20px;font-size:8px}
.dialog-header{padding:22px 20px 10px}
.dialog-header h2{font-size:20px}
.dialog-description,.known-summary{padding-left:20px;padding-right:20px}
.path-content{padding-left:20px;padding-right:20px}
.dialog-bottom{padding:14px 20px;flex-direction:column;gap:6px}
.loading-screen{height:calc(100vh - 58px)}
}

@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}
}

/* Keep every pane independently scrollable, including long textbook catalogs. */
.search-panel,.detail-panel,.graph-panel{min-height:0}
.graph-panel{overflow:hidden}
.textbook-stage{min-height:0}

.graph-node text{font-size:12px}
.graph-node.indirect text{font-size:11px}

@media(max-width:950px){.graph-panel{min-height:620px}
}

@media(max-width:620px){.graph-panel{min-height:550px}
}


/* Shared blue, cyan and orange palette inspired by the PAGER project. */
::selection{background:#ccecf4;color:#17365c}
.brand-light{color:#7f91a8}.release-pill i,.live-dot{background:var(--cyan)}
.button.primary{background:linear-gradient(135deg,#2563a8,#1c538f);box-shadow:0 4px 10px #2563a81c}
.button.primary:hover{background:#17365c}.button.secondary{border-color:#cedcea}
.accent-dot{color:var(--coral)}.eyebrow{color:#7e94ae}
.search-box{background:#f7fbff;border-color:#d7e3ef}.result-item.active{background:#eaf3fe;border-color:#d4e5f7}
.result-item.active:before{background:var(--blue)}.result-item h3{color:#304760}.result-item.active h3{color:#17365c}
.result-path,.result-meta .connection-count{color:#71849a}.mini-pill{background:#f0f5fb;color:#647c96}.active .mini-pill{background:#daeafa;color:#365e8a}
.graph-panel{background:#f7fbff}.network-stage{background-image:radial-gradient(#bed2e7 .65px,transparent .65px);background-size:22px 22px}
.graph-edge{stroke:#9cb6cf}.graph-edge.topic{stroke:#baa5d4}
.graph-node text{fill:#405d7d;stroke:#f7fbff}.graph-node.selected text{fill:#17365c}.graph-node.indirect text{fill:#6f8aa5}
.graph-node .node-ring{stroke:#dbeaf9}.legend-dot.prerequisite{background:#f2b585}.legend-dot.successor{background:#7fc7d8}.legend-dot.topic{background:#bca4da}
.graph-footer{background:linear-gradient(110deg,#edf5ff,#f7fbff);border-color:#d7e3ef}
.detail-heading .meta-top .small-tag{color:#4675a5}.resource-card{border-color:#dde7f2}.resource-card p{color:#536b84}.card-label i{background:var(--cyan)}
.standard-card{border-left-color:#f1aa72}.chapter-stop{background:#f8fbff;border-color:#dbe6f2}.chapter-stop.current{background:#e7f2ff;border-color:#8eb5dd}
.chapter-stop button.current{color:#174b83}.chapter-stop .unit-label{color:#718ba6}.catalog-track{scrollbar-width:thin;scrollbar-color:#c9dbea transparent}
.book-symbol{border-left-color:#2563a8;background:#e0efff;color:#2563a8}
.about-page{background:linear-gradient(180deg,#f7fbff 0,#fff 760px)}
.about-hero{background:radial-gradient(ellipse at 85% 15%,#d9effa80,transparent 48%)}
.about-hero h1 span{color:var(--coral)}.about-hero>p{color:#5f7188;background:transparent}.about-stats strong{color:#17365c}
.download-card{background:linear-gradient(135deg,#eef7ff,#fff8ed);border-color:#d7e3ef}
.about-footer a:hover{color:#2563a8}.toast{background:#17365c}.known-button.active{color:#2563a8}
/* Each cover belongs to one volume, with an explicit source and matching scope. */
.book-overview{display:flex;gap:13px;align-items:flex-start;margin-bottom:13px}
.book-meta{min-width:0;flex:1}.textbook-mini .book-meta .publisher-name{font-size:12px;margin:1px 0 5px}
.textbook-mini .book-meta p{font-size:11px;line-height:1.8}.book-meta .book-edition{color:#8395aa;font-size:10px}
.cover-wrap{width:58px;flex:0 0 58px;position:relative}.cover-link{display:block;position:relative;width:58px;height:80px;isolation:isolate;border-radius:3px;overflow:hidden;box-shadow:0 3px 8px #17365c1c;background:#eef4fb;border:1px solid #d5e0ec}
.cover-link img{width:100%;height:100%;object-fit:contain;position:relative;z-index:2;background:#fff;display:block}
.cover-fallback{position:absolute;inset:0;background:linear-gradient(135deg,#e5f1ff,#f8fbff);border-left:4px solid #4e83bb;padding:10px 5px;display:flex;flex-direction:column;justify-content:space-between;color:#30577e;z-index:1}
.cover-fallback strong{font-size:12px;font-weight:700;line-height:1.3}.cover-fallback span{font-size:8px;line-height:1.5}.cover-fallback i{font-size:8px;font-style:normal;color:#7e99b5;letter-spacing:.5px}
.cover-credit{display:block;text-align:center;font-size:8px;color:#879ab0;margin-top:5px;white-space:nowrap}.cover-credit:hover{color:#2563a8;text-decoration:underline}
.cover-link:focus-visible{outline:2px solid #2563a8}.cover-link:hover{box-shadow:0 4px 12px #17365c30}
.volume-row header{justify-content:flex-start;gap:12px;align-items:center}.volume-row header .cover-wrap{width:45px;flex-basis:45px}.volume-row header .cover-link{width:45px;height:62px}
.volume-row header .cover-fallback{padding:7px 4px}.volume-row header .cover-fallback strong{font-size:10px}.volume-row header .cover-fallback span{font-size:7px}.volume-row header .cover-credit{font-size:8px;margin-top:4px}
.volume-heading{min-width:0;display:flex;flex-direction:column;gap:6px}.volume-heading strong{color:#2d527a;font-size:12px;line-height:1.5}.volume-heading small{line-height:1.6}
.publisher-header{background:linear-gradient(100deg,#f1f7ff,#fff);padding-bottom:15px}.publisher-header h3{color:#24496f}
.textbook-note{color:#657c96;background:#f9fcff;border-color:#dce7f3}.textbook-note a{color:#2563a8;text-decoration:underline;text-underline-offset:3px}
.catalog-selector{display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px;margin-top:12px;color:#6a8099;font-size:10px}
.catalog-selector label{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.catalog-selector select{font:inherit;font-size:11px;max-width:100%;padding:7px 10px;color:#24496f;background:#f8fbff;border:1px solid #ccdced;border-radius:6px}
.source-catalog-summary{font-size:10px;line-height:1.7;color:#6a8099;margin-top:10px}
.source-catalog-note{display:flex;flex-wrap:wrap;align-items:center;gap:5px 12px;margin-top:10px;padding:10px 12px;background:#f6f9fd;border-left:3px solid #91b4d9;color:#70869e;font-size:10px;line-height:1.7}
.source-catalog-note strong{color:#44678c;font-weight:500}.source-catalog-note a{color:#2563a8;text-decoration:underline;text-underline-offset:3px}.catalog-empty{padding:18px 0;color:#7c8fa3;font-size:11px;line-height:1.8}
