/* ═══ THE RAIL'S HOVER PANEL ══════════════════════════════════════════════════
   Item 8 of his shell list: "hovering the rail opens a separate menu panel beside
   it", with ClickUp's as the reference.

   ⚠ IT IS NOT THE OLD DRAWER. There used to be a 56→282px slide that opened the
   whole navigation whenever a cursor crossed the left edge, and it was deleted on
   purpose — with the app's own panel living beside the rail, two sliding widths on
   one screen edge is one too many. This does not move the rail and does not move
   anything else: it is a panel that appears beside ONE tile and says what is
   inside that app, so he can go straight to a section of an app he is not in.
   ⚠ IT REPLACES THE NAME CHIP while it is up, rather than standing beside it —
   the chip says the app's name and so does this, and two labels for one tile at
   two different distances is the kind of thing he notices immediately.
   ═════════════════════════════════════════════════════════════════════════════ */
@media (min-width:761px){
  #railpop{position:fixed;z-index:420;min-width:186px;max-width:260px;
    background:var(--surface);border:1px solid var(--rule);border-radius:var(--r-panel);
    box-shadow:0 18px 44px -18px rgba(var(--shade-rgb),.42);padding:6px;
    display:none;animation:rpIn .13s var(--ease-out)}
  #railpop.on{display:block}
  @keyframes rpIn{from{opacity:0;transform:translateX(-6px)}to{opacity:1;transform:none}}

  /* the app's name, and then what is inside it */
  #railpop .rp-h{display:flex;align-items:center;gap:9px;padding:7px 9px 5px}
  #railpop .rp-h b{font-family:'Inter',sans-serif;font-size:13px;font-weight:600;color:var(--ink)}
  #railpop .rp-h .rp-go{margin-left:auto;font-family:'Inter',sans-serif;font-size:12px;
    color:var(--ink-faint)}
  #railpop .rp-rule{height:1px;background:var(--rule-soft);margin:4px 6px 5px}
  #railpop button{display:flex;align-items:center;gap:9px;width:100%;text-align:left;
    background:none;border:0;border-radius:var(--r-control);padding:7px 9px;cursor:pointer;
    font-family:'Inter',sans-serif;font-size:13px;color:var(--ink-soft);
    overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  #railpop button:hover{background:var(--field);color:var(--ink)}
  /* the section you are actually on, when the app you are hovering is this one */
  #railpop button.on{background:var(--accent-soft);color:var(--ink);font-weight:600}
  #railpop .rp-n{margin-left:auto;font-family:var(--num);font-variant-numeric:tabular-nums;
    font-size:12px;color:var(--ink-faint);flex-shrink:0}

  /* ⚠ while the panel is up the rail's own chip stays down — see the note above */
  body.rp-open .sb .nav:hover .nav-lbl{opacity:0}
}
/* a phone has no rail and nothing to hover with */
@media (max-width:760px){ #railpop{display:none!important} }
@media (prefers-reduced-motion:reduce){ #railpop{animation:none} }
