:root{color-scheme:light;--ink:#172d2a;--muted:#596c65;--line:#d8e1db;--green:#14654e;--forest:#103f36;--paper:#f5f7f3;--mono:"IBM Plex Mono","SFMono-Regular",Consolas,monospace;font-family:Inter,"PingFang SC","Microsoft YaHei",system-ui,sans-serif;color:var(--ink);background:var(--paper);font-size:16px}
*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button,a{touch-action:manipulation}button{color:inherit;cursor:pointer}button:disabled{cursor:default;opacity:.4}button{background:none;border:0}a{color:var(--green);text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,.viewport:focus-visible{outline:3px solid #ce902d;outline-offset:3px}svg.icon{height:18px;width:18px;display:block;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}button [data-icon],a [data-icon]{display:inline-flex;flex:none}.site-header{background:var(--forest);color:#f2faf4}.topbar,main{max-width:1640px;margin:auto;padding-inline:clamp(18px,3.6vw,70px)}.topbar{height:66px;display:flex;align-items:center;gap:clamp(24px,4vw,72px)}.brand{display:inline-flex;gap:6px;align-items:center;color:#fff;font-size:23px;font-weight:650;letter-spacing:-1.3px;white-space:nowrap}.brand svg{color:#bfe1a7;width:34px;height:34px;margin-right:5px}.brand strong{font-weight:430;color:#daebd8}.topbar nav{align-self:stretch;display:flex;gap:25px}.top-link{position:relative;color:#ccddd3;font-size:.9rem;display:grid;align-items:center;padding:0 2px}.top-link:hover,.top-link.active{color:#fff}.top-link.active:after{content:"";height:3px;background:#b1d895;position:absolute;bottom:0;left:0;right:0}.global-search{display:flex;align-items:center;gap:10px;margin-left:auto;background:#ffffff0d;border:1px solid #5c7d70;border-radius:8px;color:#e0ebe2;padding:8px 10px 8px 14px;min-width:250px;font-size:.87rem;text-align:left}.global-search kbd{margin-left:auto;border:1px solid #688379;border-radius:4px;padding:0 6px;font:14px/20px var(--mono);color:#daeadb}
.intro{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:35px 0 25px}.intro h1{margin:0;font-size:clamp(1.75rem,2.35vw,2.65rem);line-height:1.22;font-weight:680;letter-spacing:-.055em}.intro p{margin:10px 0 0;color:var(--muted);font-size:.95rem;line-height:1.55}.numbers{display:flex;gap:0;align-items:center;flex:none}.numbers>div{display:grid;gap:3px;min-width:100px;padding-inline:clamp(16px,1.7vw,32px);border-left:1px solid #cbd8ce}.numbers>div:last-child{padding-right:2px}.numbers strong{font-size:clamp(1.5rem,2.2vw,2.15rem);font-weight:580;font-variant-numeric:tabular-nums;letter-spacing:-.05em;line-height:1.15}.numbers span{color:var(--muted);font-size:.83rem}
.workbench{display:grid;grid-template-columns:minmax(0,1fr) clamp(272px,24vw,365px);overflow:hidden;border:1px solid #cdd9d1;border-radius:15px;background:#fff;box-shadow:0 4px 20px #223a2807}.graph-panel{min-width:0;display:flex;flex-direction:column}.pathbar{display:flex;align-items:center;gap:11px;padding:12px 16px;border-bottom:1px solid var(--line);min-height:56px}.square-button{width:31px;height:31px;display:inline-grid;place-items:center;border:1px solid var(--line);border-radius:6px;flex:none;background:#fff}.square-button:hover:enabled{background:#f0f5ee}.pathbar nav{display:flex;align-items:center;gap:5px;min-width:0;overflow-x:auto;scrollbar-width:thin}.crumb{font-size:.85rem;white-space:nowrap;padding:4px 3px;color:#536860}.crumb.active{color:#163d31;font-weight:650}.crumb-sep{color:#97a79b;flex:none}.crumb-sep .icon{width:12px;height:12px}.viewport{height:clamp(460px,59vh,690px);min-width:0;position:relative;overflow:hidden;background-color:#fafcf9;background-image:radial-gradient(#a3b5a854 .8px,transparent .9px);background-size:17px 17px;touch-action:pan-y;cursor:grab;isolation:isolate}.viewport.dragging{cursor:grabbing}.graph-stage{width:860px;height:520px;position:absolute;left:0;top:0;transform-origin:0 0;pointer-events:none}.graph-stage>svg,.graph-stage>#nodes{position:absolute;inset:0;width:100%;height:100%;overflow:visible}.edge{fill:none;stroke:#a6b8a9;stroke-width:1.5}.edge-focus{stroke-width:3;stroke:#d1ded1}.node{position:absolute;width:148px;transform:translateX(-50%);display:flex;align-items:center;flex-direction:column;padding:0;pointer-events:auto;text-align:center;color:var(--ink);line-height:1.2;background:transparent;border-radius:9px}.node .marker{height:37px;width:37px;border-radius:50%;background:var(--tint);border:1.5px solid var(--tone);color:var(--tone);display:grid;place-items:center;box-shadow:0 0 0 4px #fafcf9;transition:box-shadow .15s,transform .15s}.node:hover .marker,.node:focus-visible .marker{transform:scale(1.08);box-shadow:0 0 0 5px var(--tint)}.node .marker svg{height:18px;width:18px}.node .code-marker{font:600 14px/1 var(--mono);letter-spacing:-.05em}.node .node-title,.node .node-sub{text-wrap:balance;background:#fafcf9ed;border-radius:3px;padding-inline:3px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere}.node .node-title{font-weight:635;font-size:14px;margin-top:7px}.node .node-sub{color:var(--muted);font-size:12px;margin-top:3px;line-height:1.25;-webkit-line-clamp:1}.node.current{width:179px}.node.current .marker{width:65px;height:65px;background:var(--forest);border:5px solid #e3eedf;color:#f4faee;box-shadow:0 0 0 1px #adc5ae,0 0 0 8px #eff5eccc}.node.current .marker svg{height:27px;width:27px}.node.current .node-title{font-size:20px;margin-top:10px;color:#153f32;letter-spacing:-.025em}.node.current .node-sub{font-size:13px}.graph-hint,.graph-controls{position:absolute;bottom:12px;z-index:1}.graph-hint{left:14px;display:flex;gap:7px;align-items:center;font-size:.78rem;color:#5d7168;pointer-events:none}.hint-dot,.source-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#6c9680}.graph-controls{right:14px;display:flex;align-items:center;background:#fff;border:1px solid #cfdbd1;border-radius:8px;box-shadow:0 2px 5px #1b322c08}.graph-controls button{height:30px;width:31px;display:grid;place-items:center;border-radius:7px}.graph-controls button:hover:enabled{background:#edf3ea}.graph-controls button:last-child{border-left:1px solid var(--line);border-top-left-radius:0;border-bottom-left-radius:0}.graph-controls output{min-width:42px;text-align:center;font:12px var(--mono);color:var(--muted)}.graph-controls .icon{width:15px;height:15px}.graph-footer{min-height:48px;display:flex;align-items:center;justify-content:space-between;padding:8px 16px;gap:8px;border-top:1px solid var(--line);font-size:.85rem;color:var(--muted)}#pager{display:flex;align-items:center;gap:7px;white-space:nowrap;font:12px var(--mono)}#pager button{height:26px;width:26px}.graph-meta{line-height:1.4}
.inspector{border-left:1px solid var(--line);display:flex;flex-direction:column;min-width:0;height:calc(clamp(460px,59vh,690px) + 105px);overflow-y:auto;scrollbar-width:thin}.detail-head{padding:22px 21px 17px;background:linear-gradient(135deg,#edf5ee,#f7f9f3);border-bottom:1px solid var(--line)}.detail-type{display:inline-flex;align-items:center;gap:7px;color:#36644b;font-size:.81rem;font-weight:600}.detail-type svg{width:16px;height:16px}.detail-head h2{font-size:clamp(1.27rem,1.6vw,1.6rem);letter-spacing:-.04em;margin:10px 0 5px;line-height:1.25;overflow-wrap:anywhere}.detail-head p{font-size:.86rem;margin:0;color:#4f645a;line-height:1.5;overflow-wrap:anywhere}.detail-body{padding:15px 21px;border-bottom:1px solid var(--line)}.fact{display:flex;justify-content:space-between;gap:12px;line-height:1.5;margin:5px 0;font-size:.86rem}.fact>span:first-child{color:var(--muted);flex:none}.fact>strong{text-align:right;font-weight:570;min-width:0;overflow-wrap:anywhere}.detail-note{font-size:.85rem;color:var(--muted);line-height:1.6;margin:9px 0 2px}.link-row{display:flex;flex-wrap:wrap;gap:8px 12px;margin-top:8px}.external{display:inline-flex;align-items:center;gap:4px;font-size:.85rem;font-weight:600}.external .icon{width:13px;height:13px}.external:hover,.text-button:hover{text-decoration:underline}.primary-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;background:var(--forest);color:white;border-radius:7px;padding:8px 13px;font-size:.88rem;margin-top:9px}.primary-button:hover{background:#1b5546}.directory-head{padding:15px 20px 7px;display:flex;align-items:center;justify-content:space-between}.directory-head h3{margin:0;font-size:.9rem;font-weight:650}.minor{font-size:.78rem;color:var(--muted)}.directory-search{margin:5px 16px 7px;width:calc(100% - 32px);font-size:.86rem;border:1px solid var(--line);border-radius:7px;padding:7px 10px;background:#fafcf9;color:var(--ink)}.directory-list{padding:0 10px 10px}.directory-item{padding:8px 9px;display:flex;align-items:center;gap:10px;width:100%;text-align:left;border-radius:6px}.directory-item:hover,.directory-item:focus-visible{background:#f0f5ee}.mini-mark{height:26px;width:26px;border:1px solid var(--tone);display:grid;align-items:center;justify-content:center;flex:none;border-radius:7px;background:var(--tint);color:var(--tone);font:600 11px/1 var(--mono)}.mini-mark svg{width:14px;height:14px}.directory-text{min-width:0;flex:auto;font-weight:550;font-size:.86rem;overflow-wrap:anywhere;line-height:1.25}.directory-stat{color:var(--muted);font:12px var(--mono);white-space:nowrap;padding-left:3px}.directory-tail{color:#8ca294;flex:none}.directory-tail svg{width:13px;height:13px}.empty{margin:10px 20px 17px;color:var(--muted);font-size:.9rem;line-height:1.6}.components{font-size:.86rem;margin-top:11px;color:var(--muted)}.components summary{cursor:pointer;color:var(--green)}.components ul{padding-left:18px}.components li{margin:5px 0;overflow-wrap:anywhere}
main>footer{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:15px 0 16px;color:var(--muted);font-size:.8rem}main>footer>span{display:flex;gap:7px;align-items:center}.text-button{display:inline-flex;align-items:center;gap:6px;color:var(--green);padding:4px;font-size:.85rem}.text-button .icon{width:15px;height:15px}
dialog{color:var(--ink);border:1px solid #bfd0c4;border-radius:13px;max-width:min(620px,calc(100vw - 26px));width:100%;padding:0;box-shadow:0 14px 75px #0e251c33;background:white}dialog::backdrop{background:#15372d50;backdrop-filter:blur(2px)}.dialog-top{display:flex;align-items:center;justify-content:space-between;padding:17px 20px;border-bottom:1px solid var(--line)}.dialog-top h2{margin:0;font-size:1.16rem}.dialog-content{padding:17px 20px;max-height:68vh;overflow:auto}.dialog-content p{line-height:1.7;font-size:.92rem}.dialog-content h3{font-size:1rem;margin:16px 0 4px}.search-input{display:block;width:100%;padding:10px 13px;border:1px solid #a9c2b1;border-radius:7px;margin-bottom:9px}.result-button{display:flex;flex-direction:column;text-align:left;gap:3px;width:100%;padding:9px 11px;border-radius:6px}.result-button:hover,.result-button:focus-visible{background:#eff5ed}.result-button small{color:var(--muted);line-height:1.45}.result-button strong{font-weight:600;font-size:.93rem}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:1650px){.viewport{height:650px}.inspector{height:755px}}
@media(max-width:1020px){.topbar,main{padding-inline:18px}.workbench{grid-template-columns:minmax(0,1fr) 254px}.numbers>div{min-width:82px;padding-inline:12px}.detail-body,.detail-head{padding-inline:15px}.viewport{height:450px}.inspector{height:555px}}
@media(max-width:760px){.topbar{height:58px;gap:16px}.topbar nav{gap:10px}.global-search{min-width:auto;padding:7px}.global-search>span:nth-child(2),.global-search kbd{display:none}.brand{font-size:20px}.brand svg{width:27px;height:27px;margin-right:1px}.intro{margin:23px 0 17px;align-items:flex-start;flex-direction:column;gap:15px}.intro h1{font-size:1.72rem}.intro p{margin-top:5px;font-size:.88rem}.numbers{width:100%;border-top:1px solid var(--line);padding-top:11px}.numbers>div{flex:1;min-width:0}.numbers>div:first-child{padding-left:0;border-left:0}.numbers strong{font-size:1.4rem}.numbers span{font-size:.78rem}.workbench{display:block;border-radius:11px}.viewport{height:clamp(305px,54vw,440px)}.inspector{border-left:0;border-top:1px solid var(--line);height:auto;max-height:none}.directory-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.detail-head{padding:14px 16px}.detail-body{padding:8px 16px 11px}.detail-head h2{margin:5px 0}.pathbar{padding:8px 10px;min-height:47px}.graph-footer{padding:8px 10px;min-height:41px}.graph-hint{display:none}.graph-controls{right:7px;bottom:7px}.graph-controls button{width:27px;height:26px}.graph-controls output{min-width:34px}.top-link{font-size:.8rem}.topbar,main{padding-inline:12px}main>footer{align-items:flex-start}.directory-item{padding:9px 5px}.directory-list{gap:2px 5px}}
@media(max-width:410px){.directory-list{grid-template-columns:1fr}.topbar{gap:11px}.topbar nav{gap:9px}.viewport{height:356px}.numbers span{font-size:.75rem}.global-search svg{width:16px;height:16px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.structure-mode{display:flex;gap:4px;padding:8px 18px;border-bottom:1px solid var(--line);background:#fbfcfa}
.structure-mode button{border:1px solid transparent;border-radius:6px;color:#426052;padding:6px 12px;font-size:.875rem}
.structure-mode button[aria-pressed=true]{color:#164634;background:#e2eee5;border-color:#c6d8cb;font-weight:650}
.structure-mode button:hover{background:#ecf3ed}
.structure-mode[hidden],#structure-host[hidden],.viewport[hidden]{display:none}
#structure-host{min-width:0}
.interface-inspect{margin:10px 0 0;display:flex;align-items:center;gap:8px 12px;flex-wrap:wrap}
.interface-inspect select,.interface-inspect button{font:inherit;padding:5px 9px;border:1px solid #c2d4c9;border-radius:6px;background:white;color:#194c38}
.interface-inspect select{max-width:100%}
.interface-inspect output{font-size:.88rem;color:#3c5b4a}
.interface-inspect p{flex-basis:100%;margin:0;font-size:.82rem;color:#586f60}
