/* Trep platform design system v2 - "quiet professional"
   Direction: near-black ink, one restrained accent, 1px borders over shadows,
   dense data surfaces, no decoration that doesn't carry information.
   Spacing: 4 8 12 16 24 32 48 64 · Radius: 8 (controls) 12 (cards) · Type: Inter
*/
:root {
  --ink-950: #14101a;
  --ink-900: #1d1626;
  --ink-700: #3c3346;
  --ink-500: #6f6779;
  --ink-400: #8f8898;
  --border: #e6e3ea;
  --border-strong: #d5d1db;
  --bg: #f7f6f8;
  --card: #ffffff;

  --accent-600: #4d7c0f;
  --accent-500: #65a30d;
  --accent-100: #f0f7e2;
  --lime: #9adc44;

  --warn-600: #c2570e;
  --warn-100: #fdf0e5;
  --red-600: #b3273e;
  --red-100: #fae7ea;

  --shadow-sm: 0 1px 2px rgba(20, 16, 26, 0.06);
  --shadow-md: 0 4px 16px rgba(20, 16, 26, 0.08);
  --shadow-lg: 0 12px 40px rgba(20, 16, 26, 0.18);

  --r-ctl: 8px;
  --r-card: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink-900);
  line-height: 1.5;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

/* ---------- environment / view bar ---------- */

/* ---------- shared ---------- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 680px; }

h1, h2, h3 { line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: inherit; font-size: 14px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; text-decoration: none; text-align: center;
  border-radius: var(--r-ctl);
  padding: 10px 18px;
  transition: background .12s ease, border-color .12s ease, opacity .12s ease;
}
.btn:active { opacity: .85; }
.btn-primary { background: var(--ink-950); color: #fff; }
.btn-primary:hover { background: var(--ink-700); }
.btn-secondary { background: var(--card); color: var(--ink-900); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--ink-400); }
.btn-orange { background: var(--warn-600); color: #fff; }
.btn-orange:hover { opacity: .9; }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.btn-sm { padding: 7px 12px; font-size: 13px; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}

.pill {
  display: inline-block; border-radius: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: .02em;
  padding: 2px 8px;
  vertical-align: middle;
}
.pill-green { background: var(--accent-100); color: var(--accent-600); }
.pill-orange { background: var(--warn-100); color: var(--warn-600); }
.pill-ink { background: #efedf2; color: var(--ink-700); }
.pill-red { background: var(--red-100); color: var(--red-600); }

label {
  display: block; font-weight: 600; font-size: 12px;
  color: var(--ink-700); margin-bottom: 6px;
  letter-spacing: .02em;
}
select, input[type="text"], input[type="email"], input[type="tel"], input[type="password"] {
  width: 100%;
  font-family: inherit; font-size: 15px; font-weight: 400; color: var(--ink-900);
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-ctl);
  padding: 10px 12px;
  appearance: auto;
  transition: border-color .12s ease, box-shadow .12s ease;
}
select:focus, input:focus {
  outline: none; border-color: var(--ink-700);
  box-shadow: 0 0 0 3px rgba(20, 16, 26, 0.08);
}

.muted { color: var(--ink-500); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }

/* ---------- customer page ---------- */
.hero {
  background: var(--ink-950);
  color: #fff;
  padding: 56px 0 104px;
  position: relative; overflow: hidden;
}
.hero .wrap { display: flex; align-items: center; gap: 48px; }
.hero-text { flex: 1 1 420px; }
.hero-text h1 {
  font-size: clamp(30px, 4.5vw, 46px);
  margin: 20px 0 16px;
  letter-spacing: -0.02em; font-weight: 800;
}
.hero-text h1 .hl { color: var(--lime); }
.hero-text p { font-size: 16px; color: rgba(255, 255, 255, .72); max-width: 48ch; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.hero-badges .pill {
  background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .85);
  font-size: 12px; font-weight: 500; padding: 5px 12px; border-radius: 999px;
}
.hero-mascot { flex: 0 1 240px; text-align: center; }
.hero-mascot img { max-width: 100%; height: auto; width: 210px; filter: drop-shadow(0 16px 32px rgba(0, 0, 0, .4)); }

.brandline { display: flex; align-items: center; gap: 10px; }
.brandline img { width: 36px; height: auto; }
.brandline .name { font-weight: 800; font-size: 15px; letter-spacing: .06em; }
.brandline .name span { color: var(--lime); }

/* booking widget */
.booking { margin-top: -64px; margin-bottom: 72px; position: relative; z-index: 2; }
.booking .card { padding: 32px; box-shadow: var(--shadow-md); border: none; }
.steps { display: flex; gap: 4px; margin-bottom: 28px; flex-wrap: wrap; }
.step-dot {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; color: var(--ink-400);
  padding: 4px 10px 4px 4px;
}
.step-dot .n {
  width: 22px; height: 22px; border-radius: 999px;
  background: #efedf2; color: var(--ink-500);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}
.step-dot.active { color: var(--ink-950); }
.step-dot.active .n { background: var(--ink-950); color: #fff; }
.step-dot.done .n { background: var(--accent-100); color: var(--accent-600); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
@media (max-width: 640px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero .wrap { flex-direction: column-reverse; text-align: center; gap: 8px; }
  .hero { padding-top: 32px; }
  .hero-text p { margin: 0 auto; }
  .hero-badges { justify-content: center; }
  .hero-mascot { display: none; } /* brandline already carries the mascot on mobile */
  .brandline { justify-content: center; }
}

.svc-option {
  border: 1px solid var(--border-strong);
  border-radius: var(--r-card);
  padding: 16px;
  cursor: pointer;
  background: var(--card);
  transition: border-color .12s ease, box-shadow .12s ease;
}
.svc-option:hover { border-color: var(--ink-400); }
.svc-option.selected { border-color: var(--ink-950); box-shadow: 0 0 0 1px var(--ink-950); }
.svc-option .svc-name { font-weight: 700; font-size: 15px; }
.svc-option .svc-price { font-weight: 700; font-size: 18px; margin-top: 4px; font-variant-numeric: tabular-nums; }

.addon-row {
  display: flex; align-items: center; justify-content: space-between;
  border: 1px solid var(--border-strong); border-radius: var(--r-ctl);
  padding: 10px 14px; margin-top: 8px; cursor: pointer; background: var(--card);
  transition: border-color .12s ease, box-shadow .12s ease;
}
.addon-row.selected { border-color: var(--ink-950); box-shadow: 0 0 0 1px var(--ink-950); }
.addon-row .name { font-weight: 500; font-size: 14px; }
.addon-row .price { font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; }

.price-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 18px 20px;
  margin-top: 24px;
}
.price-line {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 14px; padding: 3px 0;
  font-variant-numeric: tabular-nums;
}
.price-line.total {
  border-top: 1px solid var(--border-strong); margin-top: 10px; padding-top: 12px;
  font-weight: 700; font-size: 17px;
}

.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.slot {
  border: 1px solid var(--border-strong); border-radius: var(--r-ctl);
  padding: 8px 6px; text-align: center; cursor: pointer; background: var(--card);
  font-weight: 600; font-size: 13px;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.slot .d { display: block; font-size: 11px; font-weight: 500; color: var(--ink-500); margin-bottom: 2px; }
.slot.selected { border-color: var(--ink-950); box-shadow: 0 0 0 1px var(--ink-950); }
.slot.pref-1::after, .slot.pref-2::after {
  content: attr(data-pref); display: block;
  font-size: 10px; font-weight: 700; color: var(--accent-600); letter-spacing: .04em;
}

.notice {
  border-radius: var(--r-ctl); padding: 12px 16px; margin-top: 16px;
  font-weight: 500; font-size: 14px; border: 1px solid transparent;
}
.notice-orange { background: var(--warn-100); color: var(--warn-600); }
.notice-green { background: var(--accent-100); color: var(--accent-600); }
.notice-red { background: var(--red-100); color: var(--red-600); }

.wizard-nav { display: flex; justify-content: space-between; margin-top: 28px; gap: 12px; }

.cc-box {
  border: 1px solid var(--border-strong); border-radius: var(--r-card);
  padding: 20px; margin-top: 16px; background: var(--card);
}
.cc-row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 8px; margin-top: 8px; }
.demo-ribbon {
  display: inline-block; background: var(--warn-100); color: var(--warn-600);
  font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  border-radius: 6px; padding: 3px 10px; margin-bottom: 8px;
}

.how { padding: 24px 0 72px; }
.how h2 { font-size: 22px; margin-bottom: 20px; }
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.how-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card); padding: 20px; }
.how-card .num {
  width: 26px; height: 26px; border-radius: 999px; background: var(--ink-950);
  color: #fff; font-weight: 700; font-size: 12px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.how-card h3 { font-size: 15px; margin-bottom: 4px; }
.how-card p { font-size: 13px; color: var(--ink-500); }

footer { background: var(--ink-950); color: var(--ink-400); padding: 28px 0; font-size: 12px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ---------- staff apps ---------- */
.app-header {
  background: var(--card); color: var(--ink-900);
  padding: 16px 0; border-bottom: 1px solid var(--border);
}
.app-header .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.app-header h1 { font-size: 17px; letter-spacing: -0.01em; }
.app-header .sub { color: var(--ink-500); font-size: 13px; font-weight: 400; }
.app-header .brandline img { width: 30px; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 24px 0; }
/* the booking pipeline is one story in five parts - keep it on one line when
   there is room, and let it wrap in pairs on narrow screens rather than 4+1 */
@media (min-width: 1100px) { #wfStrip { grid-template-columns: repeat(5, 1fr); } }
#wfStrip .stat:hover { border-color: var(--ink-700); }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card); padding: 16px 18px; }
.stat .k {
  font-size: 11px; font-weight: 600; color: var(--ink-500);
  text-transform: uppercase; letter-spacing: .06em;
}
.stat .v { font-size: 24px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.stat .v .unit { font-size: 13px; color: var(--ink-500); font-weight: 500; }

.section-title {
  font-size: 13px; font-weight: 600; color: var(--ink-500);
  text-transform: uppercase; letter-spacing: .06em;
  margin: 32px 0 10px; display: flex; align-items: center; gap: 10px;
}
.section-title select { text-transform: none; letter-spacing: 0; width: auto; font-size: 13px; padding: 6px 10px; }

.job {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card);
  padding: 16px 20px; margin-bottom: 8px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.job .time { font-weight: 700; font-size: 14px; min-width: 76px; font-variant-numeric: tabular-nums; }
.job .what { flex: 1 1 240px; }
.job .what .veh { font-weight: 600; font-size: 14px; }
.job .what .svc { font-size: 13px; color: var(--ink-500); }
.job .money { text-align: right; min-width: 120px; }
.job .money .total { font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.job .money .split { font-size: 12px; color: var(--ink-500); }
.job.done { opacity: .6; }

.route-list { counter-reset: stop; }
.route-stop {
  display: flex; gap: 10px; align-items: baseline; padding: 8px 0;
  border-bottom: 1px solid var(--border); font-weight: 500; font-size: 13px;
}
.route-stop:last-child { border-bottom: none; }
.route-stop::before {
  counter-increment: stop; content: counter(stop);
  width: 20px; height: 20px; border-radius: 999px;
  background: var(--ink-950); color: #fff;
  font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 20px; position: relative; top: 3px;
}
.route-stop .eta { margin-left: auto; color: var(--ink-500); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }

.alert-item {
  display: flex; gap: 10px; align-items: baseline;
  padding: 9px 0; border-bottom: 1px solid var(--border);
  font-size: 13px; font-weight: 400; color: var(--ink-700);
}
.alert-item:last-child { border-bottom: none; }

table.terr {
  width: 100%; border-collapse: collapse; background: var(--card);
  border: 1px solid var(--border);
  overflow: hidden; font-size: 13px;
}
table.terr th, table.terr td { text-align: left; padding: 10px 14px; }
/* Wide data tables (Team, Territories, Bookings) carry performance columns now.
   Tighter cells + non-wrapping controls so the whole row fits the panel instead
   of pushing the action buttons off the edge. .table-scroll still catches narrow
   screens, but on a desktop nothing should need scrolling sideways. */
table.terr.dense th, table.terr.dense td { padding: 9px 10px; }
table.terr.dense td { font-size: 13px; }
table.terr.dense .btn-sm { white-space: nowrap; padding: 5px 9px; font-size: 12px; }
table.terr.dense .row-actions { display: flex; flex-wrap: wrap; gap: 4px; }
/* A long address in a table cell used to widen the whole table past its panel -
   a real fleet contact like fleet.manager@somecompany.example.com did it. Break
   it instead of letting one cell decide the table's width. */
table.terr .breakable { overflow-wrap: anywhere; word-break: break-word; }
table.terr td .tiny { max-width: 260px; display: inline-block; overflow-wrap: anywhere; }
table.terr .nowrap { white-space: nowrap; }

/* Filter bars: inputs default to width:100%, which inside a flex toolbar makes
   every control claim its own row. Let them size to content and sit inline. */
.toolbar select, .toolbar input[type="text"], .toolbar input[type="date"],
.toolbar input[type="month"], .toolbar input[type="email"] { width: auto; }
.toolbar input[type="text"] { min-width: 200px; flex: 1 1 200px; max-width: 340px; }

/* A from/to pair read as two unrelated date boxes. Grouping + a label makes it
   obviously ONE range, and the group wraps as a unit instead of splitting rows. */
.daterange {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  border: 1px solid var(--border-strong); border-radius: var(--r-ctl);
  padding: 3px 8px; background: var(--card);
}
.daterange > .lbl { font-size: 12px; color: var(--ink-500); font-weight: 600; }
.daterange > .sep { font-size: 12px; color: var(--ink-500); }
.daterange input[type="date"] {
  border: none; background: transparent; padding: 4px 2px; font-size: 13px; width: auto;
}
.daterange input[type="date"]:focus { outline: none; box-shadow: none; }
.daterange:focus-within { border-color: var(--ink-700); box-shadow: 0 0 0 3px rgba(20,16,26,.07); }

/* Editable data grid (price book). Pattern from Greptile / Clay / Wix in the
   archive: a cell reads as plain text until you touch it, numbers are wide
   enough to show their real value, and a row carries ONE action - not a stack
   of buttons. Save only appears once a row is actually dirty. */
table.grid th, table.grid td { padding: 7px 10px; vertical-align: middle; }
table.grid td { font-size: 13px; border-top: 1px solid var(--border); }
table.grid tr:hover td { background: #fbfafc; }
table.grid input.cell {
  width: 100%; border: 1px solid transparent; background: transparent;
  padding: 5px 7px; font-size: 13px; border-radius: 6px;
  text-align: right; font-variant-numeric: tabular-nums;
}
table.grid input.cell:hover { border-color: var(--border); background: #fff; }
table.grid input.cell:focus { border-color: var(--ink-700); background: #fff; box-shadow: 0 0 0 3px rgba(20,16,26,.07); outline: none; }
table.grid td.num { width: 82px; }
table.grid td.yr { width: 78px; }
table.grid td.num-wide { width: 92px; }
table.grid tr.dirty td { background: #fffdf5; }
table.grid tr.dirty td:first-child { box-shadow: inset 3px 0 0 var(--warn-600); }
.cell-state { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 12px; color: var(--ink-500); }
.cell-state .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-600); flex: none; }
.cell-state.off .dot { background: var(--ink-500); }
.row-act { display: flex; gap: 6px; justify-content: flex-end; white-space: nowrap; }
.row-act .btn-sm { padding: 4px 9px; font-size: 12px; }
/* small laptops: shed the widest soft content (long emails) before resorting
   to a sideways scrollbar */
@media (max-width: 1200px) {
  table.terr.dense th, table.terr.dense td { padding: 8px 7px; }
  table.terr.dense .trunc { max-width: 120px !important; }
}
table.terr td { font-variant-numeric: tabular-nums; }
table.terr th {
  background: var(--bg); font-size: 11px; text-transform: uppercase;
  letter-spacing: .06em; color: var(--ink-500); font-weight: 600;
  border-bottom: 1px solid var(--border);
}
table.terr tr + tr td { border-top: 1px solid var(--border); }
.table-scroll { overflow-x: auto; border-radius: var(--r-card); border: 1px solid var(--border); }
.table-scroll table.terr { border: none; }

.two-col { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; align-items: start; }
.two-col > * { min-width: 0; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--ink-950); color: #fff;
  border-radius: var(--r-ctl); padding: 11px 20px; font-weight: 500; font-size: 13px;
  box-shadow: var(--shadow-lg); z-index: 200; display: none;
  max-width: min(92vw, 480px);
}
.toast.show { display: block; animation: toast-in .16s ease; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 6px); } to { opacity: 1; transform: translate(-50%, 0); } }

.empty {
  text-align: center; padding: 40px 24px; color: var(--ink-500);
  background: var(--card); border: 1px dashed var(--border-strong); border-radius: var(--r-card);
}
.empty .big { font-size: 28px; opacity: .5; }
.empty p { font-weight: 400; font-size: 14px; margin-top: 8px; }

/* ---------- v3 components (archive patterns) ---------- */
/* trust bullets (Angi) */
.trust { margin-top: 20px; border-top: 1px solid var(--border); padding-top: 16px; }
.trust-row { display: flex; gap: 10px; align-items: baseline; padding: 5px 0; font-size: 14px; color: var(--ink-700); }
.trust-row::before {
  content: "✓"; flex: 0 0 18px; width: 18px; height: 18px; border-radius: 999px;
  background: var(--accent-100); color: var(--accent-600);
  font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
  position: relative; top: 2px;
}

/* date chips + vertical windows (Fresha) */
.date-chips { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; }
.date-chip { flex: 0 0 auto; text-align: center; cursor: pointer; background: none; border: none; font-family: inherit; }
.date-chip .num {
  width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 600; color: var(--ink-900); background: var(--card);
  transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.date-chip .dow { display: block; font-size: 11px; font-weight: 500; color: var(--ink-500); margin-top: 5px; }
.date-chip.selected .num { background: var(--ink-950); color: #fff; border-color: var(--ink-950); }
.window-list { margin-top: 8px; }
.window-row {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  border: 1px solid var(--border-strong); border-radius: var(--r-ctl); background: var(--card);
  padding: 13px 16px; margin-bottom: 8px; cursor: pointer;
  font-family: inherit; font-size: 15px; font-weight: 500; color: var(--ink-900);
  transition: border-color .12s ease, box-shadow .12s ease;
}
.window-row.selected { border-color: var(--ink-950); box-shadow: 0 0 0 1px var(--ink-950); }
.window-row .tag { font-size: 11px; font-weight: 700; color: var(--accent-600); letter-spacing: .04em; text-transform: uppercase; }
.choice-summary { font-size: 13px; color: var(--ink-500); margin-top: 4px; min-height: 18px; }

/* bottom sheet (Turo) */
.sheet-dim {
  position: fixed; inset: 0; background: rgba(20, 16, 26, .5); z-index: 300;
  display: flex; align-items: flex-end; justify-content: center;
}
.sheet {
  background: var(--card); width: 100%; max-width: 560px;
  border-radius: 16px 16px 0 0; padding: 28px 24px calc(24px + env(safe-area-inset-bottom));
  box-shadow: var(--shadow-lg);
}
@media (min-width: 641px) {
  .sheet-dim { align-items: center; }
  .sheet { border-radius: 16px; margin: 24px; }
}
.sheet h3 { font-size: 19px; margin-bottom: 8px; }
.sheet .fine { font-size: 13px; color: var(--ink-500); margin-bottom: 20px; }
.sheet .btn { width: 100%; }
.sheet .textlink {
  display: block; text-align: center; margin-top: 14px; background: none; border: none;
  font-family: inherit; font-size: 14px; font-weight: 600; color: var(--ink-700); cursor: pointer;
}

/* next-stop hero + timeline (Dasher) */
.next-stop { border: 1px solid var(--border); border-left: 3px solid var(--ink-950); }
.next-stop .k { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-500); }
.next-stop .when { font-size: 22px; font-weight: 700; margin-top: 4px; letter-spacing: -0.01em; }
.next-stop .who { font-size: 14px; color: var(--ink-700); margin-top: 2px; }
.timeline { margin-top: 4px; }
.timeline-row {
  display: flex; gap: 12px; align-items: center; padding: 11px 4px;
  border-bottom: 1px solid var(--border); font-size: 14px;
}
.timeline-row:last-child { border-bottom: none; }
.timeline-row .n {
  flex: 0 0 22px; width: 22px; height: 22px; border-radius: 999px; background: var(--ink-950);
  color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
}
.timeline-row .addr { flex: 1; min-width: 0; }
.timeline-row .meta { color: var(--ink-500); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* icon meta rows + filter chips (Airtasker) */
.meta-row { display: flex; gap: 8px; align-items: baseline; font-size: 13px; color: var(--ink-500); padding: 1px 0; }
.meta-row .ic { flex: 0 0 14px; opacity: .55; position: relative; top: 1px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 12px; }
.chip {
  border: 1px solid var(--border-strong); background: var(--card); border-radius: 999px;
  font-family: inherit; font-size: 13px; font-weight: 500; color: var(--ink-700);
  padding: 6px 14px; cursor: pointer;
}
.chip.active { background: var(--ink-950); color: #fff; border-color: var(--ink-950); }

/* HQ sidebar (Stripe Sigma) */
.hq-shell { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: start; margin-top: 24px; }
.hq-nav { position: sticky; top: 56px; display: flex; flex-direction: column; gap: 2px; }
.hq-nav button {
  text-align: left; background: none; border: none; font-family: inherit;
  font-size: 14px; font-weight: 500; color: var(--ink-700);
  padding: 8px 12px; border-radius: var(--r-ctl); cursor: pointer;
}
.hq-nav button.active { background: #eceaf0; color: var(--ink-950); font-weight: 600; }
.hq-panel { display: none; min-width: 0; }
.hq-panel.active { display: block; }
@media (max-width: 820px) {
  .hq-shell { grid-template-columns: 1fr; gap: 12px; }
  .hq-nav { position: static; flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .hq-nav button { white-space: nowrap; }
}
.table-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 12px; color: var(--ink-500); margin: 6px 2px;
}
.table-bar .csv { background: none; border: none; font-family: inherit; font-size: 12px; font-weight: 600; color: var(--ink-700); cursor: pointer; text-decoration: underline; }

/* day-strip job dots + job detail (Jobber patterns) */
.daydot { display: block; margin-top: 3px; font-size: 10px; font-weight: 700; height: 14px; color: transparent; }
.daydot.on { color: var(--accent-600); }
.daydot.pend { color: var(--warn-600); }
.job { cursor: pointer; }
.job-detail {
  background: var(--card); border: 1px solid var(--border); border-top: none;
  border-radius: 0 0 var(--r-card) var(--r-card);
  margin: -9px 0 8px; padding: 16px 20px;
}
.job.expanded { border-radius: var(--r-card) var(--r-card) 0 0; margin-bottom: 0; }
.contact-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.notes-box textarea {
  width: 100%; font-family: inherit; font-size: 14px; color: var(--ink-900);
  border: 1px solid var(--border-strong); border-radius: var(--r-ctl);
  padding: 10px 12px; min-height: 64px; resize: vertical;
}
.notes-box textarea:focus { outline: none; border-color: var(--ink-700); box-shadow: 0 0 0 3px rgba(20,16,26,.08); }
.prep-line { font-size: 13px; color: var(--ink-700); background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-ctl); padding: 10px 12px; margin-bottom: 14px; }

/* Test-environment marker. Never rendered on production (see app.js). */
.env-badge {
  position: fixed; right: 10px; bottom: 10px; z-index: 40;
  background: #b3273e; color: #fff;
  font: 600 10px/1 system-ui, sans-serif; letter-spacing: .06em;
  padding: 6px 9px; border-radius: 999px; opacity: .85; pointer-events: none;
}
/* Hidden on phones on purpose: the operator app is used on a phone all day and
   a permanent red badge is noise. The desktop badge is the real safety rail -
   that is where someone is most likely to confuse staging for production. */
@media (max-width: 860px) { .env-badge { display: none; } }
