/* A bounded, pannable workspace, independent of the old document-sized diagram. */
html:has(.map-app),body.map-app { width:100%; height:100%; overflow:hidden; background:#080f19; }
body.map-app { font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC",sans-serif; color:#e4edf4; }
.map-app .zx-ambient,.map-app .zx-motion-toggle { display:none; }
.atlas-header { position:relative; z-index:10; min-height:86px; display:flex; align-items:center; gap:24px; padding:16px 28px; border-bottom:1px solid #a9e0da16; background:#0b1521ed; backdrop-filter:blur(20px); }
.atlas-home { display:flex; align-items:center; gap:10px; white-space:nowrap; color:#a2b9c8; font-size:12px; }
.atlas-logo { display:grid; place-items:center; height:36px; width:36px; color:#a3efd2; font-size:22px; border:1px solid #96f4cb40; border-radius:11px; background:linear-gradient(145deg,#1d3d36,#11221f); box-shadow:0 0 25px #66d7be12; }
.atlas-heading { border-left:1px solid #8aaca82a; padding-left:24px; min-width:130px; }
.atlas-heading h1 { font-size:16px; letter-spacing:.4px; font-weight:600; margin:0; }
.atlas-heading>span { display:block; font-size:10px; color:#728b9d; margin-top:5px; }
.atlas-actions { margin-left:auto; display:flex; align-items:center; gap:8px; }
.atlas-actions select,.atlas-actions>button,.atlas-zoom button { font:inherit; font-size:12px; color:#b3c7d6; border:1px solid #b2d6e01b; border-radius:9px; background:#152335; min-height:36px; padding:8px 12px; cursor:pointer; }
.atlas-actions select { max-width:240px; width:18vw; }
.atlas-actions>button { white-space:nowrap; }
.atlas-actions button:hover,.atlas-zoom button:hover { background:#213b43; color:#b4f8de; border-color:#8ce1c24a; }
.atlas-actions .lang { margin-left:8px; padding:4px; border:1px solid #afdec625; border-radius:10px; background:#0c1a25; }
.atlas-actions .lang button { padding:6px 10px; }
.atlas-actions .lang button.on { color:#15382e; background:#a1eacb; box-shadow:0 0 16px #8be5c31c; }
#map-viewport { position:absolute; inset:86px 0 0; overflow:hidden; outline:none; cursor:grab; touch-action:none; background-image:radial-gradient(#79a5b225 1px,transparent 1px); background-size:24px 24px; }
#map-viewport.is-dragging { cursor:grabbing; }
#map-viewport:focus-visible { box-shadow:inset 0 0 0 2px #a1eacb88; }
.atlas-glow { position:absolute; inset:0; pointer-events:none; background:radial-gradient(ellipse at 48% 48%,#257a6e12,transparent 50%),radial-gradient(ellipse at 15% 85%,#6450a50b,transparent 40%); }
#map-world { position:absolute; top:0; left:0; width:0; height:0; transform-origin:0 0; will-change:transform; }
#map-links { position:absolute; top:0; left:0; width:1px; height:1px; overflow:visible; pointer-events:none; }
#map-links path { stroke-width:1.7; opacity:.48; fill:none; }
#map-nodes { position:absolute; top:0; left:0; }
.map-node { position:absolute; width:244px; min-height:68px; display:flex; align-items:center; gap:12px; padding:17px 18px; border:1px solid color-mix(in srgb,var(--branch) 29%,transparent); border-radius:13px; background:linear-gradient(120deg,#162637,#101c2c); color:#c8dce9; text-align:left; line-height:1.6; font:inherit; font-size:13px; box-shadow:0 6px 20px #0003,inset 0 1px #ffffff04; cursor:pointer; user-select:none; transition:background .2s,border-color .2s,box-shadow .2s; }
.map-node::before { content:""; width:3px; height:22px; border-radius:3px; background:var(--branch); box-shadow:0 0 12px color-mix(in srgb,var(--branch) 30%,transparent); flex-shrink:0; }
.map-node .node-label { flex:1; overflow-wrap:anywhere; line-height:1.55; }
.map-node .node-toggle { display:grid; place-items:center; width:23px; height:23px; flex-shrink:0; border:1px solid #a5cbd12b; border-radius:7px; background:#a8d5d10a; font-size:14px; color:var(--branch); }
.map-node .node-count { color:#849dac; font-size:10px; display:block; margin-top:5px; font-variant-numeric:tabular-nums; }
.map-node:hover,.map-node:focus-visible { background:#203545; border-color:var(--branch); outline:none; box-shadow:0 0 0 3px color-mix(in srgb,var(--branch) 8%,transparent),0 12px 35px #0004; }
.map-node[aria-expanded="true"] { border-color:color-mix(in srgb,var(--branch) 55%,transparent); }
.map-node.is-root { width:244px; min-height:110px; padding:24px; background:linear-gradient(135deg,#20433f,#162a37); border-color:#9ce5c77a; box-shadow:0 0 70px #65e4bd12,0 15px 40px #0003; font-size:20px; color:#dcf4e9; font-weight:600; }
.map-node.is-root::before { display:none; }
.map-node.is-leaf { min-height:58px; font-size:12px; background:#101b29; }
.map-node.is-selected { outline:2px solid var(--branch); outline-offset:4px; }
.atlas-caption { position:absolute; top:26px; left:30px; color:#688392; letter-spacing:2px; font-size:10px; display:flex; align-items:center; gap:10px; pointer-events:none; }
.caption-line { height:1px; width:24px; background:#7cbeb5; }
.atlas-help { position:absolute; bottom:28px; left:30px; display:flex; align-items:center; gap:9px; color:#7891a2; font-size:11px; pointer-events:none; }
.help-dot { width:5px; height:5px; border-radius:50%; background:#8be4be; box-shadow:0 0 10px #8be4be77; }
.atlas-zoom { position:fixed; right:28px; bottom:24px; z-index:5; display:flex; align-items:center; gap:4px; padding:6px; border:1px solid #afd5df22; border-radius:13px; background:#0d1a29ef; box-shadow:0 10px 36px #0005; backdrop-filter:blur(12px); }
.atlas-zoom button { border-color:transparent; background:transparent; min-width:35px; font-size:14px; padding:7px 9px; }
.atlas-zoom #zoom-reset { min-width:60px; font-size:12px; font-variant-numeric:tabular-nums; }
.atlas-zoom #zoom-fit { font-size:12px; }
.zoom-divider { height:20px; width:1px; background:#b0d0de20; margin:0 4px; }
.atlas-status { position:fixed; left:30px; bottom:54px; color:#adc5ce; font-size:11px; pointer-events:none; }
@media(max-width:1100px) { .atlas-header { gap:14px; padding:14px 18px; }.atlas-heading { padding-left:14px; }.atlas-heading>span { display:none; }.atlas-actions select { max-width:170px; }.atlas-home>span:last-child { display:none; } }
@media(max-width:760px) { .atlas-header { height:124px; align-content:center; flex-wrap:wrap; gap:10px; padding:12px 16px; }.atlas-home { margin-right:0; }.atlas-heading { flex:1; border:0; padding-left:0; }.atlas-heading h1 { font-size:15px; }.atlas-actions { display:contents; }.atlas-actions .lang { order:0; margin:0; }.atlas-actions select,.atlas-actions>button { order:2; height:33px; min-height:33px; font-size:10px; padding:7px 9px; }.atlas-actions select { width:100%; max-width:none; flex:1; min-width:80px; }#map-viewport { top:124px; }.atlas-caption { left:18px; top:18px; font-size:9px; }.atlas-help { bottom:84px; left:18px; right:18px; font-size:10px; line-height:1.5; }.atlas-status { left:18px; bottom:110px; font-size:10px; }.atlas-zoom { right:16px; bottom:18px; } }
