/* Schedule, Team, Products and Settings, on "The Line, field-grade" (docs/DESIGN-SYSTEM.md). Tokens only: no colour, size or radius
   is written here that tokens.gen.css does not own. Hover is for a mouse only; motion is colour, opacity and transform.
   Parts: the page bar's buttons, Settings, the Schedule, Team, Products and trucks. */

/* ---------- the page bar's buttons: a page with several fits its bar, and on a phone they go to a line of their own ---------- */
.ops-actions { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ops-who { color: var(--ink-3); font-size: var(--fs-sec); line-height: var(--lh-sec); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@container page (max-width: 700px) {
  .topbar:has(.ops-actions) { grid-template-columns: minmax(0, 1fr); }
  .pagebar-slot:has(.ops-actions) { grid-column: 1 / -1; grid-row: 2; margin-left: 0; padding-bottom: 8px; min-width: 0; }
  .pagebar-actions:has(.ops-actions) { width: 100%; }
  .ops-actions { flex-wrap: wrap; width: 100%; }
  .ops-who { white-space: normal; }
}
@media (max-width: 900px) {
  .topbar:has(.ops-actions) { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 8px; }
  .topbar:has(.ops-actions) .topbar-left { display: contents; }
  .pagebar-slot:has(.ops-actions) { margin-left: 0; padding-bottom: 8px; min-width: 0; }
  .pagebar-actions:has(.ops-actions) { width: 100%; }
  .ops-actions { flex-wrap: wrap; width: 100%; }
}

/* ---------- Settings: a section list down the left edge, one section of ruled rows at the right ---------- */
.settings-layout { display: block; }
.settings-nav {
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1) 12px; padding: 8px var(--gutter); border-bottom: 1px solid var(--hair);
}
.settings-nav button {
  flex: none; display: inline-flex; align-items: center; gap: 8px; height: var(--h-nav); padding: 0 10px; border: 0; border-radius: var(--r-2); background: transparent; color: var(--ink-2);
  font-size: var(--fs-sec); line-height: var(--lh-sec); font-weight: var(--w-medium); text-align: left; white-space: nowrap; cursor: pointer;
  transition: background-color var(--dur-state) var(--ease);
}
.settings-nav button[aria-current="true"] { background: var(--sel); color: var(--ink); }
@media (hover: hover) { .settings-nav button[aria-current="false"]:hover, .settings-nav button:not([aria-current]):hover { background: var(--hover); color: var(--ink); } }
/* a count is a bare number, as in the menu */
.settings-nav .set-n { margin-left: auto; font-size: var(--fs-meta); line-height: var(--lh-meta); font-weight: var(--w-regular); color: var(--ink-3); }
.settings-body { min-width: 0; }
.settings-body > .banner { margin-bottom: 16px; }
.settings-body .set-sec { scroll-margin-top: 16px; }
@media (min-width: 1100px) {
  .settings-layout { display: grid; grid-template-columns: 208px minmax(0, 1fr); margin: -20px calc(var(--gutter) * -1) -64px; min-height: calc(100vh - var(--h-bar)); }
  .settings-nav {
    position: sticky; top: var(--h-bar); align-self: start; flex-direction: column; gap: 2px; overflow-y: auto; height: calc(100vh - var(--h-bar)); margin: 0; padding: 16px 8px;
    border-bottom: 0; border-right: 1px solid var(--hair);
  }
  .settings-nav button { width: 100%; }
  .settings-body { max-width: 904px; padding: 24px 32px 64px; }
}
/* a section: its name is the page's headline, one line of help under it, then the rows */
.settings-body .section { margin-top: 0; }
.settings-body .section > h2 { font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: var(--ls-h1); font-weight: var(--w-semibold); margin-bottom: 4px; }
.settings-body .section > .hint, .settings-body .section > h2 + .hint { max-width: 62ch; margin: 0 0 20px; color: var(--ink-2); font-size: var(--fs-body); line-height: var(--lh-body); }
.set-stack > * + * { margin-top: 0; }
/* one setting: name and help at the left, the control at the right, a hairline above */
.set-row { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 8px 24px; align-items: start; padding: 16px 0; border-top: 1px solid var(--hair); }
.set-l { display: grid; gap: 2px; min-width: 0; align-content: start; padding-top: 6px; }
.set-name { font-size: var(--fs-body); line-height: var(--lh-body); font-weight: var(--w-semibold); color: var(--ink); }
.set-hint { max-width: 34ch; color: var(--ink-3); font-size: var(--fs-sec); line-height: var(--lh-sec); }
.set-c { display: grid; gap: 8px; justify-items: start; min-width: 0; }
.set-c > .input, .set-c > .textarea { width: 100%; max-width: 440px; }
.set-c > .input.sm { max-width: 220px; }
.set-c > .input.num { width: 120px; }
.set-c .input.wide-in, .set-c .textarea.wide-in { width: 100%; max-width: 560px; }
.set-count { font-size: var(--fs-meta); line-height: var(--lh-meta); color: var(--ink-3); }
.set-checks { display: grid; gap: 10px; justify-items: start; }
.set-checks .check { font-weight: var(--w-regular); }
.set-note { max-width: 62ch; margin: 0; color: var(--ink-3); font-size: var(--fs-sec); line-height: var(--lh-sec); }
.set-note.ink { color: var(--ink-2); }
.set-clear { display: flex; align-items: center; gap: 8px; margin: 0; padding: 16px 0; border-top: 1px solid var(--hair); color: var(--ink-2); }
.set-clear svg { color: var(--saguaro); }
/* the Save line: the one filled button, then what is waiting */
.set-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 0; padding-top: 20px; border-top: 1px solid var(--hair); }
.set-actions.set-quiet { color: var(--ink-3); font-size: var(--fs-sec); line-height: var(--lh-sec); }
.set-dirty { color: var(--ink-3); font-size: var(--fs-sec); line-height: var(--lh-sec); }
.saved-note { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: var(--fs-sec); line-height: var(--lh-sec); font-weight: var(--w-medium); }
.saved-note svg { color: var(--saguaro); }
.settings-body [hidden] { display: none; }
@media (max-width: 900px) {
  .set-row { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 14px 0; }
  .set-l { padding-top: 0; }
  .set-hint { max-width: none; }
  .set-c > .input, .set-c > .textarea, .set-c .input.wide-in, .set-c .textarea.wide-in { max-width: none; }
}

/* a part of a settings section that is more than a row (Email's sender, switches, reminders, the stopped list): a hairline above, no box */
.set-block { display: grid; gap: 12px; align-content: start; padding: 20px 0; border-top: 1px solid var(--hair); min-width: 0; }
.set-block > .h-card, .set-block > h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); font-weight: var(--w-semibold); }
.set-block .sub-h { margin-top: 8px; font-size: var(--fs-body); line-height: var(--lh-body); font-weight: var(--w-semibold); }
.set-block .set-actions { border-top: 0; padding-top: 0; }
/* the one quiet add action under a list */
.set-add { margin-top: 16px; }
.set-block.foot-preview { margin-top: 24px; gap: 4px; font-size: var(--fs-sec); line-height: var(--lh-sec); color: var(--ink-2); }
.set-block.foot-preview .strong { color: var(--ink); }
.set-block .linkish { justify-self: start; }

/* a part of a long section (Email): its name, then its rows, each a hairline below the one above */
.set-sub { margin: 40px 0 8px; font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); font-weight: var(--w-semibold); }
.set-group, .set-form { display: block; min-width: 0; }
.set-group > :not(.set-sub, .set-row, .set-form), .set-form > :not(.set-row, .set-actions) { margin-block: 12px; }
.set-sub + * { margin-top: 0 !important; }
.set-group > .set-form > .set-actions { margin-top: 0; }
.set-switch { display: inline-flex; align-items: center; gap: 8px; min-height: var(--h-control); color: var(--ink-2); font-size: var(--fs-body); line-height: var(--lh-body); }
.set-status { display: inline-flex; align-items: center; gap: 10px; }
.set-status-lines { display: grid; gap: 4px; margin-top: 12px; }
.set-status-lines .set-note { margin: 0; }
.set-lists { display: grid; gap: 12px; margin-top: 24px; }
.set-sub2 { margin: 8px 0 0; font-size: var(--fs-body); line-height: var(--lh-body); font-weight: var(--w-semibold); }

/* ---------- Settings, the lists inside a section: checklists, job sheets, the alerts ---------- */
.textarea.plain { font-family: inherit; font-size: var(--fs-body); line-height: var(--lh-body); }
.stack { display: grid; gap: 16px; }
.klist { list-style: none; margin: 0; padding: 0; }
.klist li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--hair); }
.klist li:last-child { border-bottom: 1px solid var(--hair); }
.klist li svg { flex: none; color: var(--ink-3); }
.klist .grow { min-width: 0; }
.klist .sub { color: var(--ink-3); font-size: var(--fs-sec); line-height: var(--lh-sec); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.picks-field { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 8px; }
.picks-field > legend { padding: 0; margin-bottom: 8px; font-size: var(--fs-sec); line-height: var(--lh-sec); font-weight: var(--w-medium); color: var(--ink-2); }
.picks { display: flex; flex-wrap: wrap; gap: 6px; }
/* a choice of several: quiet buttons, the chosen ones on the selected fill with a Saguaro edge (the weight never changes) */
.picks button {
  height: var(--h-control-sm); padding: 0 12px; border: 1px solid var(--edge); border-radius: var(--r-2); background: transparent; color: var(--ink-2);
  font: inherit; font-size: var(--fs-sec); line-height: var(--lh-sec); font-weight: var(--w-medium); cursor: pointer;
  transition: background-color var(--dur-state) var(--ease), border-color var(--dur-state) var(--ease);
}
.picks button[aria-pressed="true"] { background: var(--sel); border-color: var(--saguaro); color: var(--ink); }
@media (hover: hover) { .picks button:not([aria-pressed="true"]):hover { background: var(--hover); color: var(--ink); } }
.job-uses { display: grid; gap: 10px; }
.job-use { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px; align-items: end; }
@media (max-width: 720px) {
  .job-use { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
  .job-use > :first-child { grid-column: 1 / -1; }
  .picks button { height: 40px; }
}
.prefs-panel { padding: 0; max-width: 720px; }
.pref-group { padding: 16px 0; }
.pref-group > .h3 { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--ink); }
.pref-quiet { grid-template-columns: repeat(2, minmax(0, 220px)); }
.picks-field > .btn { justify-self: start; }
.pref-row { border-top: 1px solid var(--hair); padding: 4px 0; }
.pref-group > .h3 + .pref-row { border-top: 0; }
.pref-group + .pref-group { border-top: 0; }
/* on a phone the page's side margin is 16, so the section strip reaches the edges with 16 */
@media (max-width: 900px) { .settings-nav { margin-inline: -16px; padding-inline: 16px; } }

/* ---------- Schedule: the week as lines of blocks, one tech's route at the right (system.md 4.5 and 4.7) ---------- */
.date-seg { height: var(--h-control); }
.date-seg button { width: var(--h-control); min-width: var(--h-control); padding: 0; }
.date-seg .seg-date {
  display: inline-flex; align-items: center; justify-content: center; min-width: 128px; padding: 0 14px; border-inline: 1px solid var(--edge);
  font-size: var(--fs-sec); line-height: var(--lh-sec); font-weight: var(--w-medium); color: var(--ink); white-space: nowrap;
}
.sched-bar .seg:not(.date-seg) { height: var(--h-control); }
/* the dates sit beside the title, the doing at the right (the prototype); on a phone they are two lines */
.sb-nav, .sb-do { display: flex; align-items: center; gap: 8px; min-width: 0; }
@media (min-width: 901px) {
  .topbar:has(.sched-bar) .topbar-left { flex: 0 0 auto; }
  .pagebar-slot:has(.sched-bar), .pagebar-actions:has(.sched-bar), .sched-bar { flex: 1 1 auto; }
  .sched-bar { justify-content: space-between; margin-left: 8px; }
}
@media (max-width: 900px) {
  .sched-bar { justify-content: space-between; }
  .sb-nav, .sb-do { flex-wrap: wrap; }
  .sb-do { width: 100%; justify-content: flex-end; }
  .sb-nav { width: 100%; }
  .sb-nav .date-seg { flex: 1 1 auto; }
  .sb-nav .date-seg .seg-date { flex: 1 1 auto; min-width: 0; }
}
.sch-figs { padding: 0 0 16px; }
.sch-figs .fig { flex-direction: row; align-items: baseline; gap: 10px; }
.sch-figs .fig .v { font-size: var(--fs-body); line-height: var(--lh-body); letter-spacing: 0; }
.sch-figs .fig .v > .mk { position: static; display: inline-block; margin: 0 6px 1px 0; vertical-align: middle; }
.sch { display: grid; grid-template-columns: minmax(0, 1fr); margin: 0 calc(var(--gutter) * -1) -64px; }
.sch-main { min-width: 0; padding: 0 var(--gutter) 64px; }
.sch-panel { min-width: 0; border-top: 1px solid var(--hair); padding: 20px var(--gutter) 64px; }
.sch:not(.open) .sch-panel { display: none; }
.sch-hint { margin: 0; color: var(--ink-3); font-size: var(--fs-sec); line-height: var(--lh-sec); }
@media (min-width: 1100px) {
  .sch { grid-template-columns: minmax(0, 1fr) 344px; min-height: calc(100vh - 200px); }
  .sch-panel { display: block !important; border-top: 0; border-left: 1px solid var(--hair); padding: 20px 20px 64px; }
}
@media (min-width: 1100px) and (max-width: 1380px) { .sch { grid-template-columns: minmax(0, 1fr) 312px; } }

/* a block: one stop on the 7 AM to 5 PM axis. Done is the line, at a stop is the line with a ring, to go is hollow, a callback is amber, a stop that could not be done is red. */
.sb { position: absolute; top: calc(50% - var(--sb-h, 14px) / 2); height: var(--sb-h, 14px); box-sizing: border-box; border-radius: var(--r-1); }
.sb.done { background: var(--saguaro); }
.sb.here { background: var(--saguaro); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--saguaro); z-index: 1; }
.sb.ahead { background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--edge-strong); }
.sb.booked { background: var(--edge); }
.sb.call { background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--amber); }
.sb.fail { background: var(--red-tint); box-shadow: inset 0 0 0 1.5px var(--red); }
.sch-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin: 0; padding: 0 0 12px; color: var(--ink-3); font-size: var(--fs-sec); line-height: var(--lh-sec); }
.sch-legend span { display: inline-flex; align-items: center; gap: 8px; }
.sch-legend .sb { position: static; display: inline-block; width: 18px; height: 10px; }
.sch-legend .sch-rule { flex-basis: 100%; }
/* on a phone the legend is one line: the swatches are smaller, and the rule about a full day (a week's idea) is left out */
@media (max-width: 599px) {
  .sch-legend { flex-wrap: nowrap; gap: 0 10px; padding-bottom: 8px; font-size: var(--fs-meta); line-height: var(--lh-sec); white-space: nowrap; }
  .sch-legend span { gap: 4px; }
  .sch-legend .sb { width: 12px; height: 8px; }
  .sch-legend .sch-rule { display: none; }
}

/* the week: a row a tech, a column a day, each cell a line of that day's blocks */
.wk-scroll { overflow-x: auto; margin: 0 -8px; }
.wk-t { width: 100%; min-width: 760px; border-collapse: collapse; table-layout: fixed; }
.wk-t th, .wk-t td { padding: 0; text-align: left; font-weight: var(--w-regular); vertical-align: top; }
.wk-t .wk-who-h, .wk-t .wk-who { width: 152px; }
.wk-t thead th { background: var(--bg); }
.wk-who-h { padding: 0 12px 10px 8px !important; vertical-align: bottom !important; color: var(--ink-3); font-size: var(--fs-sec); line-height: var(--lh-sec); font-weight: var(--w-medium) !important; }
.wk-dh { position: relative; padding: 12px 12px 8px !important; box-shadow: inset 0 2px 0 transparent; }
.wk-dh.on { box-shadow: inset 0 2px 0 var(--ink); }
.wk-day { display: block; border: 0; background: none; padding: 0; color: var(--ink); font-size: var(--fs-body); line-height: var(--lh-body); font-weight: var(--w-semibold); cursor: pointer; text-align: left; }
@media (hover: hover) { .wk-day:hover { text-decoration: underline; } }
.wk-today { margin-left: 6px; color: var(--saguaro-text); font-size: var(--fs-meta); line-height: var(--lh-meta); font-weight: var(--w-medium); }
.wk-t.wk-7 .wk-today { display: none; }
.wk-dn { display: block; color: var(--ink-3); font-size: var(--fs-sec); line-height: var(--lh-sec); }
.wk-t tbody tr > * { border-bottom: 1px solid var(--hair); }
.wk-who { padding: 0 12px 0 8px !important; vertical-align: middle !important; }
.wk-who .strong { display: block; font-size: var(--fs-body); line-height: var(--lh-body); }
.wk-sum { display: block; color: var(--ink-3); font-size: var(--fs-sec); line-height: var(--lh-sec); }
.wk-t td.wk { height: 1px; }
.wk-cell {
  position: relative; display: block; width: 100%; height: 100%; min-height: 72px; padding: 12px 10px 10px; border: 0; border-radius: 0; background: transparent; color: inherit; font: inherit;
  text-align: left; cursor: pointer; transition: background-color var(--dur-state) var(--ease);
}
@media (hover: hover) { .wk-cell:not([aria-pressed="true"]):hover { background: var(--hover); } }
.wk-cell[aria-pressed="true"] { background: var(--sel); box-shadow: inset 0 0 0 2px var(--saguaro); }
.wk-cell:focus-visible { outline-offset: -3px; }
.wk-n { display: grid; gap: 1px; color: var(--ink-3); font-size: var(--fs-sec); line-height: var(--lh-sec); white-space: nowrap; }
.wk-n .wk-c { color: var(--ink); font-size: var(--fs-body); line-height: var(--lh-body); font-weight: var(--w-medium); }
.wk-n .over { color: var(--amber-text); font-weight: var(--w-medium); }
.wk-out { display: block; padding: 12px 10px; color: var(--ink-3); font-size: var(--fs-sec); line-height: var(--lh-sec); }

/* the day: one 64 px lane a tech, the line drawn wide, names only under the stop they are at, their next, and what needs a look */
.sd { margin: 0 -8px; }
.sd-axis { display: grid; grid-template-columns: 232px minmax(0, 1fr); align-items: end; height: 32px; border-bottom: 1px solid var(--hair); color: var(--ink-3); font-size: var(--fs-meta); line-height: var(--lh-meta); }
.sd-axis-l { padding: 0 12px 8px 8px; font-weight: var(--w-medium); }
.sd-axis-t { position: relative; height: 24px; margin-right: 12px; }
.sd-axis-t > span { position: absolute; bottom: 8px; transform: translateX(-50%); }
.sd-axis-t > span:first-child { transform: none; }
.sd-axis-t > span:last-child { transform: translateX(-100%); }
.sd-lane { position: relative; display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 56px; border-bottom: 1px solid var(--hair); }
.sd-lane.on { background: var(--sel); }
.sd-l { display: grid; align-content: center; gap: 2px; min-width: 0; padding: 8px 12px 8px 8px; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
@media (hover: hover) { .sd-lane:not(.on) .sd-l:hover { background: var(--hover); } }
.sd-l:focus-visible { outline-offset: -3px; }
.sd-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.sd-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-body); line-height: var(--lh-body); font-weight: var(--w-semibold); }
.sd-ct { flex: none; color: var(--ink-3); font-size: var(--fs-sec); line-height: var(--lh-sec); }
.sd-state { color: var(--ink-2); font-size: var(--fs-sec); line-height: var(--lh-sec); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-track { position: relative; margin-right: 12px; --sb-h: 22px; }
.sd-track { min-height: 56px; }
/* the line through the day: solid through the finished stops up to the tech, dashed after, red where they are late */
.ln { position: absolute; top: 19px; height: 0; margin-top: -1px; border-top: 2px solid var(--saguaro); }
.ln.ahead { margin-top: -.75px; border-top: 1.5px dashed var(--edge-strong); }
.ln.late { border-top-color: var(--red); }
.sd-hr { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--hair); opacity: .6; }
.sd-track .sb { top: 8px; }
.sd-now { position: absolute; top: 0; bottom: 0; width: 1.5px; margin-left: -.75px; background: var(--ink); z-index: 2; }
.sd-nm { position: absolute; top: 34px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-size: var(--fs-meta); line-height: var(--lh-meta); }

/* a stop that could not be done: why, and the one button that moves it */
.sch-notdone h2 { margin: 4px 0 4px; font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); font-weight: var(--w-semibold); }
.sch-notdone ul { list-style: none; margin: 0; padding: 0; }
.sch-notdone li { display: flex; align-items: center; gap: 16px; padding: 10px 0; border-top: 1px solid var(--hair); }
.sch-notdone li:last-child { border-bottom: 1px solid var(--hair); }
.sch-notdone .sub { color: var(--ink-3); font-size: var(--fs-sec); line-height: var(--lh-sec); }
.sch-notdone a { text-decoration: none; }

/* one tech's route: the stops on a line, a time at the left, the name and what it is at the right (4.7) */
.rt-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 16px; }
.rt-head h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--ls-h2); font-weight: var(--w-semibold); }
.rt-day { margin: 2px 0 0; color: var(--ink-2); font-size: var(--fs-body); line-height: var(--lh-body); }
.rt-sum { margin: 0; color: var(--ink-3); font-size: var(--fs-sec); line-height: var(--lh-sec); }
.rt-rail { list-style: none; margin: 0; padding: 0; }
.rt-v { position: relative; display: grid; grid-template-columns: 52px 14px minmax(0, 1fr); gap: 0 10px; padding-bottom: 14px; }
.rt-t { padding-top: 1px; text-align: right; color: var(--ink-2); font-size: var(--fs-sec); line-height: var(--lh-body); font-variant-numeric: tabular-nums; }
.rt-t small { display: block; color: var(--ink-3); font-size: var(--fs-meta); line-height: var(--lh-meta); }
.rt-node { position: relative; z-index: 1; width: 10px; height: 10px; margin: 5px 0 0 2px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--edge-strong); }
.rt-v::before { content: ""; position: absolute; left: calc(52px + 10px + 6.25px); top: 15px; bottom: -5px; border-left: 1.5px dashed var(--edge-strong); }
.rt-v:last-child::before { display: none; }
.rt-v.lit::before { border-left: 2px solid var(--saguaro); }
.rt-v.done .rt-node { background: var(--saguaro); box-shadow: none; }
.rt-v.here .rt-node { background: var(--saguaro); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--saguaro); }
.rt-v.call .rt-node { box-shadow: inset 0 0 0 1.5px var(--amber); }
.rt-v.fail .rt-node { background: var(--red-tint); box-shadow: inset 0 0 0 1.5px var(--red); }
.rt-v.dim .rt-n, .rt-v.dim .rt-s { color: var(--ink-3); text-decoration: line-through; }
.rt-n { display: block; font-size: var(--fs-body); line-height: var(--lh-body); text-decoration: none; }
@media (hover: hover) { .rt-n:hover { text-decoration: underline; } }
.rt-s { color: var(--ink-3); font-size: var(--fs-sec); line-height: var(--lh-sec); }
.rt-s .pill { font-size: var(--fs-sec); }
.rt-v { cursor: default; }
.rt-act { display: none; flex-wrap: wrap; align-items: center; gap: 2px; margin: 4px 0 0 -8px; }
.rt-v.sel .rt-act, .rt-v:focus-within .rt-act { display: flex; }
/* a finger cannot hover or pick a row first: the moves are always there */
@media (pointer: coarse) { .rt-act { display: flex; } }
.rt-v.sel .rt-n { text-decoration: underline; }
.rt-act .row-menu { display: inline-flex; }
.rt-v.edit { display: block; padding-bottom: 20px; }
.rt-v.edit::before { display: none; }
.rt-form { display: grid; gap: 12px; padding: 12px 0 0; border-top: 1px solid var(--hair); }
.rt-add { margin: -4px 0 16px; }
.rt-form h3 { font-size: var(--fs-body); line-height: var(--lh-body); font-weight: var(--w-semibold); }

/* a phone: the margins are 16, a lane's name sits over its line, the week keeps the tech's name in view while it scrolls sideways */
@media (max-width: 900px) {
  .sch { margin-inline: -16px; }
  .sch-main { padding-inline: 16px; }
  .sch-panel { padding-inline: 16px; }
  .wk-who-h, .wk-who { position: sticky; left: 0; z-index: 3; background: var(--bg); }
  .wk-t .wk-who-h, .wk-t .wk-who { width: 142px; } /* wide enough for the Mark out sick button */
}
@media (max-width: 700px) {
  .sd-axis { grid-template-columns: minmax(0, 1fr); height: auto; }
  .sd-axis-l { padding-bottom: 4px; }
  .sd-axis-t { margin: 0 12px 0 8px; height: 20px; }
  .sd-axis-t > .ev { display: none; }
  .sd-lane { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .sd-l { padding-bottom: 0; }
  .sd-track { height: 56px; min-height: 0; margin: 0 12px 0 8px; }
}

/* ---------- Team, the team file, Hours, Products, the trucks and vehicles ---------- */
.tech-form { border-top: 0; padding-top: 4px; border-bottom: 1px solid var(--hair); }
.tech-form .form-grid { align-items: end; }
.tech-check { height: var(--h-control); }
.tf-name { margin: 0 0 4px; font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: var(--ls-h1); font-weight: var(--w-semibold); }
.tf-sec > .row > .h2, .tf-sec > .h2, .tf-sec > h2 { font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); font-weight: var(--w-semibold); }
.tf-sec > .row { align-items: center; }
.time-in .input { width: 120px; }
.day-shifts > .strong { font-size: var(--fs-body); }
.shift-form { align-items: flex-end; }
/* one slim notice may carry two lines, each with its own button */
.notice-lines .grow { display: grid; gap: 4px; }
.notice-line { display: flex; align-items: center; gap: 12px; }
.notice .btn.link { border-color: transparent; text-decoration: underline; text-underline-offset: 2px; }
.notice-line .grow { display: block; }
.set-block.truck-new, .set-block.vehicle-form { padding: 16px 0; }
.set-block.truck-new { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; }
.set-block.restock { margin-bottom: 8px; }
.restock-tech .pick-btn { width: 180px; }
.short-acts .pick-btn { min-width: 220px; }
.prod-form .form-grid { align-items: start; }
.t td .mono { color: var(--ink-2); }
@media print { .tf .tf-sec { border-top: 0; padding: 0; margin-top: 14px; } }

/* short for stops coming up (Trucks): one ruled row per tech and product, what is wrong in words */
.short { margin-bottom: 16px; }
.short-list { list-style: none; margin: 0; padding: 0; }
.short-row { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--hair); }
.short-row:last-child { border-bottom: 1px solid var(--hair); }
.short-main { display: grid; gap: 3px; min-width: 0; }
.short-acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
@container page (max-width: 760px) { .short-row { flex-direction: column; align-items: stretch; } .short-acts { justify-content: flex-start; } }
@media (max-width: 900px) { .short-row { flex-direction: column; align-items: stretch; } .short-acts { justify-content: flex-start; } }
.rt-c { min-width: 0; overflow-wrap: anywhere; }
.rt-s .pill { white-space: normal; align-items: flex-start; }
.rt-s .pill::before { margin-top: 6px; }

/* moving a visit: the quick days under Day; the Schedule-a-visit form's fields share one top line (a field with a hint no longer lifts its label) and Price carries its $ */
.mv-day { display: grid; gap: 6px; }
.mv-chips { margin: 0; }
.cx-form .form-grid { align-items: start; }
.money-in { position: relative; display: block; }
/* The $ is drawn by CSS, not written as text: the label reads exactly "Price", to a screen reader and to a test. The empty alt keeps it out of the accessible name. */
.money-in::before { content: "$"; content: "$" / ""; position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.money-in .input { padding-left: 21px; }

/* Mark out sick and Mark back in on a truck's row are quiet buttons, not words (an action, never a status; ink-2, no colour): a thin border, all the time. The Today lane is 64 px and holds the name, the state line and
   this button, so the name row gives up its 4 px top padding (the state line ends above the button's border) and the button is 26 px, a little under the 28 px
   Call and Reassign beside it, so its bottom border keeps a pixel clear of the row's hairline. Where there is room (the Schedule's Day and Week) it is Call's 28 px. */
.lane-who { padding-top: 0; }
.btn.xs.sick { height: 26px; line-height: 24px; margin-left: 0; padding: 0 8px 0 10px; border-color: var(--edge); background: transparent; color: var(--ink-2); }
.sd-sick .btn.xs.sick, .wk-sick .btn.xs.sick { height: 28px; line-height: 26px; }
.btn.xs.sick svg { color: var(--ink-3); }
@media (hover: hover) { .btn.xs.sick:hover { background: var(--hover); border-color: var(--edge-strong); } }
