/* RideHub route builder: a full-screen dialog on the riding area page. Everything is scoped to #rh-rb so the theme is left alone
   (and the theme's own button styles are kept out). Colors come from the .rh variables, so it follows the light or dark look. */
dialog#rh-rb{position:fixed;inset:0;width:100%;height:100%;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;overflow:hidden;background:var(--rh-input,#fff);color:var(--rh-text,#0c0d0e);overscroll-behavior:contain}
#rh-rb:not([open]){display:none}
#rh-rb{--rb-route:#e8590c;--rb-bad:#c92a2a;font-family:-apple-system,"system-ui","Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:14px;line-height:1.4;text-align:left}
#rh-rb *,#rh-rb *::before,#rh-rb *::after{box-sizing:border-box}
#rh-rb button{all:unset;box-sizing:border-box;cursor:pointer;-webkit-tap-highlight-color:transparent;font-family:inherit}
#rh-rb button:focus-visible{outline:2px solid var(--rh-accent);outline-offset:2px}
#rh-rb button:disabled{cursor:default}
#rh-rb [hidden]{display:none!important}
#rh-rb h2,#rh-rb h3,#rh-rb p,#rh-rb ul,#rh-rb li{margin:0;padding:0;list-style:none;background:none;border:0}
#rh-rb .rb{height:100%;display:flex;flex-direction:column;container-type:inline-size;container-name:rb;position:relative}

#rh-rb .rb-top{flex:none;display:flex;align-items:center;gap:14px;padding:8px 8px 8px 20px;padding-top:calc(8px + env(safe-area-inset-top,0px));border-bottom:1px solid var(--rh-line)}
#rh-rb .rb-h{font-family:var(--rh-head);font-weight:700;text-transform:uppercase;letter-spacing:2px;font-size:22px;line-height:1.1;color:var(--rh-text)}
#rh-rb .rb-crumb{font-family:var(--rh-head);letter-spacing:2px;font-size:12px;text-transform:uppercase;color:var(--rh-link);min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#rh-rb .rb-close{margin-left:auto;flex:none;width:44px;height:44px;display:grid;place-items:center;font-size:28px;line-height:1;color:var(--rh-text)}
#rh-rb .rb-close:hover{background:var(--rh-panel2)}

#rh-rb .rb-main{flex:1 1 auto;min-height:0;display:flex;position:relative}
#rh-rb .rb-map{flex:1 1 auto;min-width:0;position:relative;overflow:hidden;background:var(--rh-panel)}
#rh-rb .rb-lmap{position:absolute;inset:0;z-index:0;isolation:isolate;cursor:grab;background:#f7f6f3}
#rh-rb .rb-lmap.hot{cursor:pointer}
#rh-rb.rb-drawing .rb-lmap{cursor:crosshair}
#rh-rb .rb-mk{background:none;border:0;display:grid;place-items:center}
#rh-rb .rb-pin{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--rb-route);color:#fff;border:2px solid #fff;font-family:Oswald,var(--rh-head),sans-serif;font-weight:600;font-size:12px;line-height:1}
#rh-rb .rb-pin.sel{background:#0c0d0e}
#rh-rb .rb-pin.bad{background:var(--rb-bad)}
#rh-rb .rb-pin.sta{width:26px;height:26px;background:#F5C343;color:#000;font-size:13px}
#rh-rb .rb-pin.fin{width:26px;height:26px;background:#0c0d0e;font-size:13px}
#rh-rb .rb-gapm{display:block;padding:3px 7px;background:var(--rb-bad);color:#fff;font-family:Oswald,var(--rh-head),sans-serif;font-weight:600;font-size:12px;line-height:1.2;white-space:nowrap}
#rh-rb .rb-p{display:grid;place-items:center;width:16px;height:16px;background:#3b5bdb;color:#fff;border:1.5px solid #fff;font:700 10px/1 sans-serif}
#rh-rb .rb-dot{display:block;width:14px;height:14px;border-radius:50%;background:#fff;border:3px solid var(--rb-route)}
#rh-rb .rb-ring{display:block;width:20px;height:20px;border-radius:50%;border:3px solid var(--rb-route)}

#rh-rb .rb-ui{position:absolute;z-index:5}
#rh-rb .rb-load{inset:0;z-index:6;display:flex;flex-direction:column;gap:12px;align-items:center;justify-content:center;background:var(--rh-panel);color:var(--rh-dim);font-size:15px}
#rh-rb .rb-load button{min-height:44px;padding:0 16px;border:1px solid var(--rh-link);color:var(--rh-link);font-family:var(--rh-head);font-weight:600;text-transform:uppercase;letter-spacing:1px}
#rh-rb .rb-zoom{top:10px;right:10px;display:flex;flex-direction:column;align-items:flex-end;gap:4px}
#rh-rb .rb-zoom button,#rh-rb .rb-keybtn{width:40px;height:40px;background:#fff;color:#111;box-shadow:0 1px 4px rgba(0,0,0,.25);font-size:20px;line-height:1;display:grid;place-items:center}
#rh-rb .rb-zoom .rb-lay,#rh-rb .rb-keybtn{width:auto;padding:0 12px;font-size:12px;font-family:var(--rh-head);letter-spacing:1px;text-transform:uppercase;height:34px}
#rh-rb .rb-keywrap{left:10px;bottom:24px;display:flex;flex-direction:column;align-items:flex-start;gap:6px}
#rh-rb .rb-key{background:#fff;color:#111;box-shadow:0 1px 4px rgba(0,0,0,.25);padding:10px 12px;display:grid;grid-template-columns:auto auto;gap:5px 16px;font-size:12px;cursor:pointer}
#rh-rb .rb-key span{display:flex;align-items:center;gap:7px;white-space:nowrap}
#rh-rb .rb-key i{display:inline-block;width:22px;height:0;border-top:3px solid}
#rh-rb .rb-label{left:10px;top:10px;max-width:calc(100% - 130px);background:#0c0d0e;color:#fff;padding:7px 11px;font-size:12px;pointer-events:none}
#rh-rb .rb-label b{font-family:var(--rh-head);font-weight:500;font-size:15px;text-transform:uppercase;letter-spacing:.5px;margin-right:8px}
#rh-rb .rb-banner{left:10px;right:60px;top:10px;background:#0c0d0e;color:#fff;padding:8px 8px 8px 12px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#rh-rb .rb-banner span{flex:1 1 140px;font-size:13px}
#rh-rb .rb-banner button{border:1px solid #666;color:#fff;min-height:38px;padding:0 12px;font-family:var(--rh-head);text-transform:uppercase;letter-spacing:1px;font-size:13px;display:inline-flex;align-items:center}
#rh-rb .rb-banner button.go{background:var(--rh-btn);border-color:var(--rh-btn);color:#000;font-weight:600}
#rh-rb .rb-banner button:disabled{opacity:.4}
#rh-rb .rb-toast{left:50%;bottom:24px;transform:translateX(-50%);background:#0c0d0e;color:#fff;padding:6px 6px 6px 14px;display:flex;align-items:center;gap:10px;font-size:13px;max-width:calc(100% - 20px);white-space:nowrap;box-shadow:0 4px 14px rgba(0,0,0,.3)}
#rh-rb .rb-toast span{overflow:hidden;text-overflow:ellipsis}
#rh-rb .rb-toast button{background:#2a2a2a;color:#4CC7BF;min-height:36px;padding:0 12px;font-family:var(--rh-head);text-transform:uppercase;letter-spacing:1px;font-size:13px;flex:none;display:inline-flex;align-items:center}
#rh-rb .rb-choose{background:#fff;color:#111;box-shadow:0 6px 24px rgba(0,0,0,.35);min-width:220px;max-width:290px}
#rh-rb .rb-choose p{padding:8px 12px;font-family:var(--rh-head);font-size:11px;letter-spacing:1.5px;text-transform:uppercase;color:#55595d;border-bottom:1px solid #e3e3e3}
#rh-rb .rb-choose button{display:flex;align-items:center;gap:10px;width:100%;min-height:46px;padding:6px 12px;border-bottom:1px solid #e3e3e3}
#rh-rb .rb-choose button:hover{background:#e4f6f4}
#rh-rb .rb-choose b{font-family:var(--rh-head);font-weight:500;font-size:15px;text-transform:uppercase;flex:1}
#rh-rb .rb-choose span{font-size:12px;color:#55595d}
#rh-rb .rb-dc{display:inline-block;width:10px;height:10px;border-radius:50%;flex:none}

/* "which part of this trail?" */
#rh-rb .rb-ask{left:10px;top:10px;width:min(360px,calc(100% - 70px));background:#fff;color:#111;box-shadow:0 6px 24px rgba(0,0,0,.35);z-index:7}
#rh-rb .rb-ask p{padding:12px 14px;font-size:14px;line-height:1.35;border-bottom:1px solid #e3e3e3}
#rh-rb .rb-ask .opt{display:flex;align-items:center;gap:10px;width:100%;min-height:52px;padding:8px 14px;border-bottom:1px solid #e3e3e3;font-size:14px;font-weight:600}
#rh-rb .rb-ask .opt:hover{background:#e4f6f4}
#rh-rb .rb-ask .opt i{display:grid;place-items:center;flex:none;width:26px;height:26px;border-radius:50%;color:#fff;font-style:normal;font-family:var(--rh-head);font-size:13px}
#rh-rb .rb-ask .alt{display:block;width:100%;padding:10px 14px;font-size:13px;color:#55595d;text-align:center}
/* arranger */
#rh-rb .rb-rail{flex:none;width:400px;display:flex;flex-direction:column;background:var(--rh-input);border-left:1px solid var(--rh-line);min-height:0}
#rh-rb .rb-handle{display:none}
#rh-rb .rb-tot{flex:none;display:grid;grid-template-columns:repeat(3,1fr);padding:14px 20px 4px}
#rh-rb .rb-tot div{display:flex;flex-direction:column}
#rh-rb .rb-tot b{font-family:var(--rh-head);font-size:26px;font-weight:600;line-height:1.05}
#rh-rb .rb-tot b small{font-size:13px;font-weight:400;color:var(--rh-dim);margin-left:3px}
#rh-rb .rb-tot span{font-family:var(--rh-head);font-size:11px;letter-spacing:1.5px;text-transform:uppercase;color:var(--rh-dim)}
#rh-rb .rb-status{flex:none;padding:2px 20px 0;font-size:12px;color:var(--rh-dim);min-height:20px;display:flex;gap:8px;align-items:center}
#rh-rb .rb-status .bad{color:var(--rb-bad);font-weight:600}
#rh-rb .rb-tag{font-family:var(--rh-head);font-size:11px;letter-spacing:1px;text-transform:uppercase;padding:2px 7px;background:var(--rh-tag);color:var(--rh-tag-text)}
#rh-rb .rb-acts{flex:none;display:flex;gap:8px;padding:8px 20px 12px;align-items:center}
#rh-rb .rb-acts .sp{flex:1}
#rh-rb .rb-btn,#rh-rb .rb-ghost{font-family:var(--rh-head);font-weight:600;letter-spacing:1px;text-transform:uppercase;padding:0 16px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;font-size:14px;white-space:nowrap}
#rh-rb .rb-btn{background:var(--rh-btn);color:#000}
#rh-rb .rb-ghost{color:var(--rh-link);border:1px solid var(--rh-link)}
#rh-rb .rb-btn:disabled,#rh-rb .rb-ghost:disabled{opacity:.35}
#rh-rb .rb-scroll{flex:1 1 auto;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;border-top:1px solid var(--rh-line);overscroll-behavior:contain}
#rh-rb .rb-prof{display:block;width:100%;height:64px;background:var(--rh-panel)}
#rh-rb .rb-prof-f{fill:var(--rh-accent);opacity:.35}
#rh-rb .rb-prof-l{fill:none;stroke:var(--rh-link);stroke-width:2}
#rh-rb .rb-list{padding:8px 12px 24px;position:relative}
#rh-rb .rb-empty{padding:28px 12px;color:var(--rh-dim);text-align:center;font-size:14px}
#rh-rb .rb-leg{display:grid;grid-template-columns:36px 26px minmax(0,1fr) 38px 44px 40px;align-items:center;background:var(--rh-panel);min-height:58px;position:relative;margin-top:6px;cursor:pointer}
#rh-rb .rb-leg.sel{box-shadow:inset 4px 0 0 var(--rh-text);background:var(--rh-panel2)}
#rh-rb .rb-leg.wrong{box-shadow:inset 4px 0 0 var(--rb-bad)}
#rh-rb .rb-leg.flash{animation:rbfl .9s}
@keyframes rbfl{0%,60%{background:#fde7d8}}
#rh-rb .rb-leg.drag{z-index:3;box-shadow:0 8px 24px rgba(0,0,0,.3);background:var(--rh-input);transition:none}
#rh-rb .rb-leg.before::before,#rh-rb .rb-leg.after::after{content:"";position:absolute;left:0;right:0;height:3px;background:var(--rb-route)}
#rh-rb .rb-leg.before::before{top:-5px}
#rh-rb .rb-leg.after::after{bottom:-5px}
#rh-rb .rb-grip{height:100%;min-height:58px;cursor:grab;touch-action:none;display:grid;place-items:center;color:#8a8f94}
#rh-rb .rb-n{width:24px;height:24px;border-radius:50%;background:var(--rb-route);color:#fff;font-family:var(--rh-head);font-weight:600;font-size:13px;display:grid;place-items:center}
#rh-rb .rb-info{min-width:0;padding:8px 6px 8px 10px;display:flex;flex-direction:column}
#rh-rb .rb-name{font-family:var(--rh-head);font-weight:500;font-size:17px;text-transform:uppercase;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#rh-rb .rb-sub{font-size:12px;color:var(--rh-dim);display:flex;align-items:center;gap:6px;white-space:nowrap;overflow:hidden}
#rh-rb .rb-warn{font-size:12px;color:var(--rb-bad);font-weight:600}
#rh-rb .rb-flip,#rh-rb .rb-x{height:100%;min-height:58px;display:grid;place-items:center;color:var(--rh-text)}
#rh-rb .rb-flip:hover,#rh-rb .rb-x:hover{background:var(--rh-panel2)}
#rh-rb .rb-leg.wrong .rb-flip{color:#fff;background:var(--rb-bad)}
#rh-rb .rb-x{font-size:22px;color:#8a8f94}
#rh-rb .rb-join{display:flex;align-items:center;gap:8px;padding:5px 8px 0 46px;font-size:12px;color:var(--rh-dim);min-height:26px}
#rh-rb .rb-join i{width:0;height:16px;border-left:3px dotted var(--rb-route)}
#rh-rb .rb-join.gap{background:#fff1f0;color:var(--rb-bad);font-weight:600;padding:6px 6px 6px 12px;margin-top:6px;min-height:52px;box-shadow:inset 4px 0 0 var(--rb-bad)}
#rh-rb .rb-join.gap span{flex:1}
#rh-rb .rb-join button{border:1px solid currentColor;background:#fff;min-height:40px;padding:0 12px;font-family:var(--rh-head);font-weight:600;text-transform:uppercase;letter-spacing:1px;font-size:13px;display:inline-flex;align-items:center}
#rh-rb .rb-join .lx{border:0;background:none;font-size:18px;min-height:30px;padding:0 8px;color:#8a8f94}
#rh-rb .dragging .rb-join{visibility:hidden}

/* send */
#rh-rb .rb-dlg{position:absolute;inset:0;z-index:20;background:rgba(12,13,14,.55);display:grid;place-items:center;padding:16px;overflow:auto}
#rh-rb .rb-dlg form{background:var(--rh-input);color:var(--rh-text);width:min(420px,100%);padding:22px;margin:0;display:flex;flex-direction:column;gap:12px}
#rh-rb .rb-dlg h3{font-family:var(--rh-head);font-weight:700;text-transform:uppercase;letter-spacing:2px;font-size:20px;color:var(--rh-text)}
#rh-rb .rb-dlg p{color:var(--rh-dim);font-size:13px}
#rh-rb .rb-dlg [data-rb="f-fields"]{display:flex;flex-direction:column;gap:10px}
#rh-rb .rb-dlg label{display:flex;flex-direction:column;gap:4px;font-family:var(--rh-head);font-size:11px;letter-spacing:1.5px;text-transform:uppercase;color:var(--rh-dim);margin:0}
#rh-rb .rb-dlg input{font:inherit;font-size:16px;letter-spacing:0;text-transform:none;padding:11px 12px;border:1px solid var(--rh-input-line);border-radius:0;width:100%;background:var(--rh-input);color:var(--rh-text);box-shadow:none;margin:0;min-height:46px}
#rh-rb .rb-signin{background:var(--rh-pick);padding:10px 12px;border-left:4px solid var(--rh-accent);color:var(--rh-text)!important}
#rh-rb .rb-signin a{font-weight:700;color:var(--rh-link)}
#rh-rb .rb-vis{display:grid;grid-template-columns:1fr 1fr;gap:8px}
#rh-rb .rb-vis button{display:flex;flex-direction:column;gap:2px;padding:10px 12px;min-height:56px;border:1px solid var(--rh-input-line)}
#rh-rb .rb-vis button.on{border-color:var(--rh-accent);background:var(--rh-pick);box-shadow:inset 0 0 0 1px var(--rh-accent)}
#rh-rb .rb-vis b{font-family:var(--rh-head);text-transform:uppercase;letter-spacing:1px;font-size:14px}
#rh-rb .rb-vis span{font-size:12px;color:var(--rh-dim)}
#rh-rb .rb-dlg .rb-hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
#rh-rb .rb-dlg .rb-err{color:var(--rb-bad);font-weight:600}
#rh-rb .rb-dlg .row{display:flex;gap:8px;justify-content:flex-end;margin-top:4px}
#rh-rb .rb-ok{font-family:var(--rh-head);font-size:15px;text-transform:uppercase;letter-spacing:1px;color:var(--rh-link)}

/* phones: the map on top, the route in a sheet that pulls up */
@container rb (max-width:760px){
  #rh-rb .rb-top{padding-left:12px;gap:10px}
  #rh-rb .rb-h{font-size:17px;letter-spacing:1px;white-space:nowrap}
  #rh-rb .rb-crumb{font-size:11px;letter-spacing:1px}
  #rh-rb .rb-main{--peek:152px}
  #rh-rb .rb-map{position:absolute;left:0;right:0;top:0;bottom:var(--peek)}
  #rh-rb .rb-rail{position:absolute;left:0;right:0;bottom:0;width:auto;height:var(--peek);border-left:0;box-shadow:0 -6px 20px rgba(0,0,0,.18);transition:height .22s ease;z-index:10;padding-bottom:env(safe-area-inset-bottom,0px)}
  #rh-rb .rb-rail.open{height:72%}
  #rh-rb .rb-rail.live{transition:none}
  #rh-rb .rb-handle{display:flex;flex:none;align-items:center;justify-content:center;gap:8px;height:26px;width:100%;cursor:grab;touch-action:none;font-family:var(--rh-head);font-size:11px;letter-spacing:1.5px;text-transform:uppercase;color:var(--rh-dim)}
  #rh-rb .rb-handle::before{content:"";width:38px;height:4px;border-radius:2px;background:#c4c4c4}
  #rh-rb .rb-tot{padding:2px 14px 0}
  #rh-rb .rb-tot b{font-size:22px}
  #rh-rb .rb-status{padding:1px 14px 0}
  #rh-rb .rb-acts{padding:6px 14px 10px}
  #rh-rb .rb-btn,#rh-rb .rb-ghost{padding:0 12px;font-size:13px}
  #rh-rb .rb-list{padding:4px 8px 30px}
  #rh-rb .rb-leg{grid-template-columns:40px 26px minmax(0,1fr) 40px 46px 42px;min-height:60px}
  #rh-rb .rb-keywrap{bottom:24px;left:8px}
  #rh-rb .rb-toast{bottom:24px;left:auto;right:8px;transform:none;max-width:calc(100% - 90px)}
  #rh-rb .rb-zoom{top:8px;right:8px}
  #rh-rb .rb-banner{left:8px;right:56px;top:8px}
  #rh-rb .rb-label{display:none}
  #rh-rb .rb-ask{left:8px;top:8px;width:calc(100% - 64px)}
}

/* phones: a plain up/down button on the sheet, for riders who don't think to drag the handle */
#rh-rb .rb-chev{display:none}
@container rb (max-width:760px){
  #rh-rb .rb-handle{position:relative}
  #rh-rb .rb-chev{display:grid;place-items:center;position:absolute;right:8px;top:0;width:52px;height:26px;background:#0c0d0e;color:#fff}
  #rh-rb .rb-chev svg{transition:transform .2s}
  #rh-rb .rb-rail.open .rb-chev svg{transform:rotate(180deg)}
}

/* trail names along the lines (labels.js) */
.rh-tlabel{background:none;border:0;pointer-events:none}
.rh-tlabel>span{position:absolute;left:0;top:0;white-space:nowrap;font:600 12px/1 system-ui,-apple-system,"Segoe UI",sans-serif;color:#1d2125;text-shadow:0 0 2px #fff,0 0 2px #fff,0 0 3px #fff,0 0 4px #fff;letter-spacing:.2px}

/* draw a connector anywhere */
#rh-rb .rb-zoom .rb-pen svg{display:block}
#rh-rb.rb-drawing .rb-zoom .rb-pen{background:var(--rb-route);color:#fff}
#rh-rb .rb-dcc{background:none!important;border:2px dotted var(--rb-route);box-sizing:border-box}
/* ride part of a trail */
#rh-rb .rb-trim{list-style:none;margin:0;padding:10px 12px 12px 46px;background:var(--rh-panel2);box-shadow:inset 4px 0 0 var(--rh-text)}
#rh-rb .rb-trim-t{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;min-height:30px}
#rh-rb .rb-trim-lab{margin:2px 0 0;font-size:12px;color:var(--rh-dim)}
#rh-rb .rb-trim-t b{font-family:var(--rh-head);text-transform:uppercase;letter-spacing:1px;font-size:12px}
#rh-rb .rb-trim-t button{border:1px solid currentColor;background:none;color:inherit;min-height:30px;padding:0 10px;font-family:var(--rh-head);text-transform:uppercase;letter-spacing:1px;font-size:11px}
#rh-rb .rb-trim-n{margin:6px 0 0;font-size:11px;color:var(--rh-dim)}
#rh-rb .rb-range{position:relative;height:44px;margin-top:4px}
#rh-rb .rb-range::before{content:'';position:absolute;left:0;right:0;top:20px;height:4px;background:#c9ccd0;border-radius:2px}
#rh-rb .rb-range-on{position:absolute;top:19px;height:6px;background:var(--rb-route);border-radius:3px}
#rh-rb .rb-range input{position:absolute;left:-14px;width:calc(100% + 28px);top:0;height:44px;margin:0;padding:0;background:none;pointer-events:none;-webkit-appearance:none;appearance:none}
#rh-rb .rb-range input::-webkit-slider-runnable-track{background:none;height:44px}
#rh-rb .rb-range input::-moz-range-track{background:none;height:44px}
#rh-rb .rb-range input::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;pointer-events:auto;width:28px;height:28px;margin-top:8px;border-radius:50%;background:#fff;border:3px solid var(--rb-route);box-shadow:0 1px 4px rgba(0,0,0,.3);cursor:grab}
#rh-rb .rb-range input::-moz-range-thumb{pointer-events:auto;width:22px;height:22px;border-radius:50%;background:#fff;border:3px solid var(--rb-route);box-shadow:0 1px 4px rgba(0,0,0,.3);cursor:grab}
#rh-rb .rb-range input:focus-visible::-webkit-slider-thumb{outline:2px solid var(--rh-text);outline-offset:2px}
#rh-rb .rb-th{cursor:grab;z-index:900!important}
#rh-rb .rb-handle-dot{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#fff;border:3px solid var(--rb-route);box-shadow:0 1px 5px rgba(0,0,0,.35);line-height:1}
#rh-rb .rb-handle-dot i{width:10px;height:10px;border-radius:50%;background:var(--rb-route)}
/* the button column is as wide as its widest button (Satellite): the empty part mustn't swallow taps meant for the banner under it */
#rh-rb .rb-zoom{pointer-events:none}
#rh-rb .rb-zoom button{pointer-events:auto}

/* How to: shares the bottom-left corner with the Key */
#rh-rb .rb-keybtns{display:flex;gap:6px}
#rh-rb .rb-how{background:#fff;color:#111;box-shadow:0 1px 4px rgba(0,0,0,.25);padding:10px 12px 12px;width:290px;max-width:calc(100vw - 96px);cursor:pointer}
#rh-rb .rb-how-h{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}
#rh-rb .rb-how-h b{font-family:var(--rh-head);text-transform:uppercase;letter-spacing:1px;font-size:13px;font-weight:600}
#rh-rb .rb-how-x{font-size:20px;line-height:1;width:32px;height:32px;margin:-6px -6px -6px 0;color:#555}
#rh-rb .rb-how ol{list-style:none;margin:0;padding:0;display:grid;gap:7px}
#rh-rb .rb-how li{display:flex;align-items:center;gap:10px;font-size:13px;line-height:1.3}
#rh-rb .rb-how-i{flex:none;width:26px;height:26px;display:grid;place-items:center;color:#111}
#rh-rb .rb-how-sl{position:relative;display:block;width:24px;height:4px;border-radius:2px;background:var(--rb-route)}
#rh-rb .rb-how-sl::before,#rh-rb .rb-how-sl::after{content:'';position:absolute;top:-4px;width:10px;height:10px;border-radius:50%;background:#fff;border:2px solid var(--rb-route);box-sizing:border-box}
#rh-rb .rb-how-sl::before{left:-3px}#rh-rb .rb-how-sl::after{right:-3px}
#rh-rb .rb-how-gap{display:block;width:24px;height:0;border-top:3px dashed var(--rb-bad)}

/* Transfer stages: legs ridden between stages, marked with T, drawn dashed in purple */
#rh-rb{--rb-xf:#7048e8}
#rh-rb .rb-xf{height:100%;min-height:58px;display:grid;place-items:center;font-family:var(--rh-head);font-weight:600;font-size:15px;color:#8a8f94}
#rh-rb .rb-xf:hover{background:var(--rh-panel2);color:var(--rb-xf)}
#rh-rb .rb-xf.on{color:#fff;background:var(--rb-xf)}
#rh-rb .rb-leg.xf{box-shadow:inset 4px 0 0 var(--rb-xf)}
#rh-rb .rb-leg.xf .rb-n,#rh-rb .rb-pin.xf{background:var(--rb-xf)}
#rh-rb .rb-join.xf i{border-left-color:var(--rb-xf)}
#rh-rb .rb-stage{list-style:none;margin:12px 0 0;font-family:var(--rh-head);font-size:12px;font-weight:600;letter-spacing:1px;text-transform:uppercase;color:var(--rb-route)}
#rh-rb .rb-stage.xf{color:var(--rb-xf)}
#rh-rb .rb-xtag{font-size:12px;color:var(--rb-route);font-weight:600}
#rh-rb .rb-xtag.xf{color:var(--rb-xf)}
#rh-rb .rb-how-t{width:22px;height:22px;display:grid;place-items:center;background:var(--rb-xf);color:#fff;font-family:var(--rh-head);font-size:13px}
