/* Falcon Apply: the Jobs tab, jobs found for this resume and Add a job. Tokens from app.css only. */

.jl-headrow { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-3); }
.jl-headrow h1 { min-width: 0; font-variant-numeric: tabular-nums; }
.jl-add { flex: 0 0 auto; margin-top: 2px; }
.jl-note { font-size: var(--t-14); color: var(--ink-2); line-height: 1.45; max-width: 60ch; }
.jl-msg { font-size: var(--t-16); color: var(--ink-2); line-height: 1.5; max-width: 46ch; }
.jl-form-h { font-size: var(--t-20); }

/* The words and filters: one card, chips that wrap */
.jl-controls { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-4); background: var(--paper); }
.jl-group { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: start; gap: var(--s-2); min-width: 0; }
.jl-glabel { padding-top: 6px; font-weight: 600; font-size: var(--t-14); }
.jl-chips { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); min-width: 0; list-style: none; margin: 0; padding: 0; }
.jl-chip { display: inline-flex; align-items: center; gap: 2px; min-height: 32px; max-width: 100%; padding: 0 2px 0 var(--s-3); border: 1px solid var(--line-strong); border-radius: 16px; background: var(--paper); font-size: var(--t-14); color: var(--ink); }
.jl-chip-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jl-chip-x { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 14px; background: none; color: var(--ink-3); font: 600 var(--t-16)/1 var(--ui); cursor: pointer; }
.jl-chip-x:hover { background: var(--line); color: var(--ink); }
.jl-chip-x:focus-visible { outline-offset: 0; }
.jl-chip.is-ph { width: 96px; border-color: transparent; background: linear-gradient(90deg, var(--line) 0%, var(--desk) 50%, var(--line) 100%); background-size: 200% 100%; animation: fa-shimmer 1.2s linear infinite; }
.jl-none { font-size: var(--t-14); color: var(--ink-3); }
.jl-addw { display: inline-flex; gap: var(--s-1); min-width: 0; max-width: 100%; }
.jl-addw input { width: 132px; min-width: 0; min-height: 32px; padding: 0 var(--s-2); border: 1px dashed var(--line-strong); border-radius: 16px; background: var(--paper); font: 400 var(--t-14)/1 var(--ui); color: var(--ink); }
.jl-addw input::placeholder { color: var(--ink-3); }
.jl-addw .btn { min-height: 32px; padding: 0 var(--s-3); border-radius: 16px; font-size: var(--t-13); }
.jl-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s-2) var(--s-4); padding-top: var(--s-3); border-top: 1px solid var(--line); }
.jl-loc { flex: 1 1 200px; max-width: 280px; }
.jl-check { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 40px; font-size: var(--t-14); color: var(--ink-2); cursor: pointer; }
.jl-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--ink); }

/* One plain sentence about what is happening. Empty, it takes no room. */
.jl-status { font-size: var(--t-13); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.jl-status:empty { display: none; }
.jl-status.error { color: var(--pen); font-weight: 600; }

/* The list: a column of rows on the page, no inner scroll */
.jl-out { display: flex; flex-direction: column; gap: var(--s-2); min-width: 0; margin-top: calc(-1 * var(--s-2)); }
.jl-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); overflow: hidden; }
.jl-list > li + li { border-top: 1px solid var(--line); }
.jl-row { align-items: flex-start; gap: var(--s-4); min-height: 64px; padding: var(--s-3) var(--s-4); border-radius: 0; }
.jl-row:focus-visible { outline-offset: -2px; }
.jl-row[aria-busy="true"] { cursor: progress; color: var(--ink-3); }
.jl-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.jl-title { font-weight: 600; font-size: var(--t-16); color: var(--ink); overflow-wrap: anywhere; }
.jl-meta { font-size: var(--t-13); color: var(--ink-3); overflow-wrap: anywhere; }
.jl-why { margin-top: 2px; font-size: var(--t-13); color: var(--ink-2); }

/* The model's read of a row: a band, one sentence, and what the posting asks that the resume does not show */
.jl-read { display: flex; align-items: baseline; gap: var(--s-2); margin-top: var(--s-1); min-width: 0; }
.jl-band { flex: 0 0 auto; white-space: nowrap; }
.jl-reason { min-width: 0; font-size: var(--t-13); line-height: 1.4; color: var(--ink); }
.jl-gaps { font-size: var(--t-13); line-height: 1.4; color: var(--ink-2); overflow-wrap: anywhere; }
.jl-reading { margin-top: var(--s-1); font-size: var(--t-13); color: var(--ink-3); }

/* Above the list: sign in to get the read, or a limit reached. Quiet, one line. */
.jl-fitnote { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); font-size: var(--t-14); color: var(--ink-2); }
.jl-fitnote[hidden] { display: none; }
.jl-fitnote .btn { min-height: 32px; padding: 0 var(--s-3); font-size: var(--t-13); }
.jl-only { font-size: var(--t-14); color: var(--ink-2); }
.jl-more { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-2); margin-top: calc(-1 * var(--s-2)); }
.jl-more .btn { min-height: 40px; }
.jl-fail { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-radius: var(--r); background: var(--pen-wash); font-size: var(--t-14); color: var(--ink); }
.jl-fail .btn { min-height: 32px; padding: 0 var(--s-3); font-size: var(--t-13); }

/* While the list loads: rows of the same height, so nothing jumps */
.jl-skel { display: flex; flex-direction: column; gap: var(--s-2); min-height: 64px; padding: var(--s-3) var(--s-4); }
.jl-skel-a, .jl-skel-b { display: block; height: 12px; border-radius: 4px; background: linear-gradient(90deg, var(--line) 0%, var(--desk) 50%, var(--line) 100%); background-size: 200% 100%; animation: fa-shimmer 1.2s linear infinite; }
.jl-skel-a { width: 55%; height: 14px; }
.jl-skel-b { width: 35%; }

.jb-credits { display: flex; flex-direction: column; gap: 2px; }
.jb-credits p { font-size: var(--t-12); line-height: 1.4; color: var(--ink-3); }

/* A job with no posting text: where to copy it from */
.jb-nodesc { padding: var(--s-2) var(--s-3); border-radius: var(--r); background: var(--warn-wash); font-size: var(--t-14); color: var(--ink); }

@media (max-width: 819px) {
  .jl-headrow { flex-wrap: wrap; }
  .jl-controls { padding: var(--s-3); }
  .jl-loc { flex-basis: 100%; max-width: none; }
  .jl-row { gap: var(--s-3); padding: var(--s-3); }
}
