/* Sentry's own looks (3.0, rebuild plan Phase 1): the Fleet Dashboard, the Fleet Map, the Units list and a unit's page
   (public/fleet-home.js). Every one built from tokens.css; the shared pieces (glass, strip, drill, pipe, seg, subtabs, chip,
   status, flags, src, table.t, phone-cards) come from components.css. Every class here starts with sn- so nothing on
   another screen can pick it up. Design: the canvas board X-Fleet. */

.sn { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); min-width: 0; }   /* one column no child can widen past the screen */
.sn h2 { margin: 0; font-size: var(--fs-l); font-weight: var(--fw-x); }
.sn-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 10px; }
.sn-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sn-p { margin: 0 0 4px; font-size: 13px; color: var(--muted); max-width: 76ch; }
.sn-nowrap { white-space: nowrap; }
.sn-block { display: block; }
.sn-grow { flex: 1 1 auto; min-width: 0; }
.sn-bad { color: var(--bad); }
.sn-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.sn-chips a.chip { text-decoration: none; }
.sn-chips a.chip:hover { text-decoration: underline; }
.sn-link { all: unset; cursor: pointer; font-size: 12.5px; font-weight: var(--fw-bold); color: var(--accent-ink); }
.sn-link:hover { text-decoration: underline; }
.sn-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.sn-rowacts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; justify-content: flex-end; }
.sn-who { display: inline-flex; align-items: center; text-decoration: none; color: inherit; }
.sn-who:hover { text-decoration: underline; }
.sn .value.sn-small, .sn-small { font-size: var(--fs-l); font-weight: var(--fw-semi); letter-spacing: 0; }
.sn .strip .top .btn.sm { height: 28px; min-height: 0; padding: 0 8px; position: relative; flex: none; }   /* a unit's "+ Reading": 28px in the figure's top row at every width, so Engine hours' number sits level with the rest (w11design K8: the touch 44px floor put it 16px lower) */
/* ...and 44 tall for a thumb, in the same 28px slot (negative margins): a .btn clips its own ::after (overflow: hidden), so the
   reach that stood here never reached past 28 (w15polish K3, measured) */
@media (max-width: 1180px), (pointer: coarse) { .sn .strip .top .btn.sm { height: var(--tap); margin-block: calc((28px - var(--tap)) / 2); } }
.sn .strip .top .label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }   /* "Engine hours" stays one line beside it */
.sn select.status, .sn-fl select.status { width: auto; max-width: 100%; }   /* 2.x styles.css gives every select width:100% */
.sn h2 + .sn-p { margin-top: 6px; }
.sn table.t td.sn-unit-cell, .sn table.t td.sn-branch-cell { white-space: nowrap; }

/* ---- a status's tone (set with the status in Settings, fleet_statuses): the dots, the pipe and the legend */
.sn .dot, .sn-fl .dot { background: var(--faint); }
.sn .dot.ok, .sn-fl .dot.ok { background: var(--water-ok-b); }
.sn .dot.warn, .sn-fl .dot.warn { background: var(--water-warn-b); }
.sn .dot.bad, .sn-fl .dot.bad { background: var(--water-bad-b); }
.sn .dot.info, .sn-fl .dot.info { background: var(--water-b); }
.sn-pipe { display: flex; gap: 2px; height: 12px; padding: 2px; border-radius: var(--r-pill); background: var(--well); box-shadow: inset 0 1px 2px rgba(16,24,40,.12); overflow: hidden; }
.sn-pipe i { display: block; flex: var(--n, 0) 1 0; min-width: 3px; border-radius: 2px; background: var(--hair-2); box-shadow: inset 0 1px 0 rgba(255,255,255,.5); animation: sn-grow var(--t-pour) both; }
.sn-pipe i:first-child { border-radius: var(--r-pill) 2px 2px var(--r-pill); }
.sn-pipe i:last-child { border-radius: 2px var(--r-pill) var(--r-pill) 2px; }
.sn-pipe i:only-child { border-radius: var(--r-pill); }
.sn-pipe i.ok { background: linear-gradient(180deg, var(--water-ok-a), var(--water-ok-b)); }
.sn-pipe i.warn { background: linear-gradient(180deg, var(--water-warn-a), var(--water-warn-b)); }
.sn-pipe i.bad { background: linear-gradient(180deg, var(--water-bad-a), var(--water-bad-b)); }
.sn-pipe i.info { background: linear-gradient(180deg, var(--water-a), var(--water-b)); }
@keyframes sn-grow { from { flex-grow: 0; } }
.sn-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; }
.sn-leg { display: inline-flex; align-items: center; gap: 6px; font: var(--fw-med) 12.5px var(--font); color: var(--ink-2); background: none; border: 0; padding: 2px 0; cursor: default; }
button.sn-leg { cursor: pointer; border-radius: 6px; }
button.sn-leg:hover { color: var(--ink); text-decoration: underline; }
button.sn-leg:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.sn-leg b { font-weight: var(--fw-bold); color: var(--ink); font-variant-numeric: tabular-nums; }
.sn-live { display: inline-block; width: 9px; height: 9px; margin-right: 8px; vertical-align: middle; border-radius: 50%; background: var(--water-ok-b); animation: sn-pulse 1.6s infinite; }
@keyframes sn-pulse { 0% { box-shadow: 0 0 0 0 var(--ok-line); } 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .sn-live, .sn-pipe i { animation: none; } }

/* ---- dashboard: Due soon */
.sn-due { list-style: none; margin: 10px 0 0; padding: 0; display: grid; }
.sn-due li { display: grid; grid-template-columns: minmax(0, 1fr) auto 28px; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--hair); font-size: 13.5px; }
.sn-due li:first-child { border-top: 0; }
.sn-due b { font-variant-numeric: tabular-nums; font-size: var(--fs-l); }

/* ---- the Units list */
.sn-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 14px; }
.sn-filters .input { flex: 1 1 240px; max-width: 360px; }
.sn-filters .select-wrap { flex: 0 1 190px; min-width: 0; }
.sn-filters .select-wrap .select { width: 100%; }
.sn-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding: 12px 16px; font-size: 13.5px; }
.sn-note > span { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.sn-note .i { color: var(--warn); align-self: center; }
.sn-note.info .i { color: var(--info); }
.sn-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 14px; }
.sn-bulk .select-wrap { flex: 0 1 220px; }
.sn-bulk .select-wrap .select { width: 100%; }
.sn-sync { display: inline-flex; align-items: center; gap: 8px; }
.sn-tick { width: 16px; height: 16px; margin: 0; accent-color: var(--ink); cursor: pointer; }
.sn-thumb { display: block; width: 46px; height: 34px; border-radius: 8px; overflow: hidden; flex: none; }
.sn-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sn-noph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: var(--well); color: var(--faint); }
#snUnits table.t th:first-child, #snUnits table.t td:first-child { width: 28px; padding-right: 0; }   /* the tick column (scoped: every other Sentry table's first column is its name) */
.sn-ucard { display: grid; gap: 8px; }
.sn-ucard-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sn-ucard-mid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
/* a unit's card (it has a photo): the status, meter, branch and flags lines sit under the name, not at the card's edge
   (w11design S6) — the top row's tick, photo and name become the card grid's three columns, the rest the third */
.sn-ucard:has(> .sn-ucard-top > .sn-thumb) { grid-template-columns: auto auto minmax(0, 1fr); column-gap: 10px; }
.sn-ucard:has(> .sn-ucard-top > .sn-thumb) > .sn-ucard-top { display: contents; }
.sn-ucard:has(> .sn-ucard-top > .sn-thumb) > .sn-ucard-top > * { align-self: center; }
.sn-ucard:has(> .sn-ucard-top > .sn-thumb) > :not(.sn-ucard-top) { grid-column: 3; min-width: 0; }
.sn-row-main { display: grid; min-width: 0; flex: 1 1 auto; }
.sn-row-main .hint { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sn-cardlink { color: inherit; text-decoration: none; }
.sn-line { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }

/* ---- a unit: header, tabs */
.sn-uhead { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px 16px; }
.sn-uhead .sn-uphoto { margin-top: 18px; }   /* level with the title, under the crumb */
.sn-uhead .sn-actions { margin-left: auto; align-self: flex-end; }
.sn-uphoto { width: 86px; height: 64px; padding: 0; border: 0; border-radius: var(--r-m); overflow: hidden; background: var(--well); cursor: zoom-in; flex: none;
  box-shadow: var(--shadow-pop); }
.sn-uphoto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sn-uphoto.none { cursor: pointer; color: var(--faint); display: inline-flex; align-items: center; justify-content: center; box-shadow: none; border: 1px dashed var(--hair-2); }
.sn-uphoto.none:hover { color: var(--ink); border-color: var(--ink); }
.sn-uphoto:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sn-ut-wrap { flex: 1 1 220px; min-width: 0; }
.sn-ut { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 2px; }
.sn-ut h1 { margin: 0; font-size: var(--fs-h1); font-weight: var(--fw-bold); letter-spacing: -.02em; }
.sn-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: 13px; color: var(--muted); }
.sn-meta a { color: var(--ink-2); font-weight: var(--fw-semi); text-decoration: none; }
.sn-meta a:hover { text-decoration: underline; }
.sn-who-line { display: inline-flex; align-items: center; gap: 6px; }
.sn-tab { display: grid; gap: var(--gap); min-width: 0; }
.sn-tab .glass > .pad .sn-top { margin-bottom: 4px; }
.sn-honour.club { background: var(--warn-bg); color: var(--warn); border: 1px solid var(--warn-line); }
.sn-honour.veteran { background: var(--well); color: var(--ink-2); border: 1px solid var(--hair-2); }
#snLock:empty { display: none; }

/* key / value lists: details, specs, the map's selected unit */
.sn-kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 18px; margin: 4px 0 0; }
.sn-kv > div { padding: 8px 0; border-top: 1px solid var(--hair); min-width: 0; }
.sn-kv dt { font-size: 12px; font-weight: var(--fw-semi); color: var(--muted); }
.sn-kv dd { margin: 2px 0 0; font-size: 13.5px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; overflow-wrap: anywhere; }
.sn-kv dd .hint.sn-block { flex-basis: 100%; }
.sn-notes { margin: 12px 0 0; padding: 10px 12px; border-radius: var(--r-m); background: var(--well); font-size: 13px; white-space: pre-wrap; }
.sn-kv2 { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 10px; }

/* service: how far into its interval */
.sn-used { display: grid; grid-template-columns: minmax(70px, 1fr) auto; align-items: center; gap: 10px; min-width: 160px; }
table.t .sn-used { grid-template-columns: 96px auto; }   /* in a table every row's bar is one length (they ran 70 to 124px, set by each row's words; review 4, 10/22) */
table.t .sn-usedw > .sn-nowrap { display: block; }       /* …and its words stack, "used" over "over", so the list still fits 1440 with the wider Service column */
table.t .sn-usedsep { display: none; }
table.t td.sn-task { min-width: 20ch; }                  /* the task's name: "250 Hour C&C PM" ran three lines in a 78px column; most names (≤ 21 letters) now sit on one */
.sn-used b { font-size: 12.5px; font-variant-numeric: tabular-nums; }
.sn-ahead td { color: var(--muted); }
.sn-camera { display: inline-flex; vertical-align: middle; color: var(--muted); }
.sn-camera:hover { color: var(--ink); }
.sn-catchip { border: 0; cursor: pointer; height: 26px; }
.sn-catchip b { color: var(--ink); }
.sn-catchip:hover { background: var(--hair-2); }

/* photos: a grid of thumbnails; one only at Fleetio is a placeholder that opens it there */
.sn-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; margin-top: 10px; }
.sn-ph { margin: 0; display: grid; gap: 6px; }
.sn-ph-thumb { display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; border-radius: var(--r-m); overflow: hidden; background: var(--well); cursor: zoom-in; }
.sn-ph-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sn-ph-thumb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sn-ph-none { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--faint); font-size: 12px; font-weight: var(--fw-semi);
  border: 1px dashed var(--hair-2); text-decoration: none; cursor: pointer; }
a.sn-ph-none:hover { color: var(--ink); border-color: var(--ink-2); }
span.sn-ph-none { cursor: default; }
.sn-ph figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px; min-height: 32px; }
.sn-ph.is-default .sn-ph-thumb { box-shadow: 0 0 0 2px var(--ok); }
.sn-ph.is-hidden img { opacity: .5; }
.sn-hidden-grid { border-top: 1px dashed var(--hair-2); padding-top: 12px; }

/* activity: this month a square a day, letters as the Activity Tracker writes them */
.sn-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-top: 4px; }
.sn-dow { text-align: center; font: var(--fw-semi) 11.5px var(--font); color: var(--muted); }
.sn-pad { min-height: 1px; }
.sn-day { position: relative; width: auto; height: 44px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; padding-top: 6px;
  font-size: 12px; font-weight: var(--fw-x); background: var(--well); color: var(--ink-2); }
.sn-day em { position: absolute; top: 2px; left: 0; right: 0; text-align: center; font-style: normal; font-size: 11px; font-weight: var(--fw-semi); color: var(--muted); }   /* 11px, --muted: legible (review 10/22) */
.sn-day.mini { width: 18px; height: 18px; padding: 0; font-size: 10px; border-radius: 5px; }
.sn-day.mini em { display: none; }
.sn-day.active { background: var(--ok-bg); color: var(--ok); }
.sn-day.down_unplanned { background: var(--bad-bg); color: var(--bad); }
.sn-day.planned_down { background: var(--warn-bg); color: var(--warn); }
.sn-day.not_operable_selling, .sn-day.weekend_holiday { background: var(--info-bg); color: var(--info); }
.sn-day.inactive { background: var(--hair-2); color: var(--ink-2); }
.sn-day.none { background: transparent; box-shadow: inset 0 0 0 1px var(--hair-2); }

/* ---- the Fleet Map: the map, and glass panels floating over it (under it on a phone) */
.sn-mapscreen .page-head { align-items: flex-end; }
.sn-kpis { grid-template-columns: repeat(4, minmax(118px, auto)); }
.sn-kpis > * { padding: 10px 16px; gap: 2px; }
.sn-kpis .value { font-size: 22px; }
.sn-kpis .top { min-height: 28px; }
.sn-map { position: relative; height: min(716px, calc(100vh - 220px)); min-height: 520px; border-radius: var(--r-2xl); overflow: hidden; isolation: isolate;
  border: 1px solid var(--glass-edge); box-shadow: var(--shadow); }
.sn-map-canvas { position: absolute; inset: 0; z-index: 0; }
.sn-map .leaflet-container { background: var(--surface-2); }
.sn-fl { position: absolute; z-index: 2; }
.sn-fl.glass, .sn-fl > .glass { padding: 12px 14px; }
.sn-fl-list { left: 14px; top: 14px; width: 296px; max-height: calc(100% - 150px); display: flex; flex-direction: column; }
.sn-fl-list .seg { margin: 0 0 8px; align-self: flex-start; }
.sn-fl-sel { right: 14px; top: 14px; width: 310px; max-height: calc(100% - 150px); overflow: auto; }
.sn-fl-sel .sn-top { align-items: flex-start; margin-bottom: 6px; }
.sn-fl-sel h2 { font-size: 17px; }
.sn-fl-sel .sn-kv { grid-template-columns: minmax(0, 1fr); }
.sn-fl-status { left: 14px; right: 14px; bottom: 14px; }
.sn-fl-status .sn-status { padding: 12px 16px; }
.sn-rows { display: grid; gap: 1px; overflow: auto; min-height: 0; flex: 1 1 auto; margin: 0 -4px; }
.sn-row { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-m); cursor: pointer; font-size: 13px; }
.sn-row:hover { background: rgba(255,255,255,.55); }
.sn-row.on { background: var(--glass-hi); box-shadow: 0 1px 2px rgba(16,24,40,.06); }
.sn-row:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.sn-row .dot { width: 9px; height: 9px; }
.sn-row-side { font-size: 12px; color: var(--muted); white-space: nowrap; }
.sn-row-side.live { color: var(--ok); font-weight: var(--fw-bold); }
.sn-legend-line { margin: 8px 0 0; font-size: 12px; }
.sn-livebox { display: inline-flex; align-items: center; gap: 8px; }
.sn-selst { margin: 2px 0 6px; }
.sn-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.sn-two .btn { justify-content: center; }
[data-theme="dark"] .sn-row:hover { background: rgba(255,255,255,.06); }
/* Leaflet draws these: crew dots and trails, and each unit's labelled pin */
.sn-dot { stroke: #fff; fill: var(--faint); }
.sn-dot.live { fill: var(--water-ok-b); }
.sn-trail { fill: none; stroke: var(--faint); stroke-opacity: .7; }
.sn-trail.live { stroke: var(--water-ok-b); }
.sn-pin { display: flex; align-items: flex-end; justify-content: center; }
.sn-pin span { max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 3px 8px; border-radius: var(--r-pill); background: var(--ink); color: var(--on-ink);
  font: var(--fw-x) 11.5px var(--font); box-shadow: var(--shadow-pop); border: 2px solid #fff; }
.sn-pin.ok span { background: var(--water-ok-b); color: #fff; }
.sn-pin.warn span { background: var(--water-warn-b); color: #fff; }
.sn-pin.bad span { background: var(--water-bad-b); color: #fff; }
.sn-pin.info span { background: var(--water-b); color: #fff; }
@media (max-width: 1180px) {
  .sn-filters .input { flex-basis: 100%; max-width: none; }
  .sn-filters .select-wrap { flex: 1 1 calc(33.33% - 6px); }   /* the three pickers share one row: never 2 + an orphan */
  /* From and To share the next row, each over its own box, instead of "To" alone on a third row (w29d 255/256) */
  .sn-filters .sn-datepair { flex: 1 1 calc(50% - 4px); display: flex; flex-direction: column; align-items: stretch; gap: 2px; min-width: 0; }
  .sn-filters .sn-datepair .input { width: 100%; min-width: 0; }
}
@media (max-width: 1180px), (pointer: coarse) {
  .sn-row { min-height: var(--tap); }
  .sn-leg { min-height: var(--tap); }
  .sn-link { padding: 12px 0; }
  .sn-tick { width: 22px; height: 22px; }
  .sn-ph figcaption .btn.sm { min-height: var(--tap); }
}
@media (max-width: 900px) {
  .sn-map { height: auto; min-height: 0; display: flex; flex-direction: column; gap: 10px; padding: 10px; overflow: visible; border: 0; box-shadow: none; border-radius: 0; }
  .sn-map-canvas { position: relative; inset: auto; height: 380px; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow); }
  .sn-fl { position: static; width: auto; max-height: none; }
  .sn-rows { max-height: 320px; }
  .sn-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
}
@media (max-width: 560px) {
  .sn-kpis { grid-template-columns: minmax(0, 1fr); }   /* the Fleet Map's figures: 4 → 2 → 1, like every strip on a phone */
}
@media (max-width: 640px) {
  .sn-filters .select-wrap { flex-basis: 100%; }   /* three pickers: 3 → 1 */
  .page-head > .sn-actions { width: 100%; }
  .page-head > .sn-actions > .btn { flex: 1 1 0; justify-content: center; }
  .sn-uphoto { width: 64px; height: 48px; }
  .sn-uhead .sn-actions { margin-left: 0; width: 100%; }
  .sn-uhead .sn-actions .btn { flex: 1 1 0; justify-content: center; }
  .sn-ut h1 { font-size: 22px; }
  .sn-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sn-map { padding: 0; }
  .sn-map-canvas { height: 320px; }
  .sn-due li { grid-template-columns: minmax(0, 1fr) auto 44px; }
}

/* ---- the photo viewer: above the Aimsly button (400) and the page's overlays, below pop-ups (1200) and toasts */
html.sn-viewer-open { overflow: hidden; }
.sn-viewer { position: fixed; inset: 0; z-index: 1160; background: #080c14; color: #fff; display: flex; flex-direction: column;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.sn-viewer button { min-width: 44px; min-height: 44px; border-radius: var(--r-m); border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff;
  font: var(--fw-semi) 15px var(--font); padding: 0 14px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.sn-viewer button:disabled { opacity: .35; cursor: default; }
.sn-viewer button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.sn-v-top, .sn-v-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; flex: none; }
.sn-v-top { justify-content: space-between; }
.sn-v-count { font-size: 14px; opacity: .85; }
.sn-v-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 10px; }
.sn-v-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.sn-v-cap { flex: 1; min-width: 0; text-align: center; font-size: 14px; opacity: .9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- the unit page's own pop-ups (2.x's modal box, kit fields inside) */
.sn-modal { display: grid; gap: 12px; }
.sn-modal h2 { margin: 0; font-size: var(--fs-xl); font-weight: var(--fw-bold); }
.sn-modal .hint { margin: 0; }
.sn-modal-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 4px; }

/* ---- the Shop's views over its three screens */
.sn-shopviews { margin: 0; }   /* under the title, like a unit's tabs; the page's own gap spaces it */

/* table cells that must not break: an action pair, a short date or category, a month */
.sn table.t .sn-rowacts { flex-wrap: nowrap; }
.sn table.t td.sn-cat, .sn table.t td.sn-month { white-space: nowrap; }

/* ======================================================================================================================
   The rest of Sentry (3.0): the Shop (public/fleet-shop.js) and the records (public/fleet-records.js) — inspections,
   issues, renewals, service, work orders, costs and activity. Same rules: tokens only, sn- names only. */
.sn-h3 { margin: 14px 0 6px; font-size: 13px; font-weight: var(--fw-bold); color: var(--ink-2); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.sn .glass > .sn-h3:first-of-type { margin-top: 10px; }
.sn-modal-foot .sn-left { margin-right: auto; }
.sn-check { display: inline-flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.35; cursor: pointer; min-height: 30px; }
.sn-check input { width: 16px; height: 16px; margin: 1px 0 0; flex: none; accent-color: var(--ink); }
.sn-checks { display: flex; flex-wrap: wrap; gap: 6px 16px; }
@media (max-width: 640px) { .sn-also:has(.sn-check) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); } }   /* the six days of a week as 3 + 3, columns lined up */
.sn-attached { border-color: var(--ok-line); color: var(--ok); }
.sn-datepair { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: var(--fw-semi); color: var(--muted); }
.sn-datepair .input { width: 150px; }
.sn-measure { max-width: 46ch; }
.sn-url { margin: 0 0 10px; padding: 8px 10px; border-radius: var(--r-m); background: var(--well); font: var(--fw-semi) 12.5px/1.4 ui-monospace, Menlo, monospace; overflow-wrap: anywhere; }
.sn-n { all: unset; cursor: pointer; font-variant-numeric: tabular-nums; border-radius: 4px; text-decoration: underline; text-decoration-color: var(--hair-2); text-underline-offset: 3px; }
.sn-n:hover { color: var(--accent-ink); text-decoration-color: currentColor; }
.sn-n:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.sn-score th, .sn-score td { white-space: nowrap; }

/* ---- In the shop: the days the ticket and the shop disagree, and units whose status says down */
.sn-dsp { display: grid; gap: 6px; min-width: 0; }
.sn-dsp-side { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 2px 10px; align-items: baseline; }
.sn-dsp-side .btn { margin-left: 6px; vertical-align: middle; }
.sn-mm { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 0 18px; }
.sn-mm li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--hair); min-width: 0; }
.sn-mm li .chip { white-space: normal; height: auto; min-height: 22px; padding: 2px 8px; }
.sn-mm li a.name { flex: 0 1 auto; min-width: 0; overflow-wrap: anywhere; }
.sn-mm li .btn { margin-left: auto; flex: none; }

/* ---- Shop day: phone-first. .sd-card is 2.x's name (the safety code and its tests anchor on it); 2.x gave it a flex column
   760px wide — the 3.0 card is a full-width glass panel. */
.sn .sd-card { display: block; max-width: none; }
.sn-shopday .sd-card .sn-top h2 { font-size: var(--fs-xl); }
.sd-clockin { width: 100%; max-width: 420px; justify-content: center; margin-top: 4px; }
.sn-sdtimes { margin: 6px 0 2px; }
.sn-sdworks { display: grid; gap: 8px; }
.sn-sdwork { display: grid; grid-template-columns: minmax(150px, 1.1fr) 110px minmax(0, 2fr) auto; gap: 8px; align-items: center; }
.sn-sdfoot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hair); }
.sn-sdworks + .sn-actions { margin-top: 8px; }
.sn-rate { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.sn-rate .field { flex: 0 1 260px; }
/* Shop day: the shop rate, read-only, with its source in Settings › Fleet (sn-settings) */
.sn-rateval { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0; font-size: 15px; }
.sn-span2 { grid-column: 1 / -1; }
.sn-sdsafety { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); min-width: 0; }
.sn-sdsafety:empty, #sdLoto:empty, #sdTalks:empty { display: none; }
#sdLoto, #sdTalks { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); min-width: 0; }
/* the lock-out walk's own cards (safety-crew.js lotoCardHTML), given the kit's look on this page */
.sn-sdsafety .card.sfy-c-loto { padding: var(--pad); border-radius: var(--r-xl); background: linear-gradient(150deg, var(--glass-a), var(--glass-b));
  border: 1px solid var(--glass-edge); border-left: 4px solid var(--warn); box-shadow: var(--shadow); color: var(--ink); }
.sn-sdsafety .card.sfy-c-loto.go { border-left-color: var(--ok); }
.sn-sdsafety .card.sfy-c-loto.closed { border-left-color: var(--hair-2); }
.sn-sdsafety .sfy-c-kicker { color: var(--accent-ink); letter-spacing: .08em; font-size: 11px; }
.sn-sdsafety .sfy-c-title { font-size: var(--fs-l); font-weight: var(--fw-x); }
.sn-sdsafety .sfy-c-locks { background: var(--well); border-color: var(--hair); border-radius: var(--r-m); }
.sn-sdsafety .sfy-c-lsub, .sn-sdsafety .sfy-c-lfoot { color: var(--muted); }
.sn-sdsafety .sfy-c-strip-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.sn-sdsafety .btn.sfy-c-sbtn { font-size: 13px; }   /* the walk's own 48px height stays: a gloved finger in the shop */

/* ---- Shop schedule: the week, a column a day (a list a day on a phone) */
.sn-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; align-items: start; }
.sn-ss-day { padding: 10px; display: grid; gap: 8px; min-height: 140px; align-content: start; }
.sn-ss-day.today { box-shadow: var(--shadow), inset 0 0 0 2px var(--accent); }
.sn-ss-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 32px; font-size: 13px; }
.sn-ss-shift { all: unset; box-sizing: border-box; display: grid; gap: 4px; padding: 8px 10px; border-radius: var(--r-m); background: var(--glass-hi); border: 1px solid var(--hair);
  font-size: 12.5px; min-width: 0; overflow-wrap: anywhere; }
button.sn-ss-shift { cursor: pointer; }
button.sn-ss-shift:hover { border-color: var(--ink-2); }
button.sn-ss-shift:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.sn-ss-shift.on { border-left: 3px solid var(--info); }
.sn-ss-shift.done { border-left: 3px solid var(--ok); }
.sn-ss-shift .chip { white-space: normal; height: auto; min-height: 22px; padding: 2px 8px; }
.sn-ss-time { font-weight: var(--fw-semi); }
.sn-ss-units { display: inline-flex; align-items: center; gap: 4px; }
.sn-ss-cost { font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; }
.sn-ss-none { margin: 0; }
.sn-unitchecks { max-height: 180px; overflow: auto; padding: 6px 2px; margin-top: 6px; }
.sn-unitchecks .sn-check { flex: 0 1 calc(33.33% - 11px); }

/* ---- Inspections: a form's items, in walk order */
.sn-feitems { margin: 0; padding: 0; list-style: none; display: grid; max-height: 300px; overflow: auto; }
.sn-feitems li { display: flex; align-items: center; gap: 4px; padding: 6px 0; border-top: 1px solid var(--hair); font-size: 13px; }
.sn-feitems li:first-child { border-top: 0; }
.sn-feadd { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.sn-feitems li.on { box-shadow: inset 3px 0 0 var(--accent); padding-left: 8px; }   /* the item open in the add row below (B24) */
.sn-fekind { margin: -4px 0 0; }
/* B24: a dropdown item's choices — one row each: the words, whether picking it fails the item, remove */
.sn-fechoices { display: grid; gap: 8px; padding: 10px 12px; border: 1px solid var(--hair); border-radius: var(--r-m); }
.sn-fechoices[hidden] { display: none; }
.sn-fechlist { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.sn-fechlist li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; }
.sn-fechoices > .btn { justify-self: start; }
.sn-fechlist .sn-check { align-items: center; }
.sn table.t tr.sn-failrow td { background: var(--bad-bg); }

/* ---- a work order */
.sn-wo .sn-ut .select-wrap { margin-top: 2px; }
.sn-wofields { gap: 12px 14px; margin: 10px 0 12px; }
.sn-wotasks, .sn-woissues { flex-direction: column; gap: 4px; max-height: 260px; overflow: auto; flex-wrap: nowrap; }
.sn-wolines { display: grid; gap: 8px; margin: 4px 0 8px; }
.sn-woline, .sn-wohead { display: grid; gap: 8px; align-items: center; }
.sn-wol { grid-template-columns: minmax(160px, 2fr) 100px 110px 110px 44px; }
.sn-wop { grid-template-columns: minmax(160px, 2fr) 100px 110px 110px 44px; }
/* a Mechanic's work order (sn-womoney): the lines carry no rate, no cost and no line amount */
.sn-wol.sn-nomoney, .sn-wop.sn-nomoney { grid-template-columns: minmax(160px, 2fr) 120px 44px; }
.sn-wohead { font-size: 11.5px; font-weight: var(--fw-semi); color: var(--muted); margin-top: 2px; }
.sn-woamt, .sn-wohead .r { text-align: right; font-variant-numeric: tabular-nums; }
.sn-wocell { display: grid; gap: 3px; min-width: 0; }
.sn-wototal { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: flex-end; gap: 10px 18px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hair); }
.sn-wototal > .hint { margin-right: auto; align-self: center; }
.sn-wotax .field { width: 140px; }
#wo_total { font-size: var(--fs-l); font-variant-numeric: tabular-nums; align-self: center; }
#wo_save[data-saved] { background: var(--ok); color: #fff; }

/* ---- Costs */
@media (min-width: 1181px) { .sn-ledgerf .select-wrap { flex: 0 1 180px; } }   /* below it the 1180 / 640 rules share the row out (this one used to win everywhere: pickers stuck at 180px, w29d 255/256) */

/* ---- Activity: the month, unit by unit. Every square is a button that opens where it came from. */
.sn-acwrap { overflow: auto; max-height: 70vh; margin-top: 12px; border-radius: var(--r-m); border: 1px solid var(--hair); }
table.sn-acgrid { border-collapse: separate; border-spacing: 0; font-size: 12px; }
table.sn-acgrid th, table.sn-acgrid td { padding: 2px; text-align: center; border-bottom: 1px solid var(--hair); background: transparent; }
table.sn-acgrid thead th { position: sticky; top: 0; z-index: 2; background: var(--surface-2, var(--well)); font-weight: var(--fw-semi); color: var(--ink-2); padding: 6px 2px; min-width: 30px; }
table.sn-acgrid thead th span { display: block; font-size: 9.5px; font-weight: var(--fw-med); color: var(--muted); }
table.sn-acgrid thead th.off { color: var(--faint); }
table.sn-acgrid thead th.today { box-shadow: inset 0 -2px 0 var(--accent); }
table.sn-acgrid .sn-acunit { position: sticky; left: 0; z-index: 1; text-align: left; padding: 4px 10px; white-space: nowrap; background: var(--surface-2, var(--well)); }
table.sn-acgrid .sn-acunit a { display: inline-block; max-width: 140px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; font-weight: var(--fw-bold); color: var(--ink); }
table.sn-acgrid thead .sn-acunit { z-index: 3; }
table.sn-acgrid td.r, table.sn-acgrid th.r { text-align: right; padding: 4px 8px; font-variant-numeric: tabular-nums; }
table.sn-acgrid td.sn-ac-off { background: repeating-linear-gradient(135deg, transparent 0 4px, var(--hair) 4px 5px); }
.sn-ac { all: unset; box-sizing: border-box; width: 26px; height: 26px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  font-weight: var(--fw-x); font-size: 11.5px; background: var(--well); color: var(--ink-2); position: relative; }
.sn-ac:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.sn-ac:hover { box-shadow: inset 0 0 0 2px var(--ink-2); }
.sn-ac.none { background: transparent; box-shadow: inset 0 0 0 1px var(--hair-2); }
.sn-ac.active { background: var(--ok-bg); color: var(--ok); }
.sn-ac.down_unplanned { background: var(--bad-bg); color: var(--bad); }
.sn-ac.planned_down { background: var(--warn-bg); color: var(--warn); }
.sn-ac.not_operable_selling, .sn-ac.weekend_holiday { background: var(--info-bg); color: var(--info); }
.sn-ac.inactive { background: var(--hair-2); color: var(--ink-2); }
.sn-ac.disputed { box-shadow: inset 0 0 0 2px var(--bad); }
.sn-ac.hand::after { content: ""; position: absolute; top: 3px; right: 3px; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-2); }
.sn-ac.mini { width: 16px; height: 16px; border-radius: 4px; cursor: default; }
.sn-range .sn-datepair .input { width: 160px; }

@media (max-width: 1180px), (pointer: coarse) {
  .sn-check { min-height: var(--tap); align-items: center; }
  .sn-n { min-height: var(--tap); display: inline-flex; align-items: center; }
  .sn-ac { width: 34px; height: 34px; }
}
@media (max-width: 1180px) {
  .sn-dsp-side { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .sn-wol, .sn-wop { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px; align-items: end; }
  .sn-wol.sn-nomoney, .sn-wop.sn-nomoney { grid-template-columns: minmax(0, 1fr) 44px; }
  .sn-woline > .sn-wocell:first-child { grid-column: 1 / -1; }
  .sn-woline { padding-bottom: 8px; border-bottom: 1px solid var(--hair); }
  .sn-wocell > label.vh { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; font-size: 11.5px; font-weight: var(--fw-semi); color: var(--muted); }
  .sn-woamt { grid-column: 1 / 3; text-align: left; font-weight: var(--fw-semi); }
  .sn-wohead { display: none; }
  .sn-sdwork { grid-template-columns: minmax(0, 1fr) 96px auto; }
  .sn-sdwork > .select-wrap { grid-column: 1 / -1; }
  .sn-sdwork > input:not(.sn-sdh) { grid-column: 1 / 2; grid-row: 3; }
  .sn-sdwork > .sn-sdh { grid-column: 2 / 3; grid-row: 3; }
  .sn-sdwork > .sn-sdx { grid-column: 3; grid-row: 3; }
  .sn-feadd { grid-template-columns: minmax(0, 1fr) auto; }
  .sn-feadd > .select-wrap { grid-column: 1 / -1; }
  .sn-fechlist li { grid-template-columns: minmax(0, 1fr) auto; }
  .sn-fechlist li > .sn-check { grid-row: 2; }
  .sn-unitchecks .sn-check { flex-basis: calc(50% - 8px); }
}
@media (max-width: 980px) { .sn-rate > .field:only-child { flex-basis: 100%; } }   /* New work order's Unit picker is as wide as the fields under it once they go one across (w11design S4: 260px over 750px fields at 820) */
@media (max-width: 640px) {
  .sn-ss-day { min-height: 0; }
  .sn-datepair { flex: 1 1 calc(50% - 4px); }
  .sn-datepair .input, .sn-range .sn-datepair .input { width: 100%; }
  /* From and To each over their own box, side by side, and Show the whole row under them (From alone, then To + Show, was ragged: w29d 257/258) */
  .sn-range .sn-datepair { flex-direction: column; align-items: stretch; gap: 2px; min-width: 0; }
  .sn-range .sn-datepair .input { min-width: 0; }
  .sn-range > .btn { flex: 1 1 100%; justify-content: center; }
  .sn-rate .field { flex-basis: 100%; }
  .sn-rate .btn, .sd-clockin { width: 100%; justify-content: center; max-width: none; }
  .sn-sdfoot .btn { flex: 1 1 0; justify-content: center; }
  .sn-wototal { justify-content: space-between; }
  .sn-wototal > .hint { flex-basis: 100%; }
  .sn-mm { grid-template-columns: minmax(0, 1fr); }
  .sn-unitchecks .sn-check { flex-basis: 100%; }
}

/* ---- design review 10/22 (measured in headless Chrome at 320 / 375 / 820 / 1440) */
.sn > p { margin: 0; }   /* a page's closing note keeps the page's own 16px rhythm (2.x gave every p a margin) */
.sn-ut > .select-wrap { min-width: 0; max-width: 100%; }   /* a long status ("Available for use (Transfer Requested)") never pushes the page sideways */
.sn-ut > .select-wrap .status { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 1181px) { .sn-map .leaflet-bottom.leaflet-right { right: 74px; } }   /* Aimsly's round button never covers the map's credits (OSM's licence) */
.sn-tickhit { display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
button.src { border: 0; background: transparent; cursor: pointer; font-family: inherit; }
.sn-srcs { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 4px; }
.flags li > .sn-srcs { grid-column: 2; margin-top: 0; }   /* two source links under a flag's words, as one .src sits (kit .flags) */
@media (max-width: 1180px), (pointer: coarse) {
  .sn-tickhit { width: var(--tap); height: var(--tap); margin: -10px -12px; }   /* a 44px reach around the box */
  .sn-mm a.name, .sn-chips a.chip { min-height: var(--tap); display: inline-flex; align-items: center; }
  button.src { min-height: var(--tap); }
}
@media (max-width: 1180px) {
  /* the week: a day a row, its shifts beside its name — 7 columns do not fit, and 2 + 2 + 2 + 1 left Sunday double width */
  .sn-week { grid-template-columns: minmax(0, 1fr); gap: var(--gap); }   /* the days stacked are panels: 16px apart, not the 10 they keep side by side (K4) */
  .sn-ss-day { grid-template-columns: 120px minmax(0, 1fr); align-items: start; min-height: 0; }
  .sn-ss-head { flex-direction: column; align-items: flex-start; }
}
.sn-ss-list { display: grid; gap: 8px; min-width: 0; }
@media (max-width: 1180px) { .sn-ss-list { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } }
@media (max-width: 640px) {
  .sn-ss-day { grid-template-columns: minmax(0, 1fr); }
  .sn-ss-head { flex-direction: row; align-items: center; }
  .sn-ss-list { grid-template-columns: minmax(0, 1fr); }
}

/* a page head's buttons on a phone: icon buttons keep their size, a worded one never squeezes its words (they wrap a row) */
@media (max-width: 640px) {
  .sn .page-head > .sn-actions > .btn.icon { flex: none; }
  .sn .page-head > .sn-actions > .btn:not(.icon) { min-width: max-content; }
  /* the unit's own head too: "Orden de trabajo" was cut at the right of its row (w29d 104, 276-281); a word-wide button wraps to the next row whole */
  .sn .sn-uhead .sn-actions > .btn:not(.icon) { min-width: max-content; flex: 1 1 0; }
}
.sn-activity .sn-leg { min-height: 0; }   /* a legend, not buttons */
/* touch reach on tablets and phones (measured 10/22 at 820 and 375): a link that IS the card's name, a "Show all", a
   view switch's short word and a tick box all reach 44px without moving anything on the page */
@media (max-width: 1180px), (pointer: coarse) {
  .sn-link { min-height: var(--tap); display: inline-flex; align-items: center; padding: 0; }
  .sn .seg button { min-width: var(--tap); }
  .sn-tickhit { flex: none; }
  .sn .cards a.name, .sn-mm a.name, .sn .cards .sn-chips a.chip { position: relative; }
  .sn .cards a.name::after, .sn-mm a.name::after { content: ""; position: absolute; inset: -13px -8px; }
  .sn-who { position: relative; }
  .sn-who::after { content: ""; position: absolute; inset: calc(50% - var(--tap) / 2) 0; }   /* a person's name opens their record (review 4, 10/22) */
}

/* ---- the rest of sentry.js on the kit (3.0, w9ignite side): its confirm, a mechanic's Request return / Report lost, Add /
   Edit unit and Units › Photo library. A mechanic's "My equipment" card is the crew card itself (components.css cw-). */
.leaflet-container { font: inherit; }   /* the Fleet Map's labels in the page's own type (was sentry.html's <style>) */
.modal:has(> .sn-narrow) { max-width: 480px; }
.modal:has(> .sn-unitmodal) { max-width: 680px; }
.sn-unitform { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.sn-unitform .field { margin-bottom: 0; min-width: 0; }
.sn-unitform .sn-wide { grid-column: 1 / -1; }
.sn-pl-pipe { margin-top: 12px; }
.sn-pl-p { margin: 10px 0 0; }
.sn-pl .flags { margin-top: 10px; }
.sn-pl-switch { display: flex; align-items: center; gap: 10px; min-height: var(--tap); margin-top: 10px; font-size: 13.5px; font-weight: var(--fw-semi); }
.sn-pl-switch .switch { flex: none; }
@media (max-width: 640px) {
  .sn-unitform { grid-template-columns: minmax(0, 1fr); }
  .sn-unitmodal .sn-modal-foot .btn, .sn-narrow .sn-modal-foot .btn { flex: 1 1 0; justify-content: center; }
}
/* touch reach (w15polish K3): an inspection card's "View" was 20px tall */
@media (max-width: 1180px), (pointer: coarse) {
  .sn-ucard-top > a:not(.btn) { position: relative; }
  .sn-ucard-top > a:not(.btn)::after { content: ""; position: absolute; inset: calc(50% - var(--tap) / 2) min(-4px, calc(50% - var(--tap) / 2)); }
}
/* touch reach, the Sentry leftovers (re-measured at 375 as an iPhone): each control a fingertip presses reaches 44px */
@media (max-width: 1180px), (pointer: coarse) {
  .sn-thumb { width: 58px; height: var(--tap); }   /* a unit card's picture (its own door) was 34 tall: it clips its own reach (overflow, for the rounded picture), so it grows */
  .sn-catchip { height: auto; min-height: var(--tap); }   /* a unit's cost-category chips sat 4px apart in rows, so their reaches overlapped */
  .sn .crumb a::after { inset: calc(50% - var(--tap) / 2) min(-4px, calc(50% - var(--tap) / 2)); }   /* a short crumb ("Units") was 40 across */
  .sn-ucard-top .sn-grow > a.name:first-child { margin-inline-end: 6px; }   /* Service's "4683 · 250 Hour C&C PM": the unit and the task each reach 44 across */
  .sn-ucard > .hint > a { display: inline-block; padding-block: 3px; }   /* a unit card's branch under its type was 39 tall beside the line above */
  .sn table.t tbody td { height: var(--tap); }   /* a row with a link to press is a fingertip tall (an iPad's rows were 40px) */
  .sn td.r .sn-n { position: relative; }
  .sn td.r .sn-n::after { content: ""; position: absolute; inset: 0 min(0px, calc(50% - var(--tap) / 2)); }   /* a lone "0" in Activity's company table was 10 across */
}
/* a finger at any width (w22touch, 10/27): a figure in the table's last column reached past the scroller's right edge, which
   cut it to 39 across (Activity's company table) — it stops 8px past itself and reaches as much further left instead, as the
   kit's last-column figures do (w21platform) */
@media (pointer: coarse) {
  .sn .table-wrap td.r:last-child > .sn-n::after { inset-inline-end: max(-8px, min(0px, calc(50% - var(--tap) / 2)));
    inset-inline-start: min(0px, calc(100% - var(--tap) - max(-8px, min(0px, calc(50% - var(--tap) / 2))))); }
  /* a unit card's branch link (Units on a phone) sat 8px over the issue and renewal chips under it and reached 42: 4px more (w23touch, 10/27) */
  .sn-ucard > .hint:has(> a) + * { margin-top: 4px; }
  /* Service's reminders beside the menu at 1366 (a 13-inch iPad Pro on its side): the thumb-sized buttons left the table 32px
     wider than its box, so it slid sideways — a unit's type goes under its number, as the last reading and the snooze date
     already sit under theirs, and the table fits (w23touch, 10/27). Where the words run longer (another language, a long
     type) a row's two buttons stack in their cell before the table slides */
  #snSvRows table.t td:first-child > .hint { display: block; white-space: normal; }
  #snSvRows table.t .sn-rowacts { flex-wrap: wrap; }
}
.sd-card > .flags { margin-block: 10px; }   /* Shop day's "still on at clock-out" warning, apart from the lines around it */

/* A unit › Trips (w21nx): the unit's NexTraq days — the month's figures, the day by day table, and one day's stops in order.
   A stop's dot says where it was: the yard (info), a job (ok), anywhere else (hairline). */
.sn-places { display: flex; flex-wrap: wrap; gap: 4px; }
.sn-trips-t tr.sn-on td { background: var(--well); }
.sn-tk + .sn-tk { margin-left: 6px; }
.sn-trips-t td.r, .sn-trips-t td.hint, .sn-trips-t td:last-child { white-space: nowrap; }   /* "52.4 mi", "6:15am – 2:27pm" and a row's tickets stay on one line (design review 10/27) */
.sn-tsteps { list-style: none; margin: 12px 0 8px; padding: 0; display: grid; gap: 0; }
.sn-tsteps > li { position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 6px 0 6px 18px; font-size: 13.5px; }
.sn-tsteps > li::before { content: ""; position: absolute; left: 4px; top: 0; bottom: 0; width: 2px; background: var(--hair); }
.sn-tsteps > li:first-child::before { top: 14px; }
.sn-tsteps > li:last-child::before { bottom: calc(100% - 14px); }
.sn-tsteps > li:not(.sn-drive)::after { content: ""; position: absolute; left: 0; top: 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 2px var(--faint); }
.sn-tsteps > li.yard::after { box-shadow: inset 0 0 0 5px var(--info); }
.sn-tsteps > li.job::after { box-shadow: inset 0 0 0 5px var(--ok); }
.sn-tsteps > li.sn-drive { padding-block: 2px; font-size: 12.5px; }
.sn-at { font-weight: var(--fw-semi); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sn-tsteps .chip { vertical-align: 1px; }
.sn-tsrc { margin-top: 8px; line-height: 1.9; }
@media (max-width: 560px) { .sn-tsteps > li { grid-template-columns: 62px minmax(0, 1fr); gap: 8px; } }
/* at 320 the filters' segmented rows keep their words whole (Issues' "Abiertos · Resueltos · Cerrados · Todos", Renewals'); buttons
   stay 44px (w25es design review, 10/28) */
@media (max-width: 360px) { .sn-filters .seg button { padding: 0 6px; font-size: 12px; } }
@media (max-width: 1180px), (pointer: coarse) {
  .sn-tk, .sn-places + div > a, .sn-tday .sn-p > a { display: inline-block; padding-block: 12px; margin-block: -10px; }   /* a ticket number is a fingertip tall */
  .sn-tday .sn-p:has(> a) { line-height: var(--tap); }   /* the day's "On #T-…, #T-…" lines sit a fingertip apart, so two reaches never overlap */
}

/* Needs a unit's table on a tablet: the description and the best guess keep a readable width (they wrapped a word a line and the guess ran past the card, w29d 105/282/284);
   a table wider than its card scrolls inside it. */
.sn-qtbl td:nth-child(4) { min-width: 190px; }
.sn-qtbl td:nth-child(7) { min-width: 200px; }
