:root{color-scheme:light;--ink:#182a40;--muted:#62758a;--line:#d7e1ed;--blue:#356db3;--teal:#21877f;--violet:#7460aa;--red:#b7473a;--bg:#f4f7fb}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:15px system-ui,-apple-system,Segoe UI,sans-serif}header{padding:22px 28px 18px;border-bottom:1px solid var(--line);background:#fff;display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}h1{font-size:25px;margin:0 0 5px}header p{color:var(--muted);margin:0}.tools{display:flex;gap:9px;align-items:center;flex-wrap:wrap}select,input,button{font:inherit;border:1px solid #bdcad8;border-radius:7px;background:#fff;color:var(--ink);padding:9px 11px}button{cursor:pointer}button:hover{border-color:var(--blue)}button:focus-visible,select:focus-visible,input:focus-visible,[tabindex]:focus-visible{outline:3px solid #75a6da;outline-offset:2px}main{max-width:1540px;margin:auto;padding:20px 24px}.summary{display:flex;align-items:center;gap:14px;flex-wrap:wrap;color:var(--muted);padding:4px 0 14px}.summary strong{color:var(--ink)}.layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:16px;align-items:start}.map-shell,.detail{background:#fff;border:1px solid var(--line);border-radius:10px}.map-toolbar{padding:10px 14px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;color:var(--muted);gap:10px}.viewport{overflow:auto;max-height:calc(100vh - 230px);min-height:520px}.viewport svg{display:block;min-width:1100px}.edge{fill:none;stroke:#afc1d5;stroke-width:2}.edge.case{stroke:#bfd2d9}.node rect{fill:#fff;stroke:#b7c8d9;stroke-width:1.5;rx:9}.node.root rect{fill:#182a40;stroke:#182a40}.node.root text{fill:#fff}.node.module rect{fill:#edf4fb;stroke:#88a9cc}.node.case rect{fill:#f4f9f8;stroke:#9acac1}.node.case.todo rect{fill:#fff8e9;stroke:#e2c98d}.node text{pointer-events:none;font-family:inherit}.node .id{font-size:12px;font-weight:700;fill:#55718f}.node.root .id{fill:#c4d7eb}.node .label{font-size:14px;font-weight:650;fill:var(--ink)}.node .meta{font-size:11px;fill:var(--muted)}.node{cursor:pointer}.node:hover rect,.node.selected rect{stroke:var(--blue);stroke-width:3}.module rect{fill:#edf4fb}.module .label{font-size:15px}.detail{padding:18px;position:sticky;top:16px;max-height:calc(100vh - 32px);overflow:auto}.detail h2{font-size:19px;line-height:1.4;margin:0 0 6px}.detail .case-id{font:700 12px ui-monospace,monospace;color:var(--blue)}.badges{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0 18px}.badge{padding:4px 8px;background:#eef3f8;border-radius:5px;font-size:12px;color:#455e77}.badge.todo{background:#fff2d7;color:#745214}.detail h3{font-size:13px;margin:18px 0 6px;color:#3e5872}.detail p,.detail ol{font-size:14px;line-height:1.65;color:#344960;white-space:pre-wrap}.detail ol{padding-left:22px}.empty{padding:34px;color:var(--muted);text-align:center}.legend{display:flex;gap:12px;font-size:12px}.dot{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:5px;background:#88a9cc}.dot.todo{background:#e2c98d}@media(max-width:900px){main{padding:14px}.layout{grid-template-columns:1fr}.detail{position:static;max-height:none}.viewport{min-height:440px;max-height:62vh}header{padding:16px}.summary{gap:8px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
