/* The 7 Nov picks: plate-refresh (design/picks-7nov/PROMPT.md). Every rule under html.<its switch class>:is([data-skin=r]). */
/* C4, the plate loader (js/components/plate-refresh.js; the board design/xband-refresh/plate-loader.dc.html, its sizes,
   colours, gradients and easings). While a pull is on (html.pk-pr-on) the page in view, the mode bar and the bell slide down
   by --pk-pr-y (set by the script every frame) over the dark band; the page takes its own background (--pk-pr-bg, read
   from the app) so the band shows only above it. */
html.uf-plate-refresh.pk-pr-on:is([data-skin=r]) .app>.stk:not(.off)>.scr:not(#a#g#l){position:relative;z-index:1;translate:0 var(--pk-pr-y,0px);border-radius:28px 28px 0 0;overflow:clip;background:var(--pk-pr-bg,var(--bg));box-shadow:0 -8px 28px rgba(11,18,32,.22)}
html.uf-plate-refresh.pk-pr-on:is([data-skin=r]) .app>:is(.modebar,.bell):not(#a#g#l){translate:0 var(--pk-pr-y,0px)}
html.uf-plate-refresh.pk-pr-on:is([data-skin=r]) .app>.modebar:not(#a#g#l){position:relative;z-index:1;border-radius:28px 28px 0 0;box-shadow:0 -8px 28px rgba(11,18,32,.22)}
html.uf-plate-refresh.pk-pr-on:is([data-skin=r]) .app:has(>.modebar)>.stk:not(.off)>.scr:not(#a#g#l){border-radius:0;box-shadow:none}
html.uf-plate-refresh.pk-pr-on:is([data-skin=r])[data-theme=dark] .app>.stk:not(.off)>.scr:not(#a#g#l){box-shadow:0 -1px 0 rgba(255,255,255,.1),0 -8px 28px rgba(0,0,0,.5)}
html.uf-plate-refresh.pk-pr-on:is([data-skin=r])[data-theme=dark] .app>.modebar:not(#a#g#l){box-shadow:0 -1px 0 rgba(255,255,255,.1),0 -8px 28px rgba(0,0,0,.5)}
html.uf-plate-refresh.pk-pr-on:is([data-skin=r])[data-theme=dark] .app:has(>.modebar)>.stk:not(.off)>.scr:not(#a#g#l){box-shadow:none}

/* the band behind the page: #0B1220 in both themes, the rig under the status bar */
html.uf-plate-refresh:is([data-skin=r]) .pk-pr:not(#a#g#l){position:fixed;z-index:0;top:0;left:0;right:0;height:calc(var(--safe-t,0px) + 152px);overflow:hidden;background:#0B1220;pointer-events:none}
html.uf-plate-refresh:is([data-skin=r]) .pk-pr-rig:not(#a#g#l){position:absolute;left:50%;top:var(--safe-t,0px);width:390px;height:130px;margin-left:-195px;direction:ltr}
html.uf-plate-refresh:is([data-skin=r]) .pk-pr-rep:not(#a#g#l){position:absolute;inset:0}
html.uf-plate-refresh:is([data-skin=r]) .pk-pr.ph-busy .pk-pr-rep:not(#a#g#l){animation:pk-pr-rep .84s ease-in-out infinite}
/* the bar (330 x 6, the metal gradient) and its two collars */
html.uf-plate-refresh:is([data-skin=r]) .pk-pr-bar:not(#a#g#l){position:absolute;left:30px;top:59px;width:330px;height:6px;border-radius:3px;background:linear-gradient(to bottom,#E9EEF6,#8A94A6 55%,#5B6475)}
html.uf-plate-refresh:is([data-skin=r]) .pk-pr-col:not(#a#g#l){position:absolute;top:54px;width:8px;height:16px;border-radius:2px;background:#C9D2E3}
/* the plates: blue (the app's accent) 14 x 64, white 11 x 46, grey 9 x 34; on: in from 70 px outside, 2 px past, back */
html.uf-plate-refresh:is([data-skin=r]) .pk-pr-p:not(#a#g#l){position:absolute;border-radius:4px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.12),0 6px 12px rgba(0,0,0,.35);opacity:0;transform:translateX(-70px);transition:transform .16s cubic-bezier(.4,0,1,1),opacity .12s linear}
html.uf-plate-refresh:is([data-skin=r]) .pk-pr-p.r:not(#a#g#l){transform:translateX(70px)}
html.uf-plate-refresh:is([data-skin=r]) .pk-pr-p.on:not(#a#g#l){opacity:1;transform:none;transition:none;animation:pk-pr-in-l .18s}
html.uf-plate-refresh:is([data-skin=r]) .pk-pr-p.r.on:not(#a#g#l){animation-name:pk-pr-in-r}
html.uf-plate-refresh:is([data-skin=r]) .pk-pr-p.k-b:not(#a#g#l){background:var(--rv-act,#1E5EFF)}
html.uf-plate-refresh:is([data-skin=r]) .pk-pr-p.k-w:not(#a#g#l){background:#FFFFFF}
html.uf-plate-refresh:is([data-skin=r]) .pk-pr-p.k-g:not(#a#g#l){background:#8A94A6}
html.uf-plate-refresh:is([data-skin=r]) .pk-pr.ph-done .pk-pr-p.on:not(#a#g#l){opacity:0;transition:opacity .15s linear}
/* the KG counter (Anton 34, white): the new number rises in with a small bounce, the old one leaves upward */
html.uf-plate-refresh:is([data-skin=r]) .pk-pr-n:not(#a#g#l){position:absolute;left:145px;top:8px;width:100px;height:40px;color:#FFFFFF;font-family:var(--pk-disp,'Anton',sans-serif);font-size:34px;line-height:40px;text-align:center;font-variant-numeric:tabular-nums}
html.uf-plate-refresh:is([data-skin=r]) .pk-pr-n b:not(#a#g#l){position:absolute;inset:0;font-weight:400}
html.uf-plate-refresh:is([data-skin=r]) .pk-pr-n b.in:not(#a#g#l){animation:pk-pr-nin .09s cubic-bezier(.34,1.56,.64,1)}
html.uf-plate-refresh:is([data-skin=r]) .pk-pr-n b.out:not(#a#g#l){animation:pk-pr-nout .06s linear forwards}
html.uf-plate-refresh:is([data-skin=r]) .pk-pr-l:not(#a#g#l){position:absolute;left:145px;top:72px;width:100px;color:#8FA6D9;font-family:var(--pk-ff,inherit);font-size:10px;font-weight:700;line-height:14px;letter-spacing:2px;text-align:center;white-space:nowrap}
html.uf-plate-refresh:is([data-skin=r])[dir=rtl] .pk-pr-l:not(#a#g#l){letter-spacing:0;direction:rtl}
/* "Updated just now": a small dark pill with a green dot at the top, about a second */
html.uf-plate-refresh:is([data-skin=r]) .pk-pr-upd:not(#a#g#l){position:fixed;z-index:var(--z-toast,80);left:50%;top:calc(var(--safe-t,0px) + 14px);display:flex;align-items:center;gap:8px;padding:8px 14px;border-radius:999px;background:#0B1220;color:#FFFFFF;font-family:var(--pk-ff,inherit);font-size:12px;font-weight:600;line-height:16px;white-space:nowrap;box-shadow:0 8px 20px rgba(11,18,32,.25);pointer-events:none;animation:pk-pr-upd 1.2s both}
html.uf-plate-refresh:is([data-skin=r])[data-theme=dark] .pk-pr-upd:not(#a#g#l){box-shadow:inset 0 0 0 1px rgba(255,255,255,.14),0 8px 20px rgba(0,0,0,.45)}
html.uf-plate-refresh:is([data-skin=r]) .pk-pr-upd i:not(#a#g#l){flex:none;width:8px;height:8px;border-radius:4px;background:#2ECC71}

@keyframes pk-pr-in-l{0%{opacity:0;transform:translateX(-70px);animation-timing-function:cubic-bezier(.2,.8,.2,1)}73.3%{opacity:1;transform:translateX(2px);animation-timing-function:ease-in-out}100%{opacity:1;transform:none}}
@keyframes pk-pr-in-r{0%{opacity:0;transform:translateX(70px);animation-timing-function:cubic-bezier(.2,.8,.2,1)}73.3%{opacity:1;transform:translateX(-2px);animation-timing-function:ease-in-out}100%{opacity:1;transform:none}}
@keyframes pk-pr-rep{0%,50%,100%{transform:none}25%{transform:translateY(-12px) rotate(-.6deg)}75%{transform:translateY(-12px) rotate(.6deg)}}
@keyframes pk-pr-nin{0%{opacity:0;transform:translateY(10px)}100%{opacity:1;transform:none}}
@keyframes pk-pr-nout{0%{opacity:1;transform:none}100%{opacity:0;transform:translateY(-10px)}}
@keyframes pk-pr-upd{0%{opacity:0;transform:translate(-50%,-12px);animation-timing-function:cubic-bezier(.2,.8,.2,1)}20%{opacity:1;transform:translate(-50%,0)}80%{opacity:1;transform:translate(-50%,0)}100%{opacity:0;transform:translate(-50%,-12px)}}
@keyframes pk-pr-fade{0%,100%{opacity:1}50%{opacity:.35}}
@keyframes pk-pr-upd-rm{0%,100%{opacity:0}15%,85%{opacity:1}}

/* reduced motion: no slides, reps or bounces; the plates appear, the loaded bar fades in and out while it refreshes */
@media (prefers-reduced-motion:reduce){
  html.uf-plate-refresh:is([data-skin=r]) .pk-pr-p:not(#a#g#l),html.uf-plate-refresh:is([data-skin=r]) .pk-pr-p.on:not(#a#g#l){transform:none;animation:none;transition:opacity .2s linear}
  html.uf-plate-refresh:is([data-skin=r]) .pk-pr-n b:not(#a#g#l){animation:none}
  html.uf-plate-refresh:is([data-skin=r]) .pk-pr-n b.out:not(#a#g#l){display:none}
  html.uf-plate-refresh:is([data-skin=r]) .pk-pr.ph-busy .pk-pr-rep:not(#a#g#l){animation:pk-pr-fade 1.2s ease-in-out infinite}
  html.uf-plate-refresh:is([data-skin=r]) .pk-pr-upd:not(#a#g#l){transform:translateX(-50%);animation:pk-pr-upd-rm 1.2s linear both}
}

/* ============ The approval round (Ahmed, 8 Nov): the band in the theme ============ */
/* white in light mode, the dark band in dark mode: the counter, its label and the white plates take the band's ink */
html.uf-plate-refresh:is([data-skin=r]):not(#a#g#l){--pk-pr-band:#FFFFFF;--pk-pr-ink:#0F1A2A;--pk-pr-lab:#5A6B80;--pk-pr-w:#DCE2EC;--pk-pr-w-line:rgba(15,26,42,.14);--pk-pr-sh:0 6px 12px rgba(15,26,42,.16)}
html.uf-plate-refresh:is([data-skin=r])[data-theme=dark]:not(#a#g#l){--pk-pr-band:#0B1220;--pk-pr-ink:#FFFFFF;--pk-pr-lab:#8FA6D9;--pk-pr-w:#FFFFFF;--pk-pr-w-line:rgba(255,255,255,.12);--pk-pr-sh:0 6px 12px rgba(0,0,0,.35)}
@media (prefers-color-scheme:dark){html.uf-plate-refresh:is([data-skin=r]):not([data-theme=light]):not(#a#g#l){--pk-pr-band:#0B1220;--pk-pr-ink:#FFFFFF;--pk-pr-lab:#8FA6D9;--pk-pr-w:#FFFFFF;--pk-pr-w-line:rgba(255,255,255,.12);--pk-pr-sh:0 6px 12px rgba(0,0,0,.35)}}
html.uf-plate-refresh:is([data-skin=r]) .pk-pr.pk-pr:not(#a#g#l){background:var(--pk-pr-band)}
html.uf-plate-refresh:is([data-skin=r]) .pk-pr .pk-pr-n.pk-pr-n:not(#a#g#l){color:var(--pk-pr-ink)}
html.uf-plate-refresh:is([data-skin=r]) .pk-pr .pk-pr-l.pk-pr-l:not(#a#g#l){color:var(--pk-pr-lab)}
html.uf-plate-refresh:is([data-skin=r]) .pk-pr .pk-pr-p.pk-pr-p:not(#a#g#l){box-shadow:inset 0 0 0 1px var(--pk-pr-w-line),var(--pk-pr-sh)}
html.uf-plate-refresh:is([data-skin=r]) .pk-pr .pk-pr-p.k-w.k-w:not(#a#g#l){background:var(--pk-pr-w)}
