.rm{background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:24px;box-shadow:var(--sh1);margin-bottom:28px}
.rm-head{margin-bottom:14px}
.rm-k{margin:0 0 4px;font-family:var(--f-mono);font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--red)}
.rm-sub{margin:0;font-size:14px;line-height:1.5;color:var(--muted)}
.rm-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:10px}
.rm-print{font:inherit;font-size:13px;font-weight:600;padding:8px 16px;border:1px solid var(--line-strong);border-radius:var(--r);background:var(--paper-2);color:var(--ink);cursor:pointer}
.rm-print:hover{border-color:var(--green);color:var(--green)}
.rm-status{font-family:var(--f-mono);font-size:12px;color:var(--muted)}
.rm-svg{display:block;width:100%;height:auto;color:#a9b2ac;margin:6px 0 4px}
.rm-lines polyline{stroke:var(--green);stroke-width:4;cursor:pointer;transition:stroke .2s ease,stroke-width .2s ease,opacity .2s ease}
.rm-lines polyline:hover{stroke-width:7}
.rm-lines polyline.is-active{stroke:var(--red);stroke-width:8}
.rm-lines polyline.is-dim{opacity:.18}
.rm-hubs circle{fill:var(--red);stroke:var(--card);stroke-width:2}
.rm-labels text{fill:var(--ink);font-family:var(--f-body,sans-serif);font-size:12px}
.rm-detail{background:var(--paper-2);border:1px solid var(--line);border-left:4px solid var(--red);border-radius:var(--r);padding:16px 20px;margin:12px 0}
.rm-d-k{font-family:var(--f-head);font-size:19px;font-weight:600;color:var(--ink);margin:0 0 6px}
.rm-d-t{font-size:15px;color:var(--green);font-weight:600;margin:0 0 6px}
.rm-d-c{font-size:14px;color:var(--muted);margin:0}
.rm-legend{list-style:none;display:flex;flex-wrap:wrap;gap:10px 22px;margin:12px 0 0;padding:12px 0 0;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}
.rm-legend li{display:flex;align-items:center;gap:8px}
.rm-dot{width:10px;height:10px;border-radius:50%;background:var(--red);display:inline-block}
.rm-line{width:20px;height:4px;border-radius:4px;background:var(--green);display:inline-block}
@media print{.rm-print,.rm-status{display:none}.rm{box-shadow:none}.rm-detail{display:block!important}}
