.graph-explorer{display:flex;flex-direction:column;gap:0;padding:0;width:min(1800px,calc(100% - 2rem));margin:16px auto;color:var(--text)}.graph-explorer__hero{flex:none;padding:18px 22px}.graph-explorer__heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.graph-explorer .page-title{margin:8px 0 0;font-size:clamp(26px,3vw,30px);line-height:1.25}.graph-explorer__switch{display:flex;background:var(--brand-soft);border-radius:12px;padding:4px;gap:4px;flex:none}.graph-explorer .button{font:inherit;font-size:13px;min-height:40px;padding:8px 12px;cursor:pointer}.graph-explorer .button[aria-pressed=true]{background:var(--brand);border-color:var(--brand);color:white}.graph-explorer .button:disabled{cursor:default}.graph-explorer :is(button,a,canvas,summary,select,input):focus-visible{outline:3px solid var(--brand);outline-offset:3px}.graph-explorer a{color:var(--brand-strong)}.graph-explorer a.button--primary{color:white;text-decoration:none}.graph-explorer__stats{display:flex;flex-wrap:wrap;gap:24px;color:var(--muted);font-size:13px;margin-top:14px}.graph-explorer__stats strong{font-size:19px;color:var(--brand-strong);margin-right:4px}.graph-explorer__tools{flex:none;display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin:16px 0;padding:14px 18px}.graph-explorer__tools label{display:flex;gap:8px;align-items:center;font-size:13px;color:var(--muted);min-width:0;white-space:nowrap}.graph-explorer__tools .field-control{font:inherit;min-height:40px;padding:8px 12px;max-width:100%;background:white}.graph-explorer__search-field{flex:1 1 240px}.graph-explorer__search-field input{width:100%;min-width:0}.graph-explorer__grid{display:grid;grid-template-columns:minmax(0,3fr) minmax(300px,1fr);gap:16px;align-items:stretch;height:max(850px,85dvh)}.graph-explorer__map-panel{position:relative;min-width:0;min-height:0;overflow:hidden;border-radius:18px;background:#080f1d}.graph-explorer__aside{height:100%;min-height:0;box-sizing:border-box;overflow:auto;overscroll-behavior:contain;padding:22px;background:linear-gradient(150deg,white,var(--brand-soft))}.graph-explorer__aside h2{font-size:21px;margin:14px 0 10px;line-height:1.5;overflow-wrap:anywhere}.graph-explorer__aside h3{font-size:15px;margin:22px 0 10px}.graph-explorer__aside p{font-size:13px;line-height:1.7;color:var(--muted)}.graph-explorer__modes{display:flex;gap:6px;flex-wrap:wrap}.graph-explorer__aside ul,.graph-explorer__search ul{list-style:none;padding:0;margin:0}.graph-explorer__relation{border-top:1px solid var(--line);padding:12px 0;display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:12px}.graph-explorer__relation .button{text-align:left;justify-content:flex-start;width:100%;font-weight:600}.graph-explorer__tag{display:inline-block;border:1px solid var(--line);border-radius:6px;padding:2px 6px;background:white;font-size:11px}.graph-explorer__search{flex:none;margin:12px 0;padding:14px 18px}.graph-explorer__search ul{display:flex;flex-wrap:wrap;gap:8px;max-height:160px;overflow:auto}.graph-explorer__search p{margin:0 0 8px;color:var(--muted);font-size:13px}.graph-explorer summary{cursor:pointer;color:var(--text-strong);font-size:13px}.graph-explorer__legend i{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:5px}.graph-explorer__note{margin:8px 0;font-size:12px;color:var(--muted);line-height:1.7}.graph-explorer__alert{padding:18px;border-radius:12px;background:var(--brand-soft);color:var(--text)}.graph-flat-tools{display:flex;gap:8px;margin-bottom:12px}.graph-explorer__map-panel>.graph-flat>p{font-size:12px;line-height:1.7;color:var(--muted)}.spatial-map{height:100%;box-sizing:border-box;position:relative;border-radius:16px;overflow:hidden;background:#080f1d;border:1px solid #293a51}.spatial-map>p{color:#d3e3f7;padding:12px 18px}.spatial-map__hover{position:absolute;top:14px;left:14px;right:14px;width:-moz-fit-content;width:fit-content;max-width:calc(100% - 28px);border:1px solid #54778e;border-radius:6px;background:#0c192cef;color:white;padding:6px 10px;pointer-events:none;font-size:13px}@media (max-width:1100px){.graph-explorer{display:block;height:auto;min-height:0}.graph-explorer__grid{grid-template-columns:minmax(0,1fr);height:auto}.graph-explorer__map-panel{height:max(720px,85dvh)}.graph-explorer__aside{height:auto;max-height:480px}}@media (max-width:600px){.graph-explorer{margin-block:16px}.graph-explorer__hero{padding:18px}.graph-explorer__heading{align-items:flex-start;gap:12px}.graph-explorer__stats{gap:14px}.graph-explorer__tools{padding:12px;gap:10px}.graph-explorer__search-field{flex-basis:100%}.graph-explorer__aside{padding:18px}}@media (prefers-reduced-motion:reduce){.graph-explorer .button{transition:none}}.graph-explorer__hero .signal-chip{font-size:11px;min-height:0;padding:4px 10px}.graph-explorer__hero .graph-explorer__note{margin:4px 0}.graph-explorer__map-overlay{position:absolute;left:18px;bottom:16px;z-index:2;display:flex;flex-direction:column;align-items:flex-start;gap:12px;max-width:calc(100% - 36px);pointer-events:none}.graph-explorer__legend-panel{width:218px;max-width:100%;box-sizing:border-box;padding:12px 14px;border:1px solid #47678980;border-radius:16px;background:#0c2037d9;backdrop-filter:blur(12px);box-shadow:0 8px 24px #0002;color:#d4e3f4;pointer-events:auto}.graph-explorer__legend-panel summary{color:#e3efff;font-size:12px}.graph-explorer__legend-content{overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#476789 transparent}.graph-explorer__legend{display:grid;grid-template-columns:1fr 1fr;gap:9px 12px;max-height:116px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;font-size:12px;margin-top:14px}.graph-explorer__legend-panel p{color:#a9bed6;font-size:11px;line-height:1.6;margin:10px 0 0}.graph-explorer__line-legend{display:flex;flex-wrap:wrap;gap:10px;border-top:1px solid #47678960;margin-top:12px;padding-top:12px;font-size:11px}.graph-explorer__line-legend i{display:inline-block;width:16px;border-top:2px solid #62cabd;margin-right:4px;vertical-align:middle}.graph-explorer__line-legend .is-recommended{border-top:2px dashed #b2bcd3}.graph-explorer__line-legend .is-conditional{border-top:2px dotted #d69bff}.graph-explorer__map-hint{margin:0;border:1px solid #47678980;border-radius:24px;padding:10px 14px;background:#0c2037d9;color:#bcd0e8;font-size:11px}.graph-explorer__sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.graph-flat{height:100%;display:flex;flex-direction:column;background:#f8fafc}.graph-flat-tools,.graph-flat>p{margin:10px 14px}.graph-flat>svg{flex:1;min-height:0;display:block}@media (max-width:600px){.graph-explorer__map-panel{height:560px}.graph-explorer__map-overlay{left:10px;bottom:10px;max-width:calc(100% - 20px);gap:8px}.graph-explorer__legend-content{max-height:130px;overflow:auto}.graph-explorer__legend-panel{width:200px}}body:has(.graph-explorer){background:radial-gradient(ellipse at 15% 5%,#daf0ff 0,transparent 52%),linear-gradient(135deg,#edf8ff,#e5f3ff 55%,#f3fbff)}.graph-explorer{--brand:#0868ff;--brand-strong:#0753dc;--brand-soft:#edf5ff;--text-strong:#070e42;--text:#294877;--muted:#6079a8;--line:#d6e7ff}.graph-explorer__hero{border:1px solid #d3e7ff;border-radius:20px;background:radial-gradient(ellipse at 72% 25%,#c7eaffb3,transparent 50%),linear-gradient(115deg,#fff 5%,#f3faff 56%,#e7f5ff);box-shadow:0 6px 24px #5dacf014,inset 0 0 0 1px #ffffffb3}.graph-explorer .page-title{color:#050c3b;font-weight:850}.graph-explorer__heading{align-items:flex-start}.graph-explorer__switch{background:#f1f7ff;border:1px solid #dceaff;box-shadow:0 4px 16px #3b86e51a}.graph-explorer__tools{border:1px solid #d6e9ff;border-radius:18px;background:#ffffffd9;box-shadow:0 4px 20px #64ade80d}.graph-explorer .field-control{border:1px solid #cce1ff;border-radius:12px;background:#fbfdff;color:#294e8d}.graph-explorer .button{border-radius:12px;font-weight:600}.graph-explorer .button--ghost{border-color:#d3e5ff;background:#fafdff;color:#0964ff}.graph-explorer .button--ghost:hover{border-color:#92bfff;background:#edf6ff}.graph-explorer .button--primary,.graph-explorer .button[aria-pressed=true]{color:white;border-color:#2883ff;background:linear-gradient(135deg,#2896ff,#0658ff);box-shadow:0 5px 12px #0873ff26}.graph-explorer .button:disabled{opacity:.5}.graph-explorer__aside{border:1px solid #d5e8ff;border-radius:18px;background:linear-gradient(135deg,#fff,#f1f8ff);box-shadow:inset 0 0 0 1px #ffffffb3}.graph-explorer__aside h2{color:#07103e;font-weight:800}.graph-explorer__aside h3{color:#48649a}.spatial-map{border-color:#c4e0ff66;background:#030b19}.graph-explorer__map-hint{color:#c2d5ef;background:#081b32e6}.graph-explorer__hero{position:relative;isolation:isolate;overflow:hidden;min-height:212px;padding:24px 30px;background:repeating-linear-gradient(28deg,transparent 0 140px,#ffffff38 141px 185px,transparent 186px 290px),radial-gradient(ellipse at 72% 25%,#bfe9ffb3,transparent 55%),linear-gradient(115deg,#fff,#eaf7ff)}.graph-explorer__heading,.graph-explorer__hero>p,.graph-explorer__stats{position:relative;z-index:1}.graph-explorer__heading>div:first-child{max-width:54%}.graph-explorer__hero .page-title{font-size:clamp(28px,2.65vw,42px);margin-top:12px}.graph-explorer__hero .signal-chip{font-size:13px;padding:5px 13px}.graph-explorer__hero .graph-explorer__note{margin-top:8px;font-size:15px}.graph-explorer__stats{margin-top:22px;gap:30px;font-size:15px}.graph-explorer__stats>span{display:inline-flex;align-items:center;gap:8px}.graph-explorer__stats strong{font-size:24px;margin:0}.graph-icon{width:20px;height:20px;flex-shrink:0;vertical-align:middle}.graph-explorer__stats .graph-icon{width:28px;height:28px;margin-right:6px;filter:drop-shadow(0 3px 5px #66baff55)}.graph-icon--book{color:#1682ff;fill:#1682ff22}.graph-icon--relations{color:#a470ff;fill:#b88aff}.graph-icon--chapters{color:#00cdbb}.graph-explorer__tools .button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:46px}.graph-explorer__tools .field-control{min-height:46px}.graph-explorer__switch .button{min-width:56px;min-height:44px}.graph-explorer__artwork{position:absolute;inset:0 22px 0 auto;width:49%;pointer-events:none;z-index:0;display:flex;align-items:center}.graph-explorer__artwork>svg{width:76%;height:100%;filter:drop-shadow(0 12px 10px #419fff26)}.graph-explorer__signature{position:absolute;right:10px;bottom:38px;color:#1672ff;font:italic 24px KaiTi,STKaiti,serif;letter-spacing:4px;transform:rotate(-10deg)}.graph-explorer__signature i{display:block;height:12px;margin-top:7px;border-top:2px solid #3385ff;border-radius:50%;transform:skewX(-35deg)}@media (max-width:1100px){.graph-explorer__artwork{width:43%;opacity:.8}.graph-explorer__artwork>svg{width:100%}.graph-explorer__signature{display:none}.graph-explorer__heading>div:first-child{max-width:66%}.graph-explorer__stats{gap:18px}}@media (max-width:600px){.graph-explorer__hero{padding:20px;min-height:0}.graph-explorer__heading>div:first-child{max-width:none}.graph-explorer__artwork{display:none}.graph-explorer__hero .page-title{font-size:28px}.graph-explorer__hero .graph-explorer__note{font-size:13px}.graph-explorer__stats{gap:12px;flex-wrap:wrap;font-size:12px}.graph-explorer__stats>span{gap:4px}.graph-explorer__stats strong{font-size:19px}.graph-explorer__stats .graph-icon{width:20px;height:20px;margin-right:2px}.graph-explorer__switch .button{min-width:40px;padding-inline:7px}.graph-explorer__search-field{gap:6px}}.graph-explorer__direction{margin-top:18px;padding:12px;border:1px solid var(--direction-border);border-left:4px solid var(--direction-color);border-radius:12px;background:var(--direction-background)}.graph-explorer__direction--incoming{--direction-color:#155bb5;--direction-border:#b5d2f5;--direction-background:#edf5ff}.graph-explorer__direction--outgoing{--direction-color:#9b430c;--direction-border:#efc8a4;--direction-background:#fff3e7}.graph-explorer__aside .graph-explorer__direction h3{color:var(--direction-color);margin:0 0 10px}.graph-explorer__direction .graph-explorer__relation{border-color:var(--direction-border)}.graph-explorer__direction .button--ghost,.graph-explorer__direction a{color:var(--direction-color);border-color:var(--direction-border)}.graph-explorer__direction .button--ghost:hover{background:var(--direction-background);border-color:var(--direction-color)}