/* Site visit sheet: tiles are the navigation. Any section opens in any order, each tile shows
   what is saved, and brass only suggests the next gap. Two exits: leave the visit open, or finish. */
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet){
  --ss-line:var(--line);--ss-card:var(--card);--ss-ink:var(--ink);--ss-muted:var(--muted);--ss-brass:#8a7047;
  display:grid;gap:16px;padding-top:2px}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-choice-direction{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:0;border:0}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-choice-direction h2{margin:0;font-family:Georgia,"Times New Roman",serif;font-weight:500;font-size:1.5rem;letter-spacing:-.01em}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-choice-direction p{margin:0;color:var(--ss-muted);font-size:.875rem;font-variant-numeric:tabular-nums;white-space:nowrap}

.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0;border:0}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-tiles .job-site-tile{margin:0;padding:0;border:0;background:none;min-width:0}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-tiles .job-site-tile:last-child:nth-child(odd){grid-column:1/-1}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-tiles .job-site-tile>.btn{
  display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:4px;width:100%;height:100%;min-height:72px;margin:0;padding:12px 14px;
  border:1px solid var(--ss-line);border-radius:12px;background:var(--ss-card);color:var(--ss-ink);text-align:left;box-shadow:none;font:inherit}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-tiles .job-site-tile>.btn::before,
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-tiles .job-site-tile>.btn::after{content:none}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-tile-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-tile-head strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.9375rem;font-weight:650;line-height:1.3;letter-spacing:-.005em}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-tick{flex:0 0 auto;color:var(--ss-brass);font-style:normal;font-size:.875rem;font-weight:600;line-height:1.5}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-tile small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ss-ink);font-size:.875rem;line-height:1.35}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-tile[data-survey-row-state="open"] small{color:var(--ss-muted)}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-tile[data-survey-row-state="next"] .btn{border-color:var(--ss-brass);box-shadow:inset 0 0 0 1px var(--ss-brass)}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-tile[data-survey-row-state="next"] small{color:var(--ss-brass)}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-tile>.btn:focus-visible{outline:3px solid var(--brand-gold);outline-offset:2px}

/* Quiet list: notes, reminders, booking & quote, visit summary. */
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-list{display:grid;border-top:1px solid var(--ss-line)}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-list>.job-visit-row,
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-booking{margin:0;padding:0;border:0;border-bottom:1px solid var(--ss-line);border-radius:0;background:none}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-list .job-visit-row .btn,
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-booking>summary{
  display:flex;align-items:center;gap:12px;width:100%;min-height:52px;margin:0;padding:8px 2px;border:0;border-radius:0;background:none;box-shadow:none;color:var(--ss-ink);text-align:left;font:inherit;cursor:pointer;list-style:none}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-booking>summary::-webkit-details-marker{display:none}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-list .job-visit-row .btn::before{content:none}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-list .job-visit-row .btn::after,
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-booking>summary::after{content:"›";position:static;margin-left:auto;padding-left:8px;color:var(--ss-muted);font-size:1.25rem;line-height:1}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-booking[open]>summary::after{transform:rotate(90deg)}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-list .job-visit-row-copy,
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-booking>summary{min-width:0}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-list .job-visit-row-copy strong,
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-booking>summary span{display:block;font-size:1rem;font-weight:600}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-list .job-visit-row-copy small,
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-booking>summary small{display:block;margin-top:2px;color:var(--ss-muted);font-size:.8125rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-booking>summary{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:12px}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-booking>summary::after{grid-column:2;grid-row:1/span 2}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-booking-actions{display:grid;gap:8px;padding:2px 0 14px}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-booking-actions>.btn{justify-content:flex-start;width:100%;min-height:48px;margin:0}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-booking-actions>.job-visit-row{margin:0;border:0}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-booking-note{margin:0;color:var(--ss-muted);font-size:.875rem}

/* After the visit: the one next step. On site: Leave visit open (quiet) and End visit. */
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-after{display:grid;grid-template-columns:minmax(0,1fr);justify-content:stretch;gap:10px;margin:0;padding:0;border:0;background:none}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-after p{margin:0;color:var(--ss-muted);font-size:.9375rem}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-after p strong{color:var(--ss-ink)}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-after .btn{width:100%;min-height:52px;margin:0;justify-content:center}
/* Start visit is the one thing to do on a booked survey: the dark primary, full width. */
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-after .job-choice-lead[data-job-choice-kind="start-visit"]{display:flex;border:1px solid var(--brand-ink,#141515);background:var(--brand-ink,#141515);color:var(--brand-white,#f2eee5);font-weight:650}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-exits{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:6px 0 0;padding:0;border:0;background:none}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-exits .btn{display:flex;align-items:center;justify-content:center;width:100%;min-height:52px;margin:0;padding:10px 12px;border-radius:12px;font-weight:650;text-align:center;box-shadow:none}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-exits .job-site-leave{border:1px solid var(--ss-line);background:var(--ss-card);color:var(--ss-ink)}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-exits :is([data-job-choice="finish-site-visit"],[data-job-choice-kind="finish-visit"],[data-job-choice="finish-day"]){border:1px solid var(--brand-ink,#141515);background:var(--brand-ink,#141515);color:var(--brand-white,#f2eee5)}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-exits .btn::before,
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-exits .btn::after{content:none}
@media(max-width:340px){
  .route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-tiles,
  .route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-exits{grid-template-columns:minmax(0,1fr)}
}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-list .job-visit-row .btn{font-weight:600}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-list .job-visit-row-copy small{font-weight:400}

/* On a phone the two exits stay in reach above the bottom bar: finishing never needs a scroll. */
@media(max-width:720px){
  .route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-exits{position:sticky;bottom:calc(var(--sp-phone-nav-h) + env(safe-area-inset-bottom,0px));z-index:3;margin:0 -2px;padding:10px 2px;border-top:1px solid var(--ss-line);background:var(--sp-premium-paper,var(--bg))}
}
/* The visit's own summary row replaces the job-record link while the site sheet is showing. */
.route-jobs .job-workspace:has(.job-site-sheet) [data-job-summary-open]{display:none}
.route-jobs .job-workspace .job-next-menu:has(.job-site-sheet){padding-top:10px}

/* Inside a section: Save is the one full-width button; going on to the next section is a small text
   link under it, a suggestion the installer can take or leave. */
.route-jobs .job-workspace .job-survey-form .job-survey-actions>[data-survey-save],
.route-jobs .job-workspace[data-wf-screen] .job-survey-form .job-survey-actions>[data-survey-save]{order:0;flex:1 1 100%;width:100%;min-height:52px}
.route-jobs .job-workspace .job-survey-form .job-survey-actions>[data-survey-save-next],
.route-jobs .job-workspace[data-wf-screen] .job-survey-form .job-survey-actions>[data-survey-save-next]{
  order:1;flex:1 1 100%;display:block;width:100%;min-height:44px;margin:0;padding:6px 4px;border:0;background:none;box-shadow:none;
  color:var(--ink);font-size:.9375rem;font-weight:600;text-align:center;text-decoration:underline;text-decoration-color:var(--line);text-underline-offset:4px;white-space:normal}

/* The dark site-visit header is the only masthead on Jobs phones: keep a compact
   company/StovePilot identity above the customer, not a second full-height banner. */
.route-jobs .job-workspace[data-job-onsite] .job-onsite-header .job-onsite-company{display:block}
/* Site visit sections: just the boxes. No guidance paragraph over Measurements. */
.route-jobs .job-workspace[data-wf-screen^="survey-"] :is([data-survey-opening-advice],[data-survey-opening-requirement]){display:none}
/* "Finished sizes?" is a small optional control on one line, not a big three-button question. */
/* "Finished sizes?" is a small optional line under the sizes, not a full question block. */
.route-jobs .job-workspace :is(*,[data-wf-screen]) .job-opening-stage .job-survey-choice-set{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:2px 0 0;padding:0;border:0}
.route-jobs .job-workspace :is(*,[data-wf-screen]) .job-opening-stage .job-survey-choice-set>legend{float:left;margin:0 2px 0 0;padding:0;color:var(--muted);font-family:inherit;font-size:.875rem;font-weight:500;letter-spacing:0;text-transform:none}
.route-jobs .job-workspace :is(*,[data-wf-screen]) .job-opening-stage .job-survey-choice-buttons{display:flex;flex-wrap:nowrap;gap:6px}
.route-jobs .job-workspace :is(*,[data-wf-screen]) .job-opening-stage .job-survey-choice{flex:0 0 auto}
.route-jobs .job-workspace :is(*,[data-wf-screen]) .job-opening-stage .job-survey-choice>span{min-height:34px;height:auto;padding:5px 12px;border-radius:999px;font-size:.875rem}

/* Photos from the tile sheet: Take photo / From library come first; the suggested shots sit under them. */
.route-jobs .job-workspace[data-wf-screen="survey-photos"] [data-job-photos]{display:flex;flex-direction:column}
.route-jobs .job-workspace[data-wf-screen="survey-photos"] [data-job-photos]>[data-evidence-capture]{order:1}
.route-jobs .job-workspace[data-wf-screen="survey-photos"] [data-job-photos]>[data-evidence-prompts]{order:2;margin-top:12px}
.route-jobs .job-workspace[data-wf-screen="survey-photos"] [data-job-photos]>[data-evidence-records]{order:3}

/* "The job": what is there now and what the customer wants, one tap each, saved in place.
   Answered, it folds to one large line; one tap opens it again. Ticks only follow a confirmed save. */
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-job{
  --sj-amber:#8a5d14;--sj-amber-soft:#f6ecd9;--sj-amber-line:#e2cb9d;--sj-red:var(--red,#b4433f);--sj-red-ink:#7d2622;--sj-red-soft:var(--red-soft,#f5e5e3);--sj-green:var(--green,#315f52);
  display:grid;gap:10px;min-width:0;margin:0 0 14px;outline:none}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-job:focus-visible{outline:3px solid var(--brand-gold);outline-offset:3px;border-radius:14px}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-job [hidden]{display:none!important}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-job-body{display:grid;gap:14px;min-width:0;padding:14px 14px 12px;border:1px solid var(--ss-line);border-radius:14px;background:var(--ss-card)}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-job[data-site-job-folded="false"] .job-site-job-body{border-color:var(--ss-brass);box-shadow:inset 0 0 0 1px var(--ss-brass)}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-job-head{display:flex;align-items:center;gap:10px;min-height:28px}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-job-head h3{margin:0;font-family:Georgia,"Times New Roman",serif;font-weight:500;font-size:1.1875rem;letter-spacing:-.005em}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-job-pill{padding:2px 8px;border-radius:999px;background:#f4eee3;color:var(--ss-brass);font-size:.75rem;font-weight:600;white-space:nowrap}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-job-pill[data-done="true"]{background:var(--green-soft,#e2ebe6);color:var(--sj-green)}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-job-done{margin-left:auto;min-height:44px;padding:0 4px;font-weight:600}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-job-row{display:grid;gap:8px;min-width:0}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-job-rowhead{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:2px 10px;margin:0;font-size:.875rem;font-weight:650;color:var(--ss-ink)}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-job-status{font-size:.8125rem;font-weight:500;color:var(--ss-muted)}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-job-status:empty{display:none}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-job-status[data-tone="saved"]{color:var(--sj-green);font-weight:600}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-job-status[data-tone="local"]{color:var(--sj-amber);font-weight:600}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-job-status[data-tone="alert"]{color:var(--sj-red-ink);font-weight:650}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-job-chips{display:flex;flex-wrap:wrap;gap:8px;min-width:0}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-job-chip{
  display:inline-flex;align-items:center;gap:6px;min-height:44px;margin:0;padding:8px 14px;border:1px solid var(--ss-line);border-radius:999px;background:var(--ss-card);
  color:var(--ss-ink);font:inherit;font-size:.9375rem;line-height:1.2;white-space:nowrap;cursor:pointer;box-shadow:none;-webkit-tap-highlight-color:transparent}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-job-chip:focus-visible{outline:3px solid var(--brand-gold);outline-offset:2px}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-job-chip:disabled{cursor:default;opacity:.6}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-job-chip.is-unsure{border-style:dashed;color:var(--ss-muted)}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-job-chip[aria-pressed="true"]{border-color:var(--brand-ink,#141515);background:var(--brand-ink,#141515);color:var(--brand-white,#f2eee5)}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-job-chip[data-chip-state="saved"]::before{content:"✓";color:var(--brand-gold);font-size:.8125rem}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-job-chip[data-chip-state="saving"]{border-color:var(--ss-ink);background:var(--ss-card);color:var(--ss-ink);box-shadow:inset 0 0 0 1px var(--ss-ink)}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-job-chip[data-chip-state="local"]{border-color:var(--sj-amber);background:var(--sj-amber-soft);color:#4f3a10;box-shadow:inset 0 0 0 1px var(--sj-amber)}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-job-chip[data-chip-state="unsaved"]{border:2px dashed var(--sj-red);background:var(--ss-card);color:var(--sj-red-ink)}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-job-chip[data-chip-state="unsure"]{border:1px dashed var(--sj-amber);background:var(--sj-amber-soft);color:#4f3a10}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-job-chip[data-chip-state="unsure"]::before{content:"?";color:var(--sj-amber);font-weight:700}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-job-retry{justify-self:start;min-height:44px;padding:0 2px;font-weight:600}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-job-model{display:grid;gap:6px;margin:0;padding-top:12px;border-top:1px solid var(--ss-line);min-width:0}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-job-model>span:first-child{font-size:.875rem;font-weight:650}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-job-model small{font-weight:400;color:var(--ss-muted)}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-job-model input{width:100%;min-width:0;min-height:48px;margin:0;padding:10px 12px;border:1px solid var(--ss-line);border-radius:10px;background:#fcfbf8;color:var(--ss-ink);font:inherit;font-size:1rem;box-sizing:border-box}

/* Folded: the whole line is one large button. */
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-job-fold{
  display:flex;align-items:center;gap:12px;width:100%;min-height:72px;margin:0;padding:12px 14px;border:1px solid var(--ss-line);border-radius:14px;background:var(--ss-card);
  color:var(--ss-ink);font:inherit;text-align:left;cursor:pointer;box-shadow:none}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-job-fold::before,
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-job-fold::after{content:none}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-job-fold:focus-visible{outline:3px solid var(--brand-gold);outline-offset:2px}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-job-tick{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:var(--sj-green);color:#fff;font-style:normal;font-size:.8125rem;font-weight:700}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-job-fold-copy{display:grid;gap:2px;min-width:0}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-job-kicker{font-size:.6875rem;font-weight:650;letter-spacing:.08em;text-transform:uppercase;color:var(--ss-brass)}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-job-fold-copy strong{font-family:Georgia,"Times New Roman",serif;font-weight:500;font-size:1.25rem;line-height:1.25;overflow-wrap:anywhere}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-job-fold-copy small{color:var(--ss-muted);font-size:.8125rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-job-change{flex:0 0 auto;margin-left:auto;padding:10px 0 10px 6px;font-size:.875rem;font-weight:650;text-decoration:underline;text-decoration-color:var(--ss-line);text-underline-offset:4px}

/* Not saved anywhere: unmistakable, never reassuring. */
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-job-alert{display:grid;gap:10px;padding:12px 14px;border:1px solid #dfa9a4;border-left:4px solid var(--sj-red);border-radius:12px;background:var(--sj-red-soft);color:var(--sj-red-ink)}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-job-alert p{margin:0;font-size:.9375rem;font-weight:600;line-height:1.4}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-job-alert .btn{justify-self:start;min-height:44px;margin:0;padding:8px 18px;border:0;border-radius:999px;background:var(--sj-red-ink);color:#fff;font-weight:650;box-shadow:none}
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-job-alert .btn::before,
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-job-alert .btn::after{content:none}
/* A tile's hint ("Check the existing hearth") wraps to two lines rather than losing its last word. */
.route-jobs .job-workspace :is(.job-site-sheet,.job-fit-sheet) .job-site-tile small{white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}

/* Between visits: the same quiet tiles. The suggested tile is edged in brass and says so; it sits
   among equals. Nothing is a big card, nothing is filled. Labels and hints wrap, never run together. */
.route-jobs .job-workspace .job-hub{display:grid;gap:14px;padding-top:2px}
.route-jobs .job-workspace .job-hub-suggest{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;margin:0;color:var(--ink);font-size:.9375rem;line-height:1.4}
.route-jobs .job-workspace .job-hub-suggest>span{color:#8a7047;font-size:.75rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase}
.route-jobs .job-workspace .job-hub-suggest>small{flex-basis:100%;color:var(--muted);font-size:.875rem}
/* The suggested step and its alternative lead, side by side, above the facts. Labels wrap; never cut off. */
.route-jobs .job-workspace .job-hub-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0}
.route-jobs .job-workspace .job-hub-actions>.job-hub-action:only-child{grid-column:1/-1}
.route-jobs .job-workspace .job-hub-action{
  display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:2px;width:100%;min-width:0;min-height:56px;margin:0;padding:10px 14px;
  border:1px solid var(--line);border-radius:12px;background:var(--card);color:var(--ink);text-align:left;box-shadow:none;font:inherit;white-space:normal;transition:transform .12s ease}
.route-jobs .job-workspace .job-hub-action::before,
.route-jobs .job-workspace .job-hub-action::after{content:none}
.route-jobs .job-workspace .job-hub-action strong{display:block;max-width:100%;white-space:normal;overflow-wrap:break-word;font-size:.9375rem;font-weight:650;line-height:1.3}
.route-jobs .job-workspace .job-hub-action small{display:block;max-width:100%;white-space:normal;overflow-wrap:break-word;color:var(--muted);font-size:.8125rem;font-weight:400;line-height:1.35}
/* The suggested one is the solid button; the alternative stays an equal, quieter choice. */
.route-jobs .job-workspace .job-hub-action[data-job-next-do]{border-color:var(--brand-ink,#1a1b1b);background:var(--brand-ink,#1a1b1b);color:#f7f4ee}
.route-jobs .job-workspace .job-hub-action[data-job-next-do] small{color:#d9cfbd}
.route-jobs .job-workspace .job-hub-action:active{transform:scale(.97)}
.route-jobs .job-workspace .job-hub-action:focus-visible{outline:3px solid var(--brand-gold);outline-offset:2px}
@media(prefers-reduced-motion:reduce){.route-jobs .job-workspace .job-hub-action{transition:none}.route-jobs .job-workspace .job-hub-action:active{transform:none}}

/* Between visits, Now opens on what is already recorded: label, the fact as saved, and View or Add
   where it has a home. Missing facts are muted and say so; nothing reads as done when it is not. */
.route-jobs .job-workspace .job-hub-facts{display:grid;margin:0;padding:0;list-style:none}
.route-jobs .job-workspace .job-hub-facts>li{display:grid;grid-template-columns:5.75rem minmax(0,1fr) auto;grid-template-areas:"label value action";align-items:center;column-gap:10px;min-height:46px;padding:2px 2px;border-bottom:1px solid var(--line)}
.route-jobs .job-workspace .job-hub-facts>li>span{grid-area:label;color:var(--muted);font-size:.875rem;line-height:1.3}
.route-jobs .job-workspace .job-hub-facts>li>strong{grid-area:value;min-width:0;overflow-wrap:break-word;color:var(--ink);font-size:.9375rem;font-weight:550;line-height:1.35}
.route-jobs .job-workspace .job-hub-facts>li[data-recorded="false"]>strong{color:var(--muted);font-weight:500}
/* Status text, not headlines: a long site summary must not outweigh the rest of the list (Kalvin, 29 Oct). */
.route-jobs .job-workspace .job-hub-facts>li>strong,.route-jobs .job-workspace .job-hub-facts>li[data-recorded="false"]>strong{font-size:.875rem;font-weight:400}
.route-jobs .job-workspace .job-hub-facts>li>.text-action{grid-area:action;min-width:44px;min-height:44px;padding:0 4px;border:0;background:none;color:#8a7047;font:inherit;font-size:.9375rem;font-weight:600;cursor:pointer}
.route-jobs .job-workspace .job-hub-facts>li[data-snapshot-opens]{position:relative}
.route-jobs .job-workspace .job-hub-facts>li[data-snapshot-opens]>.text-action::after{content:"";position:absolute;inset:0}
.route-jobs .job-workspace .job-hub-facts>li>.text-action:focus-visible{outline:3px solid var(--brand-gold);outline-offset:2px;border-radius:6px}

/* Installation visit: the same tile sheet. Photo and Note, then one tile per required record. */
.route-jobs .job-workspace .job-fit-sheet ul.job-site-tiles,
.route-jobs .job-workspace .job-fit-sheet .job-now-tile-records-list{list-style:none;margin:0;padding:0}
.route-jobs .job-workspace .job-fit-sheet .job-now-tile-records,
.route-jobs .job-workspace .job-fit-sheet .job-now-tile-records-list{display:contents}
.route-jobs .job-workspace .job-fit-sheet .job-site-tile>span.btn{cursor:default}
.route-jobs .job-workspace .job-fit-sheet .job-site-tile[data-survey-row-state="recorded"] small{color:var(--sj-green,#2f6a57);font-weight:600}
.route-jobs .job-workspace .job-fit-sheet .job-site-tile>.btn:disabled{opacity:.55}
.route-jobs .job-workspace .job-fit-sheet .job-site-tile>.btn[aria-busy="true"] small{color:var(--ss-brass)}
.route-jobs .job-workspace .job-fit-sheet .job-now-records-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.route-jobs .job-workspace .job-fit-sheet .job-now-status:not([hidden]){margin:0}
.route-jobs .job-workspace .job-now-panel.job-fit-sheet{margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none}
.route-jobs .job-workspace .job-fit-sheet .job-site-tile-head strong{white-space:normal;overflow-wrap:anywhere}
/* The fitting's records and its other actions read as one list under the tiles. */
.route-jobs .job-workspace .job-next-action:has(> .job-menu-content .job-fit-sheet),
.route-jobs .job-workspace .job-next-action:has(.job-next-choices.job-fit-sheet){padding-top:0}
.route-jobs .job-workspace .job-next-choices.job-fit-sheet .job-site-list{border-top:0}
.route-jobs .job-workspace .job-fit-sheet .job-now-all-in{color:var(--sj-green,#2f6a57);font-weight:600;font-size:15px}
/* A safety tile opens in place across the row: what is being confirmed, then Record and Cancel. */
.route-jobs .job-workspace .job-fit-sheet .job-site-tile[data-job-now-check-open="true"]{grid-column:1/-1;display:grid}
.route-jobs .job-workspace .job-fit-sheet .job-site-tile[data-job-now-check-open="true"]>.btn{height:auto;border-color:var(--ss-brass,#9a7a3c);border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom:0}
.route-jobs .job-workspace .job-fit-sheet .job-now-check{border:1px solid var(--ss-brass,#9a7a3c);border-top:0;border-radius:0 0 14px 14px;padding:4px 16px 16px;display:grid;gap:12px;background:var(--surface,#fff)}
.route-jobs .job-workspace .job-fit-sheet .job-now-check[hidden]{display:none}
.route-jobs .job-workspace .job-fit-sheet .job-now-check p{margin:0;font-size:16px}
.route-jobs .job-workspace .job-fit-sheet .job-now-check-actions{display:grid;grid-template-columns:2fr 1fr;gap:10px}
.route-jobs .job-workspace .job-fit-sheet .job-now-check-actions .btn{min-height:52px;justify-content:center}
.route-jobs .job-workspace .job-fit-sheet .job-now-check-actions .btn{display:flex;align-items:center;width:100%;margin:0;padding:10px 12px;border-radius:12px;font-weight:650;box-shadow:none}
.route-jobs .job-workspace .job-fit-sheet .job-now-check-actions .job-now-confirm{border:1px solid var(--brand-ink,#141515);background:var(--brand-ink,#141515);color:var(--brand-white,#f2eee5)}
.route-jobs .job-workspace .job-fit-sheet .job-now-check-actions .job-now-check-cancel{border:1px solid var(--ss-line);background:var(--ss-card);color:var(--ss-ink)}
.route-jobs .job-workspace .job-fit-sheet .job-now-check-actions .btn::before,
.route-jobs .job-workspace .job-fit-sheet .job-now-check-actions .btn::after{content:none}
.route-jobs .job-workspace .job-fit-sheet .job-now-check-status{margin:0;color:var(--danger,#9b2c2c);font-weight:600;font-size:15px}
.route-jobs .job-workspace .job-fit-sheet .job-now-check-actions .job-now-confirm:disabled{opacity:.7}
