/* Study Quest — jobs.css (V7.4 lane Q, builder Q1 v74-jobs): the jobs on the quest card, the Repeat list's "where", the
 * Letopis's page and the chat lines (js/ui-jobs.js). Ember & Iron tokens (theme.css); the states: open (gold), patched
 * (orange), mended (green), broken (the seal's vermilion), held (a calm verdigris). */
.qc-jobs { margin: 0 0 8px; padding: 6px 8px 6px; border: 1px solid rgba(122, 29, 16, 0.35); border-radius: 3px;
  background: linear-gradient(180deg, rgba(239, 223, 184, 0.10), rgba(239, 223, 184, 0.02)); font: 400 13px/16px var(--cx-font-body); color: var(--cx-ink-text); }
.qc-jobs.hidden { display: none; }
.qc-jobs .jb-site { margin: 0 0 4px; }
.qc-jobs .jb-sname { font-weight: 700; color: var(--cx-ink-gold); }
.jb-dim { color: var(--cx-ink-text-dim); font-style: italic; }
.qc-jobs .jb-list { list-style: none; margin: 0; padding: 0; max-height: 168px; overflow-y: auto; }
/* (V7.4 fixer B, usability MEDIUM 3) a small window (compact, 480 x 360): the job strip scrolls in a short list, so the quest
   card's title, its number field and Cancel stay on screen */
.hud.compact .qc-jobs { margin: 0 0 4px; padding: 3px 6px; }
.hud.compact .qc-jobs .jb-list { max-height: 52px; }
.hud.compact .qc-jobs .jb-keys, .hud.compact .qc-jobs .jb-near { display: none; }
.qc-jobs .jb-job { display: flex; align-items: baseline; gap: 6px; padding: 2px 4px; border-radius: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qc-jobs .jb-job[data-job] { cursor: pointer; }
.qc-jobs .jb-job[data-job]:hover { background: rgba(233, 180, 76, 0.10); }
.qc-jobs .jb-job.picked { background: rgba(233, 180, 76, 0.20); box-shadow: inset 2px 0 0 var(--cx-ink-gold); }
.qc-jobs .jb-job.locked { opacity: 0.55; }
.qc-jobs .jb-title { overflow: hidden; text-overflow: ellipsis; }
.qc-jobs .jb-keys { margin: 3px 0 0; font-size: 12px; }
.qc-jobs .jb-keys kbd { margin-right: 2px; }
.qc-jobs .jb-mends { margin: 0 0 4px; color: var(--cx-con-green-ink); }
.qc-jobs .jb-near { margin: 4px 0 0; }
.jb-st { display: inline-block; width: 14px; text-align: center; font-weight: 700; }
.jb-open { color: var(--cx-ink-gold); }
.jb-patched { color: var(--cx-con-orange-ink); }
.jb-mended { color: var(--cx-con-green-ink); }
.jb-broken { color: #c8321e; }
.jb-held { color: #3f8a7a; }
.jb-locked { color: var(--cx-ink-text-dim); }
.jb-giver { border-bottom: 1px dotted currentColor; cursor: help; }
.jb-walk { margin-left: auto; padding: 0 6px; font: 600 11px/18px var(--cx-font-body); color: var(--cx-ink-gold); background: rgba(42, 23, 8, 0.35);
  border: 1px solid rgba(233, 180, 76, 0.45); border-radius: 2px; cursor: pointer; white-space: nowrap; }
.jb-walk:hover { background: rgba(233, 180, 76, 0.18); }
.jb-walk-sm { margin-left: 4px; font-size: 10px; line-height: 15px; }
.jb-where { font-style: normal; }
.jb-where .jb-wsite, .jb-wsite { font-weight: 700; }
.jb-why { margin-top: 2px; }
.jb-letopis { margin: 10px 0; padding: 8px 10px; border-left: 2px solid rgba(122, 29, 16, 0.45); }
.jb-letopis .jb-lh { margin: 0 0 6px; font-size: 14px; }
.jb-letopis .jb-lplaces { margin: 0 0 6px; padding-left: 16px; }
.jb-letopis .jb-pname { font-weight: 700; }
.jb-blago { color: #a87a1c; font-weight: 700; }

/* V7.4 Q2 (v74-stories): the storylines: the quest card's line, the Letopis list, a storyline's page and the givers' cards.
 * Parchment and ink like the books (theme.css); the step sign is our own hedera leaf (❧), never "!" or "?". */
.jb-smark { margin-left: 3px; color: var(--cx-ink-rubric); font-size: 12px; cursor: help; }
.qc-jobs .jb-story-line { margin: 5px 0 0; padding: 4px 0 0; border-top: 1px dotted rgba(122, 29, 16, 0.35); white-space: normal; }
.jb-slink { padding: 0; font: 700 13px/16px var(--cx-font-body); color: var(--cx-ink-rubric); background: none; border: 0; border-bottom: 1px dotted currentColor; cursor: pointer; }
.jb-slink:hover { color: var(--cx-ink-gold); }
.jb-stories .jb-lstories { margin: 0; padding-left: 16px; }
.jb-stories .jb-lstories li { margin: 2px 0; }
.jb-son { color: var(--cx-ink-gold); font-weight: 700; font-style: italic; }
.jb-giver[data-jb-giver] { cursor: pointer; }
.jb-sp { position: fixed; inset: 0; z-index: 5200; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(7, 8, 10, 0.55); }
.jb-sp.hidden, .jb-gc.hidden { display: none; }
.jb-sp-in { position: relative; width: min(680px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 22px 26px 18px;
  background: #efdfb8; background-image: linear-gradient(180deg, rgba(255, 250, 235, 0.55), rgba(222, 196, 140, 0.35)); color: var(--cx-ink-text);
  border: 1px solid #8a6a3a; border-radius: 4px; box-shadow: 0 0 0 3px rgba(42, 23, 8, 0.65), 0 18px 48px rgba(0, 0, 0, 0.55); font: 400 15px/21px var(--cx-font-body); }
.jb-sp-x { position: absolute; top: 8px; right: 10px; width: 28px; height: 28px; font: 700 20px/26px var(--cx-font-body); color: var(--cx-ink-rubric);
  background: none; border: 1px solid rgba(122, 29, 16, 0.35); border-radius: 3px; cursor: pointer; }
.jb-sp-zone { font: 600 12px/16px var(--cx-font-head); letter-spacing: 0.08em; text-transform: uppercase; color: var(--cx-ink-text-dim); }
.jb-sp-h { margin: 2px 0 8px; font: 700 24px/30px var(--cx-font-title); color: var(--cx-ink-rubric); }
.jb-sp-blurb { margin: 0 0 8px; font: italic 500 17px/23px var(--cx-font-flavor); }
.jb-sp-words { margin: 0 0 8px; font-size: 13px; }
.jb-sp-prog { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; font-weight: 700; }
.jb-sp-bar { flex: 0 0 180px; height: 8px; border: 1px solid #8a6a3a; border-radius: 4px; background: rgba(42, 23, 8, 0.12); overflow: hidden; }
.jb-sp-bar i { display: block; height: 100%; background: linear-gradient(90deg, #8a5a14, #e9b44c); }
.jb-sp-steps { margin: 0; padding-left: 22px; }
.jb-sp-step { margin: 0 0 8px; padding: 4px 6px; border-radius: 3px; }
.jb-sp-step.next { background: rgba(233, 180, 76, 0.22); box-shadow: inset 3px 0 0 var(--cx-ink-gold); }
.jb-sp-step.done .jb-sp-site { color: var(--cx-con-green-ink); }
.jb-sp-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; }
.jb-sp-site { font-weight: 700; }
.jb-sp-text { margin-top: 1px; }
.jb-sp-line { margin-top: 1px; font: italic 500 15px/20px var(--cx-font-flavor); color: var(--cx-ink-text-dim); }
.jb-sp-foot { margin-top: 10px; padding-top: 8px; border-top: 1px solid rgba(122, 29, 16, 0.3); }
.jb-sbtn { padding: 3px 10px; font: 700 13px/20px var(--cx-font-body); color: #f3e3bd; background: #5e3d0c; border: 1px solid #2a1708; border-radius: 3px; cursor: pointer; }
.jb-sbtn:hover { background: #7a4f12; }
.jb-sp .jb-walk { color: #f3e3bd; background: #5e3d0c; }
.jb-gc { position: fixed; z-index: 5300; width: min(320px, calc(100vw - 16px)); padding: 12px 14px 10px; background: #efdfb8; color: var(--cx-ink-text);
  border: 1px solid #8a6a3a; border-radius: 4px; box-shadow: 0 0 0 2px rgba(42, 23, 8, 0.6), 0 10px 28px rgba(0, 0, 0, 0.5); font: 400 14px/19px var(--cx-font-body); }
.jb-gc .jb-sp-x { top: 6px; right: 6px; width: 24px; height: 24px; font-size: 17px; line-height: 22px; }
.jb-gc-name { font: 700 19px/24px var(--cx-font-title); color: var(--cx-ink-rubric); padding-right: 26px; }
.jb-gc-say { margin: 1px 0 4px; color: var(--cx-ink-text-dim); }
.jb-gc-where { font-weight: 700; margin-bottom: 4px; }
.jb-gc-jobs { list-style: none; margin: 0 0 4px; padding: 0; }
.jb-gc-jobs li { margin: 0 0 4px; }
.jb-gc-line { margin-left: 18px; font: italic 500 15px/19px var(--cx-font-flavor); color: var(--cx-ink-text-dim); }
.jb-gc-story { margin-top: 4px; padding-top: 4px; border-top: 1px dotted rgba(122, 29, 16, 0.35); }
@media (max-width: 520px) { .jb-sp-in { padding: 16px 14px 12px; } .jb-sp-h { font-size: 20px; line-height: 25px; } .jb-sp-bar { flex-basis: 120px; } }
