
.n9th-route-layout{
 display:grid;
 grid-template-columns:minmax(0,1.5fr) minmax(360px,1fr);
 gap:18px;margin-top:18px;align-items:start
}
.n9th-route-map{
 position:sticky;top:16px;min-width:0;padding:16px;
 border:1px solid #75313e;border-radius:14px;
 background:radial-gradient(ellipse at center,#1c0c12,#050405 75%);
 overflow:hidden
}
.n9th-map-bar{
 display:flex;align-items:center;justify-content:space-between;
 gap:10px;flex-wrap:wrap
}
.n9th-map-bar h2{margin:0;font-size:19px;color:#ffbf61}
.n9th-map-tools{
 display:flex;align-items:center;gap:6px;flex-wrap:wrap
}
.fw-workspace .n9th-map-tools select{
 width:auto;max-width:180px;padding:6px;font-size:11px
}
.n9th-map-tools button{
 padding:6px 9px;border:1px solid #71303a;border-radius:6px;
 background:#201015;color:#ffc66d;font:inherit;font-size:12px
}
.n9th-route-map svg{
 display:block;width:100%;height:clamp(300px,39vw,520px);
 touch-action:none;cursor:grab
}
.n9th-route-map svg:active{cursor:grabbing}
.n9th-map-leg{stroke:#d77e39;stroke-width:2;opacity:.8}
.n9th-map-leg.selected{stroke:#ffda7d;stroke-width:4;opacity:1}
.n9th-map-leg-hit{stroke:transparent;stroke-width:16;cursor:pointer}
.n9th-map-node{
 fill:#ffb03e;stroke:#40101e;stroke-width:2;cursor:pointer
}
.n9th-map-node.selected{
 fill:#fff1bc;stroke:#ffb13d;stroke-width:3
}
.n9th-map-label{
 fill:#d8c7c0;font-size:13px;paint-order:stroke;
 stroke:#090607;stroke-width:4;stroke-linejoin:round;
 pointer-events:none
}
.n9th-map-label.selected{fill:#ffdc8d}
.fw-workspace .n9th-map-selection{
 font-size:12px;color:#ffcb78;margin:5px 0;min-height:2.8em
}
.n9th-map-caption{
 display:block;font-size:10px;color:#bda7a1;line-height:1.5
}
.n9th-route-details{min-width:0}
.n9th-route-details .fw-stats{
 grid-template-columns:repeat(3,minmax(0,1fr));
 gap:7px;margin:0 0 12px
}
.n9th-route-details .fw-stat{padding:10px;font-size:11px}
.n9th-route-details .fw-stat strong{font-size:19px}
.n9th-route-details .fw-scroll{
 margin:0;max-height:510px;overflow:auto;
 border:1px solid #4e2730;border-radius:9px
}
.n9th-route-details table{min-width:0;font-size:12px}
.n9th-route-details th,.n9th-route-details td{
 padding:10px 7px;overflow-wrap:anywhere
}
.n9th-route-details thead{
 position:sticky;top:0;background:#190b10
}
.n9th-route-details tbody tr{cursor:pointer}
.n9th-route-details tbody tr:hover,
.n9th-route-details .n9th-leg-selected{background:#35131d}
.fw-workspace .n9th-route-details p{
 font-size:12px;line-height:1.55
}
.n9th-route-map :focus-visible,
.n9th-route-details tr:focus-visible{
 outline:2px solid #ffbe60;outline-offset:2px
}
@media(max-width:1000px){
 .n9th-route-layout{grid-template-columns:minmax(0,1fr)}
 .n9th-route-map{position:relative;top:auto}
 .n9th-route-map svg{height:380px}
}
@media(max-width:500px){
 .n9th-route-map{padding:12px}
 .n9th-route-map svg{height:300px}
 .n9th-route-details .fw-stat strong{font-size:16px}
}
