.tunnel-jump { display:inline-block; margin:10px 0 0 16px; color:var(--ink); font-weight:600; }
#tuneles { padding-top:20px; border-top:2px solid var(--ink); scroll-margin-top:24px; }
.tunnel-kicker { font-size:11px; letter-spacing:normal; font-weight:700; color:var(--ink-2); margin:0 0 10px; }
.tunnel-controls { display:flex; flex-wrap:wrap; gap:16px; margin:22px 0 12px; }
.tunnel-controls label { display:grid; gap:6px; font-weight:600; font-size:13px; }
.tunnel-controls select { min-height:44px; padding:8px 32px 8px 12px; font:inherit; color:var(--ink); background:var(--surface); border:1px solid var(--axis); border-radius:6px; }
#tunnel-endpoints { color:var(--ink-2); font-size:14px; }
.tunnel-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.tunnel-metric { padding:16px; background:var(--surface); border:1px solid var(--border); border-top:4px solid var(--route); border-radius:6px; }
.tunnel-metric h3 { font-size:14px; margin:0 0 10px; }
.tunnel-distance { font-size:30px; font-weight:700; font-variant-numeric:tabular-nums; line-height:1.2; margin:0 0 8px; }
.tunnel-extra { font-size:14px; font-weight:600; margin:0 0 12px; }
.tunnel-detail { font-size:12.5px; color:var(--ink-2); margin:5px 0; }
.tunnel-layers { display:flex; flex-wrap:wrap; gap:4px 20px; border:0; padding:0; margin:20px 0 10px; }
.tunnel-layers legend { font-size:12px; font-weight:600; margin-bottom:4px; }
.tunnel-layers label { display:flex; align-items:center; gap:8px; min-height:44px; cursor:pointer; font-size:13px; }
.route-key { display:inline-block; width:24px; border-top:4px solid; }
.car { color:#8db6ce; } .walk { color:#ab4b08; } .step_free { color:#8036ad; border-top-style:solid; }
#tunnel-map { height:440px; border:1px solid var(--border); border-radius:8px; background:#f1f1ed; }
.tunnel-marker { background:#fff; color:#111; border:2px solid #111; border-radius:50%; width:28px; height:28px; display:grid; place-items:center; font-size:13px; font-weight:800; }
.tunnel-street-label { color:#55554f; background:rgba(245,245,240,.9); font-size:11px; padding:1px 3px; pointer-events:none; max-width:150px; }
.tunnel-caption { font-size:12px; color:var(--ink-2); }
.tunnel-finding { margin:18px 0; padding:16px; border-left:3px solid var(--ink); background:var(--surface); font-size:14px; }
.tunnel-finding p { margin:0 0 8px; } .tunnel-finding p:last-child { margin-bottom:0; }
.tunnel-penalty-title { font-weight:700; }
.tunnel-penalty-value { font-size:24px; font-weight:700; font-variant-numeric:tabular-nums; }
#tuneles a { color:var(--ink); text-underline-offset:3px; }
#tuneles details { max-width:none; }
@media(max-width:640px) {
  .tunnel-metrics { grid-template-columns:1fr; }
  .tunnel-metric { display:grid; grid-template-columns:1fr 1fr; gap:0 12px; }
  .tunnel-metric h3,.tunnel-metric .tunnel-detail { grid-column:1 / -1; }
  .tunnel-extra { align-self:center; }
  #tunnel-map { height:360px; }
  .tunnel-jump { margin-left:0; }
}
