/* Background sends (js/sends.js): the bars in the side menu above the credits, and the tracker they open. RecruiterBee's
   look (app/src/36-bg-sends.js) in the app's tokens, so light and dark both follow. */
.side .sends{margin-top:auto;display:grid;gap:6px;padding:8px 0 2px}
.side .sends.hide{display:none}
.side .sends:not(.hide) + .me{margin-top:8px}
.snd-i{width:14px;height:14px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.snd-pill{display:grid;gap:7px;width:100%;padding:9px 10px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);font:inherit;text-align:left;cursor:pointer}
.snd-pill:hover{background:var(--hover)}
/* a press's own bar, just made: lit for a moment */
.snd-pill.new{border-color:var(--brand);box-shadow:0 0 0 3px var(--tint)}
.snd-pill{transition:border-color .6s,box-shadow .6s}
/* a phone: More's dot pulses while the press's bar is lit (the bars are in its sheet) */
#mtabs .mtab-n.snd-hot{animation:snd-pulse .8s ease-in-out infinite}
.snd-pill:focus-visible,.snd-more:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.snd-top{display:flex;align-items:center;gap:6px;min-width:0;font-size:12.5px;line-height:16px;color:var(--ink2)}
.snd-nm{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.snd-top b{flex:none;color:var(--ink);font-weight:600;font-variant-numeric:tabular-nums}
.snd-dot{width:7px;height:7px;flex:none;border-radius:50%;background:var(--ink3)}
.snd-dot.go{background:var(--good);animation:snd-pulse 1.6s ease-in-out infinite}
.snd-dot.wait{background:var(--warn)}
@keyframes snd-pulse{50%{opacity:.35}}
.snd-track{display:block;height:4px;border-radius:9999px;background:var(--chip);overflow:hidden}
.snd-track span{display:block;height:100%;border-radius:inherit;background:var(--brand);transition:width .4s}
.snd-more{border:0;background:transparent;padding:2px 10px;font:inherit;font-size:12px;font-weight:600;color:var(--brand-d);text-align:left;cursor:pointer}
/* A phone (Max 2026-10-20: "Make it like real monile app UI now its confusing to look at on phone"): the bars are a section of the
   More sheet (the side panel), under the pages and above the free trial and the account; each is a full-width row to press. */
@media (max-width:800px),(pointer:coarse) and (max-width:950px){
  .side .sends{margin:8px 0 0;padding:14px 12px 6px;gap:8px;border-top:1px solid var(--line)}
  .side .sends:not(.hide)::before{content:"Background sends";font-size:11px;line-height:14px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--ink3)}
  .snd-pill{padding:11px 12px;gap:9px;min-height:52px}
  .snd-top{font-size:13.5px}
  .snd-more{min-height:44px;padding:0 12px;font-size:13.5px}
}
@media (prefers-reduced-motion:reduce){.snd-dot.go,#mtabs .mtab-n.snd-hot{animation:none}.snd-pill,.snd-track span,.snd-bar i{transition:none}}

#rm-runs{position:fixed;left:244px;bottom:16px;z-index:60;width:min(460px,calc(100vw - 264px));max-height:min(80vh,720px);display:none;flex-direction:column;
  background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:var(--pop);color:var(--ink);font-size:13px;line-height:18px;overflow:hidden}
#rm-runs.on{display:flex}
#rm-runs button{font:inherit}
#rm-runs .snd-hd{display:flex;align-items:center;gap:10px;padding:12px 12px 12px 16px;border-bottom:1px solid var(--line)}
#rm-runs .snd-hd b{font-size:14px;font-weight:700}
#rm-runs .snd-hd span{flex:1;color:var(--ink3);font-size:12px}
#rm-runs .snd-hd .rm-tip{margin-left:-6px}
#rm-runs .snd-x{width:30px;height:30px;display:grid;place-items:center;border-radius:50%;border:1px solid var(--line);background:var(--surface);color:var(--ink2);cursor:pointer}
#rm-runs .snd-x:hover{background:var(--hover);color:var(--ink)}
#rm-runs .snd-list{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain}
#rm-runs .snd-sec{padding:10px 16px 2px;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--ink3)}
#rm-runs .snd-run{display:flex;gap:12px;padding:12px 16px;border-bottom:1px solid var(--line)}
#rm-runs .snd-run:last-child{border-bottom:0}
#rm-runs .snd-ic{flex:none;width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:var(--tint);color:var(--brand-d)}
#rm-runs .snd-ic.end{background:var(--good-s);color:var(--good)}
#rm-runs .snd-ic.stopped{background:var(--chip);color:var(--ink3)}
#rm-runs .snd-ic .snd-i{width:17px;height:17px}
#rm-runs .snd-main{flex:1;min-width:0}
#rm-runs .snd-rt{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px}
#rm-runs .snd-rt b{font-size:13.5px;font-weight:600}
#rm-runs .snd-chip{font-size:10.5px;line-height:16px;font-weight:600;border-radius:6px;padding:1px 7px;background:var(--chip);color:var(--ink2)}
#rm-runs .snd-chip.go,#rm-runs .snd-chip.ok{background:var(--good-s);color:var(--good)}
#rm-runs .snd-chip.wait{background:var(--warn-s);color:var(--warn)}
#rm-runs .snd-cnt{margin-left:auto;font-size:12px;font-weight:600;color:var(--ink2);font-variant-numeric:tabular-nums}
#rm-runs .snd-co{display:block;max-width:100%;margin-top:1px;border:0;background:transparent;padding:0;color:var(--brand-d);font-size:12.5px;font-weight:500;text-align:left;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#rm-runs .snd-co:hover{text-decoration:underline}
#rm-runs .snd-sub{margin-top:2px;font-size:12px;color:var(--ink3);overflow-wrap:anywhere}
#rm-runs .snd-bar{height:6px;margin-top:8px;border-radius:9999px;background:var(--chip);overflow:hidden}
#rm-runs .snd-bar i{display:block;height:100%;border-radius:inherit;background:var(--brand);transition:width .4s}
#rm-runs .snd-bar.end i{background:var(--good)}
#rm-runs .snd-bar.stopped i{background:var(--ink3)}
#rm-runs .snd-note{margin-top:6px;font-size:12px;color:var(--warn)}
#rm-runs .snd-foot{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:8px}
#rm-runs .snd-prev{flex:1 1 160px;min-width:0;font-size:12px;color:var(--ink3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#rm-runs .snd-prev:empty{display:none}
#rm-runs .snd-prev em{font-style:normal;font-weight:600;color:var(--brand-d)}
#rm-runs .snd-ctl{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-left:auto}
#rm-runs .snd-ctl button{height:28px;padding:0 12px;border-radius:9999px;border:1px solid var(--line2);background:var(--surface);color:var(--ink);font-size:12.5px;font-weight:600;cursor:pointer}
#rm-runs .snd-ctl button:hover:not(:disabled){background:var(--hover)}
#rm-runs .snd-ctl button:disabled{opacity:.45;cursor:default}
#rm-runs .snd-ctl button.stop{color:var(--bad);border-color:color-mix(in oklab,var(--bad) 40%,var(--line2))}
#rm-runs .snd-ask{flex-basis:100%;font-size:12px;color:var(--ink2);text-align:right}
#rm-runs-bg{display:none}
/* the tracker is a sheet from the bottom of the screen, over the tab bar and the More sheet, with a shade behind it that a press closes */
@media (max-width:800px),(pointer:coarse) and (max-width:950px){
  #rm-runs-bg.on{display:block;position:fixed;inset:0;z-index:74;background:rgb(0 0 0 / .35)}
  html:has(#rm-runs.on) #toast{z-index:120;top:12px;bottom:auto;pointer-events:none}
  #rm-runs{left:0;right:0;bottom:0;z-index:75;width:auto;max-height:86vh;max-height:86dvh;border-width:1px 0 0;border-radius:18px 18px 0 0;padding-bottom:env(safe-area-inset-bottom);animation:snd-up .22s ease-out}
  @keyframes snd-up{from{transform:translateY(32px);opacity:.5}to{transform:none;opacity:1}}
  @media (prefers-reduced-motion:reduce){#rm-runs{animation:none}}
  #rm-runs.on::before{content:"";flex:none;align-self:center;width:36px;height:4px;border-radius:9999px;background:var(--line2);margin:8px 0 0}
  #rm-runs .snd-hd{padding:4px 10px 10px 16px}
  #rm-runs .snd-hd b{font-size:16px}
  #rm-runs .snd-x{width:44px;height:44px}
  #rm-runs .rm-tip{width:32px;height:32px;margin:-6px -4px}
  #rm-runs .snd-run{padding:14px 16px}
  #rm-runs .snd-rt b{font-size:14.5px}
  #rm-runs .snd-co{min-height:40px;font-size:13.5px}
  #rm-runs .snd-sub,#rm-runs .snd-prev{font-size:12.5px}
  #rm-runs .snd-ctl{gap:8px}
  #rm-runs .snd-ctl button{height:40px;padding:0 16px;font-size:13.5px}
  #rm-runs .snd-ask{font-size:12.5px}
  #rm-runs .snd-chip{font-size:12px;line-height:18px}
  #rm-runs .snd-sec{font-size:12px}
}
