/* VertaLink. One worksheet at a time under a header bar and a tab strip.
   The look of 18 November, "Clean": IBM Plex Sans, neutrals taken from the
   slate bar rather than from olive, one green for the thing to press, and
   white cards on a cool ground with a hairline and the faintest shadow.
   Colour says a state on small things only (a tag, a dot, a 3px edge), never
   by filling a whole card. Behaviour rules carry their dates below. */

@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/plex-sans-400.v1.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/plex-sans-600.v1.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/plex-sans-700.v1.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/plex-mono-500.v1.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* The tokens. test_schema reads the first thirteen by name and measures the
   pairs a screen draws at 4.5 to 1. --cream is the page ground. */
:root {
  --slate: #1D2630; --sage: #3F6B34; --sage-soft: #E8F1E4; --cream: #F5F6F4; --line: #DDE1DC;
  --ink: #1D2630; --muted: #55606B; --white: #FFFFFF; --danger: #A8463E; --warn: #B07A1E; --ok: #2F6B2A;
  --new: #EEF0ED; --grid: #DDE1DC;
  --sunken: #EEF0ED; --edge: #808A93; --sage-press: #35592B; --sage-line: #B9CFAE; --green-ink: #2C5A24;
  --danger-soft: #F9E7E5; --danger-edge: #E2B8B4; --danger-ink: #8C2F28;
  --amber-soft: #FBE7C6; --amber-edge: #E2B565; --amber-ink: #5A3A06;
  --blue: #2F6FAE; --blue-soft: #E3EDF8; --blue-ink: #1F4E7D;
  --tag-ink: #3B4652; --done-soft: #DFE4E9; --bar-text: #C9D1D9; --ph: #6B7580;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --fs-body: 14px; --fs-key: 15px; --fs-h2: 18px; --fs-h1: 22px;
  --gutter: 24px; --pad: 16px; --gap: 12px; --col: 1280px;
  --shadow-card: 0 1px 2px rgba(29, 38, 48, .06);
  --shadow-over: 0 12px 32px rgba(29, 38, 48, .18);
}
@media (max-width: 640px) { :root { --fs-body: 14px; --fs-key: 15px; --gutter: 16px; --pad: 12px; --gap: 8px; } }

* { box-sizing: border-box; }
/* What the page hides stays hidden, whatever display a rule below gives it
   (the paste box's Clear is hidden while the box is empty). */
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { font-family: var(--sans); font-size: var(--fs-body); line-height: 1.4; color: var(--ink); background: var(--cream); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
h1, h2, h3, h4 { line-height: 1.25; color: var(--slate); }
b, strong { font-weight: 600; }
a { color: var(--sage); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--sage-press); }
/* Accessibility (8 November): a tick box is a 24px tap target (WCAG 2.5.8), and
   .vh is text read by a screen reader and seen by nobody. The box is drawn, not
   left to the browser: a 1.5px control edge, solid green with a white tick. */
input[type=checkbox], input[type=radio] { width: 24px; height: 24px; flex-shrink: 0; margin: 0; vertical-align: middle; -webkit-appearance: none; appearance: none; border: 1.5px solid var(--edge); border-radius: 6px; background: var(--white) no-repeat center / 16px 16px; cursor: pointer; }
input[type=radio] { border-radius: 50%; }
input[type=checkbox]:checked { background-color: var(--sage); border-color: var(--sage); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.6 8.4l2.9 2.9 5.9-6.3' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
input[type=radio]:checked { border-color: var(--sage); background-image: radial-gradient(circle at center, var(--sage) 0, var(--sage) 5px, transparent 5.5px); }
input[type=checkbox]:hover:not(:disabled), input[type=radio]:hover:not(:disabled) { border-color: var(--sage); }
input[type=checkbox]:disabled, input[type=radio]:disabled { background-color: var(--sunken); border-color: #B3BAC1; cursor: default; }
input[type=checkbox]:disabled:checked { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.6 8.4l2.9 2.9 5.9-6.3' fill='none' stroke='%2355606B' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
/* A tick box or a radio with its words right after it on a line of their own
   (the email switches, who alerts you, the layover tick) keeps a little air
   before the words. */
label.note[style*="display:block"] > input[type=checkbox], label.note[style*="display:block"] > input[type=radio] { margin-right: 4px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
button, input, select, textarea { font-family: inherit; font-size: inherit; line-height: inherit; }
button { color: inherit; cursor: pointer; }
input, select, textarea { font-size: 14px; color: var(--ink); line-height: 1.35; }
#app { display: flex; flex-direction: column; min-height: 100vh; }
/* One focus ring everywhere, in a rule of its own: Safari before 15.4 drops a
   whole rule whose selector list names :focus-visible. */
:focus-visible { outline: 2px solid var(--sage); outline-offset: 2px; }

/* Every box anyone types in, picks from or writes in, drawn once. Zero
   specificity, so a box a screen draws its own way still wins. */
:where(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]), select, textarea) { min-height: 36px; padding: 7px 12px; border: 1px solid var(--edge); border-radius: 8px; background-color: var(--white); max-width: 100%; }
:where(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]), select, textarea):focus { border-color: var(--sage); }
:where(input:not([type=checkbox]):not([type=radio]), select, textarea):disabled, :where(input[readonly]) { background-color: var(--sunken); color: var(--muted); }
:where(textarea) { min-height: 60px; resize: vertical; }
select { -webkit-appearance: none; -moz-appearance: none; appearance: none; padding-right: 36px !important; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1.5 1.5l4.5 4.5 4.5-4.5' fill='none' stroke='%2355606B' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important; background-repeat: no-repeat !important; background-position: right 12px center !important; background-size: 12px 8px !important; cursor: pointer; }
::placeholder { color: var(--ph); opacity: 1; }

/* Header: the slate bar. Help and Sign out are quiet words; Alerts is the one
   chip, its count inside it. */
.bar { background: var(--slate); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 max(var(--gutter), calc((100% - var(--col)) / 2)); height: 52px; position: sticky; top: 0; z-index: 5; }
.bar .brand { font-weight: 700; display: flex; align-items: center; gap: 12px; min-width: 0; flex-shrink: 0; }
.bar .brand .pill { font-size: 12px; font-weight: 600; line-height: 1; color: #C8DBA3; background: rgba(200, 219, 163, .14); border-radius: 999px; padding: 5px 9px; }
/* The company name gives way on a narrow screen. Without this a long one like
   Wellerman Transportation pushes Sign out past the edge and the whole page
   scrolls sideways. */
.bar .right { display: flex; align-items: center; gap: 4px; min-width: 0; }
.bar .who { font-size: 13px; color: var(--bar-text); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-right: 8px; }
.bar button { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; background: transparent; border: 1px solid transparent; border-radius: 8px; color: var(--bar-text); font-size: 14px; font-weight: 600; line-height: 1; white-space: nowrap; flex-shrink: 0; }
.bar button.bell { color: #fff; border-color: rgba(255, 255, 255, .3); }
/* The member's own name opens their own profile. It reads as the bar's own
   text with an underline, not as another button in the group. */
.bar button.who { height: auto; border: none; background: none; padding: 0; font-weight: 400; color: var(--bar-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #6F7A8A; }
.bar :focus-visible { outline-color: #C8DBA3; }
/* The links under the sign in card and Start again sit on dark slate, where
   the green ring is under 3 to 1; they take the bar's light sage ring. */
.gate .help-line a:focus-visible { outline-color: #C8DBA3; }
div.sandbox-note button:focus-visible { outline-color: #C8DBA3; }
.bell { position: relative; }
.bell .count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 12px; font-weight: 700; line-height: 1; }
.bar .brand .wm { font-size: 18px; letter-spacing: -.2px; line-height: 1; }
.bar .brand .wm .a { color: #C8DBA3; }
.bar .brand .wm .b { color: #E6EAF0; }

/* The alerts list: a white panel under the bar. An unread alert carries a green
   edge and a bold headline; a read one is quiet. */
.notif-menu { position: absolute; right: max(var(--gutter), calc((100% - var(--col)) / 2)); top: calc(100% + 8px); width: 380px; max-height: 70vh; overflow: auto; background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-over); z-index: 6; font-size: 14px; line-height: 1.4; }
.notif-menu .item { padding: 12px 16px; border-bottom: 1px solid var(--line); cursor: pointer; background: var(--white); }
.notif-menu .item:last-child { border-bottom: 0; }
.notif-menu .item.unread { box-shadow: inset 3px 0 0 var(--sage); }
/* A pasted link is one unbroken word, and the menu scrolled sideways under it
   rather than wrapping, so the text ran off the right hand edge. */
.notif-menu .item { overflow-wrap: anywhere; }
.notif-menu .item .head { font-weight: 400; color: var(--muted); }
.notif-menu .item.unread .head { font-weight: 600; color: var(--ink); }
.notif-menu .item .lines { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 2px; color: var(--ink); }
.notif-menu .item .ts { color: var(--muted); font-size: 12px; margin-top: 4px; }
/* What kind an alert is on the left and when on the right, so the list reads
   down its left edge (Connor, 13 October: the alerts read "jumbled"). */
.notif-menu .item .top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.notif-menu .item .top .ts { margin-top: 0; white-space: nowrap; }
.tag.msg { background: #fff; border-color: var(--ink); color: var(--ink); }
/* A note that says three things says them as three lines. */
ul.note.lines { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.notif-menu .empty { padding: 16px; color: var(--muted); }
/* Where the alerts are chosen, pinned above the list while it scrolls. */
.notif-menu .notif-set { position: sticky; top: 0; z-index: 1; background: var(--white); padding: 4px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.notif-menu .notif-set button.link { display: block; width: 100%; text-align: left; padding: 8px 0; }

/* Tab strip. Under the header bar, where it is the first thing read, and pinned
   there as the page scrolls (Connor, 6 October: the bottom "is easy to
   overlook"). A white bar; the tab you are on is ink over a green underline,
   so it is said by weight of colour and by the bar, never by colour alone. */
.tabs { display: flex; align-items: stretch; gap: 4px; background: var(--white); border-bottom: 1px solid var(--line); padding: 0 max(calc(var(--gutter) - 14px), calc((100% - var(--col)) / 2 - 14px)); overflow-x: auto; position: sticky; top: 52px; z-index: 4; }
.tabs button { position: relative; flex: 0 0 auto; height: 44px; padding: 0 14px; background: none; border: 0; border-radius: 0; color: var(--muted); font-size: 14px; font-weight: 600; line-height: 1; white-space: nowrap; }
.tabs button.active { color: var(--ink); box-shadow: inset 0 -3px 0 var(--sage); }
.tabs button:focus-visible { outline-offset: -4px; }
.tabs button .dot { display: inline-block; width: 6px; height: 6px; border-radius: 999px; background: var(--danger); margin-left: 6px; vertical-align: 2px; }

/* Sheet body: one column, centred on a wide screen. */
.sheet { flex: 1; padding: 16px var(--gutter) 24px; overflow: auto; }
main.sheet > div, main.sheet > .err { max-width: var(--col); margin-left: auto; margin-right: auto; }
.sheet-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin: 0 0 8px; }
.sheet-title h1, .sheet-title h2 { margin: 0; color: var(--slate); }
.sheet-title h1 { font-size: var(--fs-h1); font-weight: 700; letter-spacing: -.2px; }
/* One size for every section heading, over the 15px typed on each in app.js. */
.sheet-title h2 { font-size: var(--fs-h2) !important; font-weight: 700; }
.sheet-title .hint { color: var(--muted); font-size: 13px; }
/* The same space above every section, over the 8, 14, 18 or 22px typed on each. */
.sheet-title[style*="margin-top"] { margin-top: 24px !important; }
.card .sheet-title { margin: 0 0 12px; }
.card .sheet-title h2 { font-size: 16px !important; }
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.note { color: var(--muted); font-size: 13px; }
.err { color: var(--danger); font-size: 13px; font-weight: 600; margin-top: 8px; }
.err:empty { display: none; }
/* What a step on the sign in page did, said in the success colour rather than the error one. */
.note.auth-ok:not(:empty) { color: var(--ok); font-size: 13px; font-weight: 600; margin-top: 8px; }
.note.auth-ok:empty { display: none; }
.ok { color: var(--ok); font-size: 13px; margin-top: 8px; font-weight: 600; }

/* Buttons. One shape, three sizes (32 in a table row, 36 on a desk, 44 on a
   phone) and these levels: primary, the waiting primary, tonal, secondary,
   quiet, destructive. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 0 16px; background: var(--sage); color: #fff; border: 1px solid var(--sage); border-radius: 8px; font-size: 14px; font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none; }
.btn.ghost { background: var(--white); color: var(--ink); border-color: var(--edge); }
.btn.danger, .btn.ghost.danger, .acts .btn.ghost[aria-label^="Deny"] { background: var(--white); color: var(--danger); border-color: var(--danger-edge); }
/* A primary that is not ready yet: still the primary's place and size, drawn
   as an outline in the action colour, so it reads as the next step to finish
   rather than as one more plain button (Submit to the board, Confirm take). */
.btn.post.ghost, .take-go .btn.ghost[aria-label="Confirm take"] { background: var(--white); color: var(--sage); border-color: var(--sage); box-shadow: inset 0 0 0 1px var(--sage); }
/* Tonal: helpful, not the finish. */
.btn.add-rows, .btn.ask-q, .btn.send-op, .btn.f-csv, .btn.a-go, .btn.fill-crew { background: var(--sage-soft); color: var(--green-ink); border-color: var(--sage-line); }
.btn:disabled, .btn.add-rows:disabled { background: var(--sunken); border-color: var(--line); color: var(--muted); box-shadow: none; cursor: not-allowed; }
.btn.ok-btn { background: var(--ok); border-color: var(--ok); }

/* Links go somewhere: a company's profile, Google Maps, an email. Green and
   underlined, the size of the words around them, left aligned when they wrap. */
.link { min-height: 24px; }
/* A link drawn as a line of its own (the accessibility statement in Help) is a
   tap target in its own right, so it takes the 24px the way a button does;
   an inline anchor ignores min-height (the sweep's axe pass, 11 November). */
a.link { display: inline-block; }
button.link { background: none; border: none; padding: 0; color: var(--sage); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-align: left; }
/* A company name is a link into its profile. On a phone give it room to be hit. */
@media (max-width: 640px) {
  button.link { display: inline-block; padding: 6px 0; min-height: 32px; }
  /* A phone number or an email is something a driver taps: 32px tall, the
     way every other link on a phone is, and still free to wrap. */
  a[href^="tel:"], a[href^="mailto:"] { display: inline-block; max-width: 100%; padding: 8px 0; overflow-wrap: anywhere; }
  /* A company's name inside a sentence, or alone in a table cell, keeps its
     32px to tap, and the room comes out of the space around the line rather
     than pushing the lines apart. */
  .dash .order .l2 button.link, .run-said button.link, table.grid:not(.board) td.static > button.link { padding: 7px 0; margin: -7px 0; }
}
/* In place actions are quiet buttons: green words, no underline, a soft green
   ground under the finger or the mouse. Company names stay links. */
.card-links .link, .dash .order .l1 .link.open, .dash .link.more, button.fold-edit, .fleet-acts .link, button.link.edit, button.link.remove, button.clear-paste, button.clear-f, button.clear-picks, button.pick-all, button.same-eta, button.same-win, .route-links .link, .take-more .link, .board-more .link, .pick-bar .link { display: inline-flex; align-items: center; min-height: 32px; padding: 0 8px; border-radius: 8px; text-decoration: none; }
/* A quiet button at the start or the end of its line lines its words up with
   the words above it. */
.card-links .link:first-child, .take-more .link, .dash .link.more, button.same-eta, button.same-win { margin-left: -8px; }
.card-links .link:last-child, .fleet-acts .link:last-child, .dash .order .l1 .link.open { margin-right: -8px; }
/* Quiet and destructive: Remove and Cannot run this, in red. */
.fleet-acts .link[aria-label^="Remove"], button.link.remove, .route-links .route-act[aria-label^="Cannot run this"] { color: var(--danger); }

/* Tags: a label, never tapped. No border, a tint with dark words of its own
   hue. Every attribute (Fresh Frozen, Over 5, Not in totes, a role) is neutral;
   amber is only your move, blue only in transit, red only late or refused. */
.tag { display: inline-block; font-size: 12px; font-weight: 600; line-height: 1.35; padding: 2px 8px; border: 1px solid transparent; border-radius: 999px; background: var(--sunken); color: var(--tag-ink); white-space: nowrap; vertical-align: 1px; letter-spacing: 0; }
.tag.new { background: var(--new); color: var(--tag-ink); }
.tag.ok { background: var(--sage-soft); color: var(--green-ink); margin-top: 0; } /* not the 8px of the .ok line it shares a name with */
.tag.done { background: var(--done-soft); color: var(--ink); }
.tag.cold { background: var(--blue-soft); color: var(--blue-ink); }
.tag.ask { background: var(--amber-soft); color: var(--amber-ink); }
/* An order carrying more totes than an order includes, an order not in totes,
   and the Fresh Frozen service are facts about the load, not states: neutral. */
.tag.over, .tag.pkg, .tag.away, .tag.cold.frozen { background: var(--sunken); color: var(--tag-ink); }
.tag.asap { background: var(--danger-soft); color: var(--danger-ink); }
/* A license or a policy that has run out. Said, never enforced. */
.tag.late { background: var(--danger-soft); color: var(--danger); }
/* The tote count beside an order number is plain words, not a pill. */
.tag.totes { background: none; border: 0; padding: 0; color: var(--ink); font-size: 13px; }
/* An unread message on an order line: a red dot, the way the tabs say unread. */
.dash .order .tag.ask { background: var(--sunken); color: var(--ink); }
.dash .order .tag.ask::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 999px; background: var(--danger); margin-right: 6px; vertical-align: 1px; }

/* The codes a person retypes (license numbers, agent IDs, plates, VINs) in
   the monospace, in ink, never broken across a line. */
.code, .crew-ids .nw { font-family: var(--mono); font-weight: 500; font-size: max(12px, .92em); letter-spacing: 0; color: var(--ink); white-space: nowrap; }

/* Grid tables: one white table, horizontal rules only, the header on a sunken
   ground. A state is a tag, never a filled row. */
.grid-wrap { overflow: auto; }
table.grid { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
table.grid th, table.grid td { border: 0; border-bottom: 1px solid var(--line); padding: 0; vertical-align: top; text-align: left; }
table.grid tbody tr:last-child > td { border-bottom: 0; }
table.grid th { background: var(--sunken); color: var(--muted); font-weight: 600; font-size: 12px; line-height: 1.3; padding: 8px 10px; white-space: nowrap; position: sticky; top: 0; z-index: 1; border-bottom-color: #CBD1D6; }
table.grid thead th:first-child { border-top-left-radius: 11px; }
table.grid thead th:last-child { border-top-right-radius: 11px; }
table.grid th.rownum, table.grid td.rownum { width: 84px; white-space: nowrap; color: var(--ink); font-weight: 700; padding: 8px 10px; }
table.grid td.static { padding: 7px 10px; line-height: 1.4; }
table.grid td.static b:not(.b-name) { font-weight: 600; color: var(--ink); }
/* The ETA lines and the route notes are written a line at a time. The operator
   reads them, and read as HTML they ran together into one paragraph. */
table.grid td.static.lines { white-space: pre-line; }
/* A note the operator typed on three lines reads as three lines on both
   boards, the way the route's ETA and notes cells have since 13 September. */
table.board td.static.lines, table.grid td.c-notes.lines { white-space: pre-line; }
table.grid td .cell { display: block; width: 100%; min-height: 36px; padding: 7px 10px; border: 1px solid var(--edge); border-radius: 8px; background: var(--white); resize: none; font-size: 14px; line-height: 1.4; white-space: pre-wrap; }
table.grid td select.cell { white-space: nowrap; }
table.grid td .cell:focus { border-color: var(--sage); }
table.grid td .cell.ro { color: var(--ink); }
table.grid td .cell.bad { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
/* The next box to fill, after a paste: one red outline, no words. */
table.grid td .cell.next, .take .stack input.next { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
/* Not an error. This name is not on the license list, so it posts and waits for
   VertaLink to approve the facility. */
table.grid td .cell.newfac { border-color: #B07A1E; box-shadow: 0 0 0 1px #B07A1E; }
table.grid tr.new td { background: var(--white); }
table.grid tr.taken td { color: var(--muted); }
table.grid td.actions { white-space: nowrap; padding: 6px 10px; }
table.grid td.actions .btn { min-height: 32px; padding: 0 14px; font-size: 13px; }
/* Off a phone a box inside a table row is 32px tall. A tick box is not a box
   to type in: it stays 24px square. */
@media (min-width: 641px) { table.grid:not(.qgrid) td.static input:not([type=checkbox]):not([type=radio]), table.grid:not(.qgrid) td.static select { min-height: 32px; padding-top: 5px; padding-bottom: 5px; } }
table.grid:not(.board) td.actions .btn + .btn { margin-left: 8px; }
.sub { display: block; color: var(--muted); font-size: 12px; line-height: 1.35; margin-top: 2px; }
/* Who a route is for. One step up from .sub and level with the facility name
   on the stop beside it, never louder than it. */
.who { display: block; font-size: 14px; font-weight: 600; margin-top: 4px; }
/* Every act on a route is its own line. The serious one is last and stands
   further off. */
.route-act { display: block; margin-top: 8px; }
/* One solid button and a line of small links under it (3 November). */
.route-act.go { width: 100%; }
.route-links { display: flex; flex-wrap: wrap; gap: 0 8px; margin: 6px 0 0 -8px; font-size: 14px; }
.route-links .route-act { display: inline-flex; margin-top: 0; }
/* Ask a question, or Messages, on a route's stop: the same quiet button it is
   on a board card. */
table.board.routes td.c-to > button.link.sub { display: inline-flex; align-items: center; min-height: 32px; margin: 4px 0 0 -8px; padding: 0 8px; border-radius: 8px; font-size: 13px; line-height: 1.2; color: var(--sage); text-decoration: none; }
/* A box that saves when it is left says so where it happens. */
.sub.saved { color: var(--ok); font-weight: 600; }
.stack { display: grid; gap: 8px; }
.stack input { width: 100%; }

/* Paste box: a box for words, in the words' own face. pre-wrap, not pre:
   pasted rows keep their tabs and line breaks, and the long hint inside the
   empty box wraps instead of running off the edge. */
.paste { display: grid; gap: 8px; margin-bottom: 12px; }
.paste textarea { width: 100%; min-height: 84px; border: 1px solid var(--edge); border-radius: 10px; padding: 10px 12px; font-family: var(--sans); font-size: 15px; line-height: 1.5; background: var(--white); white-space: pre-wrap; tab-size: 4; }

/* Forms: every label above its box, one left edge. Every form, not just the
   sign in one; the Fix facility box uses the same markup. */
.form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 16px; }
.form label { display: grid; gap: 4px; align-content: start; font-size: 12px; font-weight: 600; color: var(--muted); min-width: 0; }
.form label input, .form label select, .form label textarea { font-weight: 400; }
.form input:not([type=checkbox]):not([type=radio]), .form select, .form textarea { width: 100%; min-width: 0; }
.form .full { grid-column: 1 / -1; }
.form .note:empty { display: none; }
/* Column counts as classes, not inline styles: an inline grid-template-columns
   cannot be overridden by the phone rule below. */
.form.cols3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* On the request form I am and License # take the card's whole width, so
   "An operator (I post deliveries)" reads whole in the box. */
.switch + .form:not(.lost-form) > label:nth-child(3), .switch + .form:not(.lost-form) > label:nth-child(4) { grid-column: 1 / -1; }
.form label.note, .form .full.note { font-weight: 400; }
label .req { color: var(--danger); font-weight: 700; }
.lbl-req::after { content: " *"; color: var(--danger); font-weight: 700; }

/* A pair of hours picked from two dropdowns, on the setup page and My company. */
.hours .lbl { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.hours .winbox { display: flex; flex-direction: row; align-items: center; gap: 8px; }
.hours .winbox select { min-width: 0; flex: 1; }
.hours-form { margin-top: 12px; }
/* An ETA line is its label, the day and the time, on one row. The day opens on
   the day the route already knows and can be changed (Connor, 6 October). */
.eta-rows { display: grid; gap: 8px; padding: 0; }
.eta-row { display: flex; align-items: center; gap: 4px 8px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.eta-row .lbl { flex: 1 1 100%; font-weight: 600; }
.eta-rows input { min-height: 36px; }
.eta-rows input.eta-d { width: 112px; }
.eta-rows input.eta-t { width: 104px; }
.eta-row select.eta-d, .eta-row select.eta-t { margin: 0; font-size: 14px; }
.eta-row select.eta-d { width: 132px; }
.eta-row select.eta-t { width: 116px; }
.eta-row button.same-eta { display: inline-flex; flex: 1 1 100%; justify-content: flex-start; margin: 0 0 0 -8px; font-size: 13px; }
@media (max-width: 640px) { .eta-row button.same-eta { min-height: 32px; } }

/* Toast: a slate slip at the foot of the screen, announced. */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--slate); color: #fff; padding: 12px 16px; border-radius: 8px; font-size: 14px; font-weight: 600; line-height: 1.35; max-width: calc(100vw - 32px); box-shadow: var(--shadow-over); z-index: 30; }

/* The compact board card (20 September, two lines since 14 October). On the
   desk every column is on the row, so the brief and the Details link do not
   exist there. The phone block below turns them on and folds the rest of the
   card behind Details. */
table.board td.c-brief, .card-links .link.more-card { display: none; }
.card-links { margin-top: 8px; font-size: 13px; }
.card-links .link { display: flex; }
/* The take panel's More line: one quiet button under the intro that opens the
   paste box, the second driver and vehicle, the layover tick and the ETA. */
.take-more { margin: 0; font-size: 14px; }
.take-more .link { height: auto; padding-top: 6px; padding-bottom: 6px; }

/* Pickup and Drop off side by side, and whose move it is (17 November). The
   facility or brand is bold and in ink; its town under it in ink; the street
   and the license under that in grey, the license in the code face. */
.pd { display: grid; grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr); gap: 2px 12px; align-items: start; margin: 6px 0; max-width: 600px; }
.pd .end { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.pd .lab { font-size: 12px; color: var(--muted); line-height: 1.3; }
.pd .b-name { font-size: 15px; color: var(--ink); overflow-wrap: anywhere; }
.pd .b-name { font-weight: 700; line-height: 1.3; }
.pd .town { font-size: 14px; color: var(--ink); }
.pd .sub { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.pd .pd-to { align-self: start; margin-top: 18px; font-size: 0; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 14'%3E%3Cpath d='M2 7h15M12 2l5 5-5 5' fill='none' stroke='%23808A93' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 20px 14px; }
/* Whose move it is: your own is the one amber band in a column, with a darker
   amber bar on its left; anybody else's is plain grey words. */
.turn { display: block; font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--muted); background: transparent; border: 0 solid transparent; border-radius: 0 8px 8px 0; padding: 0; margin: 0 0 8px; }
.turn.mine { background: #FBE7C6; border-color: #E2B565; color: #5A3A06; }
p.turn.mine, div.turn.mine { border-left-width: 3px; padding: 6px 10px; }

/* Where an order is (2 October): a light line of words, the steps done in ink
   and bold with their tick, the steps to come in grey with none. */
.trail { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; margin-top: 6px; }
.trail .step { display: inline-flex; align-items: center; font-size: 12px; line-height: 1.4; white-space: nowrap; color: #55606B; }
.trail .step.done { color: var(--ink); font-weight: 600; }
.trail .step.done .when { font-weight: 400; color: var(--muted); margin-left: 4px; }
.trail .step.stop { color: var(--danger); font-weight: 600; }

/* The transporter's board on the desk: compact rows, so five orders show on
   the first screen of a 1280 by 900 window, as they did before the restyle.
   The two places an order joins share whatever width the short columns
   leave, half each; every short column is as wide as its own words. So a
   name reads on a line or two, the table fits its box down to a 1000px
   window, and nothing reads a word a line. The pickup day never breaks
   inside itself (its own lines break after "by"); from 1280px the window
   and the service each hold one line and a note has room for a sentence. */
table.board td.actions { width: 1%; }
table.board td.actions .btn { min-width: 72px; min-height: 32px; font-size: 14px; }
table.board td.c-to b, table.board td.c-from b { font-weight: 600; }
@media (min-width: 641px) {
  table.grid td.static, table.grid td.rownum { font-size: 13px; }
  table.board.pickable th { padding: 8px; }
  table.board.pickable th.rownum, table.board.pickable td.rownum { width: auto; }
  /* The take panel is pulled left to start near the table's edge. With one
     order on the board the first column was only as wide as its heading, so
     the panel slid out under the board's own edge and its first tick was cut
     off. The column keeps the width a row gives it. */
  table.board.pickable th.rownum { min-width: 88px; }
  table.board.pickable td.static, table.board.pickable td.rownum, table.board.pickable td.actions { padding: 7px 8px; line-height: 1.35; }
  table.board.pickable td .sub { line-height: 1.3; margin-top: 1px; }
  table.board.pickable td.actions { white-space: normal; }
  table.board.pickable td.actions .card-links { margin-top: 4px; }
  table.board.pickable td.actions .card-links .link { min-height: 24px; line-height: 1.3; }
  table.board.pickable td.c-from, table.board.pickable td.c-to { width: 50%; }
  table.board.pickable td.c-shipper { min-width: 88px; }
  table.board.pickable td.c-notes { min-width: 96px; }
  table.board.pickable td.c-pickup { white-space: nowrap; }
  table.board.pickable td.c-pickup .sub { white-space: nowrap; }
  /* The tighter row (19 November): the window under the day, the hours
     beside the license, Fresh Frozen under the totes, and Ask a question on
     one line, so a row is three lines where it was five or six. */
  table.board.pickable td.c-pickup .win { display: block; }
  table.board.pickable td .hrs { margin-left: 10px; }
  /* The town, on its own in front of the name, so a lane reads at a glance. */
  table.board.pickable td .town-chip { display: inline-block; font-weight: 600; color: var(--ink); background: var(--cream); border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; margin-right: 2px; white-space: nowrap; }
  table.board.pickable td.c-totes .svc { display: block; margin-top: 2px; }
  table.board.pickable td.c-totes .svc .frozen-note { max-width: 150px; }
  table.board.pickable td.actions .card-links .link { white-space: nowrap; }
  /* The take panel: the same white surface and green edge it has on a
     phone, its words starting near the table's own left edge rather than
     after the order column. */
  table.board tr.take-panel > td { background: var(--white); padding-top: 12px; padding-bottom: 12px; }
  table.board tr.take-panel > td:first-child { box-shadow: inset 3px 0 0 var(--sage); }
  table.board tr.take-panel .take-wrap { margin-left: -64px; }
}
@media (min-width: 1280px) {
  table.board.pickable td.c-from, table.board.pickable td.c-to { min-width: 204px; }
  table.board.pickable td.c-totes { white-space: nowrap; }
  table.board.pickable td.c-totes .sub { white-space: normal; }
  table.board.pickable td.c-notes { min-width: 120px; }
}
/* Under 1280px the board's cells sit a little closer, so the two places an
   order joins keep the width a name needs and the rows stay short. */
@media (min-width: 641px) and (max-width: 1279px) {
  table.board.pickable th, table.board.pickable td.static, table.board.pickable td.rownum, table.board.pickable td.actions { padding-left: 6px; padding-right: 6px; }
  table.board.pickable td.c-shipper { min-width: 0; }
  table.board.pickable td.c-notes { min-width: 80px; }
}
/* Between a phone and a small desk the board can be wider than its box, as it
   was before the restyle. Take stays put at the right edge while the rest of
   a row scrolls under it, the way a wide table's buttons do on a phone, so
   the one thing to press is on the screen at every width. The take panel
   keeps to the width of the screen, with Confirm take under the driver and
   the vehicle, where it is on a phone. */
@media (min-width: 641px) and (max-width: 959px) {
  table.board.pickable td.actions, table.board.pickable thead th:last-child { position: sticky; right: 0; z-index: 2; box-shadow: -1px 0 0 var(--line); }
  table.board.pickable td.c-from, table.board.pickable td.c-to { min-width: 112px; }
  table.board tr.take-panel .take-wrap { max-width: calc(100vw - 96px); }
  table.board tr.take-panel .take { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  table.board tr.take-panel .take .tbox.eta, table.board tr.take-panel .take .tbox.route, table.board tr.take-panel .take .take-go { grid-column: 1 / -1; grid-row: auto; }
  table.board tr.take-panel .take-go { padding-top: 0; }
}

@media (max-width: 640px) {
  /* minmax(0, 1fr), not 1fr: a grid track's automatic minimum is the widest
     thing in it, and a select is as wide as its longest option. */
  .form, .form.cols3 { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .form label { min-width: 0; }
  .form input:not([type=checkbox]):not([type=radio]), .form select { min-width: 0; max-width: 100%; }
  input, textarea, select { font-size: 16px !important; }
  :where(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]), select) { min-height: 40px; }
  .notif-menu { right: 8px; left: 8px; width: auto; max-height: calc(100vh - 120px); }
  /* On a phone the company name is the one thing in the bar you already know,
     and the role is on the Help heading, the fourth tab and My company. */
  .bar .who { display: none; }
  .bar { height: 48px; padding: 0 8px 0 16px; gap: 8px; }
  .bar .brand { gap: 8px; }
  .bar .brand .pill { display: none; }
  .bar .right { gap: 0; }
  .bar button { padding: 0 10px; height: 36px; }
  .bar button.bell { margin: 0 4px; }
  /* Every toolbar wraps rather than pushing the page sideways. */
  .toolbar { flex-wrap: wrap; }
  .toolbar input, .toolbar select { min-width: 0; max-width: 100%; }
  /* All five tabs on one screen, each sized to its own word at 13px, the dot
     after the word (Connor, 13 September: five tabs at 375px). The ellipsis
     stays as the backstop; a check asserts no label is reaching for it. */
  .tabs { top: 48px; gap: 0; padding: 0 6px; }
  .tabs button { flex: 1 1 auto; min-width: 0; height: 44px; padding: 0 6px; font-size: 13px; letter-spacing: 0; text-align: center; overflow: hidden; text-overflow: ellipsis; }
  .tabs button .dot { margin-left: 4px; }
  .sheet { padding-top: 12px; padding-bottom: 24px; }
  .card .sheet-title { margin-bottom: 8px; }
  .sheet-title[style*="margin-top"] { margin-top: 16px !important; }
  /* A wide table scrolls inside its own box on a phone. The buttons stay put
     while the rest of the row scrolls under them. The header is pinned to sit
     over the pinned action column; :empty rather than :has, because :has is
     newer than the browsers this file supports. */
  table.grid td.actions, table.grid th:last-child:empty { position: sticky; right: 0; z-index: 2; box-shadow: -8px 0 8px -8px rgba(29, 38, 48, .2); }
  table.grid tbody td.actions { background: var(--white); }
  table.grid tr.new td.actions { background: var(--white); }
  /* A row with nothing to press (the owner's own row) pins nothing, so no
     white box sits over the end of the row it scrolls past. */
  table.grid td.actions:empty { position: static; box-shadow: none; background: transparent; }
  table.grid th:last-child:empty { background: var(--sunken); }
  /* The Fees table scrolls sideways in its own box either way; its company
     column holds a name on a line or two rather than a word a line. */
  .grid-wrap.fees td.static:first-child { min-width: 152px; }

  /* The transporter's board is the one screen read on a phone in a truck, so
     each delivery becomes a card instead of a row to scroll sideways. */
  table.board { display: block; border: 0; background: transparent; border-radius: 0; }
  table.board thead { display: none; }
  table.board tbody { display: flex; flex-direction: column; gap: var(--gap); }
  table.board tr { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; background: var(--white); padding: var(--pad); box-shadow: var(--shadow-card); }
  table.board tr.new { background: var(--white); }
  table.board tr.card { margin-bottom: 4px; }
  /* A note can carry one unbroken word, a pasted link most often, and the card
     list scrolled sideways under it rather than wrapping. */
  table.board td, table.board tr.new td { display: block; border: none; background: transparent; padding: 3px 0; white-space: normal; overflow-wrap: anywhere; }
  /* Matches the rule above cell for cell, so an empty note or the row number
     really does drop out of the card instead of leaving a bare label. */
  table.board td:empty, table.board tr.new td:empty { display: none; }
  table.board td.rownum { width: auto; background: transparent; text-align: left; font-size: 14px; font-weight: 700; color: var(--ink); padding: 3px 0; }
  table.board td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 400; line-height: 1.35; color: var(--muted); margin-bottom: 1px; }
  table.board td.c-to::before { content: none; }
  table.board td.c-to { font-size: 15px; margin-bottom: 2px; }
  table.board td.actions { position: static; box-shadow: none; background: none; padding: 8px 0 0; width: auto; }
  table.board td.actions .btn { width: 100%; min-height: 44px; font-size: 15px; }
  table.board td.c-to { order: 1; }
  /* The order number sits under where it is going, not above it. */
  table.board td.rownum { order: 2; }
  table.board td.c-pickup { order: 2; }
  table.board td.c-window { order: 3; }
  table.board td.c-totes { order: 4; }
  table.board td.c-service { order: 5; }
  table.board td.c-from { order: 6; }
  table.board td.c-shipper { order: 7; }
  table.board td.c-notes { order: 8; }
  table.board td.actions { order: 9; }
  table.board td.c-shipper, table.board td.c-shipper .link { white-space: normal; }
  /* Compact card: the order number, the operator, the full From, the window
     and the notes are the c-more cells and wait behind Details. */
  table.board tr.card:not(.open) .c-more { display: none; }
  table.board tr.card:not(.open) td.c-to .sub:not(.keep) { display: none; }
  table.board tr.card td.c-window { display: none; }
  /* The brief: the order's two ends, the day, the load (14 October). The cells
     it stands for are never drawn on the card, open or closed. */
  table.board tr.card td.c-brief { display: block; order: 2; font-size: 14px; padding: 0; position: relative; }
  table.board tr.card td.c-brief::before { content: none; }
  table.board tr.card td.c-pickup, table.board tr.card td.c-totes, table.board tr.card td.c-service { display: none; }
  .c-brief .b1, .c-brief .b2 { display: block; color: var(--ink); }
  .c-brief .b1 { font-weight: 600; }
  /* Under the lane, each end's facility with its license (14 October). The To
     cell, which says the same facility, steps aside while the card is closed
     and comes back with its street under Details; the two ends then step
     aside, so a facility is named once in either state. */
  table.board tr.card:not(.open) td.c-to { display: none; }
  table.board tr.card.open .c-brief .pd { display: none; }
  .c-brief .pd { margin: 0 0 6px; }
  .c-brief .pd .lab { line-height: 24px; }
  .c-brief .pd .pd-to { margin-top: 27px; }
  .c-brief .b2 { margin-top: 2px; }
  .c-brief .tag { vertical-align: 1px; }
  .c-brief .frozen-note { margin-top: 2px; }
  .card-links .link.more-card { display: inline-flex; }
  .card-links { display: flex; justify-content: space-between; align-items: center; margin-top: 0; }
  .card-links .link { display: inline-flex; }
  /* The take panel opens as its own card under the one it belongs to. */
  table.board tr.take-panel { padding: var(--pad); box-shadow: inset 3px 0 0 var(--sage), var(--shadow-card); }
  table.board tr.take-panel td { display: block; padding: 0; }
  table.board td.c-status { order: 2; }
  table.board td:not([data-label])::before { content: none; }
  /* Beats the card rule above, which names one class more and was turning the
     actions cell back into a block, leaving Take a small button at the left. */
  table.board tr td.actions, table.board tr.new td.actions { display: flex; gap: 8px; }
  table.board tr td.actions .btn, table.board tr.new td.actions .btn { width: auto; flex: 1; }
  /* On a board card Take runs the width of the card and "Ask a question" sits
     under it. */
  table.board tr.new td.actions { flex-direction: column; align-items: stretch; gap: 4px; }
  table.board tbody td.actions, table.board tr.new td.actions { background: none; }
  /* Routes as cards: the stop leads, then when and who, then the crew. */
  table.board.routes td.c-to::before { content: none; }
  table.board.routes td.c-pickup { order: 3; }
  table.board.routes td[data-label="Driver"] { order: 4; }
  table.board.routes td[data-label="Vehicle"] { order: 5; }
  table.board.routes td[data-label="ETA"] { order: 6; }
  table.board.routes td[data-label="Notes"] { order: 7; }
  table.board.routes .stack input, table.board.routes select, table.board.routes textarea.cell { width: 100%; }
  /* The directory: each fact with its caption at its left, so a company is a
     short card and not a column of captions. */
  .grid-wrap.dir table.board td[data-label="Contact"], .grid-wrap.dir table.board td[data-label="License"], .grid-wrap.dir table.board td[data-label="Rating"], .grid-wrap.dir table.board td[data-label="Deliveries"] { position: relative; padding: 6px 0 6px 96px; min-height: 32px; }
  .grid-wrap.dir table.board td[data-label="Contact"]::before, .grid-wrap.dir table.board td[data-label="License"]::before, .grid-wrap.dir table.board td[data-label="Rating"]::before, .grid-wrap.dir table.board td[data-label="Deliveries"]::before { position: absolute; left: 0; top: 7px; width: 88px; margin: 0; }
  .grid-wrap.dir table.board td.c-fav { padding-top: 8px; }
  .grid-wrap.dir table.board td[data-label="Company"] { font-size: 16px; padding-top: 8px; }
  /* A table inside a card is part of that one frame: its rows are split by
     hairlines rather than drawn as cards of their own (My company's
     Licenses). */
  /* One left edge: a cell of a card list starts where the card's words do
     (the directory's Favorite and company name, My company's licenses). */
  table.board td.static { padding: 4px 0; }
  .card table.board tbody { gap: 0; }
  .card table.board tr { border: 0; border-radius: 0; box-shadow: none; padding: 8px 0; background: transparent; }
  .card table.board tbody tr:first-child { padding-top: 0; }
  .card table.board tbody tr + tr { border-top: 1px solid var(--line); }
  /* The admins: each one a row inside the card, the name over the email with
     the tag beside them, and Remove under them for the owner, so nothing runs
     past the card's edge. */
  .card table.grid.admins, .card table.grid.admins tbody { display: block; }
  .card table.grid.admins thead { display: none; }
  .card table.grid.admins tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
  .card table.grid.admins tbody tr:first-child { border-top: 0; padding-top: 0; }
  .card table.grid.admins td { display: block; grid-column: 1; border: 0; padding: 0; position: static; box-shadow: none; background: transparent; white-space: normal; overflow-wrap: anywhere; }
  .card table.grid.admins td:first-child { font-weight: 600; }
  .card table.grid.admins td:nth-child(3) { grid-column: 2; grid-row: 1; }
  .card table.grid.admins td.actions { grid-column: 1 / -1; padding-top: 8px; }
  .card table.grid.admins td.actions:empty { display: none; }
  /* A route's stops are one card: a stop's foot and the next stop's top make
     one hairline between them, not two. */
  table.board.routes tr.rbody:not(.block-end) { border-bottom-width: 0; }
  /* Within keeps its own width and Find takes the rest of that row, so the
     example in it reads whole. */
  .toolbar.filters label.ffield { flex: 0 0 auto; }
  .toolbar.filters .fsep + .ffield { flex: 1 1 170px; }
}

/* A stop the state publishes no street for. It routes by name and town until
   somebody types one, so the way to type it sits on the stop. */
.addr-add { display: block; background: var(--white); color: var(--ink); border: 1px solid var(--edge); border-radius: 8px; padding: 6px 10px; margin-top: 8px; font-size: 13px; font-weight: 600; text-align: left; cursor: pointer; }

/* The sign in switch: a segmented control on a sunken track. The only solid
   button on the card is then the real Sign in or Send request. */
.switch { display: flex; gap: 4px; padding: 4px; margin-bottom: 20px; background: var(--sunken); border-radius: 10px; }
.switch button { flex: 1; min-height: 36px; background: transparent; border: 0; border-radius: 8px; padding: 0 12px; font-weight: 600; color: var(--muted); }
.switch button.active { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(29, 38, 48, .14), 0 0 0 1px rgba(29, 38, 48, .04); }

/* Modals: one white sheet over a dimmed page. The close is a drawn cross; the
   letter x stays in the page, at no size, and its name comes from aria-label. */
.modal-bg { position: fixed; inset: 0; background: rgba(29, 38, 48, .5); display: grid; place-items: center; z-index: 20; padding: 16px; }
.modal { position: relative; background: var(--white); border-radius: 16px; padding: 24px; width: min(560px, 100%); max-height: 90vh; overflow: auto; box-shadow: var(--shadow-over); }
.modal h2 { margin: 0 44px 8px 0; font-size: 20px; font-weight: 700; color: var(--slate); }
.modal .close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; padding: 0; background: var(--white); border: 1px solid var(--line); border-radius: 999px; font-size: 0; color: var(--muted); }
.modal .close::before, .modal .close::after { content: ""; position: absolute; top: 50%; left: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; border-radius: 1px; background: currentColor; transform: rotate(45deg); }
.modal .close::after { transform: rotate(-45deg); }
.modal textarea { width: 100%; min-height: 72px; }
.modal a { color: var(--sage); font-weight: 600; }
/* A profile's figures: three across on a sunken ground, so member since is not
   left on a row of its own. */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 16px 0; }
.stats div { background: var(--sunken); border-radius: 10px; padding: 12px; display: grid; gap: 2px; align-content: start; }
.stats b { font-size: 18px; font-weight: 700; color: var(--slate); line-height: 1.2; }
.stats span { font-size: 12px; color: var(--muted); }
.review { border-top: 1px solid var(--line); padding: 12px 0; display: grid; gap: 4px; }
/* A comment somebody typed on four lines is four lines. */
.review .lines { white-space: pre-line; }
.starpick { display: flex; gap: 4px; margin-top: 12px; }
.starpick button { background: none; border: none; font-size: 30px; line-height: 1; color: var(--warn); padding: 0 2px; }

/* Terms page: the long reading, at a reading measure. */
.terms { max-width: 640px; }
.terms-body { max-height: 46vh; overflow: auto; border: 1px solid var(--line); border-radius: 12px; padding: 4px 16px; background: var(--white); font-size: 15px; line-height: 1.55; }
.terms-body p { margin: 12px 0; }
.terms-body b { font-weight: 600; color: var(--slate); }

/* Take panel: one surface, a green edge on its left, groups split by hairlines. */
tr.take-panel td { background: var(--white); border-top: none; }
.take { display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 460px) minmax(240px, 360px); gap: 12px 24px; padding: 12px 0 0; border-top: 1px solid var(--line); align-items: start; }
.take-h { font-weight: 600; font-size: 14px; margin-bottom: 4px; color: var(--ink); }
.take select { width: 100%; }
.take .take-col .btn.ghost { margin-top: 8px !important; }
.take-go { min-width: 200px; padding-top: 28px; }
/* The ETA boxes sit under the driver and the vehicle, and Confirm take sits
   beside all three rather than above the last of them. On a phone the grid is
   one column, so the DOM order is what shows: driver, vehicle, ETA, Confirm. */
.take .tbox.eta, .take .tbox.route { grid-column: 1 / 3; }
.take .tbox.route input, .take .tbox.route textarea { width: 100%; margin-top: 4px; resize: vertical; }
.take .tbox.route textarea { min-height: 60px; }
.take .tbox .tlab { display: grid; gap: 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.take .tbox.route textarea.next, .take .tbox.eta .next, .eta-rows .next { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.take .tbox.eta .err.eta-asap { margin: 4px 0 2px; }
/* A planned route, read: each link opens in one tap, the rest is the text as
   typed (12 October). */
a.routeurl { display: inline-block; font-size: 13px; font-weight: 600; color: var(--sage); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.route-text { white-space: pre-line; }
textarea.route-link { width: 100%; resize: vertical; }
/* A planned route box shows three whole lines, so a long link does not read
   as a line cut through its middle. */
table.grid td .cell.route-link { min-height: calc(3 * 1.4em + 11px); padding-bottom: 2px; }
.take .take-go { grid-column: 3; grid-row: 1 / span 3; }
/* Confirm take and the way out of it sit side by side, with air between. */
.take-go .btn + .btn { margin-left: 8px; }
.take-go .note.lines { margin-top: 8px; }
/* Leg 2 of a layover, inside the same Driver or Vehicle box as leg 1. */
.take-leg2 { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
/* A second driver or truck on the same leg. */
.take-second { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.take-h2 { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
@media (max-width: 640px) {
  .take { grid-template-columns: minmax(0, 1fr); }
  .take .tbox.eta, .take .tbox.route, .take .take-go { grid-column: auto; grid-row: auto; }
  .take-go { padding-top: 4px; min-width: 0; }
  .take-go .btn { width: 100%; min-height: 44px; font-size: 15px; }
  .take-go .btn + .btn { margin: 8px 0 0; min-height: 40px; font-size: 14px; }
}

/* Layover and more orders on one take (27 October): a tick per order the same
   van can carry that day, and a line adding them up. */
.take-wrap { display: grid; gap: 8px; }
/* The space between the panel's lines is the panel's own, over the 6 or 8px
   typed under each line in app.js, so the lines sit one step apart. */
.take-wrap > .note { color: var(--ink); font-size: 14px; margin-bottom: 0 !important; }
.take-wrap > .note:first-child { padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.take-wrap > .note b { font-weight: 600; }
.take-layover { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; }
.take-also { margin: 0; padding: 8px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.take-also label.also { display: flex; gap: 12px; align-items: center; padding: 4px 0; font-size: 14px; cursor: pointer; }
.take-also label.also input { margin: 0; flex: 0 0 auto; }
.take-also .also-sum, .take-also .also-gone { margin: 4px 0 0; color: var(--ink); }
/* A real crew clash, and the note that a client reads their own planned route
   as it stands. */
.note.clash, .clash { color: var(--amber-ink); font-weight: 600; }
.route-private { color: var(--muted); }
/* A van carrying more than its Holds about, on the week card. */
.van-load.over { color: var(--amber-ink); font-weight: 600; }
.van-note { color: var(--muted); }
/* An order not in totes (27 October): a tag where the count would be, the
   package size beside it, and its photo a tap away. */
.photo-pick { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.photo-btn { position: relative; overflow: hidden; font-size: 13px; }
.photo-btn .file-in { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.photo-thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.photo-modal .photo-full { display: block; max-width: 100%; max-height: 70vh; margin: 12px auto 0; border-radius: 8px; }
.nt-tick { margin-top: 4px; }
/* Accept all on a run taken in one go, over the lines it accepts. Each run is
   its button and, beside it, what the run shares, said once. */
.toolbar.accept-all { margin: 0 0 8px; gap: 8px; flex-wrap: wrap; flex-direction: column; align-items: flex-start; }
.accept-all .run { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.accept-all .run-said { margin: 0; color: var(--ink); font-size: 14px; }
.take-layover input { margin-right: 0; }
/* One line of crew on a route, either side: who is coming, and in what, with
   the numbers under it. */
.ro.one { padding: 2px 0; font-size: 14px; line-height: 1.4; color: var(--ink); word-break: break-word; }
/* The transporter's license on a route's Pickup cell, in the code face. */
td.c-pickup > .sub.crew-ids { font-family: var(--mono); font-weight: 500; }
/* The driver and vehicle numbers an operator retypes read in ink, not grey. */
.sub.crew-ids { color: var(--ink); font-variant-numeric: tabular-nums; }
.crew-ids .nw { white-space: nowrap; }
.leg2 { font-size: 13px; font-weight: 600; color: var(--muted); margin: 12px 0 4px; }

/* The gate: everything before the board (sign in, request, holding, terms,
   set password) sits on one dark screen under the wordmark. */
.gate { flex: 1; background: var(--slate); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 16px; }
.gate .mark { margin: 0; font-weight: 700; font-size: 44px; letter-spacing: -.6px; line-height: 1; }
.gate .mark .a { color: #C8DBA3; }
.gate .mark .b { color: #E6EAF0; }
.gate .tagline { color: #AEB8C3; font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; font-weight: 600; margin-top: 14px; text-align: center; max-width: 520px; line-height: 1.6; }
.gate .signin { margin: 28px 0 0; max-width: 440px; width: 100%; box-shadow: 0 24px 48px rgba(0, 0, 0, .28); }
.gate .signin.terms { max-width: 640px; }
@media (max-width: 560px) { .gate .mark { font-size: 36px; } .gate .tagline { letter-spacing: 1.2px; max-width: 280px; } }
@media (max-width: 640px) {
  .gate { padding: 32px 16px; }
  .gate .signin { padding: 20px; }
  .gate .switch button { padding: 0 8px; font-size: 14px; }
  .gate .signin .form > div.full { flex-wrap: wrap; }
  .gate .signin .form .btn[type=submit] { flex: 1 1 100%; min-height: 44px; font-size: 15px; }
  .gate .signin .form .btn.forgot, .gate .signin .form .btn.back { background: none; border-color: transparent; color: var(--sage); min-height: 36px; padding: 0 8px; margin-left: -8px; }
}
.signin { max-width: 520px; margin: 60px auto; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.signin h1 { margin: 0 0 8px; font-size: var(--fs-h1); color: var(--slate); }
.signin h2 { font-size: 18px; }
.signin p { margin: 0 0 16px; color: var(--muted); }
/* The privacy notice and the accessibility statement are read through, so
   their paragraphs are in ink, a little taller, at a reading measure. */
.signin.privacy p { color: var(--ink); line-height: 1.6; }
.signin.privacy p b { color: var(--slate); font-weight: 600; }
.signin .form { gap: 16px; }
.signin .form .btn { min-height: 44px; padding: 0 20px; }
/* The demo sign ins: white rows on one card, a chevron at the right. */
.signin .users { display: grid; gap: 0; margin: 8px 0 4px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.signin .users button { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px; padding: 10px 40px 10px 16px; text-align: left; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 14'%3E%3Cpath d='M1.5 1.5l5 5.5-5 5.5' fill='none' stroke='%23808A93' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center / 8px 14px; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.signin .users button:last-child { border-bottom: 0; }
.signin .users button b { font-weight: 600; font-size: 15px; }
.signin .users .tag, .signin .users .tag.ok { background: var(--sunken); color: var(--tag-ink); }

/* The sandbox strip (demo.html and try.html): a band one step lighter than the
   bar, quiet words, a quiet Start again. Not a warning. div.sandbox-note and
   its button outrank the page's own style block, so no page needs editing. */
div.sandbox-note { display: flex; align-items: center; justify-content: center; gap: 12px; background: #2A3540; border-bottom: 1px solid #36424E; color: var(--bar-text); font: 400 13px/1.4 var(--sans); padding: 5px 16px; text-align: center; }
div.sandbox-note button { display: inline-flex; flex: none; align-items: center; min-height: 28px; margin: 0; padding: 0 12px; background: transparent; border: 1px solid rgba(255, 255, 255, .3); border-radius: 8px; color: #fff; font: 600 13px/1 var(--sans); cursor: pointer; }

@media (max-width: 640px) { div.sandbox-note { font-size: 12px; text-align: left; padding: 6px 12px 6px 16px; } div.sandbox-note button { min-height: 32px; } }

/* Fix: the small button inside a From or To cell that raises a correction to a
   facility, put where the wrong detail is noticed. */
table.grid td { position: relative; }
.fixlink { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: var(--white); color: var(--sage); border: 1px solid var(--sage-line); border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 600; opacity: 0; transition: opacity .12s; }
table.grid td:hover .fixlink { opacity: 1; }
.fixlink:focus-visible { opacity: 1; }
/* Add is the only way past a facility the state does not list, and the error
   says to click it, so it stays in view. A finger cannot hover. */
.fixlink.needed { opacity: 1; background: var(--white); color: var(--ink); border-color: var(--edge); }

.modal.wide { max-width: 640px; }
/* The Help panel: short headings, two lists, the write card, the version. */
.modal.help h3 { margin: 20px 0 8px; font-size: 15px; font-weight: 700; color: var(--slate); }
.modal.help ol, .modal.help ul { margin: 0; padding-left: 22px; display: grid; gap: 8px; font-size: 15px; line-height: 1.55; }
.modal.help li b { color: var(--slate); font-weight: 600; }
.modal.help a { color: var(--sage); font-weight: 600; }
.modal.help .card { margin: 20px 0 0; box-shadow: none; }
.modal.help .version { margin-top: 12px; font-size: 12px; }
/* Before sign in: one line under the card, in the dark screen's own greys. */
.gate .help-line { margin-top: 16px; color: #AEB8C3; font-size: 13px; text-align: center; }
.gate .help-line a { color: #C8DBA3; text-decoration: underline; text-underline-offset: 3px; }

/* How to reach the other side of a route: tap the number to ring it, tap the
   address to start an email. Kept quiet, because it is reference, not action. */
.contact a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--edge); text-underline-offset: 3px; }
.contact a:hover, .contact a:focus { color: var(--sage); text-decoration-color: currentColor; }
/* The space sits after a link, so the second one starts flush when it wraps. */
.contact a { margin-right: 12px; }
.contact a:last-child { margin-right: 0; }
.note.contact { margin-top: 4px; }

/* Messages: one card of threads, the open one beside it. Inside a thread the
   oldest message is at the top, which is the order it was said in. */
.card { border: 1px solid var(--line); border-radius: 12px; background: var(--white); padding: var(--pad); margin-bottom: var(--gap); box-shadow: var(--shadow-card); }
main.sheet .card { max-width: 880px; }
.card > .toolbar:last-child { margin-bottom: 0; }
.card table.grid { border: 0; border-radius: 0; }
.card table.grid thead th:first-child, .card table.grid thead th:last-child { border-radius: 0; }
.threads { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
.thread-list { display: flex; flex-direction: column; max-height: 60vh; overflow: auto; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-card); background: linear-gradient(#fff 30%, rgba(255, 255, 255, 0)) top / 100% 40px no-repeat local, linear-gradient(rgba(255, 255, 255, 0), #fff 70%) bottom / 100% 40px no-repeat local, radial-gradient(farthest-side at 50% 0, rgba(29, 38, 48, .16), rgba(29, 38, 48, 0)) top / 100% 12px no-repeat scroll, radial-gradient(farthest-side at 50% 100%, rgba(29, 38, 48, .16), rgba(29, 38, 48, 0)) bottom / 100% 12px no-repeat scroll, #fff; }
.thread-pick { text-align: left; background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 12px 16px; cursor: pointer; color: var(--ink); line-height: 1.4; }
.thread-pick:last-child { border-bottom: 0; }
.thread-pick.active { background: var(--sage-soft); box-shadow: inset 3px 0 0 var(--sage); }
.thread-pick b { color: var(--slate); font-weight: 600; }
.thread { border: 1px solid var(--line); border-radius: 12px; background: var(--white); display: flex; flex-direction: column; min-height: 320px; box-shadow: var(--shadow-card); }
.thread-head { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.thread-head b { color: var(--slate); font-size: 15px; font-weight: 600; }
.thread-log { flex: 1; overflow: auto; max-height: 46vh; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 80%; align-self: flex-start; }
.msg .body { background: var(--sunken); border: 0; border-radius: 14px 14px 14px 4px; padding: 10px 14px; font-size: 15px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg .ts { color: var(--muted); font-size: 12px; margin-top: 4px; }
.msg.mine { align-self: flex-end; }
.msg.mine .body { background: var(--sage-soft); border-radius: 14px 14px 4px 14px; }
.msg.mine .ts { text-align: right; }
/* The like (13 October): a pot leaf with its word, outlined and grey until
   tapped, filled green and reading Liked after, so a tap always shows. */
.leaf-btn, .leaf { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; font-size: 12px; font-weight: 600; vertical-align: middle; }
.leaf-btn { padding: 0 10px 0 8px; min-height: 28px; border: 1px solid var(--edge); border-radius: 999px; background: var(--white); color: var(--muted); }
.leaf-btn.on { background: var(--sage); border-color: var(--sage); color: var(--white); }
.leaf.on { color: var(--sage); }
@media (max-width: 640px) { .leaf-btn { min-height: 32px; } }
table.qgrid td button.same-win { display: inline-flex; margin: 0 0 4px; font-size: 13px; }
@media (max-width: 640px) { table.qgrid td button.same-win { min-height: 32px; } }
.thread-send { display: flex; align-items: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); }
.thread-send .btn { min-height: 44px; }
/* A thread that can go nowhere: the Send box is gone and this says why. */
.thread-closed { padding: 12px 16px; border-top: 1px solid var(--line); background: var(--sunken); border-radius: 0 0 12px 12px; }
.thread-send textarea { flex: 1; min-height: 44px; resize: vertical; }
@media (max-width: 359px) { .tabs button { font-size: 12px; padding: 0 4px; } .bar button { padding: 0 8px; } .bar .brand .wm { font-size: 16px; } table.board tr { padding: 12px; } }
@media (max-width: 720px) {
  .threads { grid-template-columns: minmax(0, 1fr); }
  .thread-list { max-height: 214px; }
}

/* On a phone a button is something you hit with a thumb: 40px, the one action
   a card exists for 44px. */
@media (max-width: 640px) {
  .btn { min-height: 40px; font-size: 14px; }
  .grid .actions button { min-height: 36px; }
  .grid .actions .btn.danger { min-width: 36px; }
}
/* What a driver taps on a phone is at least 32px tall (measured on 13 October). */
@media (max-width: 640px) { a.routeurl, a.maplink { padding: 8px 0; } .fixlink { font-size: 12px; padding: 8px 10px; } .fav { min-height: 32px; } }
/* The standalone links on the gate pages (Privacy notice, Back to sign in, the
   help line) were 15px tall on a phone; same rule. */
@media (max-width: 640px) { .gate .help-line a, .gate .note a { display: inline-block; padding: 8px 0; } }
/* The ask for a lost email is a button in a note on the sign in page; same rule. */

/* The floor, on the terms page: its own box, first thing under the heading,
   never mixed into the paragraphs. */
.terms .floor { border: 1px solid var(--line); border-left: 3px solid var(--sage); border-radius: 0 12px 12px 0; padding: 12px 16px; margin: 0 0 16px; font-size: 15px; line-height: 1.55; background: var(--sage-soft); }
.terms .floor b { display: block; font-size: 15px; margin-bottom: 4px; }

/* A route past its day and not yet past: it should have run. A small red mark
   on its edge, the word is on the route. A past route is grey. */
table.grid tr.overdue td:first-child { box-shadow: inset 3px 0 0 var(--danger); }
table.grid tr.past td { color: var(--muted); }
a.maplink { display: block; margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--sage); text-decoration: underline; text-underline-offset: 3px; }

/* Shown only on a phone, where the column it lives in on the desk is off to
   the side. A display utility has to beat the component it sits on. */
.phone-only { display: none !important; }
@media (max-width: 640px) {
  .phone-only { display: inline-block !important; }
  a.maplink.phone-only { display: block !important; }
  .desk-only { display: none !important; }
}

/* The queue below the board (Not posted yet) has a dashed edge so it never
   reads as part of the board: dashed means a draft nobody sees yet. */
.grid-wrap.queue table.grid { border: 1.5px dashed #AEB6BE; }
/* A date needs room for 9/15/2026 and a time for 10:45am. */
.grid-wrap.queue td:nth-last-child(2) .cell, .grid-wrap.queue td:nth-last-child(3) .cell,
.grid-wrap.queue td:nth-last-child(4) .cell { min-width: 78px; }
/* A facility cell carries a name, a license and an address, so it gets the
   room the rest of the site gives one, and nothing hides behind a hover. */
table.grid td.fac { min-width: 240px; }
.facsub { padding: 4px 4px 6px; }
.facsub .sub { display: block; }
.facsub .facname { color: var(--ink); font-weight: 600; }
.facpicks { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; max-height: 300px; overflow-y: auto; overscroll-behavior: contain; padding-right: 2px; }
.facpick { display: block; width: 100%; text-align: left; background: var(--white); color: var(--ink); border: 1px solid var(--edge); border-radius: 8px; padding: 6px 10px; font-size: 13px; font-weight: 600; letter-spacing: 0; line-height: 1.3; cursor: pointer; }
.facpick .sub { font-weight: 400; color: var(--muted); font-size: 12px; }
.facpick b { font-weight: 700; color: var(--slate); }
.send-op { margin-top: 12px; }
/* Why a cell is ringed red, printed rather than left in a hover no finger can
   reach. */
.facsub .facwhy { color: var(--danger); font-weight: 600; }
/* The usual pickup box is drawn like a From cell: ring, reason, Add or Fix. */
.facbox { position: relative; display: inline-block; min-width: 300px; max-width: 100%; }
.facbox input { width: 100%; }
.facbox input.bad { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.facbox input.newfac { border-color: #B07A1E; box-shadow: 0 0 0 1px #B07A1E; }
.facbox .fixlink { top: 18px; }
.facbox:hover .fixlink { opacity: 1; }
.facbox .facsub { padding: 4px 2px 0; }
label.note.origin { color: var(--muted); font-size: 12px; font-weight: 600; }
label.note.origin input, label.note.origin .facsub { font-weight: 400; }
/* The filter row: every box says what it is, and the plain search is set apart
   from the two lane boxes and the distance that governs them. Top aligned: the
   lane boxes grow downward when they have suggestions under them. */
.toolbar.filters { align-items: flex-start; gap: 8px 12px; margin: 0 0 8px; }
.ffield { display: inline-flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.ffield input, .ffield select { font-weight: 400; letter-spacing: 0; color: var(--ink); min-width: 200px; }
.ffield select { min-width: 0; }
.flabel { flex: 0 0 auto; padding-top: 28px; }
.flabel b { color: var(--slate); font-weight: 600; font-size: 14px; }
/* The suggestions are buttons, so the field around them is a div. */
.fname { display: block; }
.ftips { display: flex; flex-wrap: wrap; gap: 4px; }
.ftip { background: var(--white); color: var(--ink); border: 1px solid var(--edge); border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 400; letter-spacing: 0; line-height: 1.5; cursor: pointer; }
.fsep { width: 1px; align-self: stretch; background: var(--line); margin: 0 4px; }
@media (max-width: 640px) {
  /* On a phone the board matters more than the filters, so the boxes flow two
     to a row instead of five stacked ones. */
  .fsep { display: none; }
  .toolbar.filters { gap: 8px 12px; }
  .flabel { flex: 1 1 100%; padding-top: 0; }
  .ffield { flex: 1 1 calc(50% - 12px); }
  .ffield input, .ffield select { min-width: 0 !important; width: 100%; }
  .ftips { gap: 6px; margin-top: 2px; }
  .ftip { min-height: 32px; padding: 4px 12px; font-size: 13px; line-height: 1.3; }
}
@media (max-width: 640px) {
  /* The label sits above its box on a phone instead of wrapping one word a line beside it,
     and the box takes the width of the screen, so a usual pickup reads whole. */
  label.note.origin { flex: 1 1 100%; flex-direction: column; align-items: stretch !important; gap: 4px; }
}
/* Dropdowns on the Posted list and the board's sort, one per column worth
   choosing on, each with its label above it. */
.posted-filter { gap: 8px 16px; align-items: center; }
.posted-filter label { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--muted); }
.posted-filter select { margin-left: 0; max-width: 320px; font-weight: 400; }
/* Off a phone the board's Sort by and Day share their line with the note
   about totes under them, the way they did before the restyle (the note's
   own margin is typed on it in app.js). */
@media (min-width: 641px) {
  .board-sort { display: inline-flex; vertical-align: middle; margin: 0 16px 8px 0; }
  .board-sort + .note { display: inline-block; vertical-align: middle; margin: 0 0 8px !important; }
}
@media (max-width: 640px) {
  /* Each label beside its box, the boxes on one left edge. */
  .posted-filter label { flex: 1 1 100%; display: grid; grid-template-columns: 56px minmax(0, 1fr); min-width: 0; }
  .posted-filter select { min-width: 0; max-width: 100%; margin-left: 0; width: 100%; }
}

/* The posting grid, every field its own column (2 October). Each box looks
   like a box, so what can be typed in is plain, and a red * marks what Post
   needs. On a phone each row is a card with every field named. */
table.qgrid td { padding: 6px 4px; }
table.qgrid td:first-child { padding-left: 8px; }
table.qgrid td .cell { margin: 0; width: 100%; min-height: 36px; }
table.qgrid th .req, .req { color: var(--danger); font-weight: 700; }
table.qgrid td.fac { min-width: 200px; }
table.qgrid td.datecell { min-width: 132px; }
table.qgrid td.datecell .cell { padding-right: 34px; white-space: nowrap; overflow: hidden; }
.calbtn { position: absolute; right: 9px; top: 12px; width: 26px; height: 26px; display: grid; place-items: center; border: none; background: transparent; color: var(--slate); cursor: pointer; border-radius: 6px; padding: 0; }
.calbtn:hover { background: var(--sunken); }
.calbtn:focus-visible { background: var(--sunken); }
.calpick { position: absolute; right: 9px; top: 30px; width: 1px; height: 1px; min-height: 0; opacity: 0; border: 0; padding: 0; pointer-events: none; }
.winbox { display: flex; flex-direction: column; gap: 4px; min-width: 124px; }
.winbox .to { font-size: 12px; color: var(--muted); padding: 0 4px; }
.winbox select.cell { padding-left: 10px; }
.frozen-tick { display: flex; align-items: center; gap: 8px; padding: 6px 4px; font-size: 13px; cursor: pointer; white-space: nowrap; color: var(--ink); }
.asap-tick { padding: 8px 0 0; }
@media (max-width: 640px) {
  .grid-wrap.queue { border: none; overflow: visible; }
  .grid-wrap.queue table.grid { border: 0; background: transparent; border-radius: 0; }
  table.qgrid, table.qgrid tbody { display: block; }
  table.qgrid thead { display: none; }
  table.qgrid tbody { display: flex; flex-direction: column; gap: 12px; }
  table.qgrid tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1.5px dashed #AEB6BE; border-radius: 12px; background: var(--white); padding: 12px; gap: 4px 12px; }
  table.qgrid td, table.qgrid td.fac, table.qgrid td.datecell { display: block; border: none; min-width: 0; padding: 4px 0; background: transparent; }
  table.qgrid td:first-child { padding-left: 0; }
  table.qgrid td::before { content: attr(data-label); display: block; font-size: 13px; font-weight: 600; color: var(--muted); padding: 0 0 6px; }
  table.qgrid td.rownum { grid-column: 1 / -1; text-align: left; background: transparent; padding: 0; width: auto; }
  table.qgrid td.fac, table.qgrid td.q-notes, table.qgrid td.q-window { grid-column: 1 / -1; }
  table.qgrid td.datecell .cell { white-space: nowrap; overflow: hidden; }
  table.qgrid td.actions { grid-column: 1 / -1; position: static; box-shadow: none; background: none; text-align: right; padding: 4px 0 0; }
  table.qgrid td.datecell .calbtn { top: 35px; }
  .winbox { flex-direction: row; align-items: center; gap: 8px; }
  .winbox select.cell { flex: 1; }
}

/* Not posted yet on a desk: the eleven columns set to fit the content
   column, so Notes is on the screen with the rest and each date's example
   ends before its calendar. A name too wide for its box is printed whole
   under it, which the grid has done since 11 September. The three ticks of
   a row (ASAP, Not in totes, Frozen) sit on one line under the boxes. */
@media (min-width: 641px) {
  .grid-wrap.queue table.qgrid { table-layout: fixed; }
  .grid-wrap.queue table.qgrid th { padding: 10px 8px; white-space: normal; }
  .grid-wrap.queue table.qgrid td .cell { font-size: 13px; }
  .grid-wrap.queue table.grid.qgrid th.rownum, .grid-wrap.queue table.grid.qgrid td.rownum { width: 44px; min-width: 0; padding: 10px 8px; }
  .grid-wrap.queue table.qgrid th:nth-child(2), .grid-wrap.queue table.qgrid th:nth-child(8), .grid-wrap.queue table.qgrid th:nth-child(9) { width: 136px; }
  .grid-wrap.queue table.qgrid th:nth-child(3) { width: 104px; }
  .grid-wrap.queue table.qgrid th:nth-child(4), .grid-wrap.queue table.qgrid th:nth-child(5) { width: 168px; }
  .grid-wrap.queue table.qgrid th:nth-child(6) { width: 92px; }
  .grid-wrap.queue table.qgrid th:nth-child(7) { width: 80px; }
  .grid-wrap.queue table.qgrid th:nth-child(11) { width: 44px; }
  .grid-wrap.queue table.qgrid td.fac, .grid-wrap.queue table.qgrid td.datecell { min-width: 0; }
  .grid-wrap.queue table.qgrid td.actions { padding: 6px 4px; }
  .grid-wrap.queue table.qgrid td.actions .btn { padding: 0 10px; }
  .grid-wrap.queue table.qgrid td.datecell .cell { padding-left: 8px; padding-right: 30px; }
  .grid-wrap.queue table.qgrid td.datecell .cell::placeholder { font-size: 12px; }
  .grid-wrap.queue table.qgrid .calbtn { right: 8px; top: 12px; width: 24px; height: 24px; }
  .grid-wrap.queue table.qgrid .winbox { min-width: 0; }
  .grid-wrap.queue table.qgrid td select.cell { padding-left: 8px; padding-right: 26px !important; background-position: right 8px center !important; }
  .grid-wrap.queue table.qgrid .facsub:empty { display: none; }
  .grid-wrap.queue table.qgrid .frozen-tick { align-items: flex-start; white-space: normal; padding: 0; }
  .grid-wrap.queue table.qgrid .frozen-tick span { padding-top: 3px; }
  .grid-wrap.queue table.qgrid .asap-tick, .grid-wrap.queue table.qgrid .nt-tick { margin-top: 8px; }
  .grid-wrap.queue table.qgrid td.q-service .frozen-tick { margin-top: 44px; }
}

/* The Fresh Frozen description line under a ticked row (5 October). */
table.qgrid tr.frozen-row td { border-top: 0; padding-top: 0; }
.frozen-desc { display: block; font-size: 13px; color: var(--muted); }
.frozen-desc textarea { display: block; width: 100%; margin-top: 6px; min-height: 44px; }

/* The profile, one place for everything about a company (5 October). */
.prof { display: grid; gap: 8px; margin: 8px 0 16px; }
.prof-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; font-size: 14px; }
.prof-k { color: var(--muted); }
.prof-row a { display: inline-block; min-height: 24px; color: var(--sage); }
@media (max-width: 640px) { .prof-row { grid-template-columns: minmax(0, 1fr); gap: 2px; } .prof-row a { min-height: 32px; padding: 4px 0; } .stats div { padding: 10px; } .stats b { font-size: 16px; } }

/* Favorites and the new deliveries alert choice (9 October). */
.alert-pick { margin: 8px 0 12px; }
.alert-pick label { display: flex !important; align-items: center; gap: 10px; margin: 8px 0 !important; color: var(--ink); font-size: 14px; }
.fav-list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 4px 0 12px; }
.fav-list .fname { width: 100%; }
.fav-row { display: inline-flex; align-items: center; gap: 8px; }
.fav-row .btn { min-height: 28px; padding: 0 10px; font-size: 12px; }
@media (max-width: 640px) { .fav-row .btn { min-height: 32px; } }
.fav { display: inline-flex; align-items: center; gap: 4px; background: var(--white); border: 1px solid var(--edge); border-radius: 999px; padding: 3px 12px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.fav.on { background: var(--sage-soft); border-color: var(--sage-line); color: var(--green-ink); }
.prof-fav { margin: -4px 0 12px; }
.setup-alerts { margin: 8px 0 16px; }
.setup-h { margin: 0 0 4px; font-size: 16px; color: var(--slate); }

/* Dashboards (12 October). A stage is a heading with its count, and each order
   under it is a white card; on a desk the stages stand side by side as columns.
   Then the next seven days as a row of day cards. */
.dash { margin-bottom: 8px; }
.dash .stages { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px 24px; align-items: start; }
.dash .stage-none { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 14px; }
.dash .stages > .toolbar { grid-column: 1 / -1; }
.dash .stage { background: none; border: 0; padding: 0; min-width: 0; }
.dash .stage h3, .dash .stage h2 { font-size: 16px; font-weight: 700; margin: 0 0 6px; display: flex; align-items: center; gap: 8px; color: var(--slate); }
.dash-top .stage h2 { font-size: var(--fs-h2); }
/* Off a phone, the takes waiting on an answer sit side by side as cards, the
   way the stage columns below them do, under the heading, the whose move line
   and the run's Accept all, which keep the full width. */
@media (min-width: 641px) {
  .dash-top .stage.taken { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); column-gap: 12px; align-items: start; }
  .dash-top .stage.taken > :not(.order) { grid-column: 1 / -1; }
}
.dash .count, .modal.dashview h2 .count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--sunken); color: var(--ink); font-size: 12px; font-weight: 700; line-height: 1; }
.dash .none { color: var(--muted); font-size: 13px; }
.dash .order { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 0 0 var(--gap); box-shadow: var(--shadow-card); }
.dash .order.open { border-color: var(--sage-line); box-shadow: 0 0 0 1px var(--sage-line), var(--shadow-card); }
.dash .order .l1 { display: flex; align-items: center; gap: 2px 12px; flex-wrap: wrap; }
.dash .order .num { font-weight: 700; font-size: 15px; color: var(--ink); }
.dash .order .to { font-weight: 600; }
/* Details (or Route) sits at the right of the order's first line, and the
   day and window take the line under it, so the number, the totes and the
   way in read together. */
.dash .order .l1 { position: relative; padding-right: 76px; }
.dash .order .l1 .when { flex-basis: calc(100% + 76px); margin-right: -76px; }
.dash .order .l1 .link.open { position: absolute; top: -4px; right: -8px; margin: 0; }
.dash .order .l2 { color: var(--muted); font-size: 13px; margin-top: 4px; line-height: 1.45; }
.dash .order .l2 .link { font-size: 13px; }
/* The ETAs an operator accepts or denies on, bold and in ink (11 November),
   each one whole on its line. */
.dash .order .l2 .eta, .run-said .eta { font-weight: 700; color: var(--ink); white-space: nowrap; }
/* A day, a time or a stamp kept on one line. */
.nw { white-space: nowrap; }
.dash .acts { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
/* In a run taken together Accept all leads, so each line's own Accept is the
   tonal button behind it. */
.dash .order.in-run .acts .btn:not(.ghost) { background: var(--sage-soft); color: var(--green-ink); border-color: var(--sage-line); }
.dash .link.more { margin-top: 0; }
.odetail { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px 16px; }
.odetail .cell { min-width: 0; font-size: 14px; overflow-wrap: anywhere; }
.odetail .cell::before { content: attr(data-label); display: block; font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.odetail .cell.lines { white-space: pre-line; }
.odetail .cell.c-status, .odetail .acts { grid-column: 1 / -1; }
.dash .week { display: grid; grid-template-columns: repeat(auto-fit, minmax(176px, 1fr)); gap: 12px; align-items: start; }
/* On a wide desk four days to a row, so an order's name reads on one or two
   lines beside its totes rather than four. */
@media (min-width: 1024px) { .dash .week { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); } }
.dash .day { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; min-width: 0; box-shadow: var(--shadow-card); }
.dash .day.today { box-shadow: inset 0 3px 0 var(--sage), var(--shadow-card); }
.dash .day h3 { margin: 0 0 4px; font-size: 14px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--slate); }
.dash .day h3 span { color: var(--muted); font-weight: 400; font-size: 13px; }
.dash .day h3 span.free { color: var(--ok); font-weight: 600; }
/* A chip is one order in a day: a white row with its stage's colour on its
   left edge, the stage said in its name as well. */
.dash .chip { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; width: 100%; min-height: 32px; text-align: left; padding: 5px 10px 5px 14px; border-radius: 8px; margin: 4px 0 0; font-size: 13px; font-weight: 400; line-height: 1.35; border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; font-family: inherit; box-shadow: inset 4px 0 0 var(--chip, var(--edge)); }
.dash .chip.new { --chip: var(--edge); }
.dash .chip.ask { --chip: var(--amber-edge); }
.dash .chip.ok { --chip: var(--sage); }
.dash .chip.cold { --chip: var(--blue); }
.dash .chip.done { --chip: var(--slate); background: #FAFBFA; }
.dash .chip b { font-weight: 700; }
.dash .chip .t { white-space: nowrap; font-weight: 600; }
.dash .chip .r { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.dash .chip .go { color: var(--muted); font-weight: 700; font-size: 16px; line-height: 1; }
.dash .van { margin: 8px 0 0; font-size: 13px; color: var(--ink); font-weight: 600; }
.dash .van .note { font-weight: 400; }
.dash .van.free { color: var(--ok); }
.dash .link.board { margin-top: 4px; font-weight: 600; }
/* The colour key: buttons that look like buttons, a stage dot before each. A
   pill carries no count: the box above it already says how many. */
.dash .legend { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 0; }
.dash .legend button.tag { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 12px; border: 1px solid var(--edge); border-radius: 999px; background: var(--white); color: var(--ink); font-family: inherit; font-size: 13px; cursor: pointer; }
.dash .legend button.tag::before { content: ""; width: 10px; height: 10px; border-radius: 999px; background: var(--chip, var(--edge)); }
.dash .legend button.tag.new { --chip: var(--edge); }
.dash .legend button.tag.ask { --chip: var(--amber-edge); }
.dash .legend button.tag.ok { --chip: var(--sage); }
.dash .legend button.tag.cold { --chip: var(--blue); }
.dash .legend button.tag.done { --chip: var(--slate); }
/* On the transporter's own week a take waiting on the operator is not their
   move, so it is not drawn in the amber that means "your move". */
.dash-tr .chip.ask, .dash-tr .legend button.tag.ask { --chip: var(--edge); }
.dash .legend button.tag b { font-weight: 700; margin-left: 3px; }
.dash .day h3 .dayopen { background: none; border: 0; padding: 0; font: inherit; color: var(--sage); text-decoration: none; cursor: pointer; }
.modal.dashview { width: min(880px, 100%); background: var(--cream); }
.modal.dashview h2 .count { margin-left: 6px; }
.modal.dashview .order { font-size: 15px; padding: 16px; margin-top: 12px; }
.modal.dashview .order .l2 { font-size: 14px; }
.modal.dashview h3.van { margin: 16px 0 0; font-size: 14px; color: var(--slate); }
.modal.dashview .none { margin-top: 12px; color: var(--muted); }
@media (max-width: 640px) { .dash .legend button.tag, .dash .day h3 .dayopen { min-height: 32px; } }
/* On a phone the week is one column, so a chip reads on one line rather than
   wrapping four times in a half width day (the dashboard audit of 13 October). */
@media (max-width: 640px) { .dash .week { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .dash .week { gap: var(--gap); } .dash .order { padding: var(--pad); } }
/* Questions about what a pasted message did not say: the notice shape, a white
   card with an amber edge, because each one waits on an answer from you. */
.paste .asks { margin-top: 8px; padding: 4px 16px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: inset 3px 0 0 var(--amber-edge), var(--shadow-card); display: grid; }
.paste .asks[hidden] { display: none; }
.paste .asks .ask { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 0; }
.paste .asks .note { padding: 8px 0; }
.paste .asks .ask + .ask { border-top: 1px solid var(--line); }
.paste .asks .ask-text { color: var(--ink); font-weight: 600; flex: 1 1 200px; }
.paste .asks .ask-acts { display: flex; gap: 8px; }
.paste .asks .ask-acts .btn { min-height: 36px; }

/* Phone length (14 October). Each block is phone only; the desk is untouched. */
/* The board's filters wait behind one line on a phone. */
.fold-bar { display: none; }
/* Routes: the head row of each route, a line to tap. */
table.board.routes tr.rhead { display: none; }
/* The week: a run of empty days as one line. */
.dayfold { display: none; }
@media (max-width: 640px) {
  .fold-bar { display: flex; align-items: center; gap: 8px 12px; margin: 0 0 12px; }
  .fold-bar .note { flex: 1 1 auto; }
  .board-wrap:not(.filters-open) .toolbar.filters, .board-wrap:not(.filters-open) .board-sort { display: none; }
  /* One route is one card: the head row, then its stops, joined. */
  table.board.routes tr.rhead { display: flex; padding: 0; background: var(--white); }
  table.board.routes tr.rhead.open { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom-color: transparent; box-shadow: none; }
  table.board.routes tr.rhead td { padding: 0; }
  .rhead-btn { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; width: 100%; min-height: 48px; padding: 8px 36px 8px 12px; background: none; border: none; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
  .rhead-btn .rh-day { font-weight: 700; }
  .rhead-btn .rh-who { font-weight: 600; color: var(--slate); }
  .rhead-btn .rh-what { color: var(--muted); font-size: 13px; }
  .rhead-btn .rh-chev { position: absolute; right: 12px; top: 14px; font-size: 22px; line-height: 20px; color: var(--muted); transition: transform .15s; }
  table.board.routes tr.rhead.open .rh-chev { transform: rotate(90deg); }
  table.board.routes tr.rbody:not(.open) { display: none; }
  table.board.routes tr.rbody { margin-top: calc(-1 * var(--gap)); border-top: 0; border-radius: 0; box-shadow: none; padding-top: 0; padding-bottom: 0; }
  table.board.routes tr.rbody:not(.block-start) { border-top: 1px solid var(--line); }
  table.board.routes tr.rbody.block-end { border-radius: 0 0 12px 12px; padding-bottom: 12px; box-shadow: var(--shadow-card); }
  /* Inside a card the parts of a route are split by a thin grey line, not the
     desk's thick one that separates one route from the next (3 November). */
  table.board tr.block-start td { border-top: 1px solid var(--line); }
  table.board.routes td { padding: 8px 0; }
  table.board.routes td.actions { padding-top: 8px; }
  table.board.routes td.actions:empty { display: none; }
  table.board.routes .route-act.go { min-height: 44px; font-size: 15px; }
  /* A filled posting row folded to three lines (3 November). */
  table.qgrid tr.folded td.fold { display: block; grid-column: 1 / -1; padding: 0; font-size: 15px; }
  table.qgrid tr.folded td::before { content: none; }
  table.qgrid tr.folded .fold-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 16px; color: var(--ink); margin-bottom: 4px; }
  table.qgrid tr.folded .fold-edit { flex: none; font-size: 15px; min-height: 32px; }
  table.qgrid tr.folded .sub { font-size: 14px; color: var(--muted); }
  /* A posting row nobody has typed in waits behind Add row. */
  .grid-wrap.queue:not(.show-blank) tr.blank { display: none; }
  .dash .day.folded { display: none; }
  .dayfold { display: block; background: transparent; border: 1px dashed #AEB6BE; border-radius: 12px; padding: 8px 12px; font-size: 13px; color: var(--muted); }
  /* My company: Edit and Remove beside each saved driver and van are tap
     targets (11 November). */
}

/* A tap that waits on the board shows it: a bar runs under the header while
   the call is out (14 October). Nothing redraws; the body carries .working. */
body.working .bar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, transparent 0%, transparent 33%, #C8DBA3 50%, transparent 67%, transparent 100%); background-size: 300% 100%; animation: vs-working 1.1s linear infinite; }
@keyframes vs-working { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { body.working .bar::after { animation: none; background: #C8DBA3; } }

/* Every tap is seen the moment it lands, and so is what it did (Connor, 28
   October: "when something clicks it really feels like it was clicked").
   Pressed: a button sinks and darkens while the finger or the mouse is down,
   and a text link dims. The page marks the press itself (.pressed) as well
   as the browser's :active, because iOS draws :active late or not at all on
   a quick tap. Busy: while the board answers, the button's label gives way to
   a spinner and a second tap on it does nothing. Done: the same button shows a
   tick for a moment. The spinner and the tick are drawn in the button's own
   text colour (--fg), read before the text goes clear. */
button, a[href] { -webkit-tap-highlight-color: transparent; transition: transform .12s ease, filter .12s ease, opacity .12s ease, background-color .12s ease; }
button:not(:disabled):active, button.pressed { transform: scale(.97); filter: brightness(.88); transition: none; }
button.link:not(:disabled):active, button.link.pressed, .bar button.who:active, .bar button.who.pressed, a[href]:active, a[href].pressed { transform: none; filter: none; opacity: .5; transition: none; }
.bar button:not(.who):active, .bar button:not(.who).pressed { background: #ffffff33; }
.notif-menu .item:active, .notif-menu .item.pressed { background: var(--sage-soft); }
button.rel { position: relative; }
button.busy, button.did { color: transparent !important; }
button.busy > *, button.did > * { opacity: 0; }
button.busy { pointer-events: none; }
button.busy::after, button.did::after { content: ""; position: absolute; top: 50%; left: 50%; box-sizing: border-box; }
button.busy::after { width: 16px; height: 16px; margin: -8px 0 0 -8px; border: 2px solid var(--fg, #fff); border-right-color: transparent; border-radius: 50%; animation: vs-spin .7s linear infinite; }
button.did::after { width: 7px; height: 13px; margin: -8px 0 0 -4px; border: solid var(--fg, #fff); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
@keyframes vs-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { button.busy::after { animation: none; } button, a[href] { transition: none; } button:not(:disabled):active, button.pressed { transform: none; } }

/* See more on a long note (14 October): a link in the note's own line. */
.note-more { font-size: inherit; padding: 0; vertical-align: baseline; }

/* Saved, or why not, beside the button that was pressed (27 October). */
.said { font-size: 13px; font-weight: 600; align-self: center; }
.said.ok { color: var(--ok); }
.said.ok::before { content: "\2713  "; }
.said.bad { color: var(--danger); font-weight: 600; }
/* The away note: a member out of town says who to contact instead. */
.sub.away { color: var(--ink, inherit); }
.prof-row.away span:last-child { background: var(--sunken); border-radius: 8px; padding: 4px 8px; }
.contacts-card .em-row { align-items: end; }
/* Can sign in sits beside the email on each point of contact (27 October). */
.contacts-card .em-tail { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px; }
.contacts-card .em-sign { display: flex; align-items: center; gap: 10px; flex-direction: row; font-weight: 400; color: var(--ink); font-size: 14px; }
.contacts-card .em-row + .em-row { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
/* On a desk a point of contact is one line: name, phone, email, and whether
   they can sign in. The last column is one width on every row, so the boxes
   line up down the card. */
@media (min-width: 900px) {
  .contacts-card .em-row { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.5fr) 216px; align-items: end; }
  .contacts-card .em-row + .em-row { padding-top: 8px; margin-top: 8px; }
}
/* The cross is drawn, so it holds through the danger button's own fill and
   its hover tint, which are set with more weight elsewhere. */
.contacts-card .btn.em-x { width: 36px; min-width: 36px; padding: 0; font-size: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 2l10 10M12 2L2 12' fill='none' stroke='%23A8463E' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") !important; background-repeat: no-repeat !important; background-position: center !important; background-size: 12px 12px !important; }
.contacts-card .em-add { margin: 8px 0; }
/* Why a box on the drivers and vehicles lists is ringed red. */
.crew-why { display: block; color: var(--danger); font-size: 12px; font-weight: 600; padding: 4px 0 0; }
.crew-why[hidden] { display: none; }
/* Drivers and vehicles on My company (11 November): each saved one is a line
   with Edit and Remove, and one small form at a time. */
.fleet-card .fleet-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 8px 0; border-top: 1px solid var(--line); }
.fleet-card .fleet-row:first-child { border-top: none; padding-top: 0; }
.fleet-card .fleet-text { min-width: 0; font-size: 14px; color: var(--ink); }
.fleet-card .fleet-text .sub { font-size: 12px; }
/* A phone number wraps whole, never at its own hyphens. */
.fleet-card .fleet-text .nw { white-space: nowrap; }
.fleet-card .fleet-acts { display: flex; gap: 8px; flex: none; }
.fleet-card .fleet-form { padding: 8px 0 2px; }
.fleet-card .fleet-form .toolbar { grid-column: 1 / -1; margin: 4px 0 0; }
.fleet-card .fleet-form .crew-why { padding: 0; }
.fleet-card > .toolbar { margin-bottom: 0; }
.fleet-card .note { margin: 0 0 8px; }
/* On a desk the drivers and the vehicles sit side by side under their one
   heading, inside the width the cards under them keep. */
@media (min-width: 900px) {
  .fleet { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--gap); max-width: 880px; }
  .fleet > .sheet-title { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  /* The name sits beside Edit and Remove, and the numbers under it take the
     card's whole width, so a driver is two lines and not four. */
  .fleet-card .fleet-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 8px; align-items: center; padding: 8px 0; font-size: 14px; color: var(--ink); }
  .fleet-card .fleet-text { display: contents; }
  .fleet-card .fleet-text > * { grid-column: 1 / -1; }
  .fleet-card .fleet-text > .one { grid-column: 1; grid-row: 1; }
  .fleet-card .fleet-acts { grid-column: 2; grid-row: 1; gap: 0; margin: -4px 0; }
  .fleet-card .fleet-acts .link { padding: 0 4px; font-size: 14px; }
  .fleet-card .fleet-acts .link:last-child { margin-right: -4px; }
  .fleet-card .fleet-text .sub { font-size: 12px; }
}

/* Orders ticked on the board (28 October): the tick on each card or row, and
   the bar that takes them, fixed to the foot of the screen while the board
   scrolls. Fixed and not sticky: .sheet scrolls its own overflow, so a sticky
   bar pinned to that box and never to the screen. A ticked card carries the
   one picked look: a green ring and the soft green ground. */
.pick { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.pick input { margin: 0; }
table.pickable th.rownum, table.pickable td.rownum { width: 96px; }
table.board tr.card.picked td { background: var(--sage-soft); }
.has-pick-bar { padding-bottom: 136px; }
/* Ticks for doing several at once: rows in Not posted yet, orders in Your orders (17 November). */
table.grid td.rownum .row-pick { display: flex; justify-content: flex-start; margin-top: 8px; }
.grid-wrap.queue table.grid th.rownum, .grid-wrap.queue table.grid td.rownum { min-width: 48px; width: 56px; }
table.grid tr.folded .fold-head .row-pick { margin: 0; flex: 0 0 auto; }
table.qgrid tr.folded .fold-head b { margin-right: auto; }
.dash .order .l1 .order-pick { margin-right: 4px; }
.pick-bar { position: fixed; left: 12px; right: 12px; bottom: 8px; max-width: 900px; margin: 0 auto; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px 16px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-over); }
.pick-bar .note { flex: 1 1 auto; }
.pick-bar .pick-totes { font-weight: 600; white-space: nowrap; }
/* Group by (19 November): a heading above each group's first order, with a
   tick for the whole group. On a phone it is a plain line between cards. */
table.board tr.grp > td { background: var(--cream); padding: 8px; border-top: 1px solid var(--line); }
table.board tr.grp .grp-name { font-size: 14px; font-weight: 600; }
table.board tr.grp label.pick { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 640px) {
  table.board tr.grp { border: none; background: transparent; box-shadow: none; padding: 4px 0 0; }
  table.board tr.grp > td { background: transparent; border: none; padding: 4px 0; }
  table.board tr.grp > td::before { content: none; }
}
.also-off { margin: 0 0 8px; }
@media (max-width: 640px) {
  .c-brief .pick { float: right; min-height: 32px; position: absolute; top: -4px; right: 0; margin: 0; font-size: 13px; font-weight: 600; color: var(--ink); z-index: 1; }
  table.board tr.card.picked { background: var(--sage-soft); border-color: var(--sage); box-shadow: 0 0 0 1px var(--sage); }
  table.board tr.card.picked td { background: transparent; }
  /* On a phone the bar is docked full width at the foot of the screen, over
     the safe area under it. */
  .pick-bar { left: 0; right: 0; bottom: 0; max-width: none; border-radius: 0; border-width: 1px 0 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -8px 24px rgba(29, 38, 48, .12); }
  .pick-bar .take-picked, .pick-bar .btn.danger { flex: 1 1 100%; min-height: 44px; font-size: 15px; }
  .toast { bottom: calc(112px + env(safe-area-inset-bottom, 0px)); }
}

/* The example inside a box goes the moment the cursor is in it, on every page
   (Connor, 11 November: "when you start typing in a box, the subtext example
   should delete"). Only the grey words are hidden: the attribute stays, so the
   box keeps its name for a screen reader, and the example is back once the
   box is left empty. */
input:focus::placeholder, textarea:focus::placeholder { color: transparent; }

.dash .order .l1 .when { color: var(--ink); font-size: 14px; font-weight: 600; }
.dash .order .l2:empty { display: none; }
/* Money on Fees reads down its right edge: the three money columns of each
   member's row, and the same three in the total row under its four column
   caption. */
.grid-wrap.fees th:nth-child(5), .grid-wrap.fees th:nth-child(6), .grid-wrap.fees th:nth-child(7),
.grid-wrap.fees tbody tr:not(:last-child) td:nth-child(5), .grid-wrap.fees tbody tr:not(:last-child) td:nth-child(6), .grid-wrap.fees tbody tr:not(:last-child) td:nth-child(7),
.grid-wrap.fees tbody tr:last-child td:nth-child(2), .grid-wrap.fees tbody tr:last-child td:nth-child(3), .grid-wrap.fees tbody tr:last-child td:nth-child(4) { text-align: right; }
/* A member's two rate boxes sit side by side, as they were built to. */
.grid-wrap.fees td.rates { white-space: nowrap; }
/* Running late: the day a route was due stays whole on its line, and on a
   phone its four columns sit a little closer so each company reads on two
   lines at most. */
.grid-wrap.late td.static:first-child { white-space: nowrap; }
@media (max-width: 640px) { .grid-wrap.late th, .grid-wrap.late td.static { padding-left: 8px; padding-right: 8px; } .grid-wrap.late td.static { font-size: 13px; overflow-wrap: anywhere; } }
/* A rounded table keeps its rounded foot under the white of its last row. */
.grid-wrap > table.grid > tbody > tr:last-child > td:first-child { border-bottom-left-radius: 11px; }
.grid-wrap > table.grid > tbody > tr:last-child > td:last-child { border-bottom-right-radius: 11px; }

/* Routes off a phone (641px and wider): each route one white card. Across its
   top, what the whole run shares: the pickup and who it is for, the driver
   over the vehicle, the ETA, and the notes over the finishing action. Under
   that, every stop of the run in turn, each one a line across the card: what
   and where it is, then how far along it is with the way to ask about it,
   then its planned route. A route's rows are joined into the card by its
   first row (block-start) and its last (block-end).
   The top band is forty rows of the card's grid. The driver is the first row
   and the vehicle takes all the rest, so the vehicle starts where the driver
   ends. The notes take the first two rows and the finishing action the rest,
   so the action starts where the notes end, and the notes box grows to meet
   it when the driver stands taller than the notes. The pickup and the ETA,
   the tall parts, span all forty, and whatever height they add is spread
   across them instead of opening a gap under the driver or the notes. */
@media (min-width: 641px) {
  table.grid.board.routes { display: block; border: 0; background: transparent; border-radius: 0; }
  table.grid.board.routes thead { display: none; }
  table.grid.board.routes tbody { display: block; }
  table.grid.board.routes tr { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.1fr) minmax(0, 1.1fr) minmax(0, .95fr); column-gap: 24px; background: var(--white); border-left: 1px solid var(--line); border-right: 1px solid var(--line); padding: 0 20px; }
  table.grid.board.routes tr.block-start { margin-top: var(--gap); border-top: 1px solid var(--line); border-radius: 12px 12px 0 0; padding-top: 16px; }
  table.grid.board.routes tr.block-end { border-bottom: 1px solid var(--line); border-radius: 0 0 12px 12px; padding-bottom: 4px; box-shadow: var(--shadow-card); }
  table.grid.board.routes tr.block-start.block-end { border-radius: 12px; }
  table.grid.board.routes tr:first-child { margin-top: 0; }
  table.grid.board.routes td { display: block; border: 0; padding: 0 0 12px; min-width: 0; width: auto; background: transparent; font-size: 14px; }
  table.grid.board.routes td:empty { display: none; }
  table.grid.board.routes td[data-label="Pickup"] { grid-column: 1; grid-row: 1 / span 40; }
  table.grid.board.routes td[data-label="Driver"] { grid-column: 2; grid-row: 1; }
  table.grid.board.routes td[data-label="Vehicle"] { grid-column: 2; grid-row: 2 / span 39; }
  table.grid.board.routes td[data-label="ETA"] { grid-column: 3; grid-row: 1 / span 40; }
  table.grid.board.routes td[data-label="Notes"] { grid-column: 4; grid-row: 1 / span 2; }
  table.grid.board.routes td[data-label="Notes"]:not(:empty) { display: flex; flex-direction: column; }
  table.grid.board.routes td[data-label="Notes"] > textarea.cell { flex: 1 1 auto; }
  /* No rows of its own: it takes the first free rows in the last column, so
     it sits under the notes, or at the top when there are none. */
  table.grid.board.routes td.actions { grid-column: 4; grid-row: auto / span 38; align-self: start; white-space: normal; padding: 0 0 12px; }
  table.grid.board.routes td.actions .btn { width: 100%; }
  table.grid.board.routes td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
  /* The stops: the full width of the card, each set off by a hairline, its
     parts in three columns. Each part keeps its place in the page; only where
     it is drawn changes. What the stop is fills the first column a row at a
     time; the progress steps and the question sit beside its first rows, and
     the planned route beside all of them. A part that spans many rows shares
     any height it adds among them, so the first column's lines stay even. */
  table.grid.board.routes td[data-label="Stop"] { grid-column: 1 / -1; grid-row: 41; border-top: 1px solid var(--line); padding: 12px 0; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.2fr); column-gap: 32px; align-items: start; font-size: 13px; }
  table.grid.board.routes tr:not(.block-start) td[data-label="Stop"] { grid-row: auto; }
  table.grid.board.routes td[data-label="Stop"]::before { content: none; }
  table.grid.board.routes td[data-label="Stop"] > * { grid-column: 1; }
  table.grid.board.routes td[data-label="Stop"] > .trail { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; }
  table.grid.board.routes td[data-label="Stop"] > button.link.sub { grid-column: 2; grid-row: 4 / span 30; justify-self: start; margin-top: 0; }
  table.grid.board.routes td[data-label="Stop"] > .plan-lab { grid-column: 3; grid-row: 1; margin-top: 0 !important; }
  table.grid.board.routes td[data-label="Stop"] > .route-link, table.grid.board.routes td[data-label="Stop"] > .route-text { grid-column: 3; grid-row: 2 / span 32; }
  /* The note about the planned route (and whose eyes it is for) is the foot
     of the last stop, across the card. */
  table.grid.board.routes td[data-label="Stop"] > .route-link + .sub, table.grid.board.routes td[data-label="Stop"] > .route-text + .sub { grid-column: 1 / -1; grid-row: 34; }
  table.grid.board.routes td[data-label="Stop"] > .route-private { grid-column: 1 / -1; grid-row: 35; }
  table.grid.board.routes tr.overdue { box-shadow: inset 3px 0 0 var(--danger); }
  table.grid.board.routes tr.overdue.block-end { box-shadow: inset 3px 0 0 var(--danger), var(--shadow-card); }
  table.grid.board.routes tr.overdue td:first-child { box-shadow: none; }
  table.grid.board.routes .eta-row select.eta-d { flex: 1 1 124px; width: auto; min-width: 124px; }
  table.grid.board.routes .eta-row select.eta-t { flex: 1 1 112px; width: auto; min-width: 112px; }
  table.grid.board.routes td[data-label="Notes"] .cell { min-height: 60px; }
  table.grid.board.routes .send-op { width: 100%; }
}
@media (min-width: 1280px) {
  table.grid.board.routes td[data-label="Stop"] > .trail { grid-row: 1 / span 2; }
  table.grid.board.routes td[data-label="Stop"] > button.link.sub { grid-row: 3 / span 31; }
}
/* Under 1280px the Pickup column is too narrow for a tag and the time or day
   after it on one line, and the day used to break in two. The tag takes its
   own line and what follows it stays whole. */
@media (min-width: 641px) and (max-width: 1279px) {
  table.grid.board.routes td[data-label="Pickup"] .sub > .tag.ok:first-child, table.grid.board.routes td[data-label="Pickup"] .sub > .tag.late:first-child { display: table; margin: 0 0 2px; }
}
/* Between a phone and a wide desk it is the same card, drawn a little closer,
   where it used to be a table three hundred pixels wider than its box. An
   ETA's day sits over its time when the two do not fit side by side. A stop
   is two columns there, the order with its question link beside its progress
   steps, and the planned route runs the full width under both, so its caption
   stays on one line and a long link is not chopped into a narrow box. */
@media (min-width: 641px) and (max-width: 1023px) {
  table.grid.board.routes tr { column-gap: 16px; }
  table.grid.board.routes td[data-label="Stop"] { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 24px; }
  table.grid.board.routes td[data-label="Stop"] > .trail { grid-row: 1 / span 31; }
  table.grid.board.routes td[data-label="Stop"] > button.link.sub { grid-column: 1; grid-row: auto; }
  table.grid.board.routes td[data-label="Stop"] > .plan-lab { grid-column: 1 / -1; grid-row: 32; margin-top: 8px !important; }
  table.grid.board.routes td[data-label="Stop"] > .route-link, table.grid.board.routes td[data-label="Stop"] > .route-text { grid-column: 1 / -1; grid-row: 33; }
}
@media (max-width: 640px) {
  /* The day and the time of an ETA side by side, so four ETAs are four rows
     and not eight full width boxes. */
  .eta-row select.eta-d, .eta-row select.eta-t { flex: 1 1 0; width: auto; min-width: 0; margin-left: 0; }
  table.board.routes .send-op { width: 100%; }
}
/* The narrowest phones (320px): an ETA's day sits over its time, so neither is
   cut, and the sign in card gives its boxes the width a whole choice needs. */
@media (max-width: 339px) {
  .eta-row select.eta-d, .eta-row select.eta-t { flex: 1 1 100%; }
  .gate { padding-left: 8px; padding-right: 8px; }
  .gate .signin { padding: 16px 12px; }
}

/* Off a phone, anything clicked that stands in a line of words (a phone
   number, an email, a Google Maps link, the links under the sign in card, a
   day of the week card, Fix) is 24px tall, the height every button and tick
   box keeps. The room is given and taken back around the line, so no line
   moves. */
@media (min-width: 641px) {
  a[href^="tel:"], a[href^="mailto:"], .gate .help-line a, .gate .note a { display: inline-block; max-width: 100%; padding-top: 4px; padding-bottom: 4px; margin-top: -4px; margin-bottom: -4px; overflow-wrap: anywhere; }
  a.routeurl { padding-top: 3px; padding-bottom: 3px; margin-top: -3px; margin-bottom: -3px; }
  a.maplink { padding-top: 3px; padding-bottom: 3px; margin-top: -3px; margin-bottom: 5px; }
  .dash .day h3 .dayopen { min-height: 24px; margin-top: -3px; margin-bottom: -3px; }
  .fixlink { min-height: 24px; }
}

/* Hover only where something really hovers. On a touch screen a hover state
   stays where the finger last was and paints a stray tint on whatever lies
   there. */
@media (hover: hover) {
  .bar button:hover { background: rgba(255, 255, 255, .08); color: #fff; }
  .bar button.who:hover { background: none; color: #fff; text-decoration-color: #fff; }
  .notif-menu .item:hover { background: #F7F8F6; }
  .tabs button:hover { color: var(--ink); }
  .btn:hover { background: var(--sage-press); border-color: var(--sage-press); }
  .btn.ghost:hover { background: var(--sunken); border-color: var(--edge); }
  .btn.danger:hover, .btn.ghost.danger:hover, .acts .btn.ghost[aria-label^="Deny"]:hover { background: var(--danger-soft); border-color: var(--danger-edge); }
  .btn.post.ghost:hover, .take-go .btn.ghost[aria-label="Confirm take"]:hover { background: var(--sage-soft); }
  .btn.add-rows:hover, .btn.ask-q:hover, .btn.send-op:hover, .btn.f-csv:hover, .btn.a-go:hover, .btn.fill-crew:hover, .dash .order.in-run .acts .btn:not(.ghost):hover { background: #DCE9D5; border-color: var(--sage-line); }
  .btn:disabled:hover, .btn.add-rows:disabled:hover { background: var(--sunken); border-color: var(--line); color: var(--muted); }
  button.link:hover { color: var(--sage-press); text-decoration-thickness: 2px; }
  table.board.routes td.c-to > button.link.sub:hover, .card-links .link:hover, .dash .order .l1 .link.open:hover, .dash .link.more:hover, button.fold-edit:hover, .fleet-acts .link:hover, button.link.edit:hover, button.link.remove:hover, button.clear-paste:hover, button.clear-f:hover, button.clear-picks:hover, button.pick-all:hover, button.same-eta:hover, button.same-win:hover, .route-links .link:hover, .take-more .link:hover, .board-more .link:hover, .pick-bar .link:hover { background: var(--sage-soft); text-decoration: none; }
  .fleet-acts .link[aria-label^="Remove"]:hover, button.link.remove:hover, .route-links .route-act[aria-label^="Cannot run this"]:hover { background: var(--danger-soft); color: var(--danger); }
  table.grid tbody tr:hover > td { background: #FAFBF9; }
  table.board.routes tbody tr:hover > td { background: transparent; }
  table.grid tbody tr.take-panel:hover > td { background: var(--white); }
  .addr-add:hover { background: var(--sunken); }
  .switch button:hover { color: var(--ink); }
  .modal .close:hover { background: var(--sunken); color: var(--ink); }
  .signin .users button:hover { background-color: #F7F8F6; }
  .fixlink:hover { background: var(--sage-soft); }
  .thread-pick:hover { background: #F7F8F6; }
  .thread-pick.active:hover { background: var(--sage-soft); }
  .leaf-btn:hover { border-color: var(--sage); color: var(--sage); }
  .facpick:hover { border-color: var(--sage); background: var(--sage-soft); }
  .ftip:hover { border-color: var(--sage); background: var(--sage-soft); }
  .fav:hover { border-color: var(--sage); color: var(--ink); }
  .dash .chip:hover { background-color: #F7F8F6; }
  .dash .legend button.tag:hover { background: var(--sunken); }
  .dash .day h3 .dayopen:hover { text-decoration: underline; text-underline-offset: 3px; }
  div.sandbox-note button:hover { background: rgba(255, 255, 255, .08); color: #fff; }
}
