/* labs.llc/jobs — the live layer (labs 570, Nov 2026): the refresh button in the register line, the green status read-out,
   the quick filters and the "new since your last visit" mark. Every colour is a house token (site.css / dark.css answer
   them), so the moon edition needs nothing here. Prefix jl-. */

/* the register line keeps its look; the stamp and the button sit in it */
.eyebrow .jl-stamp { min-width: 0; }
.jl-refresh {
    display: inline-flex; align-items: center; gap: .42rem; flex: 0 0 auto;
    font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--ink-77);
    background: transparent; border: 1px solid var(--line); border-radius: 999px;
    padding: .28rem .62rem .28rem .5rem; margin-left: .2rem; cursor: pointer; line-height: 1;
    transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
.jl-refresh:hover { border-color: var(--ink); color: var(--ink); }
.jl-refresh:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.jl-refresh svg { width: 11px; height: 11px; flex: 0 0 auto; }
.jl-refresh.is-busy { color: var(--accent); border-color: var(--accent); cursor: progress; }
.jl-refresh.is-busy svg { animation: jl-spin .9s linear infinite; }
.jl-refresh.is-done { color: var(--free); border-color: var(--free); }
.jl-refresh.is-fail { color: var(--taken); border-color: var(--taken); }
.jl-refresh__pct { font-variant-numeric: tabular-nums; }
@keyframes jl-spin { to { transform: rotate(360deg); } }

/* the green read-out: what is counted, under which filters, from which read (yum's status line, in this desk) */
.jl-status {
    display: flex; align-items: center; gap: .5rem; margin: -1rem 0 1.4rem; max-width: 100%;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .75rem; font-weight: 600;
    line-height: 1.35; color: var(--free); font-variant-numeric: tabular-nums;
}
.jl-status__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: 0 0 auto;
    animation: jl-pulse 1.8s ease-in-out infinite; }
.jl-status__txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jl-status__cur { width: .4em; height: .85em; background: currentColor; opacity: .9; flex: 0 0 auto;
    animation: jl-caret 1.05s steps(1) infinite; }
.jl-status.is-stale { color: var(--unsure); }
.jl-status.is-fail { color: var(--taken); }
@keyframes jl-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.82); } }
@keyframes jl-caret { 0%, 49% { opacity: .9; } 50%, 100% { opacity: 0; } }

/* quick filters: the desk's pill row (jb-secnav), as toggles */
.jl-quick { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: 1.3rem; }
.jl-quick__lbl { font-size: .625rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-55);
    margin-right: .3rem; }
.jl-chip, .jl-sel {
    font: inherit; font-size: .8rem; font-weight: 600; padding: .38rem .75rem; border: 1px solid var(--line);
    border-radius: 999px; color: var(--ink-77); background: transparent; cursor: pointer; line-height: 1.2;
    transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
.jl-chip:hover, .jl-sel:hover { border-color: var(--ink); color: var(--ink); }
.jl-chip:focus-visible, .jl-sel:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.jl-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.jl-chip b { font-weight: 600; opacity: .62; margin-left: .3rem; font-variant-numeric: tabular-nums; }
.jl-sel { appearance: none; -webkit-appearance: none; padding-right: 1.7rem; max-width: 15rem; text-overflow: ellipsis;
    background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
    background-position: calc(100% - 14px) 52%, calc(100% - 10px) 52%; background-size: 4px 4px; background-repeat: no-repeat; }
.jl-sel.is-on { border-color: var(--ink); color: var(--ink); }
.jl-sel option { color: #1E262B; background: #fff; }
.jl-clear { border-style: dashed; }
.jl-quick[aria-busy="true"] { opacity: .6; pointer-events: none; }

/* rows the live read adds: a "new" mark and a quiet "more" button */
.jl-new { display: inline-block; font-size: .6rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
    color: var(--free); border: 1px solid currentColor; border-radius: 4px; padding: .08rem .32rem; margin-left: .5rem;
    vertical-align: .15em; }
.jl-more { margin-top: 1.2rem; }
.jl-none { padding: 1.2rem 1.3rem; border: 1px dashed var(--line); border-radius: 12px; color: var(--ink-77); margin-top: 1.2rem; }

@media (max-width: 640px) {
    .eyebrow:has(.jl-refresh) { flex-wrap: wrap; }
    .jl-status__txt { white-space: normal; overflow: visible; overflow-wrap: anywhere; }
    .jl-sel { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .jl-refresh.is-busy svg, .jl-status__dot, .jl-status__cur { animation: none; }
}
