/* The job page leads with the model (owner, 2026-10-05): the stage, then summary cards that open their detail */
.job-stage { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin: 0 0 16px; }
.job-stage-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px 16px; }
.job-stage-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; }
.job-stage-title h2 { margin: 0; font-family: var(--font-brand); font-size: 16px; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.job-stage-title .chip { margin: 0; }
.job-stage-actions { display: flex; gap: 8px; margin: 0; }
.job-stage-actions .btn { margin: 0; min-height: 44px; }
.job-stage-canvas { height: min(56vh, 560px); min-height: 300px; background: var(--surface-2); touch-action: none; }
.job-stage-canvas canvas { display: block; width: 100%; height: 100%; }
.job-stage-note { margin: 0; padding: 0 16px; color: var(--ink-3); font-size: 12.5px; }
.job-stage-note:empty { display: none; }
.job-stage-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; padding: 10px 16px 12px; color: var(--ink-2); font-size: 12.5px; }
.job-stage-legend li { display: inline-flex; align-items: center; gap: 6px; }
.job-stage-legend span { display: inline-flex; align-items: center; gap: 6px; }
.swatch-status { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.s-grey { background: #7c8297; } .s-amber { background: #b87a00; } .s-green { background: #3e9a5a; }
.s-faint { background: transparent; border: 1px solid var(--line-2); }
.job-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 12px; margin: 0 0 16px; }
.job-tile { display: grid; gap: 2px; align-content: start; min-height: 96px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color 160ms var(--ease-out, ease-out), background-color 160ms var(--ease-out, ease-out); }
.job-tile:hover { background: var(--row-hover); border-color: var(--line-2); }
.job-tile:focus-visible { outline: 2px solid var(--ibs-teal); outline-offset: 2px; }
.job-tile[aria-expanded="true"] { border-color: var(--ibs-teal); background: var(--surface-2); }
.job-tile-label { color: var(--ink-3); font-size: 12px; font-weight: 600; }
.job-tile-figure { font-family: var(--font-brand); font-size: 22px; font-weight: 700; line-height: 1.2; font-variant-numeric: lining-nums tabular-nums; overflow-wrap: anywhere; }
.job-tile-sub { color: var(--ink-2); font-size: 12.5px; overflow-wrap: anywhere; }
.job-tile.tone-check .job-tile-figure { color: var(--check); }
.job-tile.tone-teal .job-tile-figure { color: var(--ibs-teal-hover); }
@media (prefers-reduced-motion: reduce) { .job-tile { transition: none; } }
.mark-rows { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.mark-row { display: grid; gap: 4px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.mark-row:last-child { border-bottom: 0; }
.mark-row.is-out .mark-what { text-decoration: line-through; color: var(--ink-3); }
.mark-what { font-weight: 600; color: var(--ink); }
.mark-on { color: var(--ink-3); font-size: 13px; }
.mark-reject { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mark-reject .input { flex: 1 1 200px; min-width: 0; }
.mark-reject .btn { margin: 0; }
.batch-members summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: var(--ink-2); }
.batch-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 360px; overflow-y: auto; }
.batch-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; color: var(--ink-2); font-size: 13.5px; }
.batch-list .btn { margin: 0; min-height: 44px; }
.manpower-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 8px 14px; }
.manpower-grid label { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; }
.manpower-grid .input { width: 88px; text-align: right; font-variant-numeric: tabular-nums; }
.delivery-add { display: grid; grid-template-columns: minmax(0, 1fr) 7rem auto; gap: 8px; margin-top: 10px; }
@media (max-width: 520px) { .delivery-add { grid-template-columns: 1fr 1fr; } .delivery-add select { grid-column: 1 / -1; } }
.report-marks { margin: 0; padding-left: 18px; color: var(--ink-2); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Measured progress on the job page (spec 2026-10-03 progress §4) */
.progress-job { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 16px; }
.progress-job strong { font-size: 24px; }
.progress-trades { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.progress-trade { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; }
.progress-name { font-weight: 600; }
.progress-stages { list-style: none; margin: 4px 0 0 22px; padding: 0; display: grid; gap: 2px; font-size: 14px; overflow-wrap: anywhere; }
.progress-check-h { margin: 16px 0 8px; font-size: 16px; }
.progress-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; overflow-wrap: anywhere; }
/* the card's content sits inside its border: every block of the body keeps the card's 20px side padding */
.job-progress { --pad: 20px; }
@media (max-width: 900px) { .job-progress { --pad: 16px; } }  /* the same side padding as .card-head at that width */
.job-progress .progress-scope > :not(.card-foot),
.job-progress > :not(.card-head, .card-foot, .card-empty, .progress-scope, details),
.job-progress details > :not(.card-foot) { padding-inline: var(--pad); }
.job-progress .card-foot, .job-progress .card-empty { margin-inline: 0; padding-inline: var(--pad); }
.job-progress .progress-scope { padding-top: 4px; }
.job-progress .progress-vo { margin: 0 0 8px; }
.job-progress details > summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; color: var(--ink-2); font-weight: 600; }
.job-progress details[open] > summary { border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.job-progress .progress-trades-twin { border-top: 1px solid var(--line); }
.weights-form .manpower-grid { margin-bottom: 16px; }


.measured { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 600; color: var(--ibs-teal-hover); font-variant-numeric: tabular-nums; }
.measured.nil { color: var(--ink-3); font-weight: 400; }
.measured-sort { margin-left: 8px; font-weight: 500; }

.evidence { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; }
.evidence a { display: block; line-height: 0; border-radius: 6px; overflow: hidden; border: 1px solid var(--line-2); }
.evidence img { width: 56px; height: 56px; object-fit: cover; }

/* ---- Working with no signal (spec 2026-10-05 field hardening section 3) ------------------------------------------------------- */
.queue-pill {
  position: fixed; left: 12px; bottom: 12px; z-index: 60; min-height: 44px; max-width: calc(100vw - 24px); padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--ibs-teal); background: var(--surface); color: var(--ibs-teal-hover); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
  box-shadow: 0 6px 20px rgba(28, 32, 37, 0.16);
}
.queue-pill[hidden], .queue-panel[hidden], .offline-banner[hidden] { display: none; }
.queue-pill.is-trouble { border-color: var(--check); color: var(--check); }
.queue-pill:hover { background: var(--ibs-indigo-soft); }
.queue-panel {
  position: fixed; left: 12px; bottom: 64px; z-index: 60; width: min(420px, calc(100vw - 24px)); max-height: 60vh; overflow-y: auto; padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 12px 36px rgba(28, 32, 37, 0.18);
}
.queue-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.queue-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.queue-row { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); }
.queue-what { font-weight: 600; font-size: 13.5px; }
.queue-meta { color: var(--ink-3); font-size: 12.5px; overflow-wrap: anywhere; }
.queue-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.queue-actions .btn { min-height: 44px; margin: 0; }
.offline-banner { margin: 0; padding: 10px 32px; background: var(--check-bg); color: var(--check); border-bottom: 1px solid var(--check-line); font-size: 13.5px; }
@media (max-width: 640px) { .offline-banner { padding: 10px 16px; } }

/* ---- the site engineer's projects (owner, 2026-10-06) ---- */
.site-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 14px; }
.show-btn { margin: 4px 0 0; min-height: 44px; justify-self: start; }
/* the notes of a report, first on the review page (owner, 2026-10-07) */
.notes-card { border-color: var(--check-line); }
.note-cards { list-style: none; margin: 0; padding: 0 20px 16px; display: grid; gap: 12px; }
.note-card { display: grid; gap: 8px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface-2); }
.note-card.kind-revision:not(.is-resolved) { border-color: var(--check-line); background: var(--check-bg); }
.note-card.is-resolved { opacity: 0.82; }
.note-card.is-focus { outline: 2px solid var(--ibs-teal); outline-offset: 2px; }
.note-card p { margin: 0; }
.note-card-head .chip { margin: 0 6px 0 0; }
.note-card-text { font-size: 17px; font-weight: 600; line-height: 1.4; color: var(--ink); overflow-wrap: anywhere; }
.note-card-reply { color: var(--ink-2); font-size: 14px; }
.note-card-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.note-card-actions .btn { margin: 0; min-height: 44px; }
.job-stage { position: relative; }
.job-stage-notecard { position: absolute; left: 12px; right: 12px; bottom: 12px; display: grid; gap: 4px; padding: 10px 14px; border: 1px solid var(--check-line); border-radius: 10px; background: var(--surface); color: var(--ink); font-size: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45); }
.job-stage-notecard[hidden] { display: none; }
.s-lit { background: #4fa6d5; } .s-dim { background: rgba(124, 130, 151, 0.3); } .s-neutral { background: var(--ibs-indigo); }
.swatch-ring { width: 10px; height: 10px; border-radius: 50%; display: inline-block; border: 2px solid var(--c); }
.r-rev { --c: #b87a00; } .r-com { --c: #2779a5; } .r-res { --c: #7c8297; }

/* ---- the job page's Overview (owner, 2026-10-20, layout A): progress beside the job's orders and requests ------ */
.job-tabs { display: flex; gap: 2px; padding: 0 32px; background: var(--surface); border-bottom: 1px solid var(--line); }
.job-tabs a { padding: 10px 14px 9px; border-bottom: 3px solid transparent; color: var(--ink-2); font-weight: 650; text-decoration: none; }
.job-tabs a:hover { color: var(--ink-strong); }
.job-tabs a[aria-current="page"] { color: var(--ibs-indigo); border-bottom-color: var(--ibs-indigo); }
.job-head:has(+ .job-tabs) { border-bottom: 0; padding-bottom: 12px; }
.job-overview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 16px; align-items: start; }
.job-card.job-overview-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
body:has(.job-tabs) .job-work { height: calc(100vh - 60px - 96px - 46px); }
.buy { padding: 18px 20px 20px; }
.buy-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.buy-title { margin: 0 0 6px; font: 700 15px/1.3 var(--font-brand); color: var(--ibs-indigo); font-variant-numeric: lining-nums; }
.buy-title-sub { margin-top: 20px; }
.buy-n { color: var(--ink-3); font-weight: 600; }
.buy-codes { margin: 0 0 12px; color: var(--ink-2); font-size: 12.5px; }
.buy-empty { margin: 4px 0 0; color: var(--ink-2); }
.buy-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.buy-table th { padding: 7px 8px; border-bottom: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink-2); font-size: 12px; font-weight: 650; text-align: left; }
.buy-table td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.buy-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.buy-table .chip { margin: 0; }
.buy-sub, .buy-more { display: block; color: var(--ink-2); font-size: 12.5px; }
.buy-more { color: var(--ink-3); }
.buy-reqs { margin: 0; padding: 0; list-style: none; }
.buy-reqs li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.buy-reqs .buy-sub { display: inline; }
.chip-partial { background: var(--ibs-indigo-soft); border-color: var(--ibs-indigo-line); color: var(--ibs-indigo); }
.buy-all { margin-top: 14px; }
/* The job's own PRs, first on the card (MCM programme phase 1, 2026-10-28). */
.buy-part + .buy-head { margin-top: 22px; }
.buy-prs { margin: 0; padding: 0; list-style: none; }
.buy-prs li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 3px; align-items: baseline;
  padding: 9px 0; border-top: 1px solid var(--line); }
.buy-pr-main { min-width: 0; overflow-wrap: anywhere; }
.buy-pr-no { margin-right: 8px; font-weight: 650; font-variant-numeric: tabular-nums; }
.buy-pr-what { color: var(--ink-strong); }
.buy-pr-meta { grid-column: 1 / -1; color: var(--ink-2); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.buy-prs .chip { margin: 0; }
.chip-pr { background: var(--surface-2); border-color: var(--line-2); color: var(--ink-2); }
.chip-pr-wait { background: var(--check-bg); border-color: var(--check-line); color: var(--check); }
.chip-pr-buy { background: var(--ibs-indigo-soft); border-color: var(--ibs-indigo-line); color: var(--ibs-indigo); }
.job-tiles + .buy { margin-top: 16px; }
@media (max-width: 960px) {
  .job-overview { grid-template-columns: minmax(0, 1fr); }
  .job-tabs { padding: 0 16px; }
}

/* ---- the job page: the model is the page, a rail beside it (owner, 2026-10-08) ----------------------------- */
.content:has(.job-work) { max-width: none; padding: 0; }
.job-head { padding: 14px 24px; align-items: center; }
.job-head h1 { font-size: 22px; color: var(--ink); }
.job-head h1 .code { font-size: 15px; color: var(--ibs-indigo); margin-right: 6px; }
.job-head .crumb { margin: 0 0 2px; }
.job-head .pagehead-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 0 auto; }
.tierpill { display: inline-flex; align-items: center; gap: 7px; min-height: 28px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.tierpill.tier-act { color: var(--act); background: var(--act-bg); border-color: var(--act-line); }
.tierpill.tier-check { color: var(--check); background: var(--check-bg); border-color: var(--check-line); }
.job-head > .chip { margin: 0; }
.job-work { display: grid; grid-template-columns: minmax(0, 1fr) 380px; height: calc(100vh - 60px - 96px); min-height: 540px; }
.job-stage.job-stage-full { margin: 0; border: 0; border-radius: 0; height: 100%; overflow: hidden; background: radial-gradient(120% 100% at 50% 35%, #ffffff 0%, var(--surface-2) 55%, #e9ecf5 100%); }
.job-stage-full .job-stage-canvas { position: absolute; inset: 0; height: auto; min-height: 0; background: none; }
.job-stage-tools { position: absolute; left: 14px; top: 14px; z-index: 3; display: flex; flex-wrap: wrap; gap: 8px; max-width: calc(100% - 28px); }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: rgba(255, 255, 255, 0.94); border: 1px solid var(--line-2); }
.seg[hidden] { display: none; }
.seg button { min-height: 36px; padding: 0 12px; border: 0; border-radius: 7px; background: none; color: var(--ink-2); font: 600 13px var(--font); cursor: pointer; white-space: nowrap; transition: background-color 140ms, color 140ms; }
.seg button:hover { background: var(--row-hover); color: var(--ink-strong); }
.seg button[aria-pressed="true"] { background: var(--ibs-indigo-soft); color: var(--ibs-indigo); box-shadow: inset 0 0 0 1px var(--ibs-indigo-line); }
.job-stage-tools [data-status] button { display: inline-flex; align-items: center; gap: 6px; }  /* the status's colour on the model */
.stage-break { flex-basis: 100%; height: 0; }  /* work type and status start their own line, clear of an element's card */
.stage-pick { min-height: 44px; max-width: 100%; padding: 0 8px 0 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.94); border: 1px solid var(--line-2); color: var(--ink-2); font: 600 13px var(--font); cursor: pointer; }
.stage-pick[hidden] { display: none; }
.stage-pick:hover { border-color: var(--line-field); color: var(--ink-strong); }
.stage-pick:focus-visible { outline: 2px solid var(--ibs-indigo); outline-offset: 0; border-color: var(--ibs-indigo); }
.stage-pick.is-on { background: var(--ibs-indigo-soft); color: var(--ibs-indigo); border-color: var(--ibs-indigo-line); }  /* one work type chosen */
.job-stage-badge { position: absolute; right: 14px; bottom: 14px; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px 8px; max-width: 50%; margin: 0; padding: 6px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.94); color: var(--ink-2); font-size: 12.5px; }
.job-stage-badge .chip { margin: 0; }
.job-stage-badge a.chip { text-decoration: none; }
.job-stage-full .job-stage-note { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 0; }
.job-stage-full .job-stage-note:not(:empty) { z-index: 2; padding: 8px 14px; border-radius: 10px; background: rgba(255, 255, 255, 0.94); border: 1px solid var(--line); box-shadow: var(--shadow-pop); }  /* readable over the model */
.job-stage-full .job-stage-legend { position: absolute; left: 14px; bottom: 14px; z-index: 2; max-width: calc(50% - 20px); padding: 10px 14px; border-radius: 10px; background: rgba(255, 255, 255, 0.94); border: 1px solid var(--line); box-shadow: var(--shadow-pop); }
body:has(.queue-pill:not([hidden])) .job-stage-full .job-stage-legend { bottom: 66px; }  /* clear of the waiting-to-send pill */
.job-stage-empty { display: grid; place-content: center; gap: 8px; padding: 40px; text-align: center; color: var(--ink-2); background: var(--surface-2); }
.job-stage-empty h2 { margin: 0; }
.job-stage-empty p { margin: 0; max-width: 52ch; }

/* the description card: floats on the model, top right, never covers the rail */
.job-stage-notecard { left: auto; right: 14px; top: 14px; bottom: auto; z-index: 5; width: min(340px, calc(100% - 28px)); max-height: calc(100% - 28px); overflow: auto; gap: 10px; padding: 16px 16px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-pop); }
.notecard-x { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 8px; background: none; color: var(--ink-2); cursor: pointer; }
.notecard-x:hover { background: var(--row-hover); color: var(--ink); }
.notecard-title { display: flex; align-items: center; gap: 8px; margin: 0; padding-right: 36px; font-family: var(--font); font-size: 16px; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; }
.notecard-kind { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: -4px 0 0; }
.notecard-trade { color: var(--ink-2); font-size: 13px; }
.st-pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 7px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-2); font-size: 12px; font-weight: 600; color: var(--ink); }
.notecard-facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; font-size: 13.5px; }
.notecard-facts dt { color: var(--ink-3); }
.notecard-facts dd { margin: 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.notecard-ladder { display: grid; gap: 7px; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--line); list-style: none; }
.notecard-ladder li { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 13px; }
.notecard-ladder .lb { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.notecard-ladder .lb i { display: block; height: 100%; border-radius: 3px; }
.notecard-ladder .v { color: var(--ink-2); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.notecard-line, .notecard-meta { margin: 0; color: var(--ink-2); font-size: 13px; }
.notecard-text { margin: 0; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.notecard-answer { margin: 0; padding: 10px 12px; border-radius: 8px; background: var(--ibs-indigo-soft); color: var(--ibs-indigo-ink); font-size: 13.5px; }
.notecard-answer b { display: block; margin-bottom: 2px; color: var(--ibs-indigo); font-size: 12px; }
.notecard-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; padding-top: 10px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 12.5px; }
.notecard-foot a { font-weight: 600; white-space: nowrap; }

/* the rail */
.job-rail { min-width: 0; overflow-y: auto; border-left: 1px solid var(--line); background: var(--bg); scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.rsec { padding: 18px 20px; border-bottom: 1px solid var(--line); }
.rsec-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 12px; }
.rsec-head h2 { margin: 0; font-size: 15px; }
.rsec-meta { color: var(--ink-3); font-size: 12.5px; }
.rsec-head .card-link { margin-left: auto; }
.rsec-empty { margin: 0; color: var(--ink-3); font-size: 13.5px; }
.job-rail .job-progress { --pad: 0px; }
.job-rail .progress-job { margin: 8px 0 12px; }
.job-rail .progress-job strong { font-size: 20px; }
.job-rail .progress-trades { gap: 8px; }
.job-rail .progress-trade { font-size: 13.5px; }
.job-rail .progress-trade .meter { margin-left: auto; }
.job-rail .progress-stages { font-size: 12.5px; color: var(--ink-2); margin-left: 20px; }
.job-rail .progress-check-h { font-size: 13.5px; margin: 14px 0 6px; }
.job-rail .progress-check { font-size: 13px; }
.job-rail .progress-hand { margin: 12px 0 0; color: var(--ink-3); font-size: 12.5px; }
/* the summary card (owner, 2026-10-13): one measured headline, the target, the other figures with their sources */
.job-card { display: flex; flex-direction: column; gap: 18px; padding: 22px 22px 18px; background: var(--surface); }
.hero-label { margin: 0; color: var(--ink-2); font-size: 12.5px; font-weight: 600; }
.hero { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 2px 0 0; }
.hero strong { font-family: var(--font-brand); font-size: 64px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; color: var(--ink-strong); font-variant-numeric: lining-nums; }
.hero-unknown strong { font-size: 40px; color: var(--ink-2); }
.hero-delta { color: var(--ok); font-weight: 650; font-variant-numeric: tabular-nums; }
.hero-src { margin: 4px 0 0; color: var(--ink-3); font-size: 12.5px; }
.hero-track { position: relative; height: 10px; border-radius: 5px; background: var(--line); }
.hero-track i { position: absolute; inset: 0 auto 0 0; min-width: 4px; border-radius: 5px; background: var(--ibs-green); }
.due { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg); }
.due.late { background: var(--act-bg); border-color: var(--act-line); }
.due .icon { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--ink-2); }
.due.late .icon { color: var(--act); }
.due p { margin: 0; color: var(--ink); font-size: 13.5px; line-height: 1.4; }
.due small { display: block; color: var(--ink-2); font-size: 12.5px; }
.others { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.other { display: block; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: inherit; text-decoration: none; }
a.other:hover { border-color: var(--ibs-indigo-line); background: var(--row-hover); }
.other span { display: block; color: var(--ink-3); font-size: 12px; }
.other b { display: block; margin-top: 2px; font-size: 18px; font-weight: 650; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.other small { color: var(--ink-3); font-size: 11.5px; }
.wt h2 { margin: 0 0 10px; font-family: var(--font-brand); font-size: 14px; color: var(--ink); }
.wt ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.wt li { display: grid; grid-template-columns: minmax(0, 1fr) 56px; align-items: center; gap: 4px 10px; font-size: 13.5px; }
.wt li b { text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; }
.wt .bar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.wt .bar i { display: block; height: 100%; border-radius: 3px; background: var(--act-done); }
.wt .more { margin: 8px 0 0; color: var(--ink-3); font-size: 12.5px; }
.card-open { width: 100%; min-height: 44px; margin: 0; }
.card-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin: 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 12.5px; }
/* reported progress (spec 2026-10-12 jumpstart): beside measured, each figure opens its source */

@media (max-width: 1100px) {
  .job-work { grid-template-columns: 1fr; height: auto; }
  .job-stage.job-stage-full { height: 68vh; min-height: 420px; }
  .job-rail { border-left: 0; overflow: visible; }
  .job-stage-notecard { top: auto; bottom: 10px; left: 10px; right: 10px; width: auto; max-height: 62%; }
}
@media (max-width: 640px) {
  .job-head { padding: 12px 16px; }
  .job-stage-full .job-stage-legend { left: 8px; right: 8px; bottom: 8px; max-width: none; }
  .job-stage-badge { display: none; }
  .job-stage-tools { left: 8px; top: 8px; }
  .job-stage-tools .seg { max-width: 100%; overflow-x: auto; }  /* a long row of levels scrolls instead of running off */
}
@media (prefers-reduced-motion: reduce) { .seg button { transition: none; } }

/* The PM's photo viewer (Elijah, 2026-11-11): one update's photos full size, swipe or arrow keys; and the update shown on
   the model with its photos beside it. */
.evidence a { cursor: zoom-in; }
.pv[hidden], .stage-photos[hidden] { display: none; }
.pv { position: fixed; inset: 0; z-index: 1000; background: rgb(15 23 42 / 0.92); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px; }
.pv-frame { display: flex; align-items: center; gap: 12px; max-width: 100%; }
.pv-img { max-width: min(88vw, 1200px); max-height: 78vh; object-fit: contain; border-radius: 6px; touch-action: pan-y; user-select: none; }
.pv-prev, .pv-next, .pv-close { background: rgb(255 255 255 / 0.12); color: #fff; border: 0; border-radius: 999px; width: 44px; height: 44px; font-size: 28px; line-height: 1; cursor: pointer; flex: none; }
.pv-prev:hover, .pv-next:hover, .pv-close:hover { background: rgb(255 255 255 / 0.25); }
.pv-close { position: absolute; top: 16px; right: 16px; }
.pv-foot { display: flex; gap: 16px; align-items: center; margin-top: 12px; color: #e2e8f0; font-size: 14px; }
.pv-count { margin: 0; }
.pv-full { color: #c7d2fe; }
.stage-photos { position: absolute; top: 64px; right: 12px; width: min(300px, 45%); max-height: calc(100% - 80px); overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; box-shadow: 0 6px 20px rgb(15 23 42 / 0.15); z-index: 5; }
.stage-photos-title { margin: 0; font-weight: 600; font-size: 14px; }
.stage-photos-on, .stage-photos-none { margin: 2px 0 6px; font-size: 12.5px; color: var(--muted, #64748b); }
.stage-photos .stage-photos-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.stage-photos .stage-photos-strip img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
