/* Fonts are stored with the app (fonts/, English letters only; licence in fonts/OFL.txt), so they work with no
   signal and phones don't contact Google on every load. */
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/barlow-400.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/barlow-500.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/barlow-600.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/barlow-700.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/barlow-condensed-600.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/barlow-condensed-700.woff2) format('woff2'); }

/* Look and feel matches the GreenSpace Route Packets: Barlow fonts, light sticky bar,
   condensed display headings, small green labels, green/navy/amber palette, dark mode. */
:root {
  --bg: #f3f6f4; --surface: #ffffff; --tint: #e5f3ea; --line: #d6e2da;
  --fg: #1d2a22; --muted: #5d6b62;
  --green: #269752; --green-dark: #1e7a42; --green-ink: #ffffff;
  --navy: #2f5d7c; --navy-soft: #e6eef4;
  --navy-btn: #2f5d7c; /* brand navy, the same in dark mode: the blue Directions button */
  --amber: #a8650b; --amber-soft: #fbefdc;
  --red: #b42318; --red-soft: #fde8e6;
  --demo: #26332d; --demo-ink: #e8eee9; --demo-btn: #3d4d45;
  /* Service report: a printed document, so it stays white paper in dark mode too */
  --paper: #ffffff; --paper-ink: #1d2a22; --paper-muted: #5d6b62; --paper-line: #d6e2da; --paper-tint: #e5f3ea;
  --display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --radius: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111814; --surface: #18221c; --tint: #17301f; --line: #2c3b31;
    --fg: #e7efe9; --muted: #9db0a3;
    --green: #269752; --green-dark: #1e7a42; --green-ink: #ffffff;
    --navy: #7fb1d3; --navy-soft: #1c2a33;
    --amber: #e6a74a; --amber-soft: #33281a;
    --red: #f2867c; --red-soft: #3a1f1c;
    --demo: #0a0f0c; --demo-ink: #c9d6cd; --demo-btn: #26332d;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111814; --surface: #18221c; --tint: #17301f; --line: #2c3b31;
  --fg: #e7efe9; --muted: #9db0a3;
  --green: #269752; --green-dark: #1e7a42; --green-ink: #ffffff;
  --navy: #7fb1d3; --navy-soft: #1c2a33;
  --amber: #e6a74a; --amber-soft: #33281a;
  --red: #f2867c; --red-soft: #3a1f1c;
  --demo: #0a0f0c; --demo-ink: #c9d6cd; --demo-btn: #26332d;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
#app { max-width: 560px; margin: 0 auto; min-height: 100vh; padding-bottom: 150px; }
.loading { padding: 40px; text-align: center; color: var(--muted); }
.loading img { display: block; width: 240px; max-width: 70%; height: auto; margin: 18vh auto 16px; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: .01em; margin: 0; text-wrap: balance; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; border-radius: 6px; }

/* Sticky top bar */
.bar {
  position: sticky; top: 0; z-index: 5;
  background: var(--bg); border-bottom: 1px solid var(--line);
  padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top));
}
.bar-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 38px; }
.brand { font-family: var(--display); font-weight: 700; color: var(--green); font-size: 18px; letter-spacing: .04em; white-space: nowrap; display: inline-flex; align-items: center; }
.brand img { display: block; height: 40px; width: auto; }
.sidenav-head .brand img { height: 52px; }
/* Sign-in page: the large logo instead of the top bar. */
.logo-head { padding: calc(28px + env(safe-area-inset-top)) 16px 4px; }
.logo-head img { display: block; width: 260px; max-width: 72%; height: auto; }
.logo-right { padding: 0 16px; }
.brand small { font-family: var(--body); font-weight: 600; font-size: 10px; color: var(--muted); letter-spacing: .12em; margin-left: 6px; }
.bar-right { display: flex; gap: 6px; align-items: center; }
.bar button {
  font: 600 14px/1 var(--body); padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--fg);
}
.bar button.back { color: var(--navy); }
.bar button.primary-sm { background: var(--green); border-color: var(--green); color: var(--green-ink); font-weight: 700; }
.offline-note { background: var(--amber-soft); color: var(--amber); padding: 10px 16px; font-size: 14px; font-weight: 600; }

/* Page heading */
.hero { padding: 20px 16px 4px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.hero h1 { font-size: 40px; line-height: 1; margin-top: 4px; }
.hero-sub { font-size: 15px; color: var(--muted); margin-top: 6px; }

main { padding: 14px 16px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 22px 0 10px; }
.sec-h h2 { font-size: 24px; }
.sec-h span { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }

/* Cards; card titles are small green labels like the packet's */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 14px; }
.card h3 { font: 700 12px/1.3 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--green); margin: 0 0 10px; }

/* Buttons */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 54px; border-radius: 12px; border: 1px solid var(--green);
  background: var(--green); color: var(--green-ink);
  font: 700 20px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; padding: 12px 16px;
}
.btn:active { background: var(--green-dark); }
.btn.secondary { background: var(--surface); color: var(--navy); border-color: var(--line); }
.btn.secondary:active { background: var(--navy-soft); }
.btn.danger { background: var(--surface); color: var(--red); border-color: var(--line); }
.btn + .btn { margin-top: 10px; }

/* Lists: each row is its own card, like the packet's route order */
.list { display: grid; gap: 6px; }
.row {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; min-height: 58px;
}
.row:active { background: var(--tint); }
.row .grow { flex: 1; min-width: 0; }
.row .title { font-weight: 600; }
.row .sub { font-size: 13px; color: var(--muted); font-weight: 500; }
.row .price { font-family: var(--display); font-size: 18px; color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 700; }
.chev { color: var(--muted); font-size: 22px; }
.other-row { margin-top: 6px; border-style: dashed; background: transparent; }
.other-row .title { color: var(--amber); }
.empty { padding: 20px 16px; color: var(--muted); text-align: center; background: var(--surface); border: 1px dashed var(--line); border-radius: 12px; }

.search {
  width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); margin-bottom: 12px; font-size: 17px;
}

/* Pills */
.pill { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.pill.sent { background: var(--tint); color: var(--green); }
.pill.waiting, .pill.tbc { background: var(--amber-soft); color: var(--amber); }

/* PIN */
.pin-dots { display: flex; justify-content: center; gap: 16px; margin: 16px 0 22px; }
.pin-dots span { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--green); }
.pin-dots span.on { background: var(--green); }
.pin-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 320px; margin: 0 auto; }
.pin-pad button { min-height: 66px; font: 700 30px/1 var(--display); border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.pin-pad button:active { background: var(--tint); }
.pin-pad .blank { visibility: hidden; }
.error { color: var(--red); background: var(--red-soft); padding: 10px 14px; border-radius: 10px; margin: 10px 0; font-weight: 600; font-size: 15px; }

/* Stop lines */
.item { border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 2px; }
.line { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
.line .name { flex: 1; min-width: 0; }
.line .title { font-weight: 600; }
.line .name .sub { font-size: 13px; color: var(--muted); }
.line .amt { font: 700 20px/1 var(--display); min-width: 70px; text-align: right; font-variant-numeric: tabular-nums; }
.stepper { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.stepper button { width: 42px; height: 42px; border: 0; background: var(--tint); color: var(--green); font-size: 22px; font-weight: 700; }
.stepper span { min-width: 34px; text-align: center; font: 700 20px/1 var(--display); font-variant-numeric: tabular-nums; }
.x { border: 0; background: var(--red-soft); color: var(--red); width: 42px; height: 42px; border-radius: 10px; font-size: 20px; font-weight: 700; }

.totals { margin-top: 12px; background: var(--tint); border-radius: 12px; padding: 10px 14px; font-variant-numeric: tabular-nums; }
.totals div { display: flex; justify-content: space-between; align-items: baseline; padding: 2px 0; }
.totals .discount { color: var(--green); font-weight: 600; }
.totals .grand { font-family: var(--display); font-weight: 700; font-size: 26px; }
.note { background: var(--tint); color: var(--fg); border-radius: 10px; padding: 8px 12px; font-size: 14px; margin-top: 10px; }
.note.warn { background: var(--amber-soft); color: var(--amber); font-weight: 600; }

.add-row { display: flex; gap: 10px; margin-top: 14px; }
.add-row .btn { margin-top: 0; font-size: 18px; }

/* Photos */
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.photo { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--line); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo .x { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; font-size: 16px; opacity: .95; }
.add-photo {
  aspect-ratio: 1; border: 2px dashed var(--line); border-radius: 10px; color: var(--navy);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; text-align: center; cursor: pointer; background: var(--bg);
}
.add-photo .big { font: 700 30px/1 var(--display); }
.add-photo input { display: none; }
.add-photo.needed { border-color: var(--amber); color: var(--amber); background: var(--amber-soft); }

/* Photos under each bulky item line */
.line-photos { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0; }
.line-photos .photo, .line-photos .add-photo { flex: 0 0 76px; width: 76px; height: 76px; aspect-ratio: auto; }
.line-photos .photo .x { width: 26px; height: 26px; font-size: 14px; }
.line-photos .add-photo { font-size: 12px; }
.line-photos .add-photo .big { font-size: 24px; }

textarea { width: 100%; min-height: 80px; border: 1px solid var(--line); border-radius: 10px; padding: 12px; resize: vertical; background: var(--bg); }

/* Sticky send button */
.submit-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 6;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 30%);
}
/* The local preview's "No signal" bar sits at the very bottom; keep the Send button above it. */
body.has-demo .submit-bar { bottom: 34px; padding-bottom: 10px; }
.submit-bar .inner { max-width: 528px; margin: 0 auto; }

/* Overlays */
.overlay { position: fixed; inset: 0; z-index: 20; background: var(--bg); overflow-y: auto; padding-bottom: 120px; }
.overlay .inner { max-width: 560px; margin: 0 auto; }
.modal-back { position: fixed; inset: 0; z-index: 50; /* above the prototype bar so Cancel isn't hidden */ background: rgba(0,0,0,.5); display: flex; align-items: flex-end; justify-content: center; }
.modal { background: var(--surface); width: 100%; max-width: 560px; border-radius: 18px 18px 0 0; padding: 22px 16px calc(22px + env(safe-area-inset-bottom)); }
.modal h2 { font-size: 30px; line-height: 1.05; margin-bottom: 8px; }
.count { background: var(--green); color: var(--green-ink); border-radius: 999px; min-width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; font: 700 17px/1 var(--display); padding: 0 8px; }

/* Done */
.done { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 16px; margin-bottom: 14px; }
.done .status { display: flex; align-items: center; gap: 14px; }
.done .dot { width: 54px; height: 54px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; font: 700 30px/1 var(--display); }
.done .dot.sent { background: var(--tint); color: var(--green); }
.done .dot.waiting { background: var(--amber-soft); color: var(--amber); }
.done h2 { font-size: 30px; line-height: 1; }
.done p { margin: 12px 0 0; }

/* Demo bar */
.demo {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: var(--demo); color: var(--demo-ink); font-size: 13px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 6px 10px calc(6px + env(safe-area-inset-bottom));
}
.demo button { background: var(--demo-btn); border: 0; color: #fff; border-radius: 8px; padding: 4px 10px; font-size: 13px; }
.demo button.on { background: #a8650b; }

/* ===== Driver app: direction B "Bold work tool" =====
   Dark, high contrast, big photo tiles. Scoped to body.driver so the office view keeps its own look for now.
   Brand green stays exactly #269752. */
body.driver {
  --bg: #121a15; --surface: #1c2620; --surface-2: #243129; --tint: #17301f; --line: #2e3d34;
  --fg: #eef4f0; --muted: #9db0a3;
  --green: #269752; --green-dark: #1e7a42; --green-ink: #ffffff;
  --navy: #7fb1d3; --navy-soft: #1c2a33;
  --amber: #e6a74a; --amber-soft: #33281a;
  --red: #f2867c; --red-soft: #3a1f1c;
  --demo: #0a0f0c; --demo-ink: #c9d6cd; --demo-btn: #26332d;
  --radius: 18px;
  color-scheme: dark;
  background: var(--bg); color: var(--fg);
}
.ic { width: 1.15em; height: 1.15em; vertical-align: -.18em; flex: none; }

body.driver .bar { background: var(--bg); border-bottom-color: var(--line); }
body.driver .bar button { background: var(--surface); border-color: var(--line); color: var(--fg); display: inline-flex; align-items: center; gap: 4px; }
body.driver .bar button.back { color: var(--fg); }
body.driver .hero { padding-top: 22px; }
body.driver .hero h1 { font-size: 42px; line-height: .98; }
body.driver .hero-sub { display: flex; align-items: center; gap: 6px; }
body.driver .eyebrow { letter-spacing: .14em; }

body.driver .btn { text-transform: none; letter-spacing: .01em; font-size: 21px; border-radius: 16px; min-height: 58px; }
body.driver .btn.secondary { background: var(--surface); color: var(--fg); border-color: var(--line); }
body.driver .btn.danger { background: transparent; color: var(--red); border-color: var(--line); }
body.driver .btn.big { min-height: 72px; font-size: 26px; }

body.driver .card { background: var(--surface); border-color: var(--line); }
body.driver .card h3 { color: var(--muted); }
body.driver .row { background: var(--surface); border-color: var(--line); border-radius: 16px; }
body.driver .row:active { background: var(--surface-2); }
body.driver .row .thumb { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex: none; background: var(--surface-2); display: flex; align-items: center; justify-content: center; color: var(--muted); }
body.driver .search, body.driver textarea { background: var(--surface-2); border-color: var(--line); }
body.driver .empty { background: transparent; border-color: var(--line); }

/* Items: bigger photo tiles; amber dashed camera when a photo is still needed */
body.driver .item { border-bottom-color: var(--line); }
body.driver .line .amt { font-size: 24px; }
body.driver .stepper { background: var(--surface-2); border-color: var(--line); }
body.driver .stepper button { background: var(--surface-2); color: var(--fg); }
body.driver .line-photos .photo, body.driver .line-photos .add-photo { flex-basis: 92px; width: 92px; height: 92px; }
body.driver .photo { background: var(--surface-2); border-radius: 12px; }
body.driver .add-photo { background: transparent; border: 2px dashed var(--line); color: var(--fg); border-radius: 12px; gap: 4px; }
body.driver .add-photo .ic { width: 26px; height: 26px; }
body.driver .add-photo.needed { border-color: var(--amber); color: var(--amber); background: var(--amber-soft); }
body.driver .totals { background: var(--surface-2); }
body.driver .totals .discount { color: var(--fg); opacity: 1; }
body.driver .totals .discount span:last-child { color: var(--green); }

/* Send bar: label on the left, total on the right */
body.driver .submit-bar { background: linear-gradient(transparent, var(--bg) 35%); }
body.driver .btn.send { justify-content: space-between; min-height: 64px; padding: 12px 20px; }
body.driver .btn.send span { display: inline-flex; align-items: center; gap: 8px; }
body.driver .send-total { font-size: 26px; font-variant-numeric: tabular-nums; }

body.driver .overlay { background: var(--bg); }
body.driver .modal { background: var(--surface); }
body.driver .done { background: var(--surface); border-color: var(--line); }
body.driver .done .dot .ic { width: 30px; height: 30px; }
body.driver .pin-pad button { background: var(--surface); border-color: var(--line); color: var(--fg); }
body.driver .pin-pad button:active { background: var(--surface-2); }
body.driver .other-row { background: transparent; }

/* Shared photos: one picture attached to more than one item */
.photo .shared { position: absolute; left: 4px; bottom: 4px; font-size: 11px; font-weight: 700; letter-spacing: .04em; background: rgba(0,0,0,.65); color: #fff; border-radius: 6px; padding: 2px 6px; }
button.add-photo { font: inherit; font-weight: 700; font-size: 12px; cursor: pointer; }
button.photo.pick { border: 2px solid transparent; padding: 0; cursor: pointer; }
button.photo.pick:active { border-color: var(--green); }

/* Full-size photo viewer (tap any photo) */
.photo img { cursor: zoom-in; }
button.photo.pick img, .photo button img { cursor: pointer; }
.viewer { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .94); display: flex; flex-direction: column; color: #fff; }
.viewer-top { display: flex; align-items: center; gap: 12px; padding: 10px 12px; padding-top: max(10px, env(safe-area-inset-top)); }
.viewer-cap { flex: 1; min-width: 0; font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewer-close, .viewer-nav { border: 0; background: rgba(255, 255, 255, .14); color: #fff; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.viewer-close .ic, .viewer-nav .ic { width: 26px; height: 26px; }
.viewer-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 8px 8px max(16px, env(safe-area-inset-bottom)); }
.viewer-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; user-select: none; }
.viewer-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.viewer-nav.prev { left: 10px; }
.viewer-nav.next { right: 10px; }

/* Add items list: tap the name to add one; minus/plus once an item is picked */
.pick-row { padding: 0 8px 0 0; gap: 8px; }
.pick-row .pick-name { display: block; text-align: left; background: none; border: 0; color: inherit; font: inherit; padding: 12px 14px; min-height: 58px; cursor: pointer; }
.pick-row.picked { border-color: var(--green); }
.pick-add { width: 46px; height: 46px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--fg); font-size: 26px; font-weight: 600; flex: none; }
.pick-row .stepper { flex: none; }
.pick-row .stepper button { width: 46px; height: 46px; }

/* "Could not save" warning (storageProblem in shared.js): fixed at the top, above everything, until closed. */
.storage-warn {
  position: fixed; top: 0; left: 0; right: 0; z-index: 70;
  display: flex; gap: 10px; align-items: flex-start;
  padding: calc(12px + env(safe-area-inset-top)) 16px 12px;
  background: var(--red-soft); color: var(--red); border-bottom: 2px solid var(--red);
  font-weight: 600; font-size: 15px; line-height: 1.35;
}
.storage-warn span { flex: 1; }
.storage-warn button { background: none; border: 0; color: inherit; padding: 4px; min-width: 44px; min-height: 44px; }
.storage-warn .ic { width: 22px; height: 22px; }

/* "Preparing photo..." while a HEIC photo is converted (estimate.js, photoBusy) */
.photo-busy {
  position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 70;
  padding: 12px 20px; border-radius: 999px;
  background: var(--surface-2, var(--surface)); color: var(--fg); border: 2px solid var(--green); font-weight: 600; font-size: 15px;
  box-shadow: 0 4px 16px rgba(0,0,0,.35);
}

/* ---------- My Route (route sheets; Austin, 2026-11-16). Modelled on the Route Packets artifact. ---------- */
.mr-pick select { width: 100%; min-height: 54px; font: 600 19px var(--body); }
.tabs.mr-days-tabs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin: 10px 0 6px; }
.tabs.mr-days-tabs button { min-height: 48px; padding: 0; }
.mr-meta { margin: 0 0 12px; }
.mr-order { display: grid; gap: 4px; }
.mr-jump { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: transparent; color: var(--fg); border: 0; border-bottom: 1px solid var(--line); padding: 10px 2px; min-height: 48px; font: 600 16px var(--body); }
.mr-jump:last-child { border-bottom: 0; }
.mr-jump .grow { flex: 1; min-width: 0; }
.mr-jump-pct { font-family: var(--display); font-size: 18px; color: var(--muted); white-space: nowrap; }
.mr-done { color: var(--green); display: inline-flex; }
.mr-num { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: var(--green-ink); display: inline-flex; align-items: center; justify-content: center; font: 700 15px var(--body); }
.mr-card { scroll-margin-top: 76px; }
.mr-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.mr-head .grow { flex: 1; min-width: 0; }
.mr-head h2 { font: 700 26px/1.05 var(--display); margin: 0 0 2px; }
.mr-label { font: 700 12px/1.3 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.mr-block { margin-top: 12px; }
.mr-target { background: var(--amber-soft); border-radius: 12px; padding: 10px 12px; }
.mr-target .mr-label, .mr-week .mr-label { text-transform: none; letter-spacing: 0; font-size: 14px; }
.mr-target .mr-label { color: var(--amber); }
.mr-pct strong { font: 700 30px/1 var(--display); color: var(--amber); }
.mr-pct span { color: var(--fg); font-weight: 600; }
.mr-pct .mr-pct-bins { display: block; color: var(--muted); font-weight: 500; font-size: 13px; }
.mr-notes { white-space: pre-line; }
.mr-code { display: flex; align-items: center; gap: 6px; }
.mr-code strong { font: 700 20px var(--display); letter-spacing: .06em; }
.mr-week { margin-top: 12px; }
.mr-week th.on, .mr-week td.on { background: var(--amber-soft); color: var(--amber); font-weight: 700; }
.mr-week table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mr-week th, .mr-week td { padding: 4px 2px; text-align: center; border-top: 1px solid var(--line); }
.mr-week td:first-child, .mr-week th:first-child { text-align: left; }
.mr-actions { display: grid; gap: 8px; margin-top: 14px; }
.mr-actions a.btn { text-decoration: none; }
/* My Route cards, 2026-11-17: blue Directions next to the name, bins as "2 × 8 yd" with a day strip, calmer text. */
.mr-head .grow h2 { font-size: 24px; }
.mr-aka { font-size: 14px; color: var(--muted); font-style: italic; }
.mr-addr { font-size: 15px; color: var(--muted); margin-top: 2px; }
.mr-dir { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 76px; min-height: 56px;
  padding: 6px 8px; border-radius: 12px; background: var(--navy-btn); color: var(--green-ink); text-decoration: none; font: 700 13px var(--body); }
.mr-dir .ic { width: 22px; height: 22px; }
/* One bin (bins.js binRow): size in a fixed left column, everything else lined up in the second column. */
.bin-row { display: grid; grid-template-columns: 72px 1fr; gap: 0 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.mr-label + .bin-row { border-top: 0; padding-top: 4px; }
.bin-size { font: 700 20px/1.25 var(--display); }
.bin-body { min-width: 0; }
.bin-name { line-height: 1.35; }
.bin-name strong { font-weight: 700; }
.bin-name > span:not(.pill) { color: var(--muted); }
.bin-name .pill { font-size: 12px; padding: 2px 8px; }
.bin-when { display: flex; align-items: center; gap: 4px 10px; flex-wrap: wrap; margin-top: 6px; }
.mr-strip { display: flex; gap: 3px; }
.mr-strip span { width: 24px; height: 24px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center;
  font: 700 12px var(--body); color: var(--muted); border: 1px solid var(--line); }
.mr-strip span.on { background: var(--green); border-color: var(--green); color: var(--green-ink); }
.mr-strip span.eow { border: 2px dashed var(--green); color: var(--fg); }
.mr-strip span.today { box-shadow: 0 0 0 2px var(--fg); }
.mr-freq { font-size: 14px; color: var(--muted); }
.mr-freq strong { color: var(--green); }
.mr-binnote { font-size: 14px; color: var(--muted); font-style: italic; margin-top: 2px; }
.mr-notes { font-size: 16px; line-height: 1.45; }
.mr-editbtn { margin: 0 0 4px; }
.mr-actions .link { display: inline-flex; align-items: center; gap: 6px; justify-content: center; min-height: 44px; }

/* Editing a route sheet (sheets.js) */
.sh-row { display: grid; gap: 6px; grid-template-columns: 1fr 1fr; padding: 10px 0; border-top: 1px solid var(--line); }
.sh-row input, .sh-row select { width: 100%; min-height: 44px; }
.sh-row .wide2 { grid-column: 1 / -1; }
.sh-size { display: flex; align-items: center; gap: 6px; }
.sh-size input[data-f="count"] { width: 64px; flex: none; text-align: center; }
.sh-days { display: flex; gap: 4px; flex-wrap: wrap; }
.sh-days label { flex: 1; min-width: 40px; }
.sh-days input { position: absolute; opacity: 0; pointer-events: none; }
.sh-days span { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); font-weight: 700; font-size: 14px; cursor: pointer; }
.sh-days input:checked + span { background: var(--green); border-color: var(--green); color: var(--green-ink); }
.sh-days input:focus-visible + span { outline: 2px solid var(--fg); }
.sh-pcts { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; grid-column: 1 / -1; }
.sh-pcts label { font-size: 12px; color: var(--muted); text-align: center; }
.sh-pcts input { text-align: center; padding: 4px 2px; }
.sh-stop { padding: 10px 0; border-top: 1px solid var(--line); }
.sh-stop.moving { background: var(--tint); border-radius: 12px; padding: 10px; }
.sh-stop-top { display: flex; align-items: center; gap: 8px; }
.sh-stop-top .grow { flex: 1; min-width: 0; }
.sh-stop-top .title { font-weight: 700; }
.sh-stop-top .sub { font-size: 13px; color: var(--muted); }
.sh-pos { flex: none; width: 58px; min-height: 44px; border-radius: 22px; background: var(--green); color: var(--green-ink); border: 0;
  font: 700 16px var(--body); text-align: center; text-align-last: center; padding: 0 4px; }
.sh-arrow { flex: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); font-size: 18px; }
.sh-arrow:disabled { opacity: .35; }
.sh-stop-bottom { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; margin-top: 6px; }
.sh-stop-bottom input { flex: 1 1 100%; min-height: 40px; }
.sh-stop-bottom .link { min-height: 40px; }
.link.danger { color: var(--red); }
.sh-move { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.mr-hauler { text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--fg); }

/* Bins onsite (Salesforce bins, bins.js): collapsed to one summary line on My Route, open on the client page. */
details.mr-onsite { margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; }
details.mr-onsite > summary { cursor: pointer; list-style: none; display: flex; flex-direction: column; gap: 2px; min-height: 48px; justify-content: center; padding: 8px 22px 8px 0; position: relative; }
details.mr-onsite > summary::-webkit-details-marker { display: none; }
details.mr-onsite > summary::after { content: '▸'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 18px; }
details.mr-onsite[open] > summary::after { content: '▾'; }
details.mr-onsite > summary .mr-label { margin: 0; }
.mr-onsite-sum { font-weight: 600; font-size: 15px; }
details.mr-onsite[open] { padding-bottom: 10px; }
.mr-binfacts { font-size: 14px; color: var(--muted); margin-top: 4px; }
.sh-tbins { display: grid; gap: 2px; margin: 4px 0 6px; max-height: 260px; overflow-y: auto; }
.sh-tbins label { display: flex; gap: 8px; align-items: center; min-height: 40px; }
.sh-tbins input { width: 22px; height: 22px; min-height: 0; flex: none; }
