/* Prentis manager dashboard — prototype styles.
 * Colour and type tokens are copied exactly from
 * ~/prentis-admin-platform/src/app/globals.css (":root" Prentis design-system block)
 * and the DM Sans stack from src/app/layout.tsx + globals.css. */

:root {
  --prentis-navy: #0B3755;
  --prentis-nav-bg: #081F2A;
  --prentis-teal: #4ECDC4;
  --prentis-teal-dark: #2BA59E;
  --prentis-teal-light: #E8FAF8;
  --prentis-green: #059669;
  --prentis-green-light: #ECFDF5;
  --prentis-orange: #D97706;        /* the admin token is amber; used here for "attention" */
  --prentis-orange-light: #FFFBEB;
  --prentis-yellow: #EAB308;        /* not an admin token: the out-of-spec marker, a true
                                       yellow that holds against the light track and is
                                       unmistakably not the red at 16px */
  --prentis-red: #DC2626;
  --prentis-red-light: #FEF2F2;
  --prentis-page-bg: #F8F7F4;
  --prentis-card-bg: #FFFFFF;
  --prentis-sub-bg: #FAFBFB;
  --prentis-text-primary: #1A1A1A;
  --prentis-text-secondary: #5C5C5C;
  --prentis-text-muted: #9A9A9A;
  --prentis-meta: #8A8A8A;
  --prentis-border: #E8E6E1;
  --prentis-border-light: #F0EEEA;
  --prentis-nav-text-rest: #4A7A8A;
  --prentis-nav-text-hover: #A8CDD8;
  --prentis-nav-hover-bg: #0E2E3D;
  --sidebar-border: rgba(255, 255, 255, 0.08);
  --radius: 0.75rem;
  --radius-xl: calc(var(--radius) * 1.4);
  --shadow-card: 0 1px 3px rgba(11, 55, 85, 0.06);
  --shadow-card-hover: 0 4px 12px rgba(11, 55, 85, 0.08);
  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --sidebar-w: 288px;
}

* { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--prentis-page-bg); color: var(--prentis-text-primary);
  font-family: var(--font); font-size: 16px; line-height: 1.6; letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.015em; }
h1 { font-size: 1.4rem; font-weight: 600; line-height: 1.3; }
h2 { font-size: 0.875rem; font-weight: 600; line-height: 1.5; }
h3 { font-size: 0.875rem; font-weight: 600; line-height: 1.5; letter-spacing: -0.01em; }
h4 { font-size: 0.875rem; font-weight: 600; line-height: 1.5; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; font-size: 0.875rem; font-weight: 500; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--prentis-teal); outline-offset: 2px; border-radius: 6px; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: rgba(11, 55, 85, 0.18); border-radius: 3px; }

.i { width: 18px; height: 18px; flex: none; display: inline-block; vertical-align: middle; }
.i.sm { width: 14px; height: 14px; }
.i.lg { width: 22px; height: 22px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── shell ───────────────────────────────────────────────────────────── */
.app { display: flex; min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); background: var(--prentis-nav-bg);
  color: var(--prentis-nav-text-hover); display: flex; flex-direction: column; z-index: 40; transition: transform .2s;
}
.side-collapsed .sidebar { transform: translateX(-100%); }
.side-collapsed .main { margin-left: 0; }
.side-collapsed .menu-btn { display: block; }
.brand { display: flex; align-items: center; gap: 10px; padding: 18px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.brand .wordmark { height: 16px; width: auto; display: block; }
/* the sidebar brand: Adam's cream Prentis wordmark, at the demo
 * dashboard's wordmark height (Adam, 2026-10-30) */
.brand .brand-wordmark { height: 16px; width: auto; display: block; }
#side-collapse { background: none; border: 0; padding: 6px; border-radius: 8px; display: grid; place-items: center; color: var(--prentis-nav-text-rest); }
#side-collapse:hover { background: var(--prentis-nav-hover-bg); color: #fff; }
#side-collapse .i { width: 14px; height: 14px; }
.shop-switch { margin: 0; padding: 12px 14px 14px; border-top: 1px solid var(--sidebar-border); position: relative; }
.shop-switch label { display: block; font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--prentis-nav-text-rest); font-weight: 600; margin: 0 8px 6px; }
.shop-switch select {
  width: 100%; appearance: none; -webkit-appearance: none; background: var(--prentis-nav-hover-bg); color: #fff;
  border: 1px solid var(--sidebar-border); border-radius: 10px; padding: 10px 36px 10px 12px; font: inherit; font-size: 0.875rem; font-weight: 500;
}
.shop-switch .i { position: absolute; right: 26px; bottom: 25px; pointer-events: none; color: var(--prentis-nav-text-hover); }
/* the rail's proportions follow the demo dashboard's left rail (Adam,
   2026-10-30): same paddings, 14px/500 nav items, 17px icons */
.nav { padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.nav a {
  display: flex; align-items: center; gap: 11px; padding: 8px 12px; border-radius: 9px; font-size: 0.875rem; font-weight: 500;
  line-height: 1.6; color: rgba(255, 255, 255, 0.92); border-left: 3px solid transparent; transition: background .2s, color .2s;
}
.nav a:hover { background: var(--prentis-nav-hover-bg); color: #fff; }
.nav a.on { background: rgba(78, 205, 196, 0.12); color: var(--prentis-teal); border-left-color: var(--prentis-teal); font-weight: 600; }
.nav a .i { width: 17px; height: 17px; stroke-width: 1.8; }
/* the count on "Jobs in Progress": live jobs in the viewed shop, hidden at
   zero (Adam, 2026-10-30) */
.nav a .nav-badge { margin-left: auto; padding: 1px 8px; border-radius: 999px; font-size: 0.6875rem; font-weight: 600; line-height: 1.5; background: var(--prentis-teal); color: var(--prentis-nav-bg); }
/* the green dot on "Jobs in Progress": shown, with a slow steady pulse, only
   while a job is live (DASHBOARD_NAV_LIVE_DOT_ENABLED); its copy on the menu
   button keeps it in sight while the rail is hidden (Adam, 2026-11-04) */
#nav-progress, .menu-btn { position: relative; }
.nav-live { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--prentis-green); pointer-events: none; animation: nav-live 2s ease-in-out infinite; }
#nav-progress .nav-live { left: 27px; top: calc(50% - 13px); }
.menu-btn .nav-live { top: 3px; right: 3px; }
@keyframes nav-live { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .nav-live { animation: none; } }
.nav-jobs-row { display: flex; align-items: stretch; }
.nav-jobs-row a { flex: 1; min-width: 0; }
.nav-jobs-row button { background: none; border: 0; padding: 0 10px; border-radius: 9px; color: var(--prentis-nav-text-rest); display: grid; place-items: center; }
.nav-jobs-row button:hover { background: var(--prentis-nav-hover-bg); color: #fff; }
#nav-jobs-tree { overflow: hidden; }
.njg-h { display: flex; align-items: center; gap: 6px; width: 100%; background: none; border: 0; text-align: left; padding: 7px 10px 5px 26px; border-radius: 8px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--prentis-nav-text-rest); }
.njg-h:hover { background: var(--prentis-nav-hover-bg); color: var(--prentis-nav-text-hover); }
.njg-h .njg-n { margin-left: auto; font-weight: 400; letter-spacing: 0; }
.njg-h.njt-h { padding: 4px 10px 4px 44px; font-size: 0.8125rem; letter-spacing: 0; text-transform: none; color: #A8CDD8; }
.njt-h .grow { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav a.njr { display: block; padding: 4px 10px 4px 62px; border-left: 0; border-radius: 8px; font-size: 0.8125rem; font-weight: 400; line-height: 1.6; color: #A8CDD8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav a.njr:hover { background: var(--prentis-nav-hover-bg); color: #fff; }

.main { margin-left: var(--sidebar-w); flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { background: #fff; border-bottom: 1px solid var(--prentis-border); padding: 16px 40px 14px; display: flex; align-items: flex-start; gap: 20px; }
.topbar .titles { flex: 1; min-width: 0; }
/* a job's composed title can carry an unbroken nameplate model number
   (one job title format, 2026-11-09) — the heading wraps it instead of
   clipping it at the box edge on a phone */
.topbar .titles h1 { font-size: 1.25rem; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.topbar .subtitle { color: var(--prentis-text-secondary); margin-top: 4px; font-size: 0.8125rem; line-height: 1.45; }
.topbar .subtitle:empty { display: none; }
.user-chip { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 5px 8px; border-radius: 10px; font-size: 0.875rem; font-weight: 600; color: var(--prentis-text-primary); flex: none; }
.user-chip:hover { background: var(--prentis-sub-bg); }
.user-chip .i { width: 26px; height: 26px; color: var(--prentis-navy); }
.user-menu { padding: 6px; min-width: 176px; }
.user-menu a, .user-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 8px; font-size: 0.875rem; font-weight: 500; background: none; border: 0; text-align: left; }
.user-menu a:hover, .user-menu button:hover { background: var(--prentis-sub-bg); }
.user-menu .i { width: 16px; height: 16px; color: var(--prentis-text-secondary); }
.um-sub { position: relative; }
.um-sub .sub { display: none; position: absolute; right: calc(100% + 2px); top: -7px; background: #fff; border: 1px solid var(--prentis-border); border-radius: 14px; box-shadow: 0 12px 32px rgba(11, 55, 85, 0.16); padding: 6px; min-width: 180px; }
.um-sub:hover .sub, .um-sub:focus-within .sub, .um-sub.open .sub { display: block; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--prentis-navy); color: #fff; display: grid; place-items: center; font-weight: 600; border: 2px solid var(--prentis-teal); flex: none; }
.menu-btn { display: none; background: none; border: 0; padding: 6px; margin: -2px 4px 0 -6px; color: var(--prentis-navy); }
.content { padding: 28px 40px 64px; max-width: 1240px; width: 100%; margin: 0 auto; font-size: 0.875rem; }

/* breadcrumbs */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; font-size: 0.875rem; color: var(--prentis-text-secondary); margin-bottom: 6px; }
.crumbs > :first-child { margin-left: -6px; }
.crumbs a { padding: 2px 6px; border-radius: 6px; color: var(--prentis-teal-dark); font-weight: 500; }
.crumbs a:hover { background: var(--prentis-teal-light); }
.crumbs .here { padding: 2px 6px; color: var(--prentis-text-primary); font-weight: 600; }
.crumbs .view { padding: 2px 6px; color: var(--prentis-text-muted); }
.crumbs .sep { color: var(--prentis-text-muted); }
/* one line per crumb: a long one (a job's full unit and address) ends in an ellipsis, full text on hover */
/* 15rem (breadcrumb, 2026-11-03): with shop > job > finding > photo in
   one trail, the four levels fit one desktop line; the full text stays
   on hover as before */
.crumbs a, .crumbs .here, .crumbs .view { max-width: min(15rem, 100%); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* cards */
.card { background: var(--prentis-card-bg); border: 1px solid var(--prentis-border); border-radius: var(--radius-xl); box-shadow: var(--shadow-card); }
.card + .card, .stack > * + * { margin-top: 20px; }
.card-h { display: flex; align-items: center; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--prentis-border-light); }
.card-h h3 { flex: 1; }
.card-b { padding: 20px 24px; }
.eyebrow { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--prentis-text-secondary); }
.muted { color: var(--prentis-text-secondary); }
.faint { color: var(--prentis-text-muted); }
.small { font-size: 0.875rem; }
.tiny { font-size: 0.75rem; }
.row { display: flex; align-items: center; gap: 10px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 10px; padding: 9px 16px; border: 1px solid var(--prentis-navy); background: #fff; color: var(--prentis-navy); font-weight: 600; white-space: nowrap; }
.btn:hover { background: var(--prentis-sub-bg); }
.btn.primary { background: var(--prentis-navy); color: #fff; }
.btn.primary:hover { background: #0d4468; }
.btn.ghost { border-color: var(--prentis-border); color: var(--prentis-text-primary); font-weight: 500; }
.btn.small { padding: 6px 12px; font-size: 0.8125rem; border-radius: 8px; }
.btn.tealish { border-color: var(--prentis-teal-dark); color: var(--prentis-teal-dark); }
.btn.tealish:hover { background: var(--prentis-teal-light); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--prentis-teal-dark); font-weight: 600; }
.linkbtn:hover { text-decoration: underline; }

/* pills */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 500; line-height: 1.5; border: 1px solid var(--prentis-border); background: #fff; color: var(--prentis-text-primary); white-space: nowrap; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.pill .i { width: 14px; height: 14px; }
.sev-critical { background: var(--prentis-red-light); border-color: #F7C9C9; }
.sev-critical .dot { background: var(--prentis-red); }
.sev-high { background: var(--prentis-orange-light); border-color: #F4D9A9; }
.sev-high .dot { background: var(--prentis-orange); }
.sev-medium { background: #fff; border-color: #F4D9A9; }
.sev-medium .dot { background: #fff; border: 2px solid var(--prentis-orange); width: 9px; height: 9px; }
.sev-low { background: var(--prentis-sub-bg); }
.sev-low .dot { background: var(--prentis-text-muted); }
.sev-na { background: var(--prentis-sub-bg); border-style: dashed; color: var(--prentis-text-secondary); }
.typepill { background: var(--prentis-sub-bg); border-color: var(--prentis-border-light); color: var(--prentis-text-secondary); font-weight: 500; }
/* a count as an icon with a small numeral; the title says what it counts */
.cnt { display: inline-flex; align-items: center; gap: 4px; cursor: default; }
.cnt .n { font-weight: 600; font-variant-numeric: tabular-nums; }
.typepill .i { color: var(--prentis-navy); }
/* seen only by the glasses camera, never confirmed by the technician: dashed, like an ungraded value */
.pill.uc { border-style: dashed; background: var(--prentis-sub-bg); color: var(--prentis-text-secondary); }
.tag-demo { background: #F3F2EF; border-style: dashed; color: var(--prentis-text-secondary); font-weight: 500; }

/* job anchor pills */
.anchor-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.anchor-pills .pill { background: var(--prentis-sub-bg); }
.anchor-pills .pill .i { color: var(--prentis-teal-dark); }
.anchor-pills .pill b { font-weight: 600; }

/* ── in progress: live cards ─────────────────────────────────────────── */
.feed-groups { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
/* one full-width card per live job, reading as a spec sheet: fixed, labelled
   regions that never move, each showing a quiet waiting state until a value
   lands. Unit and readings sit in the left column, the photos to their right,
   the live feed beside them — the feed shows what fits and does not scroll:
   seeing the whole job is what clicking in is for. One pill marks the card as
   demo data; individual values drop the "(Demo)" marker. */
.pcard { background: #fff; border: 1px solid var(--prentis-border); border-radius: var(--radius-xl); box-shadow: var(--shadow-card); padding: 16px; height: 352px; display: flex; gap: 18px; align-items: stretch; min-width: 0; }
.pc-sheet { width: 320px; flex: none; display: flex; flex-direction: column; gap: 6px; min-height: 0; overflow: hidden; }
.pc-demo { align-self: flex-start; margin-bottom: 2px; }
.pc-grid { display: grid; grid-template-columns: 118px 1fr; gap: 1px 10px; font-size: 0.8125rem; align-content: start; }
.pc-fl { color: var(--prentis-text-muted); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.9; white-space: nowrap; }
.pc-fv { font-weight: 600; min-height: 20px; line-height: 1.55; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-fv.wrap { white-space: normal; }
.pc-slot { background: var(--prentis-sub-bg); display: grid; place-items: center; cursor: default; }
.pc-replay { align-self: flex-start; margin-bottom: 2px; background: var(--prentis-teal-light); border-color: #BDEEE9; color: var(--prentis-navy); font-weight: 600; }
.pc-replay .i { width: 13px; height: 13px; color: var(--prentis-teal-dark); }
.pc-wait { color: var(--prentis-text-muted); font-weight: 400; font-style: italic; font-size: 0.75rem; animation: pc-wait 2.4s ease-in-out infinite; }
@keyframes pc-wait { 0%, 100% { opacity: .35; } 50% { opacity: .85; } }
@media (prefers-reduced-motion: reduce) { .pc-wait { animation: none; opacity: .6; } }
.pc-eyebrow { display: block; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--prentis-teal-dark); margin: 4px 0 1px; }
.pc-photos { width: 176px; flex: none; display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.pc-photos .pc-fv { margin: auto 0; text-align: center; white-space: normal; }
.pc-ph { position: relative; flex: 1 1 0; min-height: 0; border-radius: 7px; overflow: hidden; background: #EDEBE6; border: 0; padding: 0; cursor: pointer; display: block; }
.pc-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-ph.arrive { animation: feed-in 0.25s ease-out; }
.pc-feed { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; min-height: 0; }
.pc-feed-h { display: flex; align-items: baseline; gap: 10px; }
.pc-feed .pc-job { font-size: 0.75rem; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--prentis-text-muted); white-space: nowrap; }
.pc-feed .pc-job:hover { color: var(--prentis-teal-dark); }
.pcr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 0.8125rem; padding: 3px 0; border-top: 1px solid var(--prentis-border-light); }
.pcr:first-of-type { border-top: 0; }
.pcr .pcr-n { color: var(--prentis-text-secondary); }
.pcr .pcr-v { font-weight: 600; font-variant-numeric: tabular-nums; }
.pcr .pcr-t { color: var(--prentis-text-secondary); }
.pcr .pcr-ts { margin-left: auto; color: var(--prentis-text-muted); font-size: 0.75rem; font-variant-numeric: tabular-nums; }
/* a reading judged OUT of its unit's spec is loud; in spec stays quiet */
.pcr-out { color: #92400E; background: var(--prentis-orange-light); border: 1px solid #F4D9A9; border-radius: 999px; padding: 1px 8px; font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
.pcr.out .pcr-v { color: #92400E; }
/* the Field Report's one-line out-of-spec claim, with the photos behind it */
/* the live feed shows what fits — no scrolling */
.pc-finds { flex: 1 1 0; min-width: 0; overflow: hidden; margin-top: 0; }
.lrow { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; background: none; border: 0; font: inherit; padding: 7px 2px; border-top: 1px solid var(--prentis-border-light); cursor: pointer; }
.lrow:first-child { border-top: 0; }
.lrow:hover { background: var(--prentis-sub-bg); }
/* the moment card holds a fixed size; its panes scroll inside it */
.modal.moment { width: 1040px; max-width: calc(100vw - 32px); height: 660px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; overflow: hidden; }
.modal.moment .m-b { flex: 1; min-height: 0; overflow: hidden; }
.mo-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; height: 100%; }
.mo-left { display: flex; flex-direction: column; min-height: 0; }
.mo-left .photo-big { flex: 1; min-height: 0; aspect-ratio: auto; }
.mo-side { display: flex; flex-direction: column; min-height: 0; overflow-y: auto; }
.mo-cap { margin: 8px 0 4px; font-variant-numeric: tabular-nums; }
/* the simplified job timeline under the photo: a chaptered track (chapters
   from the job's own checklist), the time axis, and one same-size tick per
   finding coloured by severity — no legend, no pin callouts, no frame ticks,
   no hatching: every element explains itself */
/* the viewer's timeline is the Jobs track, rendered by the same code —
   only the wrap's padding differs inside the modal */
.moment .scrub-wrap { padding: 10px 0 0; }
.mo-panel { border: 1px solid var(--prentis-border-light); border-radius: 10px; padding: 10px 14px; background: var(--prentis-sub-bg); }
.mo-panel + .mo-panel { margin-top: 12px; }
.mo-say { display: flex; flex-direction: column; justify-content: flex-end; gap: 5px; margin-top: 8px; min-height: 9.5em; font-size: 0.8125rem; line-height: 1.5; }
.mo-say .ts { color: var(--prentis-text-muted); font-size: 0.75rem; margin-right: 4px; font-variant-numeric: tabular-nums; }
.mo-say .who { font-weight: 600; }
.mo-say .line.tech .who { color: var(--prentis-navy); }
.mo-say .line.prentis .who { color: var(--prentis-teal-dark); }
.mo-ef { margin-top: 8px; }
.mo-ef .ef { border-top: 1px solid var(--prentis-border-light); }
.mo-ef .ef:first-child { border-top: 0; }
.mo-ef .ef-h { display: flex; align-items: center; gap: 8px; width: 100%; background: none; border: 0; padding: 7px 0; font: inherit; font-size: 0.8125rem; font-weight: 500; text-align: left; cursor: pointer; color: var(--prentis-text-primary); }
.mo-ef .ef-h .i { width: 14px; height: 14px; color: var(--prentis-navy); flex: none; }
.mo-ef .ef-h .efn { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--prentis-text-secondary); }
.mo-ef .ef-d { display: none; padding: 0 0 8px 22px; }
.mo-ef .ef.on .ef-d { display: block; }
.mo-ef .ef-row { display: block; width: 100%; background: none; border: 0; text-align: left; font: inherit; font-weight: 400; cursor: pointer; font-size: 0.8125rem; line-height: 1.45; padding: 3px 8px; margin: 0 -8px; border-radius: 8px; }
.mo-ef .ef-row:hover > span:first-child { color: var(--prentis-teal-dark); }
.mo-ef .ef-row.on { background: var(--prentis-teal-light); }
.mo-ef .ef-row.on > span:first-child { color: var(--prentis-navy); font-weight: 600; }
/* the other frames a raised finding cites, each one a direct jump */
.mo-ef .ef-frames { display: flex; align-items: center; gap: 4px; padding: 2px 8px 6px; }
.mo-ef .ef-fr { min-width: 22px; height: 20px; padding: 0 5px; border: 1px solid var(--prentis-border); border-radius: 6px; background: #fff; font-size: 0.6875rem; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; }
.mo-ef .ef-fr:hover { border-color: var(--prentis-teal); }
.mo-ef .ef-fr.on { background: var(--prentis-teal-light); border-color: var(--prentis-teal-dark); color: var(--prentis-navy); }
.mo-ef .ef-row > span { display: block; }
.lrow .ls { display: block; font-size: 0.8125rem; font-weight: 600; line-height: 1.5; }
.lrow .lmeta { display: block; font-size: 0.75rem; color: var(--prentis-text-muted); }
.lrow.arrive { animation: feed-in 0.25s ease-out; }
@keyframes feed-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .lrow.arrive { animation: none; } }

/* ── field report ────────────────────────────────────────────────────── */
.callouts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.co { position: relative; background: #fff; border: 1px solid var(--prentis-border); border-radius: var(--radius-xl); box-shadow: var(--shadow-card); padding: 16px; display: flex; flex-direction: column; gap: 8px; min-height: 164px; transition: border-color .15s, box-shadow .15s; }
.co:hover { border-color: var(--prentis-teal); box-shadow: var(--shadow-card-hover); }
.co .k { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--prentis-text-secondary); display: flex; gap: 7px; align-items: center; }
.co .k .i { width: 14px; height: 14px; color: var(--prentis-navy); }
.co .k .kcount { color: var(--prentis-text-muted); }
.co .d { font-size: 0.8125rem; color: var(--prentis-text-secondary); line-height: 1.4; }
.co .stretch::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-xl); }
.co .ph { border-radius: 10px; overflow: hidden; aspect-ratio: 16/7; background: #EDEBE6; }
.co .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.co .sent { font-size: 0.875rem; font-weight: 600; line-height: 1.35; }
/* Three fixed-width cells per row; each cell's height comes from its own
   in-flow 4:3 svg sizer, and the image sits absolutely over it — loaded,
   unloaded, missing and empty slots all produce identical rows, so the
   three strips are always the same height. */
.co .co-strip { display: flex; flex-wrap: wrap; gap: 4px; }
.co .co-strip .ph { width: calc((100% - 8px) / 3); flex: none; aspect-ratio: auto; border-radius: 8px; position: relative; min-width: 0; min-height: 0; }
.co .co-strip .ph .ratio { display: block; width: 100%; height: auto; }
.co .co-strip .ph img, .co .co-strip .noimg { position: absolute; inset: 0; width: 100%; height: 100%; }
.co .co-strip .noimg { padding: 2px; font-size: 0.5625rem; }
.co .co-strip .ph.empty { background: var(--prentis-sub-bg); padding: 0; }
/* an out-of-spec reading, marked inline in its own list: a yellow dot at
   the left of the line and the value itself in the same yellow */
.co .co-list .odot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--prentis-yellow); margin-right: 6px; vertical-align: 1px; }
.co .co-list .ov { color: var(--prentis-yellow); }
.co .co-list .ucn { font-weight: 500; color: var(--prentis-text-muted); }
/* the latest findings, stacked one-line entries — full titles, no truncation */
.co .co-list { display: flex; flex-direction: column; margin-top: 2px; }
.co .co-list a { font-size: 0.8125rem; font-weight: 600; line-height: 1.35; padding: 3px 0; border-top: 1px solid var(--prentis-border-light); }
.co .co-list a:first-child { border-top: 0; }
.co .co-list a:hover { color: var(--prentis-teal-dark); }
.band { margin-top: 30px; }
.statline { display: flex; flex-wrap: wrap; background: #fff; border: 1px solid var(--prentis-border); border-radius: 14px; margin-top: 10px; }
.stat { flex: 1; min-width: 130px; padding: 12px 18px; border-left: 1px solid var(--prentis-border-light); }
.stat:first-child { border-left: 0; }
.stat .v { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.stat .v.zero { color: var(--prentis-text-muted); }
.stat .l { font-size: 0.8125rem; color: var(--prentis-text-secondary); }
.minis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.mini { background: #fff; border: 1px solid var(--prentis-border); border-radius: 14px; padding: 13px 16px; }
.mini h4 { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--prentis-text-secondary); margin-bottom: 6px; }
.mini .mrow { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 0.8125rem; padding: 4px 0; border-top: 1px solid var(--prentis-border-light); }
.mini .mrow:first-of-type { border-top: 0; }
.mini .mrow .mn { font-weight: 500; font-variant-numeric: tabular-nums; }
.mini a.mrow:hover span:first-child { color: var(--prentis-teal-dark); }
.mini .mrow .mn.zero { font-weight: 400; color: var(--prentis-text-muted); }
.mini .none { font-size: 0.8125rem; color: var(--prentis-text-muted); padding: 4px 0; }

.quietline { margin-top: 18px; }

/* ── landing: date + filters ─────────────────────────────────────────── */
.toolbar { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.fchip { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--prentis-border); background: #fff; border-radius: 999px; padding: 6px 10px; font-size: 0.75rem; font-weight: 500; color: var(--prentis-text-primary); white-space: nowrap; flex: none; }
.fchip:hover { border-color: var(--prentis-teal); }
.fchip.on { background: var(--prentis-teal-light); border-color: var(--prentis-teal); color: var(--prentis-navy); font-weight: 600; }
.fchip .count { background: var(--prentis-navy); color: #fff; border-radius: 999px; font-size: 0.75rem; padding: 0 6px; line-height: 1.5; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; font-size: 0.8125rem; }
.active-filters .af { display: inline-flex; align-items: center; gap: 4px; background: var(--prentis-teal-light); color: var(--prentis-navy); border-radius: 999px; padding: 3px 4px 3px 10px; font-weight: 500; }
.active-filters .af button { background: none; border: 0; padding: 2px; border-radius: 50%; display: grid; place-items: center; color: var(--prentis-navy); }
.active-filters .af button:hover { background: rgba(11, 55, 85, .1); }
.filterbar-slim { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 14px; background: #fff; border: 1px solid var(--prentis-border); border-radius: 12px; margin-bottom: 20px; font-size: 0.8125rem; }
.filterbar-slim .lbl { color: var(--prentis-text-secondary); font-weight: 500; display: inline-flex; gap: 6px; align-items: center; }

.pop { position: absolute; z-index: 60; background: #fff; border: 1px solid var(--prentis-border); border-radius: 14px; box-shadow: 0 12px 32px rgba(11, 55, 85, .16); }
.pop-list { padding: 8px; min-width: 260px; max-height: 360px; overflow-y: auto; }
.pop-list label { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; font-size: 0.875rem; cursor: pointer; }
.pop-list label:hover { background: var(--prentis-sub-bg); }
.pop-list input { width: 16px; height: 16px; accent-color: var(--prentis-teal-dark); }
.pop-list .grp { font-size: 0.75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--prentis-text-muted); font-weight: 600; padding: 8px 10px 4px; }
.pop-foot { display: flex; justify-content: space-between; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--prentis-border-light); }

/* calendar */
.cal { display: flex; gap: 0; }
.cal-presets { padding: 12px; border-right: 1px solid var(--prentis-border-light); display: flex; flex-direction: column; gap: 2px; min-width: 150px; }
.cal-presets button { background: none; border: 0; text-align: left; padding: 8px 10px; border-radius: 8px; font-size: 0.875rem; }
.cal-presets button:hover { background: var(--prentis-sub-bg); }
.cal-presets button.on { background: var(--prentis-teal-light); color: var(--prentis-navy); font-weight: 600; }
.cal-month { padding: 14px 16px 10px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-weight: 600; }
.cal-head button { background: none; border: 1px solid var(--prentis-border); border-radius: 8px; padding: 4px; display: grid; place-items: center; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 40px); gap: 2px; }
.cal-grid .dow { font-size: 0.75rem; color: var(--prentis-text-muted); text-align: center; font-weight: 600; padding-bottom: 4px; }
.cal-grid button { height: 40px; border: 0; background: none; border-radius: 8px; font-size: 0.875rem; position: relative; }
.cal-grid button:hover { background: var(--prentis-sub-bg); }
.cal-grid button.out { color: var(--prentis-text-muted); }
.cal-grid button.in { background: var(--prentis-teal-light); border-radius: 0; }
.cal-grid button.edge { background: var(--prentis-navy); color: #fff; border-radius: 8px; }
.cal-grid button.today { box-shadow: inset 0 0 0 1px var(--prentis-teal-dark); }
.cal-grid button.future { color: #c9c7c2; }
.cal-grid button .fd { position: absolute; left: 50%; bottom: 5px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--prentis-orange); }
.cal-grid button .jd { position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: #c9c7c2; }
.cal-grid button.edge .fd { background: #fff; }
.cal-note { font-size: 0.75rem; color: var(--prentis-text-secondary); padding: 0 16px 12px; display: flex; gap: 14px; }
.cal-note span { display: inline-flex; align-items: center; gap: 6px; }

/* type counts */

/* feed */
.feed-head { display: flex; align-items: center; gap: 12px; margin: 28px 0 12px; padding: 0 25px; }
.feed-head h2 { flex: none; }
/* flush-left heading counts: the title stops flexing, so the count sits
   right beside it; only a trailing control (the arrow) keeps to the edge */
.hleft h3 { flex: none; }
.hleft .xarr { margin-left: auto; }
/* The job page's findings record: ten fixed category sections, the same
   scaffold on every job — a heading keeps its place even at zero. */
/* One card per category: the heading sits inside it and the findings stack
   as hairline-separated rows, like the "Not in the record" card. */
.catcard { margin-top: 12px; }
.cat-head { display: flex; align-items: baseline; gap: 10px; padding: 12px 28px 10px; }
.catempty { padding: 2px 28px 14px; margin: 0; }
.catnote { padding: 0 28px 10px; margin: 0; }
.feed { display: flex; flex-direction: column; gap: 12px; }
/* Findings date groups (close-out Part 2, 2026-11-02): headed like the
   left rail's date groups — small bold caps — in the main area's colors */
.feed-dayh { margin: 20px 2px 8px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--prentis-text-muted, #9a9a9a); }
.quietline + .feed-dayh, .toolbar + .feed-dayh { margin-top: 12px; }
.frow { position: relative; display: flex; gap: 16px; background: #fff; border: 1px solid var(--prentis-border); border-radius: 16px; padding: 12px; box-shadow: var(--shadow-card); transition: box-shadow .15s, border-color .15s; }
.frow:hover { box-shadow: var(--shadow-card-hover); border-color: #d9d6cf; }
.frow .sevbar { position: absolute; left: -1px; top: 14px; bottom: 14px; width: 4px; border-radius: 0 4px 4px 0; }
.frow.s-critical .sevbar { background: var(--prentis-red); }
.frow.s-high .sevbar { background: var(--prentis-orange); }
.frow.s-medium .sevbar { background: repeating-linear-gradient(180deg, var(--prentis-orange) 0 6px, transparent 6px 10px); }
.frow .thumb { width: 208px; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: #EDEBE6; flex: none; position: relative; }
.frow .thumb img, .thumbimg { width: 100%; height: 100%; object-fit: cover; display: block; }
.frow .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 2px 0; }
.frow .sentence { font-size: 0.875rem; font-weight: 600; line-height: 1.4; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frow a.stretch::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.frow .pills { display: flex; flex-wrap: wrap; gap: 6px; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 0.8125rem; color: var(--prentis-text-secondary); }
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.meta .i { width: 15px; height: 15px; color: var(--prentis-meta); }
.frow .side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 8px; position: relative; z-index: 2; }
.dismiss { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--prentis-border); border-radius: 8px; padding: 6px 10px; font-size: 0.8125rem; color: var(--prentis-text-secondary); }
.dismiss:hover { border-color: var(--prentis-text-muted); color: var(--prentis-text-primary); }
.frow.dismissed { background: var(--prentis-sub-bg); }
.frow.dismissed .thumb, .frow.dismissed .sentence, .frow.dismissed .pills, .frow.dismissed .meta { opacity: .55; }
.frow.dismissed .sentence { text-decoration: line-through; text-decoration-color: rgba(26, 26, 26, .35); }
.dismissed-note { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 500; color: var(--prentis-text-secondary); background: #EFEDE8; border-radius: 999px; padding: 3px 10px; }
.frow.compact { padding: 10px; gap: 14px; }
.frow.compact .thumb { width: 132px; }
.frow.compact .sentence { font-size: 0.875rem; }
/* The job page's closed row is one dense line, column-aligned down a section
   the way the readings table is: time, title, step, photos, spoken/recorded,
   severity where graded, Dismiss, the arrow. No thumbnail, no type pill —
   the section heading already names the category. */
.frow.line { display: grid; grid-template-columns: 82px minmax(0, 1.5fr) minmax(0, 0.9fr) 36px 24px 56px auto 28px; align-items: center; gap: 0 14px; padding: 6px 28px; border: 0; border-radius: 0; box-shadow: none; background: transparent; border-top: 1px solid var(--prentis-border-light); }
.frow.line:hover { box-shadow: none; border-color: var(--prentis-border-light); background: var(--prentis-sub-bg); }
.frow.line .lt { color: var(--prentis-text-muted); font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.frow.line .sentence { font-size: 0.8125rem; }
.frow.line .lstep { color: var(--prentis-text-secondary); font-size: 0.75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frow.line .lmic { display: inline-flex; color: var(--prentis-meta); }
.frow.line .lsev { display: inline-flex; align-items: center; gap: 5px; font-size: 0.75rem; font-weight: 600; }
.frow.line .lsev .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--prentis-red); flex: none; }
.frow.line .dismiss { position: relative; z-index: 2; padding: 4px 9px; font-size: 0.75rem; justify-self: end; white-space: nowrap; }
.frow.line .xarr { position: relative; z-index: 2; width: 26px; height: 26px; }
.frow.line .xpanel { grid-column: 1 / -1; }
/* The row's second state: the arrow at the end opens a panel beneath, in
   place, holding the detail-page record. The arrow never moves the viewer. */
.xarr { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--prentis-border); background: #fff; color: var(--prentis-text-secondary); padding: 0; cursor: pointer; }
.xarr:hover { border-color: var(--prentis-text-muted); color: var(--prentis-text-primary); }
.xarr .i { width: 16px; height: 16px; transition: transform .15s; }
.frow.open .xarr .i { transform: rotate(180deg); }
.frow.open { flex-wrap: wrap; }
.xpanel { flex-basis: 100%; position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 16px; border-top: 1px solid var(--prentis-border-light); margin-top: 2px; padding-top: 12px; }
.xpanel[hidden] { display: none; }
.xpanel .xph { width: 320px; max-width: 100%; flex: none; }
.xpanel .xph img { width: 100%; border-radius: 12px; display: block; }
.xpanel .xbody { flex: 1; min-width: 240px; }
.xsent { font-size: 0.875rem; line-height: 1.5; }
.xkv { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin-top: 10px; font-size: 0.8125rem; }
.xkv .xl { color: var(--prentis-text-muted); font-weight: 600; }
/* The job summary card: one field form everywhere — a label over a
   one-line value, sized to its content so nothing wraps. The glance is the
   flowing field row; the arrow opens the rest in place, its groups side by
   side, each reading top to bottom in nameplate order. The dashboard's
   exact type scale, nothing restyled. */
/* ONE grid for the whole collapsed card: four equal columns (the count
   drops to 2 below 1100px and 1 below 700px, set by the renderer), the
   JOB and UNIT subheadings spanning the row, labels and values as separate
   grid items in alternating rows. Labels may wrap; values never wrap and
   never clip. */
.jgrid1 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; box-sizing: border-box; gap: 2px 20px; font-size: 0.875rem; }
.jgrid1 .jgh { grid-column: 1 / -1; margin-bottom: 2px; }
.jgrid1 .jgh:not(:first-child) { margin-top: 18px; }
.jgl { color: var(--prentis-text-secondary); margin-top: 10px; min-width: 0; }
.jgv { min-width: 0; overflow-wrap: anywhere; } /* a long model or serial wraps instead of running into the next column */
.jbf { min-width: 0; }
.jbl { display: block; color: var(--prentis-text-secondary); white-space: nowrap; }
.jbv { overflow-wrap: anywhere; }
.jmore { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--prentis-border-light); }
.jmore[hidden] { display: none; }
.jgroups { display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: flex-start; font-size: 0.875rem; }
.jsg { min-width: 0; }
.jgroups .eyebrow { display: block; margin-bottom: 8px; }
.jcol { display: flex; flex-direction: column; gap: 8px; }
.jsu { color: var(--prentis-text-secondary); }
.card-h .xarr { flex: none; }
.xarr[aria-expanded="true"] .i { transform: rotate(180deg); }
/* the provenance note under a transcript-anchored photo: matched from the
   spoken record, never a citation the product made */
.trnote { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; color: var(--prentis-text-secondary); background: var(--prentis-sub-bg); border: 1px solid var(--prentis-border-light); border-radius: 8px; padding: 5px 10px; margin-top: 6px; }
.trnote .i { flex: none; color: var(--prentis-meta); }
.frow.dim { opacity: .45; }

.empty { text-align: center; padding: 48px 24px; color: var(--prentis-text-secondary); }
.empty .i { width: 36px; height: 36px; color: var(--prentis-teal-dark); margin-bottom: 10px; }
.empty h3 { color: var(--prentis-text-primary); margin-bottom: 6px; }
.demo-box { border: 1.5px dashed #D6D3CC; border-radius: 16px; background: repeating-linear-gradient(135deg, #FAF9F6 0 10px, #F4F2EE 10px 20px); }
.thumb.demo { background: repeating-linear-gradient(135deg, #F6F4F0 0 10px, #EDEAE4 10px 20px); display: grid; place-items: center; color: var(--prentis-text-muted); font-size: 0.75rem; font-weight: 600; text-align: center; padding: 8px; }
.noimg { width: 100%; height: 100%; display: grid; place-items: center; text-align: center; padding: 8px; font-size: 0.75rem; color: var(--prentis-text-muted); background: repeating-linear-gradient(135deg, #F6F4F0 0 8px, #EEEBE5 8px 16px); }

/* ── job screen ─────────────────────────────────────────────────────── */
.status-open { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 500; color: var(--prentis-orange); background: var(--prentis-orange-light); border-radius: 999px; padding: 4px 12px; white-space: nowrap; }

.stpill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 12px; font-size: 0.75rem; font-weight: 500; white-space: nowrap; }
.stpill.ok { background: var(--prentis-green-light); color: var(--prentis-green); }
.stpill.no { background: var(--prentis-orange-light); color: #92400E; }
.stpill .i { width: 15px; height: 15px; }

/* "not in the record" rows on the job screen */
/* One short line per missing step, as compact as the Field Report's
   findings-by-type rows: no numbers, no paragraphs. Collapsed by default,
   the arrow opening it in place like the job summary card's. */
.gapscard .card-h { border-bottom: 0; }
.gapscard .gaps { border-top: 1px solid var(--prentis-border-light); }
.gaps { padding-top: 4px; }
.gaprow { display: flex; gap: 12px; align-items: baseline; padding: 5px 0; border-top: 1px solid var(--prentis-border-light); font-size: 0.8125rem; }
.gaprow:first-child { border-top: 0; }
.gaprow b { font-weight: 600; flex: none; }
.gaprow .gsee { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--prentis-text-secondary); }
.gaprow .gsee:hover { color: var(--prentis-teal-dark); }

/* scrubber */
.scrub-wrap { padding: 24px 28px 22px; position: relative; }
.scrub { position: relative; user-select: none; -webkit-user-select: none; touch-action: pan-y; outline: none; }
.scrub:focus-visible { outline: 2px solid var(--prentis-teal); outline-offset: 6px; border-radius: 10px; }
.lane-pins { position: relative; height: 34px; }
/* One size for every marker; only the colour speaks. Red = a safety or code
   finding (the Field Report's definition), yellow = a reading out of spec,
   grey = everything else — existing palette tokens only. */
.pin { position: absolute; top: 10px; width: 16px; height: 16px; margin-left: -8px; padding: 0; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(11, 55, 85, .3); cursor: pointer; }
.pin.safety { background: var(--prentis-red); }
.pin.outspec { background: var(--prentis-yellow); }
.pin.rest { background: var(--prentis-text-muted); }
.pin.dim { opacity: .2; }
/* one track: thin kept-frame marks as the base layer, translucent step
   blocks over them. A color separates one step from the next and means
   nothing else; a hatched stretch is one the record has no frames for. */
.lane-track { position: relative; height: 40px; border-radius: 10px; overflow: hidden; background: #fff; border: 1px solid var(--prentis-border-light); }
.lane-track svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.chap { position: absolute; top: 0; bottom: 0; border-right: 2px solid #fff; }
.chap.c0 { background: rgba(78, 205, 196, 0.28); }
.chap.c1 { background: rgba(129, 140, 248, 0.24); }
.chap.c2 { background: rgba(14, 165, 233, 0.18); }
.chap.c3 { background: rgba(168, 85, 247, 0.16); }
.chap.c4 { background: rgba(100, 116, 139, 0.2); }
.chap.none { background: repeating-linear-gradient(135deg, rgba(227, 224, 217, 0.9) 0 6px, transparent 6px 12px); }
.chap.hot { box-shadow: inset 0 0 0 2px var(--prentis-navy); }
/* the frame viewer is the job page: the frame large on the left, the
   transcript beside it scrolled to that moment, and what the current step
   found directly beneath the frame — all driven by the timeline below */
.jv-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.jv-say { border: 1px solid var(--prentis-border-light); border-radius: 10px; padding: 10px 14px; background: var(--prentis-sub-bg); display: flex; flex-direction: column; min-height: 0; max-height: 560px; }
/* Only the vertical scroll: side padding absorbs the highlight pill's 8px
   bleed, and long words wrap inside their column instead of poking out. */
.jv-lines { position: relative; flex: 1; min-height: 0; overflow-y: auto; margin: 8px -8px 0; padding: 0 8px; font-size: 0.8125rem; gap: 6px; }
.jv-lines .line { grid-template-columns: 76px 1fr; }
.jv-lines .line > span { min-width: 0; overflow-wrap: break-word; }
/* frame, transcript and timeline share one card: the grid up top, the
   track across the bottom */
.jv-card .card-b.jv-grid { padding-bottom: 2px; }
.jv-card .scrub-wrap { padding-top: 10px; }
/* the play button sits at the left end of the timeline, the track beside it */
.scrub-row { display: flex; align-items: flex-start; gap: 14px; }
.scrub-row .scrub { flex: 1; min-width: 0; }
.jv-play { flex: none; width: 40px; height: 40px; margin-top: 34px; border-radius: 50%; border: 1px solid var(--prentis-border); background: #fff; display: grid; place-items: center; color: var(--prentis-navy); cursor: pointer; padding: 0; }
.jv-play:hover { border-color: var(--prentis-teal); background: var(--prentis-teal-light); }
.jv-play .i { width: 18px; height: 18px; }
/* the thumbnail strip: five fixed slots, the current frame centered */
.jv-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.jv-th { aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: #EDEBE6; border: 2px solid transparent; padding: 0; cursor: pointer; display: block; }
.jv-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jv-th.on { border-color: var(--prentis-teal-dark); }
.jv-th.empty { background: var(--prentis-sub-bg); cursor: default; }
/* The readings panel at the bottom of the job-record card: fixed rows (the
   largest count on any job), blanks hold the shape, nothing scrolls. The
   highlight follows the playhead without moving a single row. */
.jv-reads { padding: 2px 28px 18px; }
.jvr { display: grid; grid-template-columns: 82px minmax(0, 1.3fr) minmax(0, 0.7fr) minmax(0, 0.9fr) minmax(0, 2fr); gap: 4px 14px; align-items: baseline; min-height: 32px; padding: 5px 8px; margin: 0 -8px; border-top: 1px solid var(--prentis-border-light); border-radius: 8px; font-size: 0.8125rem; }
.jv-reads .eyebrow + .jvr { margin-top: 4px; }
.jvr-t { color: var(--prentis-text-muted); font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.jvr-n { font-weight: 600; }
.jvr-q { color: var(--prentis-text-secondary); }
.jvr-v { font-variant-numeric: tabular-nums; }
.jvr-s { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.jvr .pcr-t { color: var(--prentis-text-secondary); }
.jvr[data-jump] { cursor: pointer; }
.jvr[data-jump]:hover:not(.on) { background: var(--prentis-sub-bg); }
.jvr.on { background: var(--prentis-teal-light); }
.axis { position: relative; height: 22px; font-size: 0.75rem; color: var(--prentis-text-muted); }
.axis span { position: absolute; transform: translateX(-50%); top: 2px; white-space: nowrap; }
.playhead { position: absolute; top: 30px; bottom: 18px; width: 2px; background: var(--prentis-navy); pointer-events: none; display: none; }
.playhead::before { content: ""; position: absolute; top: -5px; left: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--prentis-navy); }
.hovercard { position: absolute; bottom: calc(100% + 10px); width: 640px; max-width: calc(100vw - 32px); background: #fff; border: 1px solid var(--prentis-border); border-radius: 16px; box-shadow: 0 16px 40px rgba(11, 55, 85, .22); display: none; z-index: 30; overflow: hidden; pointer-events: none; }
.hovercard .hc-in { display: grid; grid-template-columns: 300px 1fr; }
.hovercard .hc-img { aspect-ratio: 4/3; background: #EDEBE6; position: relative; }
.hovercard .hc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hovercard .hc-time { position: absolute; left: 8px; top: 8px; background: rgba(8, 31, 42, .82); color: #fff; font-size: 0.75rem; font-weight: 600; border-radius: 999px; padding: 2px 10px; }
.hovercard .hc-find { background: var(--prentis-orange-light); color: #78350F; font-size: 0.8125rem; font-weight: 600; padding: 8px 12px; display: flex; gap: 8px; align-items: flex-start; border-bottom: 1px solid #F4D9A9; }
.hovercard .hc-find.crit { background: var(--prentis-red-light); color: #7F1D1D; }
.hovercard .hc-find.low { background: var(--prentis-sub-bg); color: var(--prentis-text-primary); border-bottom-color: var(--prentis-border-light); }
.hovercard .hc-say { padding: 10px 14px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; font-size: 0.8125rem; line-height: 1.4; }
.hovercard .hc-step { font-size: 0.75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--prentis-teal-dark); margin-bottom: 2px; }
.hovercard .line .who { font-weight: 600; }
.hovercard .line .ts { color: var(--prentis-text-muted); font-size: 0.75rem; margin-right: 4px; font-variant-numeric: tabular-nums; }
.hovercard .line.tech .who { color: var(--prentis-navy); }
.hovercard .line.prentis .who { color: var(--prentis-teal-dark); }
.sw { width: 14px; height: 10px; border-radius: 3px; display: inline-block; }

/* step / finding / photo pages */
.two { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; }
/* the finding detail: the panel is the page, not a narrow column beside it */
.two-finding { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
.two-finding.nophoto { grid-template-columns: minmax(0, 860px); } /* no photo: the details alone, at a readable width */
.two-finding.nophoto > .stack:first-child { display: none; }
.kv-say { font-size: 0.8125rem; gap: 5px; margin-top: 2px; }
.kv-say .line { grid-template-columns: 72px 1fr; }
.kv-say .ts { font-size: 0.75rem; }
.photo-big { border-radius: 14px; overflow: hidden; background: #EDEBE6; aspect-ratio: 4/3; position: relative; }
.photo-big img { width: 100%; height: 100%; object-fit: contain; background: #1b1b1b; display: block; }
.photo-big.cover img { object-fit: cover; }
.strip { display: flex; gap: 8px; flex-wrap: wrap; }
.strip a { width: 104px; aspect-ratio: 4/3; border-radius: 8px; overflow: hidden; background: #EDEBE6; display: block; position: relative; border: 2px solid transparent; }
.strip a.on { border-color: var(--prentis-teal-dark); }
.strip a .t { position: absolute; left: 4px; bottom: 4px; background: rgba(8, 31, 42, .78); color: #fff; font-size: 0.75rem; border-radius: 999px; padding: 0 6px; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; font-size: 0.875rem; }
.kv dt { color: var(--prentis-text-secondary); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.quote { border-left: 3px solid var(--prentis-teal); background: var(--prentis-sub-bg); padding: 10px 14px; border-radius: 0 10px 10px 0; font-size: 0.875rem; }
.transcript { display: flex; flex-direction: column; gap: 8px; font-size: 0.875rem; }
.transcript .line { display: grid; grid-template-columns: 86px 1fr; gap: 10px; }
.transcript .ts { color: var(--prentis-text-muted); font-size: 0.8125rem; font-variant-numeric: tabular-nums; padding-top: 2px; }
.transcript .who { font-weight: 600; margin-right: 6px; }
.transcript .tech .who { color: var(--prentis-navy); }
.transcript .prentis .who { color: var(--prentis-teal-dark); }
.transcript .line.hl { background: var(--prentis-teal-light); border-radius: 8px; margin: 0 -8px; padding: 4px 8px; }
.model-said { font-size: 0.875rem; display: flex; flex-direction: column; gap: 10px; }
.model-said .ms { border: 1px solid var(--prentis-border-light); border-radius: 10px; padding: 10px 12px; background: var(--prentis-sub-bg); }
.model-said .ms .lab { font-size: 0.75rem; color: var(--prentis-text-secondary); margin-top: 4px; }
.sightings .sg { display: flex; gap: 10px; align-items: baseline; padding: 4px 0; border-top: 1px solid var(--prentis-border-light); font-size: 0.8125rem; }
.sightings .sg:first-child { border-top: 0; }
.sightings .sg .ts { width: 86px; flex: none; color: var(--prentis-text-muted); font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.navpair { display: flex; gap: 8px; }

/* detailed timeline */
.chapter-block { padding: 18px 24px; border-top: 1px solid var(--prentis-border-light); display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; }
.chapter-block:first-child { border-top: 0; }
.chapter-block .ch-h { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; }
.chapter-block .ch-h .tr { color: var(--prentis-text-muted); font-size: 0.8125rem; }
.chapter-block .transcript { font-size: 0.8125rem; gap: 6px; }
.chapter-block .transcript .line { grid-template-columns: 70px 1fr; }
.fgrid { display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start; }
.fgrid a { width: 112px; aspect-ratio: 4/3; border-radius: 6px; overflow: hidden; background: #EDEBE6; display: block; position: relative; }
.fgrid a .t { position: absolute; left: 3px; bottom: 3px; background: rgba(8, 31, 42, .72); color: #fff; font-size: 0.75rem; border-radius: 999px; padding: 0 5px; font-variant-numeric: tabular-nums; }
.fgrid a.find { box-shadow: 0 0 0 3px var(--prentis-orange); }
.fgrid a.find.low { box-shadow: 0 0 0 3px var(--prentis-navy); }
.fgrid .skip { width: 14px; aspect-ratio: auto; height: auto; min-height: 84px; border-radius: 4px; border: 1px dashed #D6D3CC; background: transparent; }
.jumpchips { display: flex; flex-wrap: wrap; gap: 6px; }

/* settings */
/* settings: one scrollable list, no cards, boxes or shadows */
.setlist { max-width: 680px; margin-top: 8px; }
.sethead { margin: 26px 0 2px; }
.sethead:first-child { margin-top: 10px; }
.setrow { display: flex; align-items: center; gap: 12px; padding: 13px 2px; border-bottom: 1px solid var(--prentis-border-light); font-size: 0.875rem; color: var(--prentis-text-primary); }
a.setrow:hover .sl { color: var(--prentis-teal-dark); }
.setrow .i { width: 16px; height: 16px; color: var(--prentis-navy); flex: none; }
.setrow .sl { font-weight: 500; }
.setrow .sv { margin-left: auto; color: var(--prentis-text-muted); font-size: 0.8125rem; text-align: right; }
.setrow.flat { cursor: default; }
.setrow.toggle-row { padding: 13px 0 13px 2px; border-top: 0; }
.setback { display: inline-flex; align-items: center; gap: 4px; margin-top: 14px; font-size: 0.8125rem; font-weight: 500; color: var(--prentis-text-secondary); }
.setback:hover { color: var(--prentis-teal-dark); }
.setback .i { width: 14px; height: 14px; }
.role { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; font-weight: 600; background: var(--prentis-sub-bg); border: 1px solid var(--prentis-border); border-radius: 999px; padding: 2px 10px; }
.role .i { width: 13px; height: 13px; color: var(--prentis-text-muted); }
.toggle-row { display: flex; align-items: center; gap: 16px; padding: 14px 24px; border-top: 1px solid var(--prentis-border-light); }
.toggle-row:first-child { border-top: 0; }
.switch { position: relative; width: 42px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 100%; height: 100%; margin: 0; position: absolute; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; background: #D6D3CC; border-radius: 999px; transition: background .15s; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--prentis-teal-dark); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--prentis-teal); outline-offset: 2px; }

/* modal */
.scrim { position: fixed; inset: 0; background: rgba(8, 31, 42, .45); display: grid; place-items: center; z-index: 100; padding: 16px; }
.modal { background: #fff; border-radius: 18px; width: 100%; max-width: 600px; max-height: calc(100vh - 32px); overflow-y: auto; box-shadow: 0 24px 60px rgba(8, 31, 42, .3); }
.modal .m-h { display: flex; align-items: center; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--prentis-border-light); }
.modal .m-h h3 { flex: 1; }
.modal .m-h button { background: none; border: 0; padding: 4px; border-radius: 8px; display: grid; place-items: center; }
.modal .m-b { padding: 20px 24px; }
.modal .m-f { display: flex; gap: 10px; justify-content: flex-end; padding: 16px 24px; border-top: 1px solid var(--prentis-border-light); align-items: center; flex-wrap: wrap; }
.modal textarea { width: 100%; min-height: 170px; border: 1px solid var(--prentis-border); border-radius: 10px; padding: 12px; font: inherit; font-size: 0.875rem; line-height: 1.5; resize: vertical; }
.modal textarea:focus { outline: 2px solid var(--prentis-teal); border-color: transparent; }
.notice { display: flex; gap: 10px; align-items: flex-start; font-size: 0.875rem; border-radius: 10px; padding: 10px 12px; background: var(--prentis-orange-light); color: #78350F; border: 1px solid #F4D9A9; }
.notice.info { background: var(--prentis-teal-light); color: var(--prentis-navy); border-color: #BDEEE9; }
.about h4 { margin: 18px 0 6px; }
.about p, .about li { font-size: 0.875rem; color: var(--prentis-text-secondary); }
.about ul { margin: 6px 0; padding-left: 20px; }

/* ── responsive ─────────────────────────────────────────────────────── */
@media (max-width: 1280px) {
  .counts { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .callouts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .minis { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1080px) {
  .two, .set-grid { grid-template-columns: minmax(0, 1fr); }
  .chapter-block { grid-template-columns: minmax(0, 1fr); }
  .hovercard .hc-in { grid-template-columns: 220px 1fr; }
}
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.3); }
  .btn { white-space: normal; }
  .main { margin-left: 0; }
  .menu-btn { display: block; }
  .topbar { padding: 16px; }
  .content { padding: 20px 16px 48px; }
  .counts { display: flex; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
  .count-tile { min-width: 132px; scroll-snap-align: start; }
  .pill, .stpill, .anchor-pills .pill { white-space: normal; max-width: 100%; }
  .main { max-width: 100vw; overflow-x: hidden; }
  .frow { flex-direction: column; gap: 12px; }
  .frow .thumb, .frow.compact .thumb { width: 100%; }
  .frow .side { flex-direction: row; align-items: center; justify-content: flex-start; }
  .step { grid-template-columns: 34px minmax(0, 1fr); padding: 14px 16px; }
  .step .right { grid-column: 2; align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
  .callouts { grid-template-columns: minmax(0, 1fr); }
  .job-head, .scrub-wrap, .card-h, .card-b { padding-left: 16px; padding-right: 16px; }
  .hovercard .hc-in { grid-template-columns: 1fr; }
  .hovercard .hc-img { max-height: 200px; }
  .cal { flex-direction: column; }
  .cal-presets { flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--prentis-border-light); }
  .cal-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 8px; }
  .chapter-block { padding: 16px; }
  .mo-grid { grid-template-columns: minmax(0, 1fr); }
  .fgrid a { width: calc(33.33% - 4px); }
  .jv-grid { grid-template-columns: minmax(0, 1fr); }
  .jv-say { max-height: 300px; }
  .pcard { flex-direction: column; gap: 10px; height: auto; }
  .pc-sheet { width: auto; }
  .pc-photos { width: auto; flex-direction: row; height: 110px; }
  .pc-ph { flex: 1 1 0; }
  .pc-finds { max-height: 264px; }
  table.team th, table.team td { padding: 10px 16px; }
}
/* phones: a job page finding row's fixed columns left its title no width and ran past the card —
   the title takes the first line (the expand arrow beside it) and the rest wraps beneath it */
@media (max-width: 700px) {
  .frow.line { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
  .frow.line .sentence { flex: 1 1 calc(100% - 34px); order: -2; white-space: normal; }
  .frow.line .xarr { order: -1; align-self: flex-start; }
  .frow.line .lstep { flex: 1 1 0; min-width: 0; }
}

/* admin view (platform admins only): All shops page, Admin/Internal pills,
   the read-only note under the shop switch, no Dismiss on a read-only shop */
.dev-pill { display: inline-flex; align-items: center; margin-left: 8px; padding: 1px 8px; border-radius: 999px; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; background: rgba(217, 119, 6, 0.14); color: var(--prentis-orange); border: 1px solid rgba(217, 119, 6, 0.35); }
.nav a .dev-pill { margin-left: auto; }
.view-note { display: flex; align-items: center; gap: 6px; margin: 8px 8px 0; font-size: 0.75rem; font-weight: 600; color: var(--prentis-orange); }
.view-note[hidden], #nav-admin[hidden] { display: none; }
body.readonly [data-dismiss], body.readonly [data-undismiss] { display: none; }
.admin-card { padding: 0; overflow: hidden; }
.admin-scroll { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.admin-table th { text-align: left; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--prentis-text-secondary); padding: 12px 16px; border-bottom: 1px solid var(--prentis-border); white-space: nowrap; }
.admin-table td { padding: 12px 16px; border-bottom: 1px solid var(--prentis-border); vertical-align: top; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table .n { text-align: right; font-variant-numeric: tabular-nums; }
/* view as: one bar above the person's own screens; Dismiss shown but inert */
.viewas-bar { display: flex; align-items: center; gap: 8px; padding: 10px 24px; background: rgba(217, 119, 6, 0.12); border-bottom: 1px solid rgba(217, 119, 6, 0.35); color: var(--prentis-orange); font-size: 0.875rem; font-weight: 500; }
.viewas-bar[hidden] { display: none; }
.viewas-bar .grow { flex: 1; min-width: 0; }
.viewas-exit { font-weight: 600; text-decoration: underline; white-space: nowrap; }
body.viewas [data-dismiss], body.viewas [data-undismiss] { opacity: 0.5; cursor: not-allowed; }
/* All shops: the manager list */
.adm-toggle { cursor: pointer; }
.adm-toggle input { margin: 0 4px 0 0; }
.admin-table tr.mrow { cursor: pointer; }
.admin-table tr.mrow:hover td, .admin-table tr.mrow.open td { background: var(--prentis-sub-bg); }
.admin-table tr.mdetail td { background: var(--prentis-sub-bg); }
.mdetail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mrecent { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; font-size: 0.8125rem; }
.mrecent li { display: grid; grid-template-columns: 90px 1fr auto; gap: 10px; }
.mrecent .when { color: var(--prentis-text-secondary); }
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--prentis-border); }
@media (max-width: 900px) { .mdetail-grid { grid-template-columns: 1fr; } }
.mdetail .pills { display: flex; flex-wrap: wrap; gap: 6px; }
/* phones: the account chip keeps its icon (same menu), so the breadcrumbs and title get the width */
@media (max-width: 600px) {
  .user-chip > span { display: none; }
  .topbar { gap: 8px; }
}

/* ── the job card release (v2) — only drawn behind its flag ───────────── */
/* header: fixed heights on desktop (the header never grows into the player
   below, spec 5.6); the two rows stack and free their heights on a phone */
.jc2 { overflow: hidden; margin-bottom: 4px; }
.jc2 .muted { color: var(--prentis-text-muted); }
.jc2 .sm, .jc-tl .sm, .jc-eq .sm { font-size: 0.75rem; }
.jc2 .mono, .jc-eq .mono { font-family: ui-monospace, Menlo, monospace; font-size: 0.78rem; word-break: break-all; }
/* the header stacks its four sections vertically (2026-10-30): Details,
   Summary, Equipment, Needs Attention — everything fully shown, nothing
   scrolls inside */
.jc2.stack .jc-sect { padding: 16px 20px; border-top: 1px solid var(--prentis-border); min-width: 0; }
.jc2.stack .jc-sect:first-of-type { border-top: 0; }
/* the header's first row (Adam, 2026-10-30): map, then job details, then
   Equipment, left to right; phones stack in that order. The map fills its
   column so the row carries no dead space. */
.jc-row3 { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr) minmax(0, 1fr); gap: 16px 28px; }
.jc-row3 .jc-mapbox { margin: 0; height: 100%; min-height: 160px; }
.jc-row3 .jc-mapbox a { display: block; height: 100%; }
.jc-row3 .jc-mapbox img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; display: block; }
.jc-sec { font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--prentis-text-muted); font-weight: 600; margin-bottom: 10px; }
.jc-sech { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.jc-sech .jc-sec { margin-bottom: 0; }
.jc-story { font-size: 0.875rem; font-weight: 400; line-height: 1.5; margin: 0 0 12px; }
.jc-story sup { font-size: 0.66rem; font-weight: 700; color: var(--prentis-teal-dark); margin-left: 1px; cursor: pointer; }
.jc-mapbox { height: 110px; border-radius: 8px; overflow: hidden; border: 1px solid var(--prentis-border); margin-bottom: 12px; background: #EEF0EC; }
.jc-mapbox a { display: block; height: 100%; cursor: pointer; }
.jc-mapbox img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* the interactive Job Summary map (ux-jobmaps): fills the same box the
   static image used; the box's own radius and overflow clip it */
.jc-mapbox .jc-gmap { width: 100%; height: 100%; min-height: 160px; }
.jc-facts, .jc-eqgrid { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 6px 12px; font-size: 0.84rem; }
.jc-facts .fk, .jc-eqgrid .fk { color: var(--prentis-text-muted); }
.jc-facts .fv, .jc-eqgrid .fv { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jc-facts .fv a { text-decoration: underline; text-decoration-color: var(--prentis-border); }
/* the Service address value wraps inside its grid column (Adam, 2026-10-30,
   deploy round): never under the label, never past the card edge */
.jc-facts .fv.wrap { white-space: normal; overflow: visible; text-overflow: clip; }
.jc-eqgrid { grid-template-columns: 110px minmax(0, 1fr); }
.jc-proof { display: grid; grid-template-columns: repeat(4, minmax(0, 220px)); gap: 12px; }
.jc-pf { cursor: pointer; min-width: 0; }
/* 4:3 evidence tiles (Adam's item 4, 2026-10-30), so more of the photo's
   height shows; a words-only reference shows a speaker icon, not a grayed
   placeholder */
.jc-pf .jc-ph { aspect-ratio: 4 / 3; height: auto; border-radius: 8px; background: #2A2E31; color: #9DA2A5; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.jc-pf .jc-ph img { width: 100%; height: 100%; object-fit: cover; }
.jc-pf .jc-ph.q { background: #E8EEF3; color: var(--prentis-navy); padding: 10px; font-size: 0.78rem; line-height: 1.35; text-align: center; flex-direction: column; gap: 6px; }
.jc-pf .jc-ph.q .i { width: 22px; height: 22px; flex: none; }
.jc-pf .jc-ph.q .q2 { overflow: hidden; }
.jc-pfcap { display: flex; gap: 6px; align-items: flex-start; margin-top: 6px; font-size: 0.78rem; color: var(--prentis-text-muted); }
.jc-num { display: inline-flex; width: 16px; height: 16px; border-radius: 50%; background: var(--prentis-teal-dark); color: #fff; font-size: 0.64rem; font-weight: 700; align-items: center; justify-content: center; flex: none; margin-top: 1px; }
.jc-pft { min-width: 0; flex: 1; }
.jc-pft .c1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--prentis-text-primary); }
/* photo sweep (round 2, 2026-11-10): a task's photo-proof strip in the
   By task view — the summary proof tiles' own look, under a small header,
   two columns on a phone like .jc-proof */
.jc-tproof { padding: 10px 14px; border-top: 1px solid var(--prentis-border-light); }
.jc-tproofh { font-size: 0.75rem; font-weight: 600; color: var(--prentis-text-muted); margin-bottom: 8px; }
.jc-tproofg { display: grid; grid-template-columns: repeat(4, minmax(0, 220px)); gap: 12px; }
.jc-nalist { min-height: 0; }
.jc-narow { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--prentis-border-light); cursor: pointer; font-size: 0.875rem; width: 100%; }
.jc-narow:first-child { border-top: 0; }
.jc-narow:hover .t { text-decoration: underline; }
.jc-narow .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.jc-narow time { font-size: 0.75rem; color: var(--prentis-text-muted); font-variant-numeric: tabular-nums; }
.jc-cat { display: inline-flex; gap: 5px; align-items: center; font-size: 0.75rem; font-weight: 600; color: var(--prentis-navy); white-space: nowrap; }
.jc-cat.safety { color: var(--prentis-red); }
.jc-pr { font-size: 0.69rem; font-weight: 600; padding: 2px 7px; border-radius: 999px; white-space: nowrap; flex: none; }
.jc-pr.critical { background: var(--prentis-red-light); color: var(--prentis-red); }
.jc-count { font-size: 0.69rem; font-weight: 600; padding: 2px 7px; border-radius: 999px; white-space: nowrap; flex: none; color: var(--prentis-text-muted); border: 1px solid var(--prentis-border); }
.jc-frow.removed .jc-ftxt { text-decoration: line-through; opacity: 0.75; }
.jc-life summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.jc-life summary::-webkit-details-marker { display: none; }
.jc-lifebar { position: relative; display: inline-block; width: 140px; max-width: 100%; height: 8px; border-radius: 999px; background: var(--border, #e2e5ea); vertical-align: middle; }
.jc-lifebar .band { position: absolute; top: 0; height: 100%; border-radius: 0 999px 999px 0; background: var(--prentis-orange-light); }
.jc-lifebar .mark { position: absolute; top: -3px; width: 3px; height: 14px; border-radius: 2px; background: var(--prentis-navy, #22314a); transform: translateX(-1px); }
/* the marker colored by age (2026-10-30): green under 10 yrs, amber 10-19, red 20+ */
.jc-lifebar .mark.green { background: var(--prentis-green, #2e7d32); }
.jc-lifebar .mark.amber { background: var(--prentis-orange, #c77700); }
.jc-lifebar .mark.red { background: var(--prentis-red, #b3261e); }
.jc-lifescale { font-size: inherit; color: var(--muted, #6b7280); }
.jc-lifetxt { font-size: inherit; font-weight: 600; color: var(--prentis-orange); }
.jc-lifesrc { margin-top: 6px; display: grid; gap: 6px; font-size: 0.8rem; }
.jc-cost { margin-top: 6px; font-size: 0.72rem; color: var(--muted, #6b7486); overflow-wrap: anywhere; }
.jc-remreason { font-size: 0.8rem; color: var(--prentis-orange); margin-top: 2px; }
.jc-rvp { flex-wrap: wrap; }

/* tabs */
/* four tabs now (Job Summary first, 2026-10-30): they wrap on narrow
   screens instead of scrolling sideways */
.jc-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--prentis-border); margin: 22px 0 16px; }
.jc-tab { white-space: nowrap; padding: 10px 14px; font-weight: 500; color: var(--prentis-text-muted); border: 0; background: none; border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; gap: 7px; align-items: center; }
.jc-tab.on { color: var(--prentis-navy); border-bottom-color: var(--prentis-teal); }

/* timeline */
/* the photo player and the transcript panel are exactly the same height
   (2026-10-30): both cells stretch to the row, the stage absorbing the room */
.jc-tl { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.jc-player { padding: 14px; display: flex; flex-direction: column; }
/* the stage matches the photos' own 4:3 shape (Adam's item B8, 2026-10-30),
   so a frame fills it with no empty side bars; the transcript panel follows
   the player's height through the grid row */
.jc-stage { position: relative; flex: none; aspect-ratio: 4 / 3; min-height: 0; border-radius: 8px; background: #2A2E31; color: #C9CCCE; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; overflow: hidden; touch-action: pan-y; }
.jc-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.jc-stage .jc-nopix { position: relative; z-index: 1; }
/* the category pill on the photo: icon and text centered inside it (item 12) */
.jc-stage .tag { display: inline-flex; align-items: center; justify-content: center; }
.jc-stage .tag[hidden], .jc-stage .task[hidden], .jc-stage img[hidden], .jc-stage .ft[hidden], .jc-stage .jc-nopix[hidden] { display: none; }
.jc-stage .tag .jc-cat { display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.jc-stage .tag .jc-cat .i { display: block; }
.jc-stage .ft { position: absolute; left: 12px; bottom: 10px; font-size: 0.75rem; color: #E6E8E9; background: rgba(0,0,0,.45); padding: 2px 8px; border-radius: 999px; z-index: 2; }
.jc-stage .task { position: absolute; right: 12px; top: 12px; font-size: 0.75rem; color: #fff; background: rgba(0,0,0,.45); padding: 5px 9px; border-radius: 999px; z-index: 2; }
.jc-stage .tag { position: absolute; left: 12px; top: 12px; z-index: 2; background: rgba(255,255,255,.92); padding: 4px 9px; border-radius: 999px; }
.jc-ctrl { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.jc-play { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--prentis-border); background: var(--prentis-card-bg); display: flex; align-items: center; justify-content: center; flex: none; }
.jc-clock { font-variant-numeric: tabular-nums; font-size: 0.8rem; color: var(--prentis-text-muted); min-width: 84px; }
/* the track stacks its layers (Adam's item B4, 2026-10-30): task bands —
   each task its own color, full name on hover and in the player's task pill
   — the finding markers, the frame-gap strip, then the slider */
.jc-track { position: relative; flex: 1; min-width: 0; }
.jc-bands { position: relative; height: 9px; }
.jc-band { position: absolute; top: 0; height: 9px; border: 0; border-radius: 3px; padding: 0; cursor: pointer; opacity: 0.75; }
.jc-band.on { opacity: 1; box-shadow: 0 0 0 1.5px var(--prentis-navy); }
.jc-band.tc0 { background: #4C7FA8; }
.jc-band.tc1 { background: #6AA87C; }
.jc-band.tc2 { background: #C99A4B; }
.jc-band.tc3 { background: #9A7FB8; }
.jc-band.tc4 { background: #C97B6B; }
.jc-band.tc5 { background: #5BA8A0; }
.jc-marks { position: relative; height: 12px; margin-top: 3px; }
.jc-mk { position: absolute; top: 0; width: 11px; height: 11px; border-radius: 50%; transform: translateX(-50%); background: var(--prentis-navy); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--prentis-border); padding: 0; cursor: pointer; z-index: 2; }
.jc-mk.safety { background: var(--prentis-red); }
.jc-mk.t { background: #fff; box-shadow: 0 0 0 1.5px var(--prentis-navy); }
/* markers too close together merge into one, counted (Adam's item 10) */
.jc-mk.cluster { width: 17px; height: 15px; border-radius: 999px; top: -2px; color: #fff; font-size: 0.58rem; font-weight: 700; line-height: 1; display: flex; align-items: center; justify-content: center; }
.jc-gaps { position: relative; height: 5px; margin-top: 1px; }
.jc-gap { position: absolute; top: 0; height: 5px; border-radius: 2px; background: repeating-linear-gradient(135deg, #D6D2C9 0 3px, transparent 3px 6px); }
.jc-track input { position: relative; display: block; width: 100%; margin: 2px 0 0; accent-color: var(--prentis-navy); }
/* exactly the player's height (Adam's item 7): the player sizes the grid
 * row; the transcript card contributes no height of its own (height: 0) and
 * then fills the row (min-height: 100%), tops aligned (margin-top: 0), with
 * the message list scrolling inside */
.jc-feedcard { display: flex; flex-direction: column; height: 0; min-height: 100%; }
.jc-tl > .card + .card { margin-top: 0; } /* grid gap spaces them; the card-stack margin would misalign the tops */
.jc-feedhead { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--prentis-border); }
.jc-feedhead h3 { margin: 0; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--prentis-text-muted); font-weight: 600; }
.jc-seg { display: inline-flex; border: 1px solid var(--prentis-border); border-radius: 8px; overflow: hidden; }
.jc-seg button { padding: 5px 10px; font-size: 0.75rem; font-weight: 500; color: var(--prentis-text-muted); border: 0; background: none; }
.jc-seg button.on { background: var(--prentis-navy); color: #fff; }
.jc-feed { overflow: auto; flex: 1; padding: 6px 0; }
.jc-th { padding: 10px 14px 4px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--prentis-navy); display: flex; justify-content: space-between; }
.jc-th span { color: var(--prentis-text-muted); font-weight: 500; text-transform: none; letter-spacing: 0; }
.jc-it { display: flex; gap: 10px; padding: 8px 14px; border-left: 3px solid transparent; cursor: pointer; }
.jc-it:hover { background: #FBFAF8; }
.jc-it.on { background: var(--prentis-teal-light); border-left-color: var(--prentis-teal); }
.jc-av { width: 26px; height: 26px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; font-size: 0.69rem; font-weight: 700; }
.jc-av.j { background: var(--prentis-navy); color: #fff; }
.jc-av.p { background: var(--prentis-teal-light); color: var(--prentis-teal-dark); border: 1px solid #BFEDE8; }
.jc-it .body { flex: 1; min-width: 0; }
.jc-it .who2 { font-size: 0.75rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.jc-it .who2 time { color: var(--prentis-text-muted); font-weight: 400; font-variant-numeric: tabular-nums; margin-left: auto; }
.jc-it .txt { font-size: 0.84rem; }
.jc-fc { padding: 10px; border: 1px solid var(--prentis-border); border-radius: 10px; background: var(--prentis-card-bg); display: flex; gap: 10px; width: 100%; min-width: 0; }
.jc-fc.safety { border-color: #EBC3BE; }
.jc-thumb { width: 64px; height: 48px; border-radius: 6px; background: #2A2E31; color: #9DA2A5; flex: none; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.jc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.jc-thumb.q { background: #E8EEF3; color: var(--prentis-navy); }
.jc-thumb.sm { width: 48px; height: 36px; }
.jc-ftxt { font-size: 0.84rem; font-weight: 500; margin: 2px 0 4px; }
.jc-fmeta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 0.75rem; color: var(--prentis-text-muted); align-items: center; }
.jc-fmeta span { display: inline-flex; gap: 4px; align-items: center; }

/* findings tab */
.jc-toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 12px; flex-wrap: wrap; }
.jc-search { display: flex; align-items: center; gap: 8px; background: var(--prentis-card-bg); border: 1px solid var(--prentis-border); border-radius: 8px; padding: 8px 10px; min-width: 280px; color: var(--prentis-text-muted); }
.jc-search input { border: 0; outline: 0; flex: 1; color: var(--prentis-text-primary); background: transparent; font: inherit; }
.jc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.jc-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border: 1px solid var(--prentis-border); border-radius: 999px; background: var(--prentis-card-bg); font-size: 0.8rem; font-weight: 500; }
.jc-chip .n { font-weight: 700; }
.jc-chip.zero { color: var(--prentis-text-muted); background: transparent; cursor: default; }
.jc-chip.safety:not(.zero) { color: var(--prentis-red); border-color: #EBC3BE; }
.jc-chip.on { background: var(--prentis-navy); color: #fff; border-color: var(--prentis-navy); }
.jc-grp { margin-bottom: 14px; overflow: hidden; }
.jc-grph { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--prentis-border); font-weight: 600; font-size: 0.875rem; }
.jc-grph .c { color: var(--prentis-text-muted); font-weight: 500; }
.jc-grph.safety { color: var(--prentis-red); }
.jc-grph .r { margin-left: auto; font-weight: 400; font-size: 0.75rem; color: var(--prentis-text-muted); }
.jc-frow { border-bottom: 1px solid var(--prentis-border-light); }
.jc-frow:last-child { border-bottom: 0; }
.jc-frow.dismissed { opacity: 0.55; }
.jc-rowh { display: flex; gap: 12px; align-items: center; padding: 10px 14px; cursor: pointer; }
.jc-rowh:hover { background: #FBFAF8; }
.jc-rowh .mid { flex: 1; min-width: 0; }
.jc-steps a, .jc-quoteline a { color: var(--prentis-teal-dark); cursor: pointer; }
.jc-dis { color: var(--prentis-text-muted); padding: 6px; border-radius: 6px; border: 0; background: none; flex: none; position: relative; }
.jc-dis:hover { background: #EFEDE8; color: var(--prentis-text-primary); }
/* the tooltip sits right next to the button it describes (Adam's item 9,
   2026-10-30) — a native title could drift to the page corner */
.jc-dis[data-tt]:hover::after { content: attr(data-tt); position: absolute; bottom: calc(100% + 6px); right: 0; background: #1F2528; color: #fff; font-size: 0.7rem; font-weight: 600; padding: 4px 8px; border-radius: 6px; white-space: nowrap; z-index: 20; pointer-events: none; }
.jc-dis.restore { display: inline-flex; gap: 5px; align-items: center; font-size: 0.78rem; font-weight: 600; border: 1px solid var(--prentis-border); }
.jc-rowh[data-jcgal] { cursor: zoom-in; }
/* the description line rows show instead of an expanding detail (item C10) */
.jc-fdesc { font-size: 0.8rem; color: #45443F; margin-top: 2px; }
/* his exact lines under a finding, always quoted (tech-findings v2) */
.jc-fverb { font-size: 0.8rem; color: #45443F; font-style: italic; margin-top: 2px; overflow-wrap: anywhere; min-width: 0; }
/* the photo count over a multi-photo finding's thumbnail (item C11) */
.jc-rowh .jc-thumb { position: relative; }
.jc-ct { position: absolute; left: 0; right: 0; bottom: 0; font-size: 0.62rem; font-weight: 700; text-align: center; color: #fff; background: rgba(16, 18, 20, 0.62); padding: 1px 0; border-radius: 0 0 6px 6px; pointer-events: none; }
.jc-tllink { display: inline-flex; gap: 5px; align-items: center; font-size: 0.78rem; font-weight: 600; color: var(--prentis-teal-dark); cursor: pointer; }

/* the lightbox (2026-10-30): closed by the X, Escape, or a click outside */
.jc-lb { position: fixed; inset: 0; z-index: 300; background: rgba(16, 18, 20, 0.82); display: flex; align-items: center; justify-content: center; padding: 24px; }
.jc-lb[hidden] { display: none; }
.jc-lbbox { position: relative; max-width: min(1100px, 94vw); max-height: 92vh; display: flex; flex-direction: column; }
.jc-lbbox img { max-width: 100%; max-height: 86vh; border-radius: 10px; object-fit: contain; background: #000; }
.jc-lbcap { color: #E6E8E9; font-size: 0.84rem; text-align: center; padding: 10px 6px 0; }
.jc-lbn { opacity: 0.75; margin-left: 8px; }
/* the gallery's left and right arrows (item C11) */
.jc-lbnav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.92); color: #1a1c1e; font-size: 1.5rem; line-height: 1; cursor: pointer; z-index: 2; box-shadow: 0 2px 10px rgba(0,0,0,.35); }
.jc-lbnav.prev { left: -16px; }
.jc-lbnav.next { right: -16px; }
.jc-lbx { position: absolute; top: -14px; right: -14px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: #fff; color: #1a1c1e; font-size: 0.9rem; font-weight: 700; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.35); z-index: 2; }
.jc-steps { padding: 10px 14px; border-bottom: 1px solid var(--prentis-border); font-size: 0.78rem; display: flex; flex-wrap: wrap; gap: 6px 14px; background: #FBFAF8; }
.jc-steps.col { flex-direction: column; border-bottom: 0; }
.jc-steps span { display: inline-flex; gap: 5px; align-items: baseline; }
.jc-steps .done { color: var(--prentis-green); }
.jc-steps .open { color: var(--prentis-text-muted); }
.jc-steps .i { flex: none; vertical-align: -3px; align-self: center; }
.jc-none { color: var(--prentis-text-muted); font-size: 0.8rem; padding: 12px 14px; }
/* findings reset Part B (2026-11-04): "From the technician" — existing colours only */
.jc-techk { padding: 10px 14px 0; font-size: 0.75rem; font-weight: 600; color: var(--prentis-text-muted); }
.jc-tline { display: block; padding: 8px 14px 10px; min-width: 0; }
.jc-tline .jc-ftxt { overflow-wrap: anywhere; }
.jc-verb summary { cursor: pointer; font-size: 0.78rem; font-weight: 600; color: var(--prentis-teal-dark); padding: 4px 0; min-height: 28px; display: flex; align-items: center; }
.jc-verbb { background: var(--prentis-sub-bg); border: 1px solid var(--prentis-border-light); border-radius: 8px; padding: 8px 10px; margin-top: 4px; }
.jc-verbh { font-size: 0.72rem; font-weight: 600; color: var(--prentis-text-muted); margin-bottom: 4px; }
.jc-verbl { display: flex; gap: 10px; font-size: 0.8rem; padding: 3px 0; min-width: 0; }
.jc-verbl > :first-child { flex: none; color: var(--prentis-teal-dark); font-variant-numeric: tabular-nums; }
.jc-verbl a { cursor: pointer; }
.jc-verbl > :last-child { overflow-wrap: anywhere; min-width: 0; }

/* Readings tab (readings-tab Part 5, 2026-11-09): one section per viewing
   of a screen, every section open by default, its title row toggling it;
   value lines (jc-rdrow) open to their sightings. Phone-safe: everything
   wraps, nothing scrolls sideways. */
.jc-rdsec { border-bottom: 1px solid var(--prentis-border-light); }
.jc-rdsec:last-child { border-bottom: 0; }
.jc-rdsec > summary { list-style: none; cursor: pointer; display: flex; align-items: flex-start; gap: 6px 10px; padding: 12px 14px; min-width: 0; }
.jc-rdsec > summary::-webkit-details-marker { display: none; }
.jc-rdsec > summary .chev { margin-left: auto; flex: none; transition: transform 0.15s; margin-top: 3px; }
.jc-rdsec[open] > summary .chev { transform: rotate(180deg); }
.jc-rdhead { min-width: 0; }
.jc-rdsect { font-weight: 600; font-size: 0.86rem; overflow-wrap: anywhere; min-width: 0; }
.jc-rdsecm { display: block; font-size: 0.75rem; margin-top: 2px; font-variant-numeric: tabular-nums; }
.jc-rdbody { padding: 0 14px 12px; }
.jc-rdbody .jc-rdrow summary { padding: 8px 0; }
.jc-rdbody .jc-rdsights { padding: 0 0 8px; }
.jc-rdbody > .jc-rdq { display: block; margin-top: 4px; }
.jc-rdstrip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-top: 10px; }
.jc-rdallbtn { border: 1px solid var(--prentis-border); background: var(--prentis-sub-bg); color: inherit; border-radius: 6px; padding: 4px 10px; font: inherit; font-size: 0.75rem; cursor: pointer; }
.jc-rdrow { border-bottom: 1px solid var(--prentis-border-light); }
.jc-rdrow:last-child { border-bottom: 0; }
.jc-rdrow summary { list-style: none; cursor: pointer; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; padding: 10px 14px; min-width: 0; }
.jc-rdrow summary::-webkit-details-marker { display: none; }
.jc-rdrow summary .chev { margin-left: auto; flex: none; transition: transform 0.15s; }
.jc-rdrow[open] summary .chev { transform: rotate(180deg); }
.jc-rdname { font-weight: 600; font-size: 0.84rem; overflow-wrap: anywhere; min-width: 0; }
.jc-rdval { font-size: 0.84rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.jc-rdsights { padding: 0 14px 10px; }
.jc-rdsight { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; padding: 4px 0; font-size: 0.8rem; border-top: 1px solid var(--prentis-border-light); min-width: 0; }
.jc-rdsight:first-child { border-top: 0; }
.jc-rdt { flex: none; color: var(--prentis-teal-dark); font-variant-numeric: tabular-nums; }
.jc-rdsight .jc-rdv { font-weight: 600; font-variant-numeric: tabular-nums; }
.jc-rdq { overflow-wrap: anywhere; min-width: 0; font-size: 0.75rem; }
.jc-rdphs { display: flex; flex-wrap: wrap; gap: 4px; }
.jc-rdph { width: 56px; height: 42px; border: 1px solid var(--prentis-border); border-radius: 6px; overflow: hidden; padding: 0; background: var(--prentis-sub-bg); cursor: zoom-in; flex: none; }
.jc-rdph img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* equipment tab */
.jc-eq { padding: 16px; margin-bottom: 16px; }
.jc-eqh { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
/* the one nameplate photo at the top of the card (item D13): the clearest
   capture, no caption, click to enlarge */
.jc-platehero { cursor: zoom-in; border-radius: 10px; overflow: hidden; margin-bottom: 12px; max-height: 340px; }
.jc-platehero img { display: block; width: 100%; max-height: 340px; object-fit: cover; }
.jc-sep { display: inline-block; font-size: 0.69rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--prentis-orange-light); color: var(--prentis-orange); vertical-align: 3px; margin-left: 6px; }
.jc-eqh .sub b { font-weight: 700; color: var(--prentis-text-primary); }
.jc-eqh h2 { margin: 0; font-size: 1.06rem; font-family: inherit; font-weight: 700; overflow-wrap: anywhere; }
.jc-eqh .sub { color: var(--prentis-text-muted); font-size: 0.8rem; display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 2px; }
.jc-age { margin-left: auto; text-align: right; }
.jc-age b { font-size: 1.1rem; }
.jc-keys { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
.jc-k { border: 1px solid var(--prentis-border); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.jc-k .l { font-size: 0.75rem; color: var(--prentis-text-muted); }
.jc-k .v { font-size: 0.9rem; font-weight: 600; margin-top: 2px; }
.jc-k .conf { display: block; }
.jc-k .conf em, .jc-eqgrid .conf em { font-style: normal; font-weight: 400; font-size: 0.69rem; color: var(--prentis-text-muted); margin-left: 4px; }
.jc-lbl { border: 1px solid var(--prentis-border); border-radius: 10px; padding: 12px 14px; margin-top: 12px; }
.jc-lblh { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.jc-lblh .jc-thumb { width: 56px; height: 42px; }
.jc-lbl details { border-top: 1px solid var(--prentis-border-light); }
.jc-lbl summary { list-style: none; cursor: pointer; padding: 10px 2px; font-weight: 600; display: flex; align-items: center; gap: 8px; font-size: 0.84rem; }
.jc-lbl summary::-webkit-details-marker { display: none; }
.jc-lbl summary .chev { margin-left: auto; transition: transform .15s; }
.jc-lbl details:not([open]) summary .chev { transform: rotate(-90deg); }
.jc-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; padding: 0 2px 12px; }
.jc-specs .sp { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px solid var(--prentis-border-light); font-size: 0.8rem; min-width: 0; }
.jc-specs .l { color: var(--prentis-text-muted); }
.jc-specs .v { text-align: right; font-weight: 500; overflow-wrap: anywhere; }

/* technicians */
.jc-techrow { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--prentis-border-light); }
.jc-techrow:last-child { border-bottom: 0; }
.jc-techrow:hover { background: #FBFAF8; }
.jc-techrow .grow { flex: 1; }
.jc-statline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.jc-topic { padding: 10px 0; border-top: 1px solid var(--prentis-border-light); }
.jc-topic:first-child { border-top: 0; }
.jc-topic .row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.jc-quoteline { font-size: 0.84rem; margin-top: 6px; color: #45443F; }

/* the phone: everything stacks, nothing scrolls sideways */
@media (max-width: 900px) {
  .jc-row3 { grid-template-columns: minmax(0, 1fr); }
  .jc-row3 .jc-mapbox { min-height: 140px; height: auto; }
  .jc-row3 .jc-mapbox .jc-gmap { min-height: 140px; }
  .jc-proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jc-tproofg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jc-tl { grid-template-columns: minmax(0, 1fr); }
  .jc-feedcard { height: 520px; }
  .jc-keys { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jc-specs { grid-template-columns: minmax(0, 1fr); }
  .jc-search { min-width: 0; flex: 1; }
  .jc-age { margin-left: 0; text-align: left; }
  .jc-statline { grid-template-columns: minmax(0, 1fr); }
}

/* ── Jobs in Progress (public/progress.js — Adam's approved prototype,
 * docs/jobs-in-progress-prototype.html, 2026-11-01): the tile grid, the
 * live map, and the one-job view with its viewer, call card and feed. ── */
.jp-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.jp-pillwrap { position: relative; }
.jp-pill { background: #fff; border: 1px solid var(--prentis-border); border-radius: 999px; padding: 6px 10px; display: inline-flex; align-items: center; gap: 5px; font-weight: 500; font-size: 0.75rem; color: var(--prentis-text-primary); white-space: nowrap; }
.jp-pill:hover { border-color: var(--prentis-teal); }
.jp-pill .jp-pn { color: var(--prentis-text-secondary); }
.jp-caret { display: inline-flex; color: var(--prentis-text-secondary); }
.jp-spacer { flex: 1; }
.jp-menu { position: absolute; top: 44px; left: 0; z-index: 20; background: #fff; border: 1px solid var(--prentis-border); border-radius: 14px; box-shadow: 0 12px 30px rgba(0,0,0,.08); padding: 8px; min-width: 240px; display: none; }
.jp-menu.open { display: block; }
.jp-menu label { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 8px; font-weight: 400; font-size: 14.5px; }
.jp-menu label:hover { background: var(--prentis-page-bg); }
.jp-mfoot { border-top: 1px solid var(--prentis-border-light); margin-top: 6px; padding: 8px 10px 4px; color: var(--prentis-text-secondary); font-size: 13px; }
.jp-menu label:first-child + .jp-mfoot { border-top: 0; }
.jp-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); }
.jp-tile { background: #fff; border: 1px solid var(--prentis-border); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .3s, border-color .3s; }
.jp-tile:hover { box-shadow: 0 8px 24px rgba(0,0,0,.07); }
.jp-tile.jp-flash { box-shadow: 0 0 0 3px rgba(11,55,85,.4); }
.jp-ph { position: relative; aspect-ratio: 4 / 3; cursor: pointer; overflow: hidden; background: #222; }
.jp-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.jp-noimg { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #9a9a94; font-size: 13px; text-align: center; }
.jp-live { position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; padding: 4px 8px; border-radius: 12px; display: inline-flex; align-items: center; gap: 6px; border: 0; cursor: pointer; font-family: var(--font); }
.jp-live i { width: 7px; height: 7px; border-radius: 50%; background: #5fd18f; flex: none; }
.jp-live.stale i { background: #aaa; }
.jp-live.call i { background: var(--prentis-teal); }
.jp-cap { position: absolute; left: 10px; bottom: 10px; right: 10px; color: #fff; font-size: 13px; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.jp-meta { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.jp-row1 { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.jp-name { font-weight: 600; font-size: 16px; }
.jp-actions { display: flex; gap: 8px; }
.jp-small { color: var(--prentis-text-secondary); font-size: 13.5px; display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; min-width: 0; }
.jp-nw { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.jp-nw > span, .jp-nw { overflow-wrap: anywhere; }
.jp-fnd { display: flex; align-items: center; gap: 7px; font-size: 14px; min-height: 22px; flex-wrap: wrap; }
.jp-fnd.jp-none, .jp-none { color: var(--prentis-text-secondary); font-size: 13.5px; }
.jp-ft { min-width: 0; overflow-wrap: anywhere; }
.jp-cat { font-weight: 500; font-size: 0.75rem; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.jp-cat.safety { background: var(--prentis-red-light); color: var(--prentis-red); }
.jp-cat.work { background: #e8edf3; color: var(--prentis-navy); }
.jp-cat.wear { background: var(--prentis-orange-light); color: var(--prentis-orange); }
.jp-crit { font-size: 0.75rem; font-weight: 500; color: #fff; background: var(--prentis-red); border-radius: 999px; padding: 3px 10px; }
.jp-empty { padding: 46px; text-align: center; font-weight: 600; }
.btn.sm, .jp-callbtn { padding: 5px 10px; font-size: 13px; }
/* 2026-11-05: "On a call · <first name>" on a busy technician's tile stays one line; the full name is in the title */
.jp-callwho { display: inline-block; max-width: 9.5em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.jp-stop { background: var(--prentis-red); border-color: var(--prentis-red); color: #fff; }

/* the live map: one navy pin with the technician's initials per located job */
.jp-mapcard { margin-bottom: 16px; overflow: hidden; }
/* half as tall as before (close-out 4b); the interactive map fills the same box */
.jp-mapbox { position: relative; width: 100%; aspect-ratio: 640 / 150; background: #eef0ea; border-radius: 16px; overflow: hidden; }
#jp-gmap .jp-pin { z-index: 2; }
.jp-mapbox.jp-mapnote { display: flex; align-items: center; justify-content: center; color: var(--prentis-text-secondary); font-size: 14px; aspect-ratio: auto; min-height: 90px; }
.jp-mapimg { position: absolute; inset: 0; width: 100%; height: 100%; }
/* the static map opens Google Maps on click (ux-fix 1); pins keep their own click */
.jp-maplink { cursor: pointer; }
.jp-pin { position: absolute; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; cursor: pointer; z-index: 2; }
.jp-pin-b { width: 34px; height: 34px; border-radius: 50%; background: var(--prentis-navy); color: #fff; font-weight: 700; font-size: 12.5px; display: flex; align-items: center; justify-content: center; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.jp-pin-s { width: 2px; height: 8px; background: var(--prentis-navy); }
.jp-pin-l { position: absolute; bottom: 48px; white-space: nowrap; background: #fff; border: 1px solid var(--prentis-border); border-radius: 8px; padding: 3px 8px; font-size: 12.5px; display: none; box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.jp-pin:hover .jp-pin-l, .jp-pin.hl .jp-pin-l { display: block; }
.jp-pin.hl .jp-pin-b { transform: scale(1.15); }
/* the job pages' single pin (ux-jobmaps): today's plain navy marker — a
   small dot and stem, no initials and no hover label */
.jc-gpin { cursor: default; }
.jc-gpin .jp-pin-b { width: 18px; height: 18px; border-width: 2px; }
.jc-gpin .jp-pin-s { height: 7px; }

/* one job in progress */
.jp-back { color: var(--prentis-teal-dark); display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px; font-size: 15px; }
.jp-jlayout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); gap: 18px; align-items: start; }
.jp-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.jp-viewer { overflow: hidden; }
.jp-viewer .jp-ph { aspect-ratio: 16 / 10; border-radius: 16px 16px 0 0; cursor: default; }
.jp-viewer.jp-oncall .jp-scrub, .jp-viewer.jp-oncall .jp-live, .jp-viewer.jp-oncall .jp-cap { display: none; }
.jp-scrub { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.jp-scrub input { width: 100%; accent-color: var(--prentis-navy); }
/* the live player (live-player): the Timeline's Play button (.jc-play)
   to the left of the slider; disabled under 2 captures */
.jp-scrubrow { display: flex; align-items: center; gap: 12px; }
.jp-scrubrow input { flex: 1; min-width: 0; }
.jp-scrubrow .jc-play:disabled { opacity: 0.45; }
.jp-scrublbl { display: flex; justify-content: space-between; color: var(--prentis-text-secondary); font-size: 13px; gap: 8px; }
.jp-minimap { border-bottom: 1px solid var(--prentis-border-light); border-radius: 16px 16px 0 0; overflow: hidden; background: #eef0ea; min-height: 90px; display: flex; align-items: center; justify-content: center; color: var(--prentis-text-secondary); font-size: 13.5px; }
.jp-minimap[hidden] { display: none; }
.jp-minimap img { display: block; width: 100%; height: auto; }
/* the interactive mini map (ux-jobmaps): the static image's own proportions */
.jp-minigmap { width: 100%; aspect-ratio: 400 / 150; }
.jp-kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; padding: 16px; font-size: 14px; margin: 0; }
.jp-kv dt { color: var(--prentis-text-secondary); text-transform: uppercase; font-size: 12px; letter-spacing: .06em; align-self: center; }
.jp-kv dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.jp-kv a { color: var(--prentis-teal-dark); font-weight: 500; }
.jp-sect { padding: 14px 16px; border-top: 1px solid var(--prentis-border-light); }
.jp-sect.jp-first { border-top: 0; }
.jp-sect h3 { margin: 0 0 10px; font-size: 12.5px; letter-spacing: .08em; color: var(--prentis-text-secondary); text-transform: uppercase; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.jp-callrow { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 14px; }
.jp-callst { font-weight: 500; }
.jp-settings { border: 1px solid var(--prentis-border-light); border-radius: 12px; padding: 4px 12px 10px; margin-top: 10px; font-size: 13.5px; }
.jp-settings .vc-alerts, .jp-settings .notice { margin-top: 8px; }
.jp-log { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-top: 8px; }
.jp-log td { padding: 7px 4px; border-top: 1px solid var(--prentis-border-light); }
.jp-log td.jp-logh { border-top: 0; padding: 4px 0; color: var(--prentis-text-secondary); font-size: 12px; letter-spacing: .06em; }
.jp-log td.jp-logend { text-align: right; color: var(--prentis-text-secondary); }
.jp-tabs { display: inline-flex; border: 1px solid var(--prentis-border); border-radius: 999px; overflow: hidden; }
.jp-tabs button { border: 0; background: #fff; padding: 6px 10px; font-size: 0.75rem; font-weight: 500; color: var(--prentis-text-secondary); font-family: var(--font); }
.jp-tabs button.on { background: var(--prentis-teal-light); color: var(--prentis-navy); font-weight: 600; }
.jp-feed { max-height: 360px; overflow: auto; display: flex; flex-direction: column; gap: 10px; }
.jp-fitem { border: 1px solid var(--prentis-border-light); border-radius: 12px; padding: 10px 12px; display: flex; gap: 10px; min-width: 0; }
.jp-fitem .jp-th { width: 64px; height: 48px; border-radius: 8px; flex: none; overflow: hidden; background: #eee; display: block; }
.jp-fitem .jp-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jp-fitem > div { min-width: 0; }
.jp-mic { color: var(--prentis-text-secondary); flex: none; padding-top: 2px; }
.jp-quote { font-style: italic; }
.jp-tm { color: var(--prentis-text-secondary); font-size: 12.5px; margin-top: 3px; }

/* phone widths: one column, no sideways scrolling (owner ground rule) */
@media (max-width: 900px) {
  .jp-grid { grid-template-columns: 1fr; }
  .jp-jlayout { grid-template-columns: minmax(0, 1fr); }
  .jp-bar { gap: 8px; }
  .jp-menu { min-width: 210px; max-width: calc(100vw - 48px); }
}

/* ── Technicians screens (technicians.js; Adam's approved redesign,
   docs/technicians-prototype.html, 2026-11-02). Everything is scoped under
   .tx (the screens' root) or the tx- prefix, so no other screen changes.
   The prototype's hues are mapped onto the dashboard's tokens; the pill and
   wash colors are the prototype's own. */
.tx { display: flex; flex-direction: column; gap: 16px; --tx-wash: #f3f5f8; --tx-sel: #e6ecf3; --tx-grid: var(--prentis-border-light); }
.tx .muted { color: var(--prentis-text-muted); }
.tx-none { padding: 22px; text-align: center; color: var(--prentis-text-muted); }
/* the date range control (Google-style) */
.tx-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; position: relative; }
.tx-datebtn { display: inline-flex; align-items: center; gap: 5px; background: #fff; border: 1px solid var(--prentis-border); border-radius: 999px; padding: 6px 10px; font-size: 0.75rem; font-weight: 500; text-align: left; min-width: 0; white-space: nowrap; }
.tx-datebtn:hover { border-color: var(--prentis-teal); }
.tx-datebtn .p { font-weight: 600; white-space: nowrap; }
.tx-datebtn .r { color: var(--prentis-text-secondary); white-space: nowrap; }
.tx-datebtn .c { display: inline; color: var(--prentis-text-muted); margin-left: 6px; white-space: nowrap; }
.tx-datebtn .car { display: inline-flex; color: var(--prentis-text-muted); }
.tx-picker { position: absolute; top: calc(100% + 6px); left: 0; z-index: 50; background: #fff; border: 1px solid var(--prentis-border); border-radius: 12px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16); width: 640px; max-width: calc(100vw - 32px); display: none; overflow: hidden; }
.tx-picker.show { display: block; }
.tx .pk-body { display: grid; grid-template-columns: 230px 1fr; height: 430px; }
.tx .pk-body > * { min-height: 0; }
.tx .plist { border-right: 1px solid var(--prentis-border); overflow-y: auto; padding: 6px 0; }
.tx .plist button { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; text-align: left; padding: 10px 18px; font-size: 14.5px; }
.tx .plist button:hover { background: #f6f6f3; }
.tx .plist button.on { background: var(--tx-sel); font-weight: 600; }
.tx .plist button .ck { width: 16px; font-weight: 700; color: var(--prentis-navy); }
.tx .plist hr { border: 0; border-top: 1px solid var(--prentis-border); margin: 6px 0; }
.tx .pk-right { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.tx .pk-fields { display: flex; align-items: center; gap: 10px; padding: 16px 18px 10px; }
.tx .fld { position: relative; flex: 1; }
.tx .fld label { position: absolute; top: -8px; left: 10px; background: #fff; padding: 0 4px; font-size: 12px; color: var(--prentis-text-muted); }
.tx .fld input { width: 100%; border: 1px solid #cfcdc6; border-radius: 8px; padding: 10px 12px; font-size: 14.5px; background: #fff; }
.tx .fld.act input { border-color: var(--prentis-navy); box-shadow: 0 0 0 1px var(--prentis-navy); }
.tx .pk-nav { display: flex; align-items: center; justify-content: space-between; padding: 4px 14px 6px 18px; }
.tx .pk-nav .ml { font-weight: 600; font-size: 13.5px; letter-spacing: 0.04em; }
.tx .pk-nav button { border: 0; background: none; font-size: 20px; color: var(--prentis-text-secondary); width: 34px; height: 34px; border-radius: 50%; }
.tx .pk-nav button:hover { background: #f1f1ee; }
.tx .dow { display: grid; grid-template-columns: repeat(7, 1fr); padding: 0 12px 6px; border-bottom: 1px solid var(--prentis-border); font-size: 12.5px; color: var(--prentis-text-muted); text-align: center; }
.tx .cal { display: block; flex: 1; overflow-y: auto; padding: 0 12px 10px; } /* display:block beats the old popover's global .cal{display:flex} */
.tx .mh { font-weight: 700; font-size: 13px; letter-spacing: 0.04em; padding: 12px 8px 6px; }
.tx .wk { display: grid; grid-template-columns: repeat(7, 1fr); }
.tx .dc { height: 38px; display: flex; align-items: center; justify-content: center; position: relative; font-size: 14px; }
.tx .dc button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: none; position: relative; z-index: 1; font-size: 14px; }
.tx .dc button:hover { background: #eef0f3; }
.tx .dc.in::before { content: ""; position: absolute; inset: 3px 0; background: var(--tx-sel); }
.tx .dc.st::before { content: ""; position: absolute; inset: 3px 0 3px 50%; background: var(--tx-sel); }
.tx .dc.en::before { content: ""; position: absolute; inset: 3px 50% 3px 0; background: var(--tx-sel); }
.tx .dc.st.en::before { display: none; }
.tx .dc.st button, .tx .dc.en button { background: var(--prentis-navy); color: #fff; font-weight: 600; }
.tx .dc.today button { box-shadow: inset 0 0 0 1px #9aa6b4; }
.tx .dc.dis button { color: #c9c7c0; cursor: default; }
.tx .dc.dis button:hover { background: none; }
.tx .pk-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--prentis-border); padding: 10px 14px 10px 18px; flex-wrap: wrap; }
.tx .cmpf { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.tx .sw { appearance: none; width: 34px; height: 20px; border-radius: 10px; background: #cfcdc6; position: relative; cursor: pointer; margin: 0; transition: background 0.15s; }
.tx .sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left 0.15s; }
.tx .sw:checked { background: var(--prentis-navy); }
.tx .sw:checked::after { left: 16px; }
.tx .sw:disabled { opacity: 0.5; cursor: default; }
.tx-sel { border: 1px solid var(--prentis-border); border-radius: 999px; padding: 6px 26px 6px 10px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238b8a85' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center; appearance: none; font-size: 0.75rem; font-weight: 500; cursor: pointer; }
.tx-sel:disabled { opacity: 0.5; cursor: default; }
.tx-sel.strong { color: var(--prentis-text-primary); border-color: #cfcdc6; }
.tx .tbtn { border: 0; background: none; color: var(--prentis-navy); font-weight: 600; padding: 8px 12px; border-radius: 8px; font-size: 14.5px; }
.tx .tbtn:hover { background: #f1f3f6; }
/* pills: one shape everywhere — green better, amber worse, navy for job
   counts, gray for no change */
.tx .pl { display: inline-flex; align-items: center; gap: 4px; font-size: 0.75rem; border-radius: 999px; padding: 3px 10px; white-space: normal; max-width: 100%; font-weight: 500; line-height: 1.5; }
.tx .pl.good { background: #e6f3ec; color: #2f8a57; }
.tx .pl.warn { background: #fdf3e1; color: #9a6417; }
.tx .pl.neu { background: #e8edf3; color: #1b3550; }
.tx .pl.same { background: #f0efea; color: #6f6e69; }
/* the four tiles */
.tx .stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tx .stat { background: #fff; border: 1px solid var(--prentis-border); border-radius: var(--radius-xl); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; min-width: 0; /* the Field Report's global .stat sets 130px */ }
.tx .stat .l { color: var(--prentis-text-muted); font-size: 13.5px; }
.tx .stat .v { font-size: 28px; font-weight: 700; line-height: 1.15; }
.tx .stat .v.txt { font-size: 17px; font-weight: 600; line-height: 1.3; }
.tx .stat .v.txt small { font-weight: 400; color: var(--prentis-text-muted); font-size: 14px; }
.tx .card-h { flex-wrap: wrap; gap: 8px 14px; }
.tx .card-h .opts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--prentis-text-muted); }
/* the chart */
.tx .legend { display: flex; gap: 6px 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--prentis-text-secondary); align-items: center; margin-bottom: 8px; }
.tx .legend .lk { display: inline-block; width: 16px; height: 2px; border-radius: 1px; vertical-align: middle; margin-right: 6px; }
.tx .legend .lk.dash { height: 0; border-top: 2px dashed var(--prentis-text-muted); background: none; }
.tx .legend .sq, .tx-tip .row i.sq { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
.tx-chart { position: relative; width: 100%; }
.tx-chart svg { display: block; overflow: visible; max-width: 100%; }
.tx-chart .gl { stroke: var(--tx-grid); stroke-width: 1; }
.tx-chart .yt { fill: var(--prentis-text-muted); font-size: 11.5px; text-anchor: end; font-variant-numeric: tabular-nums; }
.tx-chart .xt { fill: var(--prentis-text-muted); font-size: 11.5px; text-anchor: middle; }
.tx-chart .ln { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.tx-chart .ln.prev { stroke-width: 1.5; stroke-dasharray: 4 4; opacity: 0.55; }
.tx-chart .hit { fill: transparent; cursor: pointer; outline: none; }
.tx-chart .selband { fill: rgba(63, 156, 148, 0.1); }
.tx-chart .xh { stroke: #9b9a94; stroke-width: 1; }
.tx-tip { position: fixed; z-index: 70; pointer-events: none; background: #fff; border: 1px solid var(--prentis-border); border-radius: 10px; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12); padding: 10px 12px; font-size: 13px; min-width: 220px; max-width: min(380px, calc(100vw - 16px)); display: none; line-height: 1.5; }
.tx-tip.show { display: block; }
.tx-tip .h { color: var(--prentis-text-muted); margin-bottom: 4px; }
.tx-tip .row { display: flex; align-items: center; gap: 8px; }
.tx-tip .row i { display: inline-block; width: 12px; height: 2px; border-radius: 1px; flex: none; }
.tx-tip .row b { min-width: 40px; }
.tx-tip .row .n { color: var(--prentis-text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-tip .row .w { color: var(--prentis-text-muted); margin-left: auto; padding-left: 8px; white-space: nowrap; }
/* metric cards above the chart, Google Ads style: click shows or hides what
   the card plots, the dropdown picks what it shows */
.tx .mcards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--prentis-border); }
.tx .mcard { position: relative; padding: 14px 16px 12px; border-right: 1px solid var(--prentis-border); cursor: pointer; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; min-width: 0; background: #fafaf8; outline: none; }
.tx .mcard:last-child { border-right: 0; }
.tx .mcard::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--tx-grid); }
.tx .mcard.on { background: #fff; }
.tx .mcard.on::before { background: var(--c); }
.tx .mcard:hover { background: #f6f6f3; }
.tx .mcard.on:hover { background: #fcfcfb; }
.tx .mcard:focus-visible { box-shadow: inset 0 0 0 2px var(--prentis-teal-dark); }
.tx .mcard:not(.on) .mv { color: var(--prentis-text-muted); }
.tx .mcard.total { background: #fff; cursor: default; }
.tx .mcard.total::before { background: var(--tx-grid); }
.tx .mcard.total:hover { background: #fff; }
.tx .mcard.total .mv { color: var(--prentis-text-primary); }
.tx .msel { border: 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%238b8a85'/%3E%3C/svg%3E") no-repeat right 0 center; appearance: none; padding: 0 18px 0 0; font-size: 13.5px; color: var(--prentis-text-secondary); max-width: 100%; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; cursor: pointer; }
.tx .msel:hover { color: var(--prentis-text-primary); }
.tx .mv { font-size: 24px; font-weight: 700; line-height: 1.15; }
.tx .mv small { font-size: 13px; font-weight: 400; color: var(--prentis-text-muted); }
/* the topic table */
.tx .trow { display: grid; grid-template-columns: minmax(190px, 1.5fr) minmax(150px, 1.1fr) 84px minmax(150px, 1fr) 124px 14px; gap: 12px; align-items: center; padding: 10px 18px; border-top: 1px solid var(--prentis-border); }
.tx .trow.head { border-top: 0; color: var(--prentis-text-muted); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; padding-top: 9px; padding-bottom: 9px; }
.tx .trow.total { background: #fafaf8; }
.tx .trow.total .tp { font-weight: 700; }
.tx .trow.r { cursor: pointer; }
.tx .trow.r:hover { background: #fafaf8; }
.tx .trow.r.open { background: var(--tx-wash); }
.tx .trow .tp { font-weight: 600; }
.tx .trow.zero .tp { color: var(--prentis-text-muted); font-weight: 500; }
.tx .tp .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 9px; vertical-align: 1px; }
.tx .share { display: flex; align-items: center; gap: 10px; }
.tx .track { flex: 1; height: 8px; border-radius: 4px; background: var(--tx-grid); overflow: hidden; max-width: 110px; }
.tx .track i { display: block; height: 100%; background: var(--prentis-navy); border-radius: 4px; }
.tx .sv { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 14px; }
.tx .asks { color: var(--prentis-text-primary); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tx .chev { color: var(--prentis-text-muted); transition: transform 0.15s; }
.tx .open .chev { transform: rotate(90deg); }
.tx .scope { display: inline-flex; gap: 8px; align-items: center; background: var(--tx-wash); border-radius: 16px; padding: 4px 6px 4px 12px; font-size: 13px; color: var(--prentis-text-secondary); }
.tx .scope button { border: 0; background: #fff; border-radius: 12px; padding: 2px 9px; font-size: 12.5px; color: var(--prentis-text-secondary); }
/* a topic's instances */
.tx .drill { background: var(--tx-wash); padding: 4px 18px 14px 52px; border-top: 1px solid #e4e8ee; }
.tx .drill .sum { font-size: 13.5px; color: var(--prentis-text-secondary); padding: 6px 0 8px; }
.tx .inst { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px) auto; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--prentis-border); border-radius: 12px; padding: 9px 12px 9px 14px; margin-top: 6px; cursor: pointer; color: var(--prentis-text-primary); }
.tx .inst:hover { border-color: #c8cfd8; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03); }
.tx .inst:focus { outline: 2px solid var(--prentis-teal-dark); outline-offset: 1px; }
.tx .iq { font-style: italic; font-size: 14.5px; color: var(--prentis-text-primary); }
.tx .id { font-size: 13px; line-height: 1.4; min-width: 0; }
.tx .id .d1 { display: block; font-weight: 600; color: var(--prentis-text-primary); }
.tx .id .d2 { display: block; color: var(--prentis-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx .ith { display: flex; gap: 6px; }
.tx .ith img { display: block; border-radius: 6px; border: 1px solid #e1e3e6; object-fit: cover; }
.tx .more { margin-top: 10px; border: 1px solid var(--prentis-border); background: #fff; border-radius: 16px; padding: 6px 12px; font-size: 13px; color: var(--prentis-text-secondary); }
/* the list of technicians */
/* breadcrumb-and-pills (2026-11-03): columns sized to their content —
   each pill column exactly fits its longest pill ("No jobs in the
   earlier period", 172px; the list's pillHTML calls are all count-kind),
   the chart column is the spark's own 120px, and the Technician column
   may wrap a long name. Mins + gaps + padding = 876px: the table fits a
   910px box (a 1280px window with the navigation open). */
.tx .lrow { display: grid; grid-template-columns: minmax(120px, 1.2fr) minmax(172px, 0.9fr) minmax(172px, 1fr) 120px minmax(172px, 1.3fr) 14px; gap: 14px; align-items: center; padding: 13px 18px; border-top: 1px solid var(--prentis-border); color: var(--prentis-text-primary); }
.tx .lrow > * { min-width: 0; }
.tx .lrow.head { border-top: 0; color: var(--prentis-text-muted); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; padding-top: 11px; padding-bottom: 11px; }
.tx a.lrow:hover { background: #fafaf8; }
.tx .lrow .nm { font-weight: 600; }
.tx .lrow .nm small { display: block; font-weight: 400; color: var(--prentis-text-muted); font-size: 12.5px; }
.tx .cell2 { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; min-width: 0; max-width: 100%; }
/* a list pill never breaks its own text: one line in its column on the
   table, and on the cards it moves onto its own line as a whole (the
   metric cards' .mcard .pl keep wrapping as before) */
.tx .lrow .pl { white-space: nowrap; }
.tx .cell2 b { font-size: 15px; }
.tx .c-lbl { display: none; }
/* on a desktop too narrow for every column, the table scrolls inside its
   own box, never the page (the repo's wide-table rule) */
.tx .tx-scroll { overflow-x: auto; border-radius: inherit; container-type: inline-size; }
@media (min-width: 901px) {
  .tx .tx-scroll .trow { min-width: 820px; }
  .tx .tx-scroll .tx-drillbox .drill { min-width: 820px; }
}
/* tech-table-fit (2026-11-03): the Technicians LIST never scrolls
   sideways. The list's own box decides — a container query on
   .tx-scroll, so collapsing the navigation gives the table more room.
   Under 876px (the table's minimum with every pill on one line) the
   list shows the card layout that phones used already. */
@container (width < 876px) {
  .tx .lrow { grid-template-columns: 1fr auto; gap: 6px 10px; padding: 13px 14px; }
  .tx .lrow.head { display: none; }
  .tx .lrow .c-go { display: none; }
  .tx .lrow .c-jobs, .tx .lrow .c-rate, .tx .lrow .c-top { grid-column: 1 / -1; }
  .tx .lrow .c-trend { grid-column: 2; grid-row: 1; justify-self: end; }
  .tx .c-lbl { display: inline; color: var(--prentis-text-muted); font-weight: 400; font-size: 13px; }
  .tx .cell2 { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
}
@media (max-width: 1100px) {
  .tx .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .tx .trow { grid-template-columns: 1fr auto; gap: 6px 10px; padding: 11px 14px; }
  .tx .trow.head { display: none; }
  .tx .trow .tp { grid-column: 1; }
  .tx .trow .share { grid-column: 2; justify-content: flex-end; }
  .tx .trow .chgc { grid-column: 1; }
  .tx .trow .spk { grid-column: 2; justify-self: end; }
  .tx .trow .asks { grid-column: 1; font-size: 13px; }
  .tx .trow .chev { display: none; }
  .tx .mcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tx .mcard:nth-child(2) { border-right: 0; }
  .tx .mcard:nth-child(-n+2) { border-bottom: 1px solid var(--prentis-border); }
  .tx .mcard { padding: 12px; }
  .tx .mv { font-size: 20px; }
  .tx .track { width: 56px; flex: none; }
  .tx .drill { padding: 4px 12px 12px; }
  .tx .inst { grid-template-columns: 1fr; gap: 6px; }
  /* the list's own card rules moved to the @container block above
     (tech-table-fit): the list box, not the window, decides */
}
@media (max-width: 700px) {
  /* the picker fills the screen on a phone */
  .tx-picker { position: fixed; left: 8px; right: 8px; top: 8px; bottom: 8px; width: auto; max-width: none; display: none; flex-direction: column; }
  .tx-picker.show { display: flex; }
  .tx .pk-body { grid-template-columns: 1fr; grid-template-rows: auto 1fr; height: auto; flex: 1; min-height: 0; }
  .tx .plist { border-right: 0; border-bottom: 1px solid var(--prentis-border); max-height: 150px; display: grid; grid-template-columns: 1fr 1fr; }
  .tx .plist hr { display: none; }
  .tx .plist button { padding: 8px 12px; font-size: 13.5px; }
  .tx .pk-right { min-height: 0; }
  .tx-datebtn .r { display: none; }
}
@media (max-width: 560px) {
  .tx .stats { grid-template-columns: 1fr; }
  .tx .mcard .pl { white-space: normal; text-align: left; }
}
