/* ASA OS shop design system (request 241).
 * One system for every page: loaded after app.css / catalog.css / phone-home.css so it is the final word on the shared
 * vocabulary (type, buttons, fields, cards, notices, tables) and owns the new shell, Today and job workspace.
 * Principles: content first, one accent, hairlines instead of boxes, one obvious action per moment, calm motion. */

:root, :root[data-look], :root[data-look][data-type] {
  --canvas: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #fbfbfd;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #8e8e93;
  --hair: rgba(0, 0, 0, 0.09);
  --hair-strong: rgba(0, 0, 0, 0.16);
  --fill: rgba(118, 118, 128, 0.12);
  --fill-hover: rgba(118, 118, 128, 0.18);
  --accent: #0a66d8;
  --accent-ink: #ffffff;
  --accent-soft: rgba(10, 102, 216, 0.1);
  --green: #1f8a3b;
  --green-soft: rgba(31, 138, 59, 0.12);
  --amber: #a35200;
  --amber-soft: rgba(201, 110, 0, 0.13);
  --red: #c4001a;
  --red-soft: rgba(215, 0, 21, 0.1);
  --side: rgba(246, 246, 248, 0.86);
  --shadow-pop: 0 12px 40px rgba(0, 0, 0, 0.14), 0 0 0 0.5px rgba(0, 0, 0, 0.12);
  --r-s: 8px;
  --r-m: 12px;
  --r-l: 18px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  /* legacy tokens used by app.css, remapped so older pages follow the same palette */
  --bg: var(--canvas); --card: var(--surface); --muted: var(--ink-2); --line: var(--hair);
  --brand: var(--accent); --brand-ink: #fff; --warn: var(--amber); --bad: var(--red); --chip: var(--fill);
  --radius-ui: 12px; --border-ui: 1px; --head-style: normal; --head-transform: none; --head-track: -0.02em; --font-head: var(--font-display);
  font-family: var(--font);
  color-scheme: light;
}
/* Batch 30 (UI direction, Clay Oct 22): the workspace is white. The default look no longer turns dark with the device; the
   Look setting (themes/*.css) still offers its own styles. */

/* ---------- base ---------- */
html { -webkit-text-size-adjust: 100%; background: var(--canvas); }   /* batch 30: a short page shows the workspace below its content, never the device's dark default */
body, body.focus-app { margin: 0; background: var(--canvas); color: var(--ink); font: 15px/1.47 var(--font); letter-spacing: -0.008em;
  -webkit-font-smoothing: antialiased; font-feature-settings: "tnum" 1; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--accent-soft); outline-offset: 1px; box-shadow: 0 0 0 1.5px var(--accent); border-radius: var(--r-s); }
/* Daily screens (Oct 21): the page area takes focus on every page change (for screen readers); it never needs a ring, which
   drew a green frame around the whole page after a load or refresh and cut into the phone's brand bar. */
body.shop-on .main:focus-visible { outline: none; box-shadow: none; }
h1, .focus-app h1 { font: 700 30px/1.15 var(--font-display); letter-spacing: -0.022em; margin: 0 0 6px; color: var(--ink); }
h2, .focus-app h2 { font: 600 19px/1.3 var(--font-display); letter-spacing: -0.016em; margin: 0 0 10px; color: var(--ink); }
h3, .focus-app h3 { font: 600 15px/1.35 var(--font); letter-spacing: -0.01em; margin: 0 0 6px; }
p { margin: 0 0 10px; }
.sub, .muted, .note { color: var(--ink-2); }
.note { font-size: 13px; }
hr { border: 0; border-top: 1px solid var(--hair); margin: 18px 0; }
::selection { background: var(--accent-soft); }

/* ---------- controls ---------- */
button, .btn, a.btn, .focus-app button {
  font: 500 14px/1 var(--font); letter-spacing: -0.01em; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 34px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--fill); color: var(--ink); cursor: pointer;
  text-decoration: none; white-space: nowrap; transition: background-color .15s ease, transform .08s ease; }
button:hover, .btn:hover, a.btn:hover { background: var(--fill-hover); text-decoration: none; }
button:active, .btn:active { transform: scale(0.98); }
button.primary, a.btn.primary-link, .btn.primary, .focus-app button.primary { background: var(--accent); color: var(--accent-ink); }
button.primary:hover, a.btn.primary-link:hover, .btn.primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
button:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: default; transform: none; }
button.quiet, .btn.quiet { background: transparent; color: var(--accent); padding: 0 8px; }
button.quiet:hover, .btn.quiet:hover { background: var(--accent-soft); }
input, select, textarea {
  font: 15px/1.3 var(--font); color: var(--ink); background: var(--surface); border: 1px solid var(--hair-strong); border-radius: var(--r-s);
  padding: 8px 10px; min-height: 36px; max-width: 100%; }
textarea { min-height: 84px; line-height: 1.45; }
select { padding-right: 28px; }
label { font-size: 13px; font-weight: 500; color: var(--ink-2); }
input[type="checkbox"], input[type="radio"] { min-height: 0; accent-color: var(--accent); }

/* ---------- older shared components, restyled to the same system ---------- */
.card, .focus-app .card { background: var(--surface); border: 0; border-radius: var(--r-l); padding: 20px 22px; margin-bottom: 16px;
  box-shadow: 0 0 0 0.5px var(--hair); }
.notice { border: 0; border-radius: var(--r-m); padding: 11px 14px; margin: 10px 0; font-size: 14px; background: var(--fill); color: var(--ink); }
.notice.ok { background: var(--green-soft); }
.notice.warn { background: var(--amber-soft); }
.notice.bad { background: var(--red-soft); }
.notice.info { background: var(--accent-soft); }
.chip { background: var(--fill); color: var(--ink); border: 0; border-radius: 999px; padding: 2px 9px; font-size: 12px; font-weight: 500; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th { text-align: left; font-weight: 500; color: var(--ink-2); font-size: 12px; border-bottom: 1px solid var(--hair); padding: 8px 10px; }
td { border-bottom: 1px solid var(--hair); padding: 10px; vertical-align: top; }
details > summary { cursor: pointer; color: var(--ink-2); font-size: 13px; font-weight: 500; }
details > summary:hover { color: var(--ink); }
dl dt { color: var(--ink-2); font-size: 13px; }
ul.roster li { border-bottom: 1px solid var(--hair); }

/* ---------- shell ---------- */
body.shop-on .topbar { display: none; }
body:not(.shop-on) .topbar { background: transparent; color: var(--ink); padding: 18px 24px; border: 0; }
body:not(.shop-on) .topbar .brand-mark { background: var(--ink); color: var(--canvas); }
body:not(.shop-on) .main { max-width: 960px; }
.shop-side { position: fixed; inset: 0 auto 0 0; width: 236px; display: flex; flex-direction: column; gap: 2px; padding: 18px 12px 14px;
  background: var(--side); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-right: 1px solid var(--hair); z-index: 20; overflow-y: auto; }
.shop-brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; }
.shop-brand-mark { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font: 700 14px/1 var(--font-display);
  background: var(--ink); color: var(--canvas); }
.shop-brand-name { font: 600 15px/1.2 var(--font-display); letter-spacing: -0.012em; }
.shop-brand-store { font-size: 12px; color: var(--ink-2); }
.shop-nav-group { display: flex; flex-direction: column; gap: 1px; margin-bottom: 14px; }
.shop-nav-label { font-size: 11px; font-weight: 600; color: var(--ink-3); padding: 8px 10px 4px; letter-spacing: 0.01em; }
.shop-nav-item { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--r-s); color: var(--ink); font-size: 14px; font-weight: 450; }
.shop-nav-item:hover { background: var(--fill); text-decoration: none; }
.shop-nav-item[aria-current="page"] { background: var(--accent); color: var(--accent-ink); font-weight: 500; }
.shop-nav-item svg { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.shop-nav-item .shop-count { margin-left: auto; font-size: 12px; color: var(--ink-2); }
.shop-nav-item[aria-current="page"] .shop-count { color: inherit; opacity: .85; }
.shop-side-foot { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px; border-top: 1px solid var(--hair); }
.shop-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--fill); display: grid; place-items: center; font: 600 12px/1 var(--font); color: var(--ink-2); flex: none; }
.shop-me { min-width: 0; flex: 1; }
.shop-me .shop-me-role { display: flex; gap: 8px; align-items: center; }
.shop-me-name { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shop-me-role { font-size: 12px; color: var(--ink-2); }
.shop-on .shop-side-foot button { min-height: 0; padding: 2px 0; font-size: 12px; background: transparent; color: var(--accent); border-radius: 4px; }
.shop-on .shop-side-foot button:hover { text-decoration: underline; }
.shop-side-foot { flex-wrap: wrap; }
body.shop-on .main, body.shop-on.focus-app .main { margin: 0 0 0 236px; max-width: none; padding: 34px 44px 80px; }
body.shop-on .main > * { max-width: 1180px; }
.shop-tabbar { display: none; }

@media (max-width: 860px) {
  .shop-side { display: none; }
  body.shop-on .main, body.shop-on.focus-app .main { margin: 0; padding: 20px 16px calc(96px + env(safe-area-inset-bottom)); }
  .shop-tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: var(--side);
    -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-top: 1px solid var(--hair); }
  .shop-tab { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 500; color: var(--ink-2); padding: 4px 0; }
  .shop-tab:hover { text-decoration: none; }
  .shop-tab svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .shop-tab[aria-current="page"] { color: var(--accent); }
  h1, .focus-app h1 { font-size: 26px; }
}

/* ---------- page header ---------- */
.pg-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.pg-kicker { font-size: 13px; color: var(--ink-2); margin: 0 0 2px; }
.pg-title { font: 700 34px/1.1 var(--font-display); letter-spacing: -0.025em; margin: 0; }
.pg-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* segmented control */
.seg { display: inline-flex; padding: 2px; border-radius: 9px; background: var(--fill); gap: 2px; }
.shop-on .seg button { min-height: 28px; border-radius: 7px; background: transparent; padding: 0 12px; font-size: 13px; font-weight: 500; color: var(--ink); }
.shop-on .seg button:hover { background: transparent; }
.shop-on .seg button[aria-pressed="true"] { background: var(--surface); box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 0 0 .5px rgba(0, 0, 0, .06); }
.seg .seg-n { color: var(--ink-2); font-weight: 400; margin-left: 4px; }
/* UI cleanup (Oct 19): a segmented control made of links (Jobs: List | Bay board) */
.seg.jb-view { align-self: center; }
.seg.jb-view a { display: inline-flex; align-items: center; min-height: 28px; border-radius: 7px; padding: 0 12px; font-size: 13px; font-weight: 500; color: var(--ink); text-decoration: none; }
.seg.jb-view a[aria-current="page"] { background: var(--surface); box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 0 0 .5px rgba(0, 0, 0, .06); }

/* ---------- Today ---------- */
.today-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 26px; }
.shop-on .today-stat { background: var(--surface); border-radius: var(--r-m); padding: 14px 16px; box-shadow: 0 0 0 .5px var(--hair); text-align: left;
  display: block; min-height: 0; color: var(--ink); font: inherit; cursor: pointer; border-radius: var(--r-m); white-space: normal; }
.shop-on .today-stat:hover { background: var(--surface-2); }
.shop-on .today-stat[aria-pressed="true"] { box-shadow: 0 0 0 1.5px var(--accent); }
.today-stat-n { font: 600 28px/1.1 var(--font-display); letter-spacing: -0.02em; display: block; }
.today-stat-l { font-size: 13px; color: var(--ink-2); display: block; margin-top: 2px; }
.today-stat.is-alert .today-stat-n { color: var(--red); }
/* UI cleanup (Oct 19): the last tile opens Jobs (every open job); Today's list is today's work */
.shop-on a.today-stat.is-link { text-decoration: none; }
.shop-on a.today-stat.is-link .today-stat-l { color: var(--accent); }
.today-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.today-search { min-width: 360px; border-radius: 999px; padding-left: 14px; background: var(--surface); }

.jobs { background: var(--surface); border-radius: var(--r-l); box-shadow: 0 0 0 .5px var(--hair); overflow: hidden; }
/* request 241F: + Tech · Bay column (after Status) */
/* Daily screens (Oct 21): Work gets the room (it was cut to two words while Tech · Bay and Promised sat half empty) */
.jobs-head, .job-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.25fr) 96px minmax(0, 1.35fr) 112px 88px; align-items: center; gap: 12px; padding: 0 16px; }
.jobs-head { font-size: 12px; color: var(--ink-2); font-weight: 500; min-height: 36px; border-bottom: 1px solid var(--hair); background: var(--surface-2); }
.job-row { min-height: 60px; border-bottom: 1px solid var(--hair); color: var(--ink); }
.job-row:last-child { border-bottom: 0; }
.job-row:hover { background: var(--surface-2); text-decoration: none; }
.job-row:focus-visible { outline: 0; box-shadow: inset 0 0 0 2px var(--accent); border-radius: 0; }
.job-no { font-size: 13px; color: var(--ink-2); }
.job-cust { font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job-veh, .job-svc { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job-svc { color: var(--ink-2); }
.job-when { font-size: 13px; white-space: nowrap; }
.job-when.is-late { color: var(--red); font-weight: 500; }
.job-amt { text-align: right; font-size: 14px; font-weight: 500; }
.job-amt.is-none { color: var(--ink-3); font-weight: 400; font-size: 13px; }
.jobs-head .job-amt { font-size: inherit; font-weight: inherit; }   /* the column title, not an amount */
@media (min-width: 1241px) { .job-row .job-amt:empty::before { content: "—"; } }   /* no estimate yet: a dash like Promised, not a blank cell */
.jobs-empty { padding: 36px 18px; text-align: center; color: var(--ink-2); }
.jobs-foot { padding: 12px 18px; font-size: 13px; color: var(--ink-2); display: flex; justify-content: space-between; gap: 12px; }

/* stage pill */
.stage { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; padding: 3px 9px 3px 8px; border-radius: 999px;
  background: var(--fill); color: var(--ink); white-space: nowrap; }
.stage::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.stage.s-quote::before { background: var(--ink-3); }
.stage.s-scheduled::before { background: #8e5cd9; }
.stage.s-inshop { background: var(--accent-soft); }
.stage.s-inshop::before { background: var(--accent); }
.stage.s-attention { background: var(--amber-soft); }
.stage.s-attention::before { background: var(--amber); }
.stage.s-done { background: var(--green-soft); }
.stage.s-done::before { background: var(--green); }

@media (max-width: 1240px) {
  .jobs-head { display: none; }
  .job-row { grid-template-columns: 1fr auto; grid-template-areas: "cust stage" "veh amt" "svc when" "asg asg"; gap: 2px 12px; padding: 12px 16px; }
  .job-row > .job-asg { grid-area: asg; margin-top: 4px; }
  .job-no { display: none; }
  .job-cust { grid-area: cust; } .job-veh { grid-area: veh; font-size: 14px; } .job-svc { grid-area: svc; font-size: 13px; }
  .job-row > .stage-cell { grid-area: stage; justify-self: end; } .job-when { grid-area: when; justify-self: end; } .job-amt { grid-area: amt; }
}
@media (max-width: 860px) { .today-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } .today-search { min-width: 0; width: 100%; } }

/* ---------- job workspace ---------- */
.job-back { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; margin-bottom: 14px; }
.job-head { background: var(--surface); border-radius: var(--r-l); box-shadow: 0 0 0 .5px var(--hair); padding: 22px 24px 0; margin-bottom: 20px; }
.job-head-top { display: flex; gap: 20px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.job-who h1 { font: 700 28px/1.15 var(--font-display); letter-spacing: -0.024em; margin: 0; }
.job-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 6px; color: var(--ink-2); font-size: 14px; }
.job-meta strong { color: var(--ink); font-weight: 500; }
.job-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
/* Job page cleanup §1 (Clay, Oct 22 late evening): one header row under the name (stage, flags, technician · bay), no gap */
.job-head-top .job-who { flex: 1 1 auto; min-width: 0; }
.job-name { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; }
.job-head .job-edit-btn { font-size: 13px; padding: 4px 10px; min-height: 0; }
.job-cust-link { font-size: 13px; }
.job-status.job-side { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.job-status .asg-ctl { align-items: flex-start; }
.job-status .asg-pop { left: 0; right: auto; }
.job-edit { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 14px; }
.job-edit .panel { box-shadow: 0 0 0 .5px var(--hair); background: var(--bg, var(--surface)); }
.job-record-gaps { margin: 0 0 12px; color: var(--ink-2); font-size: 13px; line-height: 1.4; }
.job-facts { display: flex; gap: 22px; margin-top: 18px; padding: 14px 0; border-top: 1px solid var(--hair); flex-wrap: wrap; }
.job-fact { min-width: 120px; }
.job-fact-l { font-size: 12px; color: var(--ink-2); }
.job-fact-v { font-size: 14px; font-weight: 500; margin-top: 1px; }
.job-fact-v.is-late { color: var(--red); }
.job-fact-v.is-none { color: var(--ink-3); font-weight: 400; }

.track { display: flex; gap: 0; margin: 4px 0 2px; }
.track-step { flex: 1; font-size: 12px; color: var(--ink-3); padding-top: 9px; position: relative; text-align: left; }
.track-step::before { content: ""; position: absolute; top: 0; left: 0; right: 3px; height: 4px; border-radius: 2px; background: var(--fill); }
.track-step.is-done { color: var(--ink-2); }
.track-step.is-done::before { background: color-mix(in srgb, var(--accent) 45%, transparent); }
.track-step.is-now { color: var(--ink); font-weight: 600; }
/* U6-A2: a step the job went past with no record of it (e.g. no arrival recorded): shown as a gap, not as done */
.track-step.is-gap { color: #8a5300; }
.track-step.is-gap::before { background: repeating-linear-gradient(90deg, #d08a1e 0 6px, transparent 6px 10px); }
.track-step.is-now::before { background: var(--accent); }

.job-tabs { display: flex; gap: 2px; margin: 0 -8px; overflow-x: auto; scrollbar-width: none; }
.job-tab { padding: 12px 12px 13px; font-size: 14px; font-weight: 500; color: var(--ink-2); border-bottom: 2px solid transparent; white-space: nowrap; }
.job-tab:hover { color: var(--ink); text-decoration: none; }
.job-tab[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.job-tab .shop-count { color: var(--ink-3); font-weight: 400; margin-left: 4px; }

.job-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.job-main { min-width: 0; }
.job-aside { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 24px; }
/* Oct 22 (walkthrough, 375 px): one shrinkable column; the aside's widest content no longer widens the Estimate card */
@media (max-width: 1100px) { .job-body { grid-template-columns: minmax(0, 1fr); } .job-aside { position: static; min-width: 0; } }

.panel { background: var(--surface); border-radius: var(--r-l); box-shadow: 0 0 0 .5px var(--hair); padding: 18px 20px; }
.panel h2 { font-size: 15px; margin: 0 0 10px; }
.job-journey h3 { font-size: 15px; margin: 18px 0 6px; }   /* 224: the journey panel's Who did what */
.panel-row { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: 14px; border-top: 1px solid var(--hair); }
.panel-row:first-of-type { border-top: 0; }
.panel-row span:first-child { color: var(--ink-2); }
.next { background: var(--surface); border-radius: var(--r-l); box-shadow: 0 0 0 .5px var(--hair); padding: 18px 20px; }
.next-l { font-size: 12px; color: var(--ink-2); margin-bottom: 4px; }
.next-t { font: 600 17px/1.3 var(--font-display); letter-spacing: -0.014em; margin-bottom: 12px; }
.next .btn, .next button { width: 100%; min-height: 40px; }
.next .next-alt { margin-top: 8px; display: block; text-align: center; font-size: 13px; }
/* Cleanup §2: the right column's zones. Each card is one line that opens it in place; More is collapsed. */
.job-tab-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.rail-zone { background: var(--surface); border-radius: var(--r-l); box-shadow: 0 0 0 .5px var(--hair); padding: 6px 0; }
.job-aside .rail-h, .job-aside .rail-more > summary { font-size: 12px; font-weight: 500; color: var(--ink-2); margin: 0; padding: 8px 16px 4px; }
.rail-more > summary { cursor: pointer; list-style: none; padding-bottom: 8px; }
.rail-more > summary::-webkit-details-marker { display: none; }
.rail-more > summary::after { content: " ›"; }
.rail-more[open] > summary::after { content: " ⌄"; }
.rail-item + .rail-item { border-top: 1px solid var(--hair); }
.job-aside .rail-line { all: unset; box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 0; padding: 10px 16px; font: 400 14px/1.35 var(--font); color: var(--ink); text-align: left; border-radius: 0; background: none; cursor: pointer; }
.job-aside .rail-line[hidden] { display: none; }
.job-aside .rail-line:hover { background: var(--fill); }
.job-aside .rail-line:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.rail-sum { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-chev { color: var(--ink-3); transition: transform .15s; }
.job-aside .rail-line[aria-expanded="true"] .rail-chev { transform: rotate(90deg); }
.rail-full { padding: 0 8px 10px; }
.rail-full > .panel, .rail-full > section, .rail-full > div { box-shadow: none; padding: 6px 8px; }
.rail-lead { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px 2px; font-size: 14px; }
.rail-lead.is-late > span:first-child { color: var(--red); font-weight: 500; }
.job-aside .rail-act { font-size: 13px; white-space: nowrap; min-height: 0; padding: 4px 10px; }
.rail-late .rail-lead { padding-bottom: 10px; }

/* estimate */
.est { background: var(--surface); border-radius: var(--r-l); box-shadow: 0 0 0 .5px var(--hair); overflow: hidden; }
.est-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--hair); }
.est-top h2 { margin: 0; font-size: 17px; }
.est-rev { font-size: 13px; color: var(--ink-2); }
.svc { border-bottom: 1px solid var(--hair); }
.svc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 20px 6px; }
.svc-name { font: 600 15.5px/1.3 var(--font); letter-spacing: -0.012em; }
.svc-note { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.svc-total { font-weight: 600; white-space: nowrap; }
.svc-total.is-none { color: var(--amber); font-weight: 500; font-size: 13px; }
.svc-total.is-free { color: var(--ink-2); font-weight: 500; font-size: 13px; }   /* a no-charge check (call desk) */
.svc-if { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.lines { width: 100%; border-collapse: collapse; margin: 4px 0 10px; }
.lines td { border: 0; padding: 7px 20px 7px 0; font-size: 14px; vertical-align: baseline; }
.lines td:first-child { padding-left: 20px; width: 64px; }
.lines .l-kind { font-size: 12px; color: var(--ink-2); }
.lines .l-qty, .lines .l-unit, .lines .l-amt { text-align: right; white-space: nowrap; }
.lines .l-qty { color: var(--ink-2); width: 80px; }
.lines .l-unit { color: var(--ink-2); width: 96px; }
.lines .l-amt { font-weight: 500; width: 96px; }
.lines .l-flag { display: inline-block; margin-left: 8px; font-size: 11.5px; font-weight: 500; color: var(--amber); }
.lines .is-unpriced .l-amt { color: var(--amber); font-weight: 500; font-size: 13px; }
.svc-empty { padding: 4px 20px 16px; font-size: 13px; color: var(--ink-2); }
.est-add { padding: 14px 20px; border-bottom: 1px solid var(--hair); position: relative; }
.est-sum { padding: 14px 20px 18px; display: grid; grid-template-columns: 1fr auto; gap: 6px 24px; font-size: 14px; }
.est-sum .k { color: var(--ink-2); }
.est-sum .v { text-align: right; font-weight: 500; }
.est-sum .total { font: 600 20px/1.2 var(--font-display); letter-spacing: -0.02em; color: var(--ink); }
.est-sum .warn { color: var(--amber); }
.est-empty { padding: 40px 20px; text-align: center; color: var(--ink-2); }
.est-empty h3 { color: var(--ink); font-size: 16px; }

/* menu (Add service) */
.menu { position: absolute; z-index: 30; margin-top: 8px; width: 320px; background: var(--surface); border-radius: var(--r-m); box-shadow: var(--shadow-pop);
  padding: 6px; display: flex; flex-direction: column; }
.shop-on .menu a, .shop-on .menu button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 0; padding: 10px 12px; border-radius: var(--r-s);
  background: transparent; color: var(--ink); text-align: left; white-space: normal; font-size: 14px; font-weight: 500; }
.shop-on .menu a:hover, .shop-on .menu button:hover { background: var(--fill); text-decoration: none; }
.menu small { font-size: 12.5px; font-weight: 400; color: var(--ink-2); }

/* inspection */
.insp { background: var(--surface); border-radius: var(--r-l); box-shadow: 0 0 0 .5px var(--hair); overflow: hidden; }
.insp-row { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--hair); font-size: 14px; }
.insp-row:last-child { border-bottom: 0; }
.insp-v { font-weight: 600; }
.insp-by { font-size: 12.5px; color: var(--ink-2); text-align: right; }

/* history */
.hist { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: var(--r-l); box-shadow: 0 0 0 .5px var(--hair); }
.hist li { display: grid; grid-template-columns: 130px 1fr; gap: 14px; padding: 11px 20px; border-bottom: 1px solid var(--hair); font-size: 14px; }
.hist li:last-child { border-bottom: 0; }
.hist time { color: var(--ink-2); font-size: 13px; }

.empty { background: var(--surface); border-radius: var(--r-l); box-shadow: 0 0 0 .5px var(--hair); padding: 40px 24px; text-align: center; }
.empty h3 { font-size: 16px; }
.empty p { color: var(--ink-2); max-width: 46ch; margin: 0 auto 14px; }

.skeleton { height: 60px; border-bottom: 1px solid var(--hair); background: linear-gradient(90deg, transparent, var(--fill), transparent) 0 0 / 50% 100% no-repeat;
  animation: shimmer 1.2s ease-in-out infinite; }
@keyframes shimmer { from { background-position: -50% 0; } to { background-position: 150% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } button:active, .btn:active { transform: none; } }

.flash { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--ink); color: var(--canvas); padding: 10px 16px;
  border-radius: 999px; font-size: 14px; box-shadow: var(--shadow-pop); z-index: 40; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pg-actions.after { margin-top: 14px; }

/* job workspace on phones: one progress label (the current step), estimate lines as two-line rows */
@media (max-width: 640px) {
  .job-head { padding: 18px 16px 0; }
  .job-who h1 { font-size: 24px; }
  .job-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .track-step { font-size: 0; padding-top: 6px; }
  .track-step.is-now { font-size: 12px; white-space: nowrap; overflow: visible; }
  .lines, .lines tbody, .lines tr { display: block; }
  .lines tr { display: grid; grid-template-columns: auto 1fr auto; gap: 0 8px; padding: 8px 16px; }
  .lines td, .lines td:first-child { padding: 0; width: auto; }
  .lines td:nth-child(2) { grid-column: 1 / 3; grid-row: 1; }
  .lines .l-kind { grid-column: 1; grid-row: 2; }
  .lines .l-qty { grid-column: 2; grid-row: 2; text-align: left; width: auto; font-size: 12px; }
  .lines .l-qty:not(:empty)::before { content: "· "; }
  .lines .l-unit { display: none; }
  .lines .l-amt { grid-column: 3; grid-row: 1; width: auto; }
  .svc-head, .est-top, .est-add, .est-sum { padding-left: 16px; padding-right: 16px; }
  .hist li { grid-template-columns: 1fr; gap: 2px; }
  .insp-row { grid-template-columns: 1fr auto; } .insp-by { grid-column: 1 / -1; text-align: left; }
}

/* older full-width bars mounted beside #main follow the same content column */
body.shop-on #visit-bar, body.shop-on #rehearse-banner { margin: 20px 0 0 236px; max-width: none; padding: 0 44px; }
body.shop-on #visit-bar > *, body.shop-on #rehearse-banner > * { max-width: 1180px; }
body.shop-on .visit-bar { border: 0; box-shadow: 0 0 0 .5px var(--hair); border-radius: var(--r-l); }
body.shop-on .demo-banner { display: none; }
@media (max-width: 860px) { body.shop-on #visit-bar, body.shop-on #rehearse-banner { margin-left: 0; padding: 0 16px; } }

/* assistant panel (job-assist.js, request 247): ranked suggestions, one action + Dismiss each, tools behind "More tools" */
.sugg-list { list-style: none; margin: 0; padding: 0; }
.sugg { padding: 10px 0 10px 12px; border-top: 1px solid var(--hair); position: relative; }
.sugg:first-child { border-top: 0; padding-top: 2px; }
.sugg::before { content: ''; position: absolute; left: 0; top: 16px; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); }
.sugg:first-child::before { top: 8px; }
.sugg.lv-safety::before, .sugg.lv-urgent::before { background: var(--red); }
.sugg.lv-soon::before { background: var(--amber); }
.sugg-top { line-height: 1.3; }
.sugg-tag { display: inline-block; vertical-align: 1px; margin-right: 6px; font-size: 11px; line-height: 16px; font-weight: 600; padding: 0 7px; border-radius: 999px; background: var(--fill); color: var(--ink-2); }
.lv-safety .sugg-tag, .lv-urgent .sugg-tag { background: var(--red-soft); color: var(--red); }
.lv-soon .sugg-tag { background: var(--amber-soft); color: var(--amber); }
.sugg-t { font-size: 14px; font-weight: 600; line-height: 1.3; }
.sugg-d { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; line-height: 1.4; }
.sugg-src { color: var(--ink-3); }
.sugg-acts { display: flex; align-items: center; gap: 4px; margin-top: 8px; flex-wrap: wrap; }
.shop-on .sugg-go { min-height: 30px; padding: 0 12px; font-size: 13px; }
.shop-on .sugg-x { min-height: 30px; font-size: 13px; color: var(--ink-2); }
.sugg-msg:empty { display: none; }
.sugg-msg .notice { margin: 8px 0 0; font-size: 13px; padding: 8px 10px; }
.sugg-none { font-size: 13.5px; padding: 2px 0; }
.sugg-more:empty { display: none; }
.sugg-more { display: flex; gap: 4px; margin: 2px 0 0 4px; }
.shop-on .sugg-more button, .shop-on .assist-more { min-height: 30px; font-size: 13px; padding: 0 8px; }
.assist-note:empty { display: none; }
.assist-note .notice { margin: 0 0 10px; font-size: 13px; padding: 8px 10px; }
.assist-sum:not(:empty) { margin-top: 12px; border-top: 1px solid var(--hair); padding-top: 10px; }
.assist-sum .assist-head { font-size: 13px; margin-bottom: 4px; }
.assist-sum .assist-list { font-size: 12.5px; color: var(--ink-2); margin: 0; }
.assist-foot { margin: 8px 0 0 -4px; }
.assist-tools { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.assist-tools[hidden] { display: none; }
.shop-on .assist-tool { justify-content: flex-start; width: 100%; border-radius: var(--r-s); background: var(--fill); min-height: 34px; font-weight: 500; font-size: 13.5px; }
.assist-fine { font-size: 12px; margin: 4px 0 0; }
.assist-out:not(:empty) { margin-top: 12px; }
.assist-card { border-top: 1px solid var(--hair); padding-top: 12px; }
.assist-head { font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.assist-list { margin: 0 0 8px; padding-left: 18px; font-size: 13.5px; }
.assist-list li { margin-bottom: 4px; }
.assist-next { font-size: 13.5px; margin: 0 0 8px; }
.assist-recs { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.assist-recs li { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; }
.assist-urg { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--fill); }
.assist-urg.u-urgent { background: var(--red-soft); color: var(--red); }
.assist-urg.u-soon { background: var(--amber-soft); color: var(--amber); }
.assist-rec { font-size: 14px; font-weight: 500; }
.assist-why { font-size: 12.5px; color: var(--ink-2); }
.assist-text { width: 100%; font-size: 14px; }
.assist-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.assist-src { font-size: 11.5px; color: var(--ink-3); margin: 8px 0 0; }

/* full-screen overlays appended to #main are not content: they ignore the content column's max-width */
body.shop-on .main > :is(.ja-wrap, .jc-sheet-wrap, .ji-zoom, .je-sheet-wrap, .flash) { max-width: none; }

/* Today: assistant suggestions (today-assist.js) */
.today-insights:empty { display: none; }
.tinsights { background: var(--surface); border-radius: var(--r-l); box-shadow: 0 0 0 .5px var(--hair); padding: 14px 18px; margin: -12px 0 22px; }
.tinsights-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.tinsights-title { font: 600 14px/1.2 var(--font-display); }
.tinsights-src { font-size: 11.5px; color: var(--ink-3); }
.tinsights-list { list-style: none; margin: 0; padding: 0; }
.tinsight { display: grid; grid-template-columns: 10px 1fr auto; gap: 10px; align-items: start; padding: 8px 0; border-top: 1px solid var(--hair); font-size: 14px; }
.tinsight:first-child { border-top: 0; }
.tinsight-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; background: var(--ink-3); }
.t-red .tinsight-dot { background: var(--red); } .t-amber .tinsight-dot { background: var(--amber); } .t-blue .tinsight-dot { background: var(--accent); } .t-green .tinsight-dot { background: var(--green); }
.tinsight-links { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.assist-triage:not(:empty) { margin: -2px 0 10px; }
.assist-tri { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; font-size: 12.5px; color: var(--ink-2); }
.assist-tri .sep { color: var(--ink-3); }
.assist-safe { color: var(--red); font-weight: 600; font-size: 12.5px; }
.assist-tri.is-safety .assist-safe { flex-basis: 100%; }
.assist-flags { font-size: 13px; background: var(--amber-soft); border-radius: var(--r-s); padding: 8px 10px; margin-top: 8px; }
.assist-ok { font-size: 12.5px; color: var(--green); margin: 8px 0 0; }
.assist-card .primary { min-height: 34px; }

/* ---------- Settings menu (Oct 19): the sidebar's Settings link, the Settings home, the "‹ Settings" link ---------- */
.shop-nav-bottom { margin-top: auto; margin-bottom: 8px; }
.shop-nav-bottom + .shop-side-foot { margin-top: 0; }
body.shop-on #settings-crumb { margin: 24px 0 -14px 236px; padding: 0 44px; }
body.shop-on #settings-crumb:empty { display: none; }
body.shop-on #settings-crumb .job-back { margin-bottom: 0; }
@media (max-width: 860px) { body.shop-on #settings-crumb { margin: 16px 0 -8px; padding: 0 16px; } }
body.shop-on .main > .set-page { max-width: 860px; }
.shop-on .set-search { width: 100%; min-height: 40px; padding: 0 14px; font-size: 15px; border-radius: var(--r-m); border: 0; background: var(--fill); margin-bottom: 22px; }
.shop-on .set-search:focus { outline: 2px solid var(--accent); outline-offset: 0; background: var(--surface); }
.set-group { margin-bottom: 22px; }
.shop-on .set-group-title { font: 600 13px/1.3 var(--font); color: var(--ink-2); margin: 0 0 8px 4px; letter-spacing: 0.01em; }
.set-card { background: var(--surface); border-radius: var(--r-l); box-shadow: 0 0 0 .5px var(--hair); overflow: hidden; }
.set-row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; color: var(--ink); min-height: 56px; }
.set-row + .set-row { box-shadow: inset 0 .5px 0 var(--hair); }
.set-row:hover { background: var(--fill); text-decoration: none; }
.set-ic { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--fill); flex: none; }
.set-ic svg { width: 18px; height: 18px; stroke: var(--ink); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.set-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.set-title { font-size: 15px; font-weight: 500; }
.set-blurb { font-size: 13px; color: var(--ink-2); }
.set-hits { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.set-hit { font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--fill); color: var(--ink); }
.set-chev { color: var(--ink-3); font-size: 20px; flex: none; }
.set-none { padding: 24px 4px; color: var(--ink-2); }
.set-none h3 { margin: 0 0 4px; color: var(--ink); }

/* ---------- UI cleanup (Oct 19): the Follow-ups queue (#/section/communications) in the shop design ---------- */
.shop-on .section-communications > h2:first-child { display: none; }   /* the page title already says "Follow-up queue" */
.shop-on .section-communications .com-status { color: var(--ink-2); font-size: 14px; margin: 0 0 4px; }
.shop-on .section-communications .com-next { font-weight: 600; margin: 0 0 16px; }
.shop-on .com-queue { list-style: none; margin: 0 0 18px; padding: 0; background: var(--surface); border-radius: var(--r-l); box-shadow: 0 0 0 .5px var(--hair); overflow: hidden; }
.shop-on .com-queue > .com-item { padding: 12px 16px; border-bottom: 1px solid var(--hair); display: grid; gap: 3px; }
.shop-on .com-queue > .com-item:last-child { border-bottom: 0; }
.shop-on .com-item > strong { font-size: 14.5px; }
.shop-on .com-item .com-next-line { font-size: 14px; }
.shop-on .com-item .com-who { font-size: 13px; color: var(--ink-2); }
.shop-on .com-item .com-links { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13.5px; }
.shop-on .com-item details { font-size: 13px; color: var(--ink-2); }
.shop-on .com-item details p { margin: 4px 0; }
.shop-on .com-item.com-owned_recovery { box-shadow: inset 3px 0 0 var(--red); }
.shop-on .com-item.com-waiting { box-shadow: inset 3px 0 0 var(--amber); }
/* UI cleanup (Oct 19): the job's Schedule tab: appointment, then promise and visit times */
.job-sched { display: grid; gap: 14px; align-content: start; }
.job-sched > * { margin: 0; }
/* UI cleanup (Oct 19): callbacks on the job's History tab; Add a vehicle link on a quote's phone lookup */
.shop-on a.job-cb { color: inherit; text-decoration: none; }
.shop-on a.job-cb:hover > span:first-child { text-decoration: underline; }
.job-cb .is-late { color: var(--red); }
.qt-addveh { display: inline-block; margin-top: 6px; font-size: 13.5px; }
/* UI cleanup (Oct 19): stacked panels in a page's main column get the same gap as the side column */
.job-main > .panel + .panel, .job-main > section.panel + section.panel { margin-top: 14px; }
/* UI cleanup (Oct 19): the Assistant's job summary folds away (it repeats the header and tabs) */
details.assist-brief > summary { cursor: pointer; font-size: 13px; color: var(--accent); font-weight: 500; margin: 4px 0; }
details.assist-brief[open] > summary { margin-bottom: 6px; }
.today-hint { margin: 0; padding: 10px 16px; font-size: 13.5px; color: var(--red); background: var(--red-soft, rgba(215, 0, 21, .06)); border-bottom: 1px solid var(--hair); }
/* UI cleanup (Oct 19): the end of a page (e.g. a settings Save bar) can scroll clear of the floating Ratchet companion */
body.shop-on:has(.rc-root) .main { padding-bottom: 160px; }

/* ---------- Today/Jobs/Quotes consolidation (Oct 22): Today's header controls, goals, Needs me; the global + New ---------- */
.shop-on .pg-actions .td-date { min-height: 32px; border-radius: 9px; padding: 0 10px; font-size: 13px; background: var(--surface); }
.td-h2, .tg-title h2 { font: 600 17px/1.3 var(--font-display); letter-spacing: -0.01em; margin: 0; }
.tg { margin: 0 0 30px; }
.tg-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.tg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.tg-card { background: var(--surface); border-radius: var(--r-m); padding: 14px 16px 12px; box-shadow: 0 0 0 .5px var(--hair); display: flex; flex-direction: column; gap: 6px; }
.tg-head { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.tg-name { font-weight: 600; color: var(--ink); }
.tg-goal { color: var(--ink-2); white-space: nowrap; }
.tg-main { display: flex; align-items: baseline; justify-content: space-between; gap: 2px 8px; flex-wrap: wrap; }
.tg-actual { font: 600 28px/1.1 var(--font-display); letter-spacing: -0.02em; }
.tg-delta { font-size: 13px; font-weight: 600; color: var(--green); white-space: nowrap; }
.tg-delta.is-behind { color: var(--ink-2); }
.tg-bar { height: 6px; border-radius: 3px; background: var(--fill); overflow: hidden; }
.tg-bar span { display: block; height: 100%; border-radius: 3px; background: var(--accent); }
.tg-card.is-reached .tg-bar span { background: var(--green); }
.tg-pct, .tg-open, .tg-pace, .tg-note, .tg-why { margin: 0; font-size: 12.5px; color: var(--ink-2); }
.tg-pace { color: var(--ink); }
.tg-card.is-hidden .tg-why { padding-top: 6px; }
.tg-empty { background: var(--surface); border-radius: var(--r-m); padding: 18px 20px; box-shadow: 0 0 0 .5px var(--hair); }
.tg-empty p { margin: 0 0 8px; }
.tg-fine { font-size: 12.5px; color: var(--ink-2); margin: 8px 0 0; }
.tg-list { list-style: none; margin: 10px 0; padding: 0; }
.tg-list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--hair); }
.tg-li-name { font-weight: 600; }
.tg-li-what { grid-column: 1; color: var(--ink-2); font-size: 13px; }
.tg-li-acts { grid-column: 2; grid-row: 1 / span 2; align-self: center; display: flex; gap: 6px; }
.tg-form { display: grid; gap: 10px; margin: 14px 0; }
.tg-form h3 { margin: 0; font-size: 15px; }
.tg-field { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 10px; font-size: 13.5px; }
.tg-field > span { color: var(--ink-2); }
.tg-extras { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.tg-check { display: inline-flex; gap: 6px; align-items: center; font-size: 13.5px; }
.tg-acts { display: flex; gap: 8px; margin-top: 6px; }
@media (max-width: 860px) {
  .tg-field { grid-template-columns: 1fr; gap: 4px; }
}
.tg-unit { font-size: 14px; font-weight: 500; color: var(--ink-2); letter-spacing: 0; }
/* navigation cleanup A1: Jobs view chips (stage / history kind) and flags on the same job */
.jb-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: -2px 0 12px; }
.jb-chips:empty { display: none; }
.shop-on .jb-chip { min-height: 28px; border-radius: 999px; padding: 0 12px; font-size: 12.5px; font-weight: 500; background: var(--fill); color: var(--ink); border: 0; }
.shop-on .jb-chip[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.shop-on .jb-chip.is-flag { background: var(--amber-soft); }
.shop-on .jb-chip.is-flag[aria-pressed="true"] { background: var(--amber); color: #fff; }
.jb-chip .seg-n { margin-left: 5px; opacity: .7; }
.stage-cell { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.stage.jb-flag { font-size: 11.5px; padding: 2px 8px 2px 7px; }
.stage-cell { min-width: 0; }
.stage.jb-flag { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1240px) {   /* A1: a row with flags keeps the customer's name: the status cell wraps under its own width */
  .job-row { grid-template-columns: minmax(0, 1fr) auto; }
  .job-row > .stage-cell { max-width: 48vw; justify-content: flex-end; }
}
/* navigation cleanup A2: the one global + New (sidebar; a round button bottom-left on a phone) */
.shop-new { padding: 0 6px 14px; position: relative; }
.shop-on .shop-new-btn { width: 100%; min-height: 34px; border-radius: 9px; background: var(--accent); color: #fff; font-weight: 600; font-size: 14px; border: 0; }
.shop-new-pop { position: absolute; z-index: 70; left: 6px; right: 6px; top: 44px; background: var(--surface); border-radius: var(--r-m); box-shadow: 0 8px 28px rgba(0, 0, 0, .18), 0 0 0 .5px var(--hair); padding: 6px; display: grid; }
.shop-new-pop.is-fab { position: fixed; left: 16px; right: auto; top: auto; bottom: calc(132px + env(safe-area-inset-bottom)); width: 240px; }
.shop-on .shop-new-item { display: flex; align-items: center; justify-content: flex-start; text-align: left; background: transparent; border: 0; border-radius: 8px; min-height: 36px; padding: 0 10px; font-size: 14px; color: var(--ink); }
.shop-on .shop-new-item:hover { background: var(--fill); }
.shop-new-sub { font-size: 12px; color: var(--ink-2); padding: 8px 10px 2px; }
.shop-new-fab { display: none; }
/* U21-A (B3): an open call card is full height on a phone: the round "+" never sits over it */
body.shop-on:has(.cd-layer > .cd-card) .shop-new-fab { display: none !important; }
@media (max-width: 860px) {
  .shop-on .shop-new-fab { display: grid; place-items: center; position: fixed; left: 16px; bottom: calc(74px + env(safe-area-inset-bottom)); z-index: 21; width: 52px; height: 52px; border-radius: 26px;
    background: var(--accent); color: #fff; border: 0; font-size: 28px; line-height: 1; box-shadow: 0 6px 18px rgba(0, 0, 0, .22); }
}
/* navigation cleanup A3: Today's projected line and the workload panel */
.tg-proj { margin: 0; font-size: 13px; color: var(--ink); }
.tw { margin: 0 0 30px; }
.tw-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.tw-col { background: var(--surface); border-radius: var(--r-m); padding: 12px 16px; box-shadow: 0 0 0 .5px var(--hair); display: grid; gap: 10px; align-content: start; }
.tw-col h3 { margin: 0; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.tw-row { display: grid; gap: 4px; }
.tw-name { font-weight: 600; font-size: 14px; }
.tw-fig { font-size: 13px; }
.tw-over { color: var(--red); font-weight: 600; }
.tg-bar.is-over span { background: var(--red); }
.td-needs { display: grid; gap: 14px; }
.td-needs .today-strip { margin: 0; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

/* =====================================================================================================================
   Batch 30: the approved look (Clay, Oct 22 late night; coordination/UI_DIRECTION_PLAN.md §A). White workspace, one
   company accent (the saved brand colour, set by shop-branding.js), bold forward-italic titles and major panel headings
   (the system face in a heavy italic: no web font service), everything else upright. Square accent bands head the major
   panels; the short angled underline sits under the page title only. Shared components for both streams:
     .pg-title (page title)   .band-panel > .band (+ .band-title, .band-aside) > .band-body   .tbl (+ .num, .is-accent)
     .pill (+ .is-ok .is-info .is-warn .is-bad .is-plan .is-muted; .stage keeps working)   buttons (button / .btn / .primary)
   ===================================================================================================================== */
:root, :root[data-look], :root[data-look][data-type] {
  --canvas: #ffffff; --surface: #ffffff; --surface-2: #f6f8f9; --side: #f4f6f8;
  --ink: #15191d; --ink-2: #5d656d; --ink-3: #8a9198;
  --hair: rgba(16, 24, 32, 0.1); --hair-strong: rgba(16, 24, 32, 0.18);
  --fill: #eef1f3; --fill-hover: #e4e8eb;
  --r-s: 6px; --r-m: 6px; --r-l: 6px;
  /* the title face: a heavy forward italic, the same whatever body font the company picked (Brand › Font) */
  --font-title: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --plan: #7b4fd1; --plan-soft: rgba(123, 79, 209, 0.12);
}
body, body.focus-app { background: var(--canvas); }

/* ----- the page title: heavy italic, upper case, with the short angled accent underline ----- */
.pg-title, .focus-app .pg-title { font: italic 900 38px/1.02 var(--font-title); text-transform: uppercase; letter-spacing: -0.012em;
  position: relative; display: inline-block; padding: 0 0 12px; margin: 0 0 2px; color: var(--ink); }
.pg-title::after { content: ""; position: absolute; left: 2px; bottom: 0; width: 58px; height: 6px; background: var(--accent); transform: skewX(-24deg); transform-origin: left bottom; }
.pg-kicker { font-size: 14px; color: var(--ink); margin: 0 0 2px; }
.pg-head { align-items: flex-end; margin-bottom: 18px; }
@media (max-width: 860px) { .pg-title, .focus-app .pg-title { font-size: 30px; } }

/* ----- the major panel and its accent band ----- */
.band-panel { background: var(--surface); border: 1px solid var(--hair); border-radius: 4px; overflow: hidden; min-width: 0; }
.band { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--accent); color: var(--accent-ink, #fff);
  padding: 9px 18px; min-height: 46px; box-sizing: border-box; }
.band-title, .band h2, .band h3, .focus-app .band h2 { margin: 0; color: inherit; font: italic 900 23px/1.08 var(--font-title); text-transform: uppercase; letter-spacing: -0.006em; }
.band-title .band-n, .band h2 .band-n { font: 600 17px/1 var(--font); font-style: normal; margin-left: 10px; opacity: .92; text-transform: none; }
.band-aside { font-size: 13px; color: inherit; opacity: .95; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.band a, .band-aside a { color: inherit; }
/* Oct 23 (Inbox › Journey): a section's fine print moved into the band keeps the band's text colour. shop-pages.css loads
   later and its plain .cp-fine (dark grey) won, so "Every touch, newest first" was dark on the accent. */
.band > .band-aside, .band > .cp-fine { color: inherit; margin: 0; opacity: 1; }   /* full --accent-ink: the accent is kept at AA for white text */
.band button.quiet, .band .btn.quiet { color: inherit; background: rgba(255, 255, 255, 0.14); }
.band button.quiet:hover, .band .btn.quiet:hover { background: rgba(255, 255, 255, 0.24); }
.band-body { padding: 14px 18px; }
.band-body.is-flush { padding: 0; }
.band-fine { font-size: 12.5px; color: var(--ink-2); padding: 8px 18px 12px; margin: 0; }
.section-label, .focus-app h2.section-label, .focus-app h3.section-label {   /* batch 32: above the base ".focus-app h2" (19px upright), which won before */
   font: italic 900 17px/1.2 var(--font-title); text-transform: uppercase; letter-spacing: .01em; color: var(--ink); margin: 22px 0 8px; }
@media (max-width: 860px) { .band-title, .band h2, .band h3, .focus-app .band h2, .focus-app .band h3, .focus-app .band-title { font-size: 19px; } .band { padding: 8px 14px; min-height: 40px; } .band-body { padding: 12px 14px; } }   /* batch 32: .focus-app too (the base rule's ".focus-app .band h2" kept 23px on a phone) */

/* ----- the compact table ----- */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font: 500 11.5px/1.2 var(--font); text-transform: uppercase; letter-spacing: .03em; color: var(--ink-2); background: var(--surface-2);
  padding: 10px 14px; border-bottom: 1px solid var(--hair); }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--hair); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .t-strong { font-weight: 600; }
.tbl .t-sub { display: block; font-size: 13px; color: var(--ink-2); }
.tbl.is-accent th { background: var(--accent); color: var(--accent-ink, #fff); text-transform: none; font-size: 14px; font-weight: 600; letter-spacing: 0; }
.tbl-bar { display: flex; align-items: center; gap: 8px; min-width: 84px; }
.tbl-bar > .tg-bar { flex: 1; margin: 0; }
.tbl-bar > span:last-child { min-width: 34px; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); font-size: 13px; }

/* ----- pills (status with a dot); .stage is the same pill ----- */
.pill, .stage { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; padding: 3px 10px 3px 9px; border-radius: 999px;
  background: var(--fill); color: var(--ink); white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); flex: none; }
.pill.is-ok, .stage.s-inshop, .stage.s-done { background: var(--green-soft); }
.pill.is-ok::before, .stage.s-inshop::before, .stage.s-done::before { background: var(--green); }
.pill.is-info { background: var(--accent-soft); } .pill.is-info::before { background: var(--accent); }
.pill.is-warn, .stage.s-attention { background: var(--amber-soft); } .pill.is-warn::before, .stage.s-attention::before { background: #e08a00; }
.pill.is-bad { background: var(--red-soft); } .pill.is-bad::before { background: var(--red); }
.pill.is-plan, .stage.s-scheduled { background: var(--plan-soft); } .pill.is-plan::before, .stage.s-scheduled::before { background: var(--plan); }

/* ----- buttons: comfortable, square-ended; the primary is the solid accent ----- */
button, .btn, a.btn, .focus-app button { border-radius: var(--r-s); min-height: 36px; font-weight: 500; }
button.primary, a.btn.primary-link, .btn.primary, .focus-app button.primary { font-weight: 600; }
.shop-on .seg { border-radius: var(--r-s); background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair-strong); padding: 0; gap: 0; overflow: hidden; }
.shop-on .seg button, .seg.jb-view a { border-radius: 0; min-height: 34px; padding: 0 16px; }
.shop-on .seg button[aria-pressed="true"], .seg.jb-view a[aria-current="page"] { background: var(--accent); color: var(--accent-ink, #fff); box-shadow: none; font-weight: 600; }
.shop-on .seg button[aria-pressed="true"] .seg-n, .seg.jb-view a[aria-current="page"] .seg-n { color: inherit; opacity: .9; }
input[type="search"], .today-search, .cp-search { border-radius: var(--r-s); }

/* ----- shell: logo alone at the top, the store under it, + New, then the daily list; the selected item is a solid button ----- */
.shop-side { background: var(--side); -webkit-backdrop-filter: none; backdrop-filter: none; padding: 16px 12px 12px; }
.shop-brand { flex-direction: column; align-items: stretch; gap: 10px; padding: 0 2px 14px; }
.shop-brand-mark, :root[data-brand-side] .shop-brand-mark { width: 54px; height: 54px; border-radius: 10px; align-self: center; font: italic 900 24px/1 var(--font-title);
  background: var(--accent); color: var(--accent-ink, #fff); }
.shop-brand-mark.has-logo { background: transparent; }
.shop-brand > div { display: contents; }
.shop-brand-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }   /* the logo speaks; the name stays for screen readers */
.shop-brand-store { display: block; border: 1px solid var(--hair-strong); border-radius: var(--r-s); background: var(--surface); padding: 8px 12px; font-size: 14px; color: var(--ink); }
.shop-new { padding: 0 2px 14px; }
.shop-on .shop-new-btn { min-height: 40px; border-radius: var(--r-s); font-size: 15px; }
.shop-nav-item { padding: 9px 12px; border-radius: var(--r-s); font-size: 15px; font-weight: 450; gap: 12px; }
.shop-nav-item svg { width: 20px; height: 20px; }
.shop-nav-item[aria-current="page"], :root[data-brand-side="dark"] .shop-side .shop-nav-item[aria-current="page"] { background: var(--accent); color: var(--accent-ink, #fff); font-weight: 600; box-shadow: none; border: 0; }
.shop-nav-item[aria-current="page"] svg { opacity: 1; }
.shop-nav-label { font-size: 13px; font-weight: 500; color: var(--ink-2); padding: 10px 12px 4px; }
body.shop-on .main > * { max-width: 1320px; }
.job-back { color: var(--accent); font-size: 14px; }

/* ----- Today: Daily Sales Overview and the Category Scoreboard on top, Technicians and Bays below ----- */
.td-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 18px; margin-bottom: 8px; align-items: start; }
.td-grid.is-work { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 1100px) { .td-grid, .td-grid.is-work { grid-template-columns: minmax(0, 1fr); } }
.td-sales .band-body { display: grid; gap: 10px; }
.td-big { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.td-big-n { font: italic 900 46px/1 var(--font-title); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.td-big-l { font-size: 14px; color: var(--ink); margin-bottom: 2px; }
.td-goal-t { font-size: 14px; color: var(--accent); white-space: nowrap; }
.td-sales .tg-bar { height: 12px; border-radius: 3px; }
.td-legend { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.td-legend .td-gap { font-style: italic; font-weight: 800; text-align: right; }
.td-legend .td-gap small { display: block; font-style: normal; font-weight: 400; font-size: 13px; color: var(--ink-2); }
.td-note { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--accent-soft); border: 1px solid var(--hair); border-radius: var(--r-s);
  padding: 10px 14px; font-size: 14px; }
.td-note a { font-style: italic; font-weight: 700; white-space: nowrap; }
.td-score td:first-child { font-weight: 500; }
.td-hidden { color: var(--ink-2); font-size: 13px; }
.td-work .tbl td:first-child { font-weight: 500; }
.td-work .t-sub { font-weight: 400; }

/* ----- the repair order page: the title, Next and the column zones in bands ----- */
.job-title { margin-top: 2px; }
.job-head { border-radius: 4px; box-shadow: none; border: 1px solid var(--hair); }
.job-tab[aria-current="page"] { border-bottom-color: var(--accent); border-bottom-width: 3px; font-weight: 600; }
.track { margin: 10px 0 4px; }
.track-step { padding-top: 22px; text-align: center; }
.track-step::before { top: 6px; height: 3px; left: 0; right: 0; border-radius: 0; }
.track-step::after { content: ""; position: absolute; top: 1px; left: 50%; width: 13px; height: 13px; margin-left: -6.5px; border-radius: 50%; background: #c9cfd4; box-shadow: 0 0 0 3px var(--surface); }
.track-step.is-done::before { background: var(--accent); } .track-step.is-done::after { background: var(--accent); }
.track-step.is-now::before { background: linear-gradient(90deg, var(--accent) 50%, #dfe3e6 50%); }
.track-step.is-now::after { background: var(--accent); width: 17px; height: 17px; margin-left: -8.5px; top: -1px; }
.job-aside .next { padding: 0; border: 1px solid var(--hair); border-radius: 4px; box-shadow: none; overflow: hidden; }
.job-aside .next-l { background: var(--accent); color: var(--accent-ink, #fff); font: italic 900 21px/1 var(--font-title); text-transform: uppercase; padding: 12px 16px; margin: 0; }
.job-aside .next-t { padding: 12px 16px 10px; margin: 0; font: 600 16px/1.3 var(--font); }
.job-aside .next > .btn, .job-aside .next > button, .job-aside .next > a.btn { margin: 0 16px 14px; width: calc(100% - 32px); }
.job-aside .next-l + .btn, .job-aside .next-l + button { margin-top: 12px; }
.job-aside .rail-zone { border: 1px solid var(--hair); border-radius: 4px; box-shadow: none; padding: 0; overflow: hidden; }
.job-aside .rail-h { background: var(--accent); color: var(--accent-ink, #fff); font: italic 900 21px/1 var(--font-title); text-transform: uppercase; padding: 12px 16px; }
.job-aside .rail-more > summary { font: 600 16px/1.2 var(--font); color: var(--ink); padding: 14px 16px; display: flex; justify-content: space-between; }
.job-aside .rail-more > summary::after { content: "›"; font-size: 20px; line-height: .8; }
.job-aside .rail-more[open] > summary::after { content: "⌄"; }

/* ----- Jobs, Customers, Quotes: one compact table in a panel ----- */
.jobs { border: 1px solid var(--hair); border-radius: 4px; box-shadow: none; }
.jobs-head { background: var(--accent); color: var(--accent-ink, #fff); font-size: 14px; font-weight: 600; min-height: 42px; border-bottom: 0; }
.job-cv { display: flex; flex-direction: column; min-width: 0; }
.job-cv .job-veh { font-size: 13.5px; color: var(--ink-2); }
.job-row { min-height: 58px; }
.job-row:nth-child(even) { background: var(--surface-2); }
.jb-chips .jb-chip, .shop-on .jb-chips .jb-chip { border-radius: 999px; }
@media (min-width: 1241px) { .jobs-head, .job-row { grid-template-columns: 58px minmax(0, 1.25fr) minmax(0, 1.15fr) minmax(0, 1.3fr) minmax(0, 1.15fr) 128px 96px; } }
.jobs-head .job-amt, .jobs-head > span:last-child { text-align: right; }
@media (max-width: 1240px) {
  .job-row { grid-template-areas: "cust stage" "svc amt" "asg when"; }
  .job-row > .job-cv { grid-area: cust; }
}
.job-crumb { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 6px; }
.job-crumb .job-back { margin: 0; }
.job-crumb-here::before { content: "›"; color: var(--ink-3); margin-right: 8px; }
.job-crumb-here { color: var(--ink); }
.job-title { display: inline-block; margin-bottom: 14px; }
.td-needs { margin-top: 8px; }
.today-strip { gap: 10px; }
.shop-on .today-stat { border-radius: 4px; box-shadow: none; border: 1px solid var(--hair); }
/* the company's dark sidebar (Brand › Sidebar style, an Appearance setting) keeps working with the new shell */
:root[data-brand-side="dark"] .shop-brand-store { background: transparent; border-color: rgba(255, 255, 255, 0.22); color: var(--side-ink, #fff); }
.td-score-t th, .td-score-t td { padding: 10px 12px; }
.td-score-t td:first-child { min-width: 110px; }
.td-score-t .tbl-bar { min-width: 76px; }
.td-score-t .t-sub { font-size: 12px; }
@media (max-width: 860px) {
  .shop-on .seg button, .seg.jb-view a { padding: 0 10px; }
  .shop-on .seg { max-width: 100%; }
  .td-score-t .tbl-bar > .tg-bar { display: none; }   /* the phone keeps the percent, not the bar */
  .td-score-t .tbl-bar { min-width: 0; }
  .td-score-t th, .td-score-t td { padding: 9px 8px; }
  .td-score-t td:first-child { min-width: 0; }
  .td-work .tbl th, .td-work .tbl td { padding: 9px 10px; }
}
.td-pct-m { display: none; }
@media (max-width: 560px) {
  .td-score-t th:nth-child(4), .td-score-t td:nth-child(4) { display: none; }   /* Progress: the percent moves under Actual */
  .td-pct-m { display: block; }
  .td-score-t th { font-size: 10px; letter-spacing: 0; }
  .td-score-t { font-size: 13px; }
  .td-score-t th, .td-score-t td { padding: 8px 6px; }
  .td-score-t th:first-child, .td-score-t td:first-child { padding-left: 12px; }
  .td-score-t th:last-child, .td-score-t td:last-child { padding-right: 12px; }
  .td-score-t .t-sub { font-size: 11.5px; }
}

/* ===== Batch 30, widened (Clay, Oct 22 late night; coordination/UI_COVERAGE.md "Shared layer"): every page and state ===== */
/* Panels and cards everywhere: square, hairline, no shadow; the first heading in the title face. The full accent band is for
   the major panels marked .band-panel / .band (Today, lists, the repair order column); a page opts in by using that markup. */
body.shop-on :is(.panel, .card) { border-radius: 4px; box-shadow: none; border: 1px solid var(--hair); }
body.shop-on :is(.panel, .card) > h2:first-child { font: italic 900 18px/1.15 var(--font-title); text-transform: uppercase; letter-spacing: 0; color: var(--ink); }
body.shop-on .job-aside .rail-full :is(.panel, .card), body.shop-on .job-edit :is(.panel, .card) { border: 0; }
body.shop-on .job-aside .rail-full :is(.panel, .card) > h2:first-child { font: 600 15px/1.3 var(--font); text-transform: none; }

/* Form fields: one height, one border, the accent focus ring */
body.shop-on :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea) { border-radius: var(--r-s); border: 1px solid var(--hair-strong); background: var(--surface); }
body.shop-on :is(input, select, textarea):focus-visible { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
body.shop-on :is(input, select, textarea)[aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
body.shop-on label { font-size: 13px; font-weight: 500; color: var(--ink-2); }
body.shop-on fieldset { border: 1px solid var(--hair); border-radius: var(--r-s); }
body.shop-on legend { font-weight: 600; color: var(--ink); padding: 0 4px; }
:focus-visible { outline-color: var(--accent); }
body.shop-on :is(a, button, summary, [tabindex]):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; box-shadow: none; }

/* Dialogs and sheets: square corners, the title in the title face, actions at the foot */
body.shop-on :is([role="dialog"], .inv-sheet, .sch-sheet, .je-sheet, .ji-sheet, .jc-sheet, .ja-sheet, .rp-sheet) { border-radius: 6px; }
body.shop-on :is([role="dialog"], .inv-sheet, .sch-sheet, .je-sheet, .ji-sheet, .jc-sheet, .ja-sheet, .rp-sheet) :is(h2, h3):first-of-type { font: italic 900 20px/1.15 var(--font-title); text-transform: uppercase; letter-spacing: 0; color: var(--ink); }
body.shop-on .asg-pop :is(h2, h3):first-of-type, body.shop-on .shop-new-pop :is(h2, h3) { font: 600 15px/1.3 var(--font); text-transform: none; }

/* Tabs: the chosen tab is underlined in the accent; all tab strips scroll sideways on a phone instead of widening the page */
body.shop-on :is(.job-tabs, .f-tabs, .visit-tabs, .tpk-tabs, .rc-tabs, .pc-tabs, .mk-tabs, .pp-tabs, .inv-tabs, [role="tablist"]) { overflow-x: auto; scrollbar-width: none; max-width: 100%; }
body.shop-on :is(.job-tabs, .f-tabs, .visit-tabs, .tpk-tabs, .rc-tabs, .pc-tabs, .mk-tabs, .pp-tabs, .inv-tabs) a[aria-current="page"],
body.shop-on [role="tablist"] [aria-selected="true"] { color: var(--ink); border-bottom: 3px solid var(--accent); font-weight: 600; }

/* Empty, loading and error: said plainly, in the page's own frame */
body.shop-on .empty { border-radius: 4px; box-shadow: none; border: 1px solid var(--hair); padding: 36px 24px; }
body.shop-on .empty h3 { font: italic 900 19px/1.2 var(--font-title); text-transform: uppercase; letter-spacing: 0; }
body.shop-on .jobs-empty { color: var(--ink-2); }
body.shop-on .notice { border-radius: var(--r-s); border: 1px solid var(--hair); }
body.shop-on .notice.bad { border-color: color-mix(in srgb, var(--red) 35%, transparent); }
body.shop-on .notice.warn { border-color: color-mix(in srgb, var(--amber) 30%, transparent); }
body.shop-on .notice.ok { border-color: color-mix(in srgb, var(--green) 30%, transparent); }
body.shop-on .skeleton { border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none !important; } .rail-chev, .track-step, .sch-appt { transition: none !important; } }

/* Settings home and the phone's More: groups under a heavy italic label, square cards */
.set-group-title { font: italic 900 16px/1.2 var(--font-title); text-transform: uppercase; letter-spacing: .01em; color: var(--ink); margin: 0 0 8px; }
.set-card { border-radius: 4px; box-shadow: none; border: 1px solid var(--hair); }
.set-row + .set-row { box-shadow: none; border-top: 1px solid var(--hair); }
.set-ic { background: var(--accent-soft); border-radius: 6px; }
.set-ic svg { stroke: var(--accent); }
.set-search { border-radius: var(--r-s); min-height: 44px; }

/* Phone: the bottom bar's chosen tab is a solid accent chip; + New is the accent */
@media (max-width: 860px) {
  .shop-tabbar { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .shop-tab[aria-current="page"] { color: var(--accent); font-weight: 600; }
  .shop-tab[aria-current="page"] svg { background: var(--accent); color: var(--accent-ink, #fff); stroke: var(--accent-ink, #fff); border-radius: 8px; padding: 2px 12px; box-sizing: content-box; }
  .shop-on .shop-new-fab { background: var(--accent); color: var(--accent-ink, #fff); border-radius: 14px; }
  .brand-bar { background: var(--surface); border-bottom: 1px solid var(--hair); }
}

/* batch 30: html carries the workspace surface too (a short page on a dark-mode device showed black below its content) */
html, body, body.focus-app { background: var(--canvas); color-scheme: light; }

/* Batch 31: the store selector under the logo (several stores), or the one store labelled as theirs, or "No store" */
body.shop-on .shop-side select.shop-store-sel { width: 100%; min-height: 40px; font-size: 14px; color: var(--ink); background: var(--surface); border: 1px solid var(--hair-strong); border-radius: var(--r-s); padding: 6px 30px 6px 12px; }
.shop-brand-store::before { content: "Your store"; display: block; font-size: 11px; font-weight: 500; color: var(--ink-2); margin-bottom: 1px; }
.shop-brand-store.is-none::before { content: none; }
.shop-brand-store.is-none { color: var(--ink-2); }
:root[data-brand-side="dark"] body.shop-on .shop-side select.shop-store-sel { background: transparent; color: var(--side-ink, #f5f5f7); border-color: rgba(255, 255, 255, 0.22); }   /* outranks the shared field rule */
:root[data-brand-side="dark"] body.shop-on .shop-side select.shop-store-sel option { color: #15191d; }
:root[data-brand-side="dark"] .shop-brand-store::before { color: var(--side-ink-2, rgba(245, 245, 247, 0.62)); }
/* batch 31: on a phone the page's end clears the bottom bar and the + New button (the companion no longer reserves a corner) */
@media (max-width: 860px) { body.shop-on .main, body.shop-on.focus-app .main { padding-bottom: calc(150px + env(safe-area-inset-bottom)); } }

/* ---------- Batch 31: the store on a phone (the sidebar is hidden there) ----------
   A slim row above the page: the current store on the left, the companion docked on the right. Several stores: the store
   opens a bottom sheet listing exactly the person's stores. */
.shop-mtop { display: none; }
@media (max-width: 860px) {
  body.shop-on .shop-mtop { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 8px 16px 0; }
  body.shop-on .shop-mtop + .main, body.shop-on.focus-app .shop-mtop + .main { padding-top: 8px; }
  body.shop-on .brand-bar + .shop-mtop { padding-top: 2px; }
}
.shop-mstore { min-width: 0; flex: 1 1 auto; }
.shop-mstore-one, body.shop-on .shop-mtop button.shop-mstore-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-width: 0; max-width: 100%; }
body.shop-on .shop-mtop button.shop-mstore-btn { min-height: 44px; padding: 2px 0; margin: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.shop-mstore-k { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.shop-mstore-name { display: flex; align-items: center; gap: 6px; max-width: 100%; font-size: 15px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shop-mstore-one.is-none .shop-mstore-name { color: var(--ink-2); font-weight: 500; }
.shop-mstore-chev { color: var(--accent); font-size: 12px; }
.shop-store-scrim { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, .32); }
.shop-store-sheet { width: min(520px, 100%); max-height: 80vh; display: flex; flex-direction: column; background: var(--surface); border-radius: 6px 6px 0 0; padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -8px 30px rgba(0, 0, 0, .18); }
.shop-store-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 8px; }
.shop-store-sheet-head h2 { margin: 0; }
.shop-store-opts { overflow-y: auto; padding: 0 16px 16px; }
body.shop-on .shop-store-sheet button.shop-store-opt { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 4px; margin: 0;
  background: transparent; border: 0; border-bottom: 1px solid var(--hair); border-radius: 0; box-shadow: none; color: var(--ink); font-size: 16px; font-weight: 500; text-align: left; }
body.shop-on .shop-store-sheet button.shop-store-opt[aria-current="true"] { color: var(--accent); font-weight: 700; }

/* Batch 32 (audit; integrator): exactly two band levels. Page-major bands are 23px; the repair order's side column (Next
   step, Needs attention, At a glance) is the one smaller level, 21px, on the same 46px band with 18px sides so the bands
   line up across the page (19px / 40px / 14px on a phone, like every band there). */
.job-aside .next-l, .job-aside .rail-h { font: italic 900 21px/1.08 var(--font-title); padding: 9px 18px; min-height: 46px; box-sizing: border-box; display: flex; align-items: center; }
@media (max-width: 860px) { .job-aside .next-l, .job-aside .rail-h { font-size: 19px; padding: 8px 14px; min-height: 40px; } }

/* Batch 32 (audit, 375): on a phone every control in the page is at least 44px tall (Apple's minimum touch target):
   segmented buttons, filter chips, fields, selects and buttons were 21–34px. Desktop is unchanged. */
@media (max-width: 860px) {
  body.shop-on .main :is(.seg, .jb-seg) :is(button, a),
  body.shop-on .main :is(select, input[type="date"], input[type="time"], input[type="text"], input[type="search"], input[type="tel"], input[type="email"], input[type="number"], input:not([type])),
  body.shop-on .main :is(button.quiet, button.primary, button.btn, a.btn) { min-height: 44px; }
  body.shop-on .main button.quiet { display: inline-flex; align-items: center; justify-content: center; }
  /* filter chips stay compact (36px) so a long filter strip doesn't push the list down; an invisible 4px above and below
     makes each one a 44px target */
  body.shop-on .main .jb-chip { min-height: 36px; display: inline-flex; align-items: center; position: relative; }
  body.shop-on .main .jb-chip::after { content: ""; position: absolute; inset: -4px 0; }
}

/* Batch 32 (integrator's audit): ".banded" on a panel, card or section turns its first heading into the shared accent band,
   flush with the top and full width, so a page divided into major sections bands each one without rebuilding its markup.
   The same band as .band-panel: 23px heavy italic, white on the accent, 46px, 18px sides (19px / 40px / 14px on a phone). */
body.shop-on .banded.banded { padding: 0 18px 16px; overflow: hidden; border: 1px solid var(--hair); border-radius: 4px; background: var(--surface); box-shadow: none; }
body.shop-on .banded.banded > :is(h2, h3):first-child { display: flex; align-items: center; gap: 10px; min-height: 46px; box-sizing: border-box; margin: 0 -18px 14px; padding: 9px 18px;
  background: var(--accent); color: var(--accent-ink, #fff); font: italic 900 23px/1.08 var(--font-title); text-transform: uppercase; letter-spacing: -0.006em; }
body.shop-on .banded.banded > :is(h2, h3):first-child :is(span, small, a:not(.btn)) { color: inherit; }
@media (max-width: 860px) {
  body.shop-on .banded.banded { padding: 0 14px 14px; }
  body.shop-on .banded.banded > :is(h2, h3):first-child { margin: 0 -14px 12px; padding: 8px 14px; min-height: 40px; font-size: 19px; }
}

/* Batch 32 audit (2): at 375 the Today scoreboard table was 344px in a 341px panel ("PROJECTED"); on a narrow phone the
   header type and the cell padding tighten so the table fits its panel. */
@media (max-width: 420px) {
  .td-score-t th { font-size: 10.5px; letter-spacing: .02em; padding: 8px 5px; }
  .td-score-t td { padding: 8px 5px; }
  .td-score-t th:first-child, .td-score-t td:first-child { padding-left: 10px; }
  .td-score-t th:last-child, .td-score-t td:last-child { padding-right: 10px; }
}

/* Enterprise store picker stays bounded; hierarchy distinguishes similarly named locations. */
body.shop-on .shop-store-sheet .shop-store-search { margin: 8px 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.shop-store-search input { flex: 1; min-width: 0; }
.shop-store-path { display: block; font-size: 12px; font-weight: 400; color: var(--muted); overflow-wrap: anywhere; }
body.shop-on .shop-store-sheet button.shop-store-all { margin: 0 16px 8px; width: calc(100% - 32px); }
body.shop-on .shop-store-sheet .shop-store-opt { text-align: left; }

/* U23: one compact customer header and primary action; the saved status is plain text. */
.job-head { padding: 16px 20px 0; }
.job-head-top { gap: 14px; flex-wrap: nowrap; }
.job-head-top .job-who { flex: 1 1 0; }
.job-head .job-name h1 { font-size: 24px; line-height: 1.2; }
.job-assignment { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.job-assignment .asg-pop { left: 0; right: auto; }
.job-header-action { flex: 0 1 310px; min-width: 180px; text-align: right; }
.job-header-action .job-status { margin: 0 0 10px; font: 600 17px/1.3 var(--font); color: var(--ink); }
.job-header-action .next { background: none; border: 0; box-shadow: none; padding: 0; }
.job-header-action .next-t { margin: 8px 0 0; font: 400 13px/1.4 var(--font); color: var(--ink-2); letter-spacing: normal; }
.job-header-action .next > :is(a, button) { max-width: 100%; white-space: normal; min-height: 36px; }
.job-head .job-facts { margin-top: 12px; padding: 10px 0; gap: 18px; }
@media (max-width: 640px) {
  .job-head { padding: 14px 12px 0; }
  .job-head-top { flex-wrap: wrap; }
  .job-head-top .job-who { flex-basis: 100%; }
  .job-header-action { flex: 1 1 100%; min-width: 0; text-align: left; }
  .job-header-action .job-status { margin-bottom: 8px; }
  .job-header-action .next > :is(a, button) { width: 100%; }
  .job-head .job-facts { gap: 10px; }
}
/* Desktop-only compact navigation. Phone navigation remains unchanged. */
.shop-collapse { align-self: flex-end; min-width: 36px; min-height: 36px; margin-bottom: 6px; font-size: 23px; }
.shop-store-short { display: none; }
@media (min-width: 861px) {
  body.shop-on.shop-collapsed .shop-side { width: 72px; padding: 12px 8px; box-sizing: border-box; }
  body.shop-on.shop-collapsed .main, body.shop-on.shop-collapsed.focus-app .main { margin-left: 72px; }
  body.shop-on.shop-collapsed :is(#settings-crumb, #visit-bar, #rehearse-banner) { margin-left: 72px; }
  .shop-collapsed .shop-collapse { align-self: center; }
  .shop-collapsed .shop-brand, .shop-collapsed .shop-nav-label { display: none; }
  .shop-collapsed .shop-store-short { display: inline-flex; font-size: 11px; padding: 0 4px; min-height: 36px; }
  .shop-collapsed .shop-nav-group { margin-bottom: 10px; }
  .shop-collapsed .shop-nav-item { justify-content: center; padding: 11px 8px; min-height: 42px; box-sizing: border-box; }
  .shop-collapsed .shop-nav-item > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .shop-collapsed .shop-new { padding: 0; }
  .shop-collapsed .shop-new-btn { font-size: 12px; padding: 0 4px; }
  .shop-collapsed .shop-side-foot { padding: 8px 0; text-align: center; }
  .shop-collapsed .shop-avatar, .shop-collapsed .shop-me-role > span { display: none; }
  .shop-collapsed .shop-me-name { font-size: 0; display: block; }
  .shop-collapsed .shop-me-name::after { content: 'Account'; font-size: 11px; }
  .shop-collapsed .shop-me-role { justify-content: center; }
  .shop-collapsed .shop-side-foot button { font-size: 10px; min-height: 32px; }
}

/* Approved full-width job workspace: retain the app's display type and blue service band. */
.job-body.job-body-full { display: block; }
.job-body-full .job-main { width: 100%; min-width: 0; }
.job-body-full .job-supporting { margin-top: 18px; }
.job-head .job-name h1 { font-family: var(--font-display); font-weight: 700; font-size: 28px; }
.job-schedule-control { color: inherit; text-decoration: none; border-radius: var(--r-s); }
.job-schedule-control:hover .job-fact-v { color: var(--accent); text-decoration: underline; }
.job-tabs .job-specifications { margin-left: auto; align-self: center; min-height: 36px; font-size: 13px; }
.job-head > .rail-attention { margin: 0 0 10px; padding: 8px 12px; border: 1px solid var(--hair); border-radius: var(--r-s); }
.job-head > .rail-attention > .rail-h { font: 600 12px/1.4 var(--font); margin: 0 0 4px; }
.job-head > .rail-attention .rail-line { padding-top: 6px; padding-bottom: 6px; }
.job-supporting > .rail-zone { margin-bottom: 12px; }
.job-body-full .tab-card { margin-top: 16px; }
.job-body-full .est-top { background: var(--accent); color: var(--accent-ink, #fff); }
@media (max-width: 640px) {
  .job-head .job-name h1 { font-size: 25px; }
  .job-tabs { flex-wrap: wrap; }
  .job-tabs .job-specifications { margin-left: 0; }
}

/* U23 visual acceptance: the approved compact overview, with existing controls. */
.job-head-compact { border: 0; padding: 0; background: transparent; }
.job-overview { display: flex; align-items: center; gap: 0; padding: 6px 0 18px; }
.job-overview > * { padding: 0 18px; border-right: 1px solid var(--hair); min-width: 0; }
.job-overview > :first-child { padding-left: 0; flex: 1.25; }
.job-overview > :last-child { border-right: 0; padding-right: 0; }
.job-person h1 { margin: 0 0 6px; font: 700 20px/1.25 var(--font); }
.job-detail-links { display: flex; gap: 12px; align-items: center; font-size: 13px; }
.job-vehicle { flex: 1.25; display: flex; flex-direction: column; gap: 5px; font-size: 14px; }
.job-mileage { color: var(--ink-2); font-size: 13px; }
.job-overview .job-assignment { margin: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.job-overview .job-header-action { display: flex; gap: 16px; align-items: center; flex: 0 0 auto; text-align: left; }
.job-overview .job-status { font-size: 14px; margin: 4px 0 0; white-space: nowrap; }
.job-overview .next > :is(a,button) { white-space: nowrap; }
.job-head-compact .job-tabs { margin-top: 0; }
.job-head-compact .job-specifications { margin-left: 8px; }
.job-context-flags:empty { display: none; }
.job-body-full .est-top { flex-wrap: wrap; gap: 12px; }
.job-body-full .est-top > h2 { margin-right: auto; }
.job-body-full .est-top > button { background: #fff; color: var(--accent); border: 1px solid #fff; }
.job-body-full .est-top .est-rev { display: none; }
.je-rev-tools { margin: 8px 18px; font-size: 12px; }
.je-rev-tools > summary, .je-approval-explanation > summary { cursor: pointer; color: var(--ink-2); }
.je-rev-tools[open] > a { display: inline-block; margin: 8px 12px 0 0; }
.je-approval-explanation { margin: 10px 18px; font-size: 12px; }
.job-body-full .est-group, .job-body-full .je-group { margin-top: 10px; }
@media (max-width: 1200px) {
 .job-overview { flex-wrap: wrap; gap: 16px 0; }
 .job-overview > * { flex: 1 1 140px; }
 .job-overview > :first-child, .job-overview .job-vehicle { flex: 1 1 220px; }
 .job-overview .job-header-action { flex: 1 1 240px; justify-content: space-between; }
}
@media (max-width: 640px) {
 .job-overview > * { padding: 0 12px 0 0; border: 0; }
 .job-overview .job-header-action { flex-basis: 100%; }
 .job-overview .next > :is(a,button) { width: auto; }
 .job-person h1 { font-size: 22px; }
}
/* Supporting actions open on demand; no permanent stack of expanded cards. */
.job-body-full .job-tab-body { display: flex; flex-wrap: wrap; gap: 8px; }
.job-body-full .job-tab-body > :not(.tab-card) { flex: 0 0 100%; min-width: 0; }
.job-body-full .job-tab-body > .tab-card { margin: 6px 0; }
.job-body-full .tab-approval { order: 0; }
.job-tool-dialog { max-width: min(800px, calc(100vw - 32px)); width: 800px; max-height: 85vh; overflow: auto; border: 1px solid var(--hair); border-radius: 10px; padding: 20px; color: var(--ink); background: var(--paper, white); box-shadow: 0 16px 60px #0003; }
.job-tool-dialog::backdrop { background: #15223880; }
.job-tool-dialog .panel { box-shadow: none; }
.job-tool-close { display: block; margin: 16px 0 0 auto; }
.job-supporting .rail-glance { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.job-supporting .rail-glance > .rail-h { display: none; }
.job-supporting .rail-line { font-size: 13px; }
.job-overview { flex-wrap: wrap; row-gap: 14px; }
.job-overview > :first-child { min-width: 180px; }
.job-overview .job-vehicle { min-width: 170px; }
.job-overview .job-fact { flex-shrink: 0; }
.job-overview .job-assignment { flex: 0 1 auto; }
@media (max-width: 640px) { .job-overview > :first-child, .job-overview .job-vehicle { min-width: 0; flex-basis: 100%; } }

/* U23 review: keep the action anchored, and put secondary controls with their subject. */
.job-overview { display: grid; grid-template-columns: minmax(150px,1.2fr) minmax(145px,1.2fr) minmax(100px,.8fr) minmax(185px,1fr); grid-template-areas: 'person vehicle advisor action' 'assignment promise amount action'; gap: 16px 20px; padding: 8px 0 20px; align-items: start; }
.job-overview > * { min-width: 0 !important; padding: 0; border: 0; }
.job-overview .job-person { grid-area: person; }
.job-overview .job-vehicle { grid-area: vehicle; }
.job-overview > .job-fact:nth-child(3) { grid-area: advisor; }
.job-overview .job-assignment { grid-area: assignment; gap: 4px; }
.job-overview .job-schedule-control { grid-area: promise; }
.job-overview > .job-fact:nth-child(6) { grid-area: amount; }
.job-overview .job-header-action { grid-area: action; display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-start; gap: 10px; text-align: right; }
.job-overview .next-t { max-width: 200px; font-size: 12px; }
.job-overview .asg-ctl { align-items: flex-start; max-width: 100%; }
.job-overview .asg-btn { background: transparent; padding: 0; text-align: left; max-width: 100%; }
.job-overview .asg-v { display: flex; flex-wrap: wrap; gap: 3px 6px; }
.job-overview .asg-avatar { display: none; }
.job-overview .asg-bay { flex-basis: 100%; white-space: normal; }
.job-overview .asg-bay::before { content: none; }
.job-overview .asg-pop { left: 0; right: auto; width: 420px; max-height: 65vh; overflow-y: auto; }
.job-overview .asg-pop > .dp-panel { border-top: 1px solid var(--hair); margin-top: 16px; padding: 14px 0 0; box-shadow: none; }
body.shop-on .job-tabs .job-specifications { align-self: stretch; margin: 0; padding: 12px 12px 13px; min-height: 0; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: var(--ink-2); font: 500 14px var(--font); }
body.shop-on .job-tabs .needs-review { background: #fff4d6; color: #765000; border-radius: 5px 5px 0 0; }
body.shop-on .job-tabs .needs-review::after { content: ' •'; }
.job-tool-dialog { position: fixed; inset: 6vh 16px auto; margin: 0 auto; z-index: 40; max-height: 88vh; }
.job-tool-dialog[hidden] { display: none; }
.job-details-dialog > .rail-zone { display: grid; gap: 16px; }
.job-details-dialog .rail-zone > .panel { border-bottom: 1px solid var(--hair); padding: 14px 0; }
.job-body-full .job-supporting { margin-top: 12px; }
.job-detail-links .job-edit-btn { padding: 0; min-height: 0; font-size: 13px; }
@media (min-width: 1650px) {
  .job-overview { grid-template-columns: 1.2fr 1.2fr .7fr 1fr .8fr .65fr 1.1fr; grid-template-areas: 'person vehicle advisor assignment promise amount action'; }
}
@media (max-width: 760px) {
  .job-overview { grid-template-columns: minmax(0,1fr) minmax(0,1fr); grid-template-areas: 'person action' 'vehicle advisor' 'assignment promise' 'amount amount'; gap: 16px; }
  .job-overview .job-header-action { min-width: 0; }
  .job-overview .next > :is(a,button) { white-space: normal; }
  .job-overview .job-status { white-space: normal; }
  .job-overview .asg-pop { position: fixed; top: 12vh; left: 16px; width: calc(100vw - 32px); max-height: 76vh; }
}
body.shop-on .job-overview .asg-btn { padding: 6px 10px; min-height: 36px; line-height: 1.4; }
body.shop-on .job-overview .asg-name + .asg-bay::before { content: none; }

/* Job identity: the values open their own details; labels stay consistent. */
body.shop-on .job-person .job-edit-btn, body.shop-on .job-value-link { padding: 0; min-height: 0; background: transparent; border: 0; box-shadow: none; text-align: left; color: var(--ink); line-height: 1.35; white-space: normal; }
body.shop-on .job-person .job-edit-btn { font-size: 21px; font-weight: 750; }
body.shop-on .job-value-link { font-size: 15px; font-weight: 650; }
body.shop-on .job-person .job-edit-btn:hover, body.shop-on .job-value-link:hover { color: var(--accent); text-decoration: underline; }
.job-person, .job-vehicle { display: flex; flex-direction: column; gap: 5px; }
.job-person h1 { margin: 0; }
.job-vehicle-facts { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); gap: 12px 14px; margin-top: 0; }
.job-vehicle-facts > div, .job-vin { display: flex; flex-direction: column; min-width: 0; gap: 5px; font-size: 13px; }
.job-vin-value { overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
/* Keep related facts together instead of creating a tall second header row. */
.job-overview { grid-template-columns: minmax(140px,1fr) minmax(240px,1.6fr) minmax(125px,.85fr) minmax(110px,.75fr) minmax(165px,1fr); grid-template-areas: 'person vehicle staff timing action'; gap: 16px; }
.job-staff { grid-area: staff; }
.job-timing { grid-area: timing; }
.job-staff, .job-timing { display: flex; flex-direction: column; gap: 16px; }
body.shop-on .job-value-link { justify-content: flex-start; align-self: flex-start; }
body.shop-on .job-person .job-edit-btn { justify-content: flex-start; }
.job-vehicle-history { display: inline-block; margin: 16px 0 0; }
.vs-profile { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.vs-profile .panel-row { padding: 10px 0; gap: 16px; align-items: start; }
.vs-profile .panel-row > :last-child { overflow-wrap: anywhere; }
@media(max-width:1200px) {
  .job-overview { grid-template-columns: minmax(135px,1fr) minmax(220px,1.5fr) minmax(170px,1fr); grid-template-areas: 'person vehicle action' 'staff timing action'; }
}
@media(max-width:700px) {
  .job-overview { grid-template-columns: minmax(0,1fr) minmax(0,1fr); grid-template-areas: 'person action' 'vehicle vehicle' 'staff timing'; }
  .vs-profile { grid-template-columns: 1fr; }
}

body.shop-on .job-vehicle-dialog { display: block; background: white; }
body.shop-on .job-vehicle-dialog[hidden] { display: none; }
.job-vehicle-dialog > .panel { width: 100%; margin: 0; padding: 0; }
.vs-profile .panel-row > :last-child { min-width: 0; flex: 1; text-align: right; }
.vs-profile .vs-from { display: block; margin-top: 3px; }

.vehicle-section-title { margin: 20px 0 6px; padding: 10px 12px; background: var(--accent); color: white; font-size: 15px; }
.vehicle-profile-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 20px; }
body.shop-on .vehicle-profile-footer > * { margin: 0; }
.vehicle-fluids-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.vehicle-fluids-table th, .vehicle-fluids-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--hair); }
.vehicle-profile-fluids .flu-grid { grid-template-columns: 1fr; }

.vehicle-profile-tabs { display: flex; gap: 4px; margin: 12px 0 16px; border-bottom: 1px solid var(--hair); }
body.shop-on .vehicle-profile-tabs button { background: transparent; border: 0; border-radius: 0; border-bottom: 2px solid transparent; padding: 10px 16px; font-size: 14px; color: var(--ink-2); }
body.shop-on .vehicle-profile-tabs button[aria-pressed="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.vehicle-profile [hidden] { display: none !important; }
.vehicle-profile[data-profile-tab="vehicle"] .vs-profile-tires,
.vehicle-profile[data-profile-tab="vehicle"] .vs > :not(:first-child),
.vehicle-profile[data-profile-tab="tires"] .vs-profile-identity { display: none; }
.vehicle-profile .vs-profile .panel-row { border: 0; margin: 0; padding: 12px 0; }
.vehicle-profile-fluids > .vehicle-section-title { display: none; }
.vehicle-profile { min-height: 300px; }

/* Respond to the usable header width, including the open companion panel. */
.job-head-compact { container-type: inline-size; }
@container (max-width: 850px) {
  .job-overview { grid-template-columns: minmax(0,1fr) minmax(0,1.6fr) minmax(0,1fr); grid-template-areas: 'person vehicle action' 'staff timing action'; }
  .job-overview > *, .job-overview .job-fact { min-width: 0; }
}
@container (max-width: 600px) {
  .job-overview { grid-template-columns: minmax(0,1fr) minmax(0,1fr); grid-template-areas: 'person action' 'vehicle vehicle' 'staff timing'; }
}

/* One role workspace editor on desktop and mobile. */
.workspace-controls { display:flex; gap:16px; flex-wrap:wrap; margin:20px 0; align-items:center; }
.workspace-controls select,.workspace-controls input { padding:10px 12px; min-height:44px; }
.workspace-matrix { max-width:1100px; display:grid; grid-template-columns:1fr; gap:20px; }
.workspace-matrix section { border:1px solid #dfe3e8; border-radius:6px; overflow:hidden; }
.workspace-matrix .job-section-title { background:#0862df; color:white; padding:12px 16px; margin:0; font-weight:900; font-style:italic; text-transform:uppercase; }
.workspace-rows { padding:8px 16px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:28px; }
.workspace-row { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:8px 0; border-bottom:1px solid #edf0f4; }
.workspace-row:last-child { border:0; }
.workspace-row select { padding:8px; min-height:44px; min-width:90px; }
@media(max-width:700px) { .workspace-rows { grid-template-columns:1fr; } .workspace-controls>* { width:100%; } }

/* The company mark is the single sidebar toggle in both widths. */
button.shop-brand-toggle { padding:0; border:0; cursor:pointer; flex-shrink:0; }
button.shop-brand-toggle:focus-visible { outline:3px solid var(--accent); outline-offset:3px; }
@media(min-width:861px){
 .shop-collapsed .shop-brand { display:flex; padding:0 0 10px; }
 .shop-collapsed .shop-brand>div { display:none; }
 .shop-collapsed .shop-brand-toggle { width:44px; height:44px; min-width:44px; }
 .shop-collapsed .shop-store-short { display:none; }
}

body.shop-on .shop-side button.shop-brand-toggle { background:var(--accent); color:var(--accent-ink,#fff); font:italic 900 24px/1 var(--font-title); }
body.shop-on .shop-side button.shop-brand-toggle.has-logo { background:transparent; }
/* Repair-order links and the Specifications button share one tab geometry. */
body.shop-on .job-tabs[aria-label="Job"]{align-items:stretch}
body.shop-on .job-tabs[aria-label="Job"]>.job-tab{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;align-self:stretch;height:48px;min-height:48px;margin:0;padding:0 12px;border-bottom-width:3px;font-size:14px;line-height:20px;vertical-align:middle}
