.xbar{position:fixed;left:50%;bottom:16px;z-index:55;display:flex;align-items:center;gap:10px;width:min(720px,calc(100vw - 32px));padding:8px 8px 8px 12px;background:var(--paper);color:var(--ink);border:1.5px solid var(--ink);border-radius:14px;box-shadow:3px 3px 0 var(--ink);transform:translate(-50%,140%);transition:transform .45s cubic-bezier(.3,1.25,.5,1)}
.xbar.on{transform:translate(-50%,0)}.xbar.on.dip{transform:translate(-50%,140%)}
.xbin{display:flex;align-items:center;gap:12px;flex:1;min-width:0;text-decoration:none;color:inherit;opacity:0;transform:translateY(6px);transition:opacity .25s,transform .35s cubic-bezier(.3,1.4,.5,1)}
.xbin.in{opacity:1;transform:none}
.xbin .icon{width:34px!important;height:34px!important;flex:none}
.xbnm{display:grid;min-width:0}.xbnm b{font:500 16px/1.1 var(--serif);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.xbnm small{font-size:12px;color:var(--mute)}.xbnm small b{font:inherit;color:var(--ink)}
.xbin .xbhrs{display:flex;gap:2px;flex:none}
.xbtag{flex:none;font:700 9.5px var(--pixel,ui-monospace);letter-spacing:.08em;background:#111;color:#fff;border-radius:6px;padding:4px 7px}
.xbget{flex:none;font-weight:600;font-size:14px;text-decoration:underline;color:var(--ink);padding:0 4px}
.xbx{all:unset;flex:none;width:26px;height:26px;display:grid;place-items:center;border-radius:8px;cursor:pointer;color:var(--mute);font-size:18px}.xbx:hover{background:var(--box)}
@media (max-width:760px){.xbar{bottom:calc(76px + env(safe-area-inset-bottom));gap:8px}.xbin .xbhrs{display:none}.xbtag{display:none}}
@media (prefers-reduced-motion:reduce){.xbar,.xbin{transition:opacity .2s}}
.xbin .xbhrs{align-items:flex-end;height:12px;max-width:142px;width:142px}
.xbin .xbhrs i{flex:1 1 0;max-width:4px;min-width:2.5px;height:100%;border-radius:1.5px;background:var(--box2,#d9d1bd)}
.xbin .xbhrs i.on{background:var(--o,#f08a2c)}
.xbin .xbhrs i.now{background:linear-gradient(to top,var(--o,#f08a2c) calc(var(--f,1) * 100%),var(--box2,#d9d1bd) 0)}
/* iPip: the Help pill sits above the bar wherever the two would meet (the bar is centred and up to 720px wide). */
@media (max-width:980px){body:has(.xbar.on:not(.dip)) .sp-launch{bottom:92px;transition:bottom .3s}}
@media (max-width:760px){body:has(.xbar.on:not(.dip)) .sp-launch{bottom:calc(140px + env(safe-area-inset-bottom))}}

/* Phones: a tighter bar, 44 px targets, and the page keeps clear of it (bugs.md rows 5 and 7). */
@media (max-width:760px){
  .xbar{bottom:calc(58px + env(safe-area-inset-bottom));padding:4px 4px 4px 10px;min-height:44px;gap:6px}
  .xbx{width:44px;height:44px}
  .xbin{min-height:44px}.xbin .icon{width:30px!important;height:30px!important}
  /* Beside the Help pill, MacPip's rule (round 2, 18 Nov 2026): the bar starts right of Help, on the same line, so neither covers
     the other and the stack is one row high. Help is 78px wide at 12px from the edge. */
  .xbar{left:98px;width:calc(100vw - 110px);transform:translate(0,160%)}.xbar.on{transform:none}.xbar.on.dip{transform:translate(0,160%)}
  body:has(.xbar.on:not(.dip)) .sp-launch{bottom:calc(60px + env(safe-area-inset-bottom))}
  /* The room stays while the bar dips out of the way: tied to the dip, the page grew and shrank 72px at the bottom of a short page,
     the scroll position followed, and that set off the dip again, a loop every 0.4 s (CLS 0.63 on /today, 18 Nov 2026). */
  body:has(.xbar.on) main{padding-bottom:calc(120px + env(safe-area-inset-bottom))}
}
