/* TruckersMove — highway navy, safety orange, asphalt. Condensed headlines read like road signs. */
:root {
  --navy: #0F2742;
  --navy-2: #1B3A5E;
  --orange: #F26B1D;
  --asphalt: #2F353B;
  --concrete: #E7E9EC;
  --paper: #FFFFFF;
  --line: #C9CED4;
  --ok: #1E7B4F;
  --bad: #B3261E;

  --bg: var(--concrete);
  --surface: var(--paper);
  --text: var(--asphalt);
  --text-strong: var(--navy);
  --muted: #5B636B;
  --head: "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1726;
    --surface: #13243A;
    --text: #DCE2E8;
    --text-strong: #FFFFFF;
    --muted: #9BA7B4;
    --line: #2C415C;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--body);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
h1, h2, h3 { font-family: var(--head); font-stretch: condensed; color: var(--text-strong); line-height: 1.1; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 800; }
h2 { font-size: 1.5rem; font-weight: 700; }
h3 { font-size: 1.2rem; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
code, pre { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: .9em; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); color: var(--navy); padding: .5rem 1rem; z-index: 10; }

/* Masthead with the painted lane line */
.masthead { background: var(--navy); color: #fff; padding-top: env(safe-area-inset-top, 0px); }
.masthead__inner { max-width: 1120px; margin: 0 auto; padding: 1rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.wordmark { font: 800 1.6rem/1 var(--head); font-stretch: condensed; text-decoration: none; letter-spacing: .01em; }
.wordmark span { color: var(--orange); }
.nav { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.nav a, .nav .link { color: #fff; text-decoration: none; font-weight: 600; padding: .4rem 0; border-bottom: 3px solid transparent; }
.nav a.is-active, .nav a:hover { border-bottom-color: var(--orange); }
.nav form { margin: 0; }
.link { background: none; border: 0; font: inherit; cursor: pointer; }
.lane { height: 6px; background: repeating-linear-gradient(90deg, var(--orange) 0 48px, transparent 48px 80px); }

.netbar { background: var(--orange); color: var(--navy); font-weight: 600; text-align: center; padding: .5rem 1rem; }

.page { max-width: 1120px; margin: 0 auto; padding: 2rem 1.25rem 3rem; }
.footer { max-width: 1120px; margin: 0 auto; padding: 1.5rem 1.25rem 2.5rem; color: var(--muted); font-size: .875rem; border-top: 1px solid var(--line); }

/* Home */
.hero { padding: 2rem 0 3rem; max-width: 52rem; }
.hero__title { font-size: clamp(3rem, 9vw, 6.5rem); font-weight: 800; letter-spacing: -.01em; margin-bottom: .35em; }
.hero__lede { font-size: 1.2rem; max-width: 38rem; }
.hero__actions { display: flex; gap: .75rem; flex-wrap: wrap; margin: 1.75rem 0 1rem; }
.hint { color: var(--muted); }
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; border-top: 6px solid var(--navy); }
.pillars > div { padding: 1.5rem 1.5rem 1.5rem 0; }
.pillars > div + div { padding-left: 1.5rem; border-left: 1px solid var(--line); }
@media (max-width: 760px) { .pillars > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); } }

/* Buttons: safety orange means "go" */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .7rem 1.25rem; border-radius: 6px; font: 700 1rem/1 var(--body); text-decoration: none; cursor: pointer; border: 2px solid transparent; }
.btn--go { background: var(--orange); color: var(--navy); }
.btn--go:hover { background: #FF7E33; }
.btn--quiet { background: transparent; color: var(--text-strong); border-color: currentColor; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.button-row { display: flex; gap: .75rem; flex-wrap: wrap; }

/* Admin */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 1.5rem; margin-bottom: 1.5rem; }
.panel--narrow { max-width: 28rem; margin-inline: auto; }
.split { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; flex-wrap: wrap; }
.muted { color: var(--muted); }
.notice { padding: .85rem 1rem; border-radius: 6px; border-left: 6px solid; background: var(--surface); }
.notice--ok { border-color: var(--ok); }
.notice--error { border-color: var(--bad); }
.release { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.changelog, .result pre, .log-row pre { white-space: pre-wrap; background: var(--bg); padding: 1rem; border-radius: 6px; max-height: 20rem; overflow: auto; }
.progress-box { margin-top: 1.25rem; }
.progress-box progress { width: 100%; height: 14px; accent-color: var(--orange); }
.is-error { color: var(--bad); }
.result.is-error pre { border-left: 4px solid var(--bad); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--head); font-stretch: condensed; font-size: 1rem; color: var(--text-strong); }
.files a { display: block; }
.tag { display: inline-block; padding: .15rem .5rem; border-radius: 4px; font-size: .8rem; font-weight: 700; background: var(--bg); }
.tag--completed, .tag--installed { background: #DDF2E6; color: var(--ok); }
.tag--failed, .tag--rolled_back { background: #F9DEDC; color: var(--bad); }
.tag--running { background: #FFE6D5; color: #8A3A00; }

.form { display: grid; gap: 1rem; }
.form--inline { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: flex-end; }
.form label, .model-row label { display: grid; gap: .3rem; font-weight: 600; font-size: .9rem; }
.form .grow { flex: 1 1 22rem; }
.check { display: flex !important; align-items: center; gap: .4rem; font-weight: 500 !important; }
input[type=text], input[type=email], input[type=password], input[type=number], select, textarea {
  font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: .6rem .7rem; min-height: 44px; width: 100%;
}
input[type=number] { max-width: 9rem; }
.field-error { color: var(--bad); margin: -.5rem 0 0; }
.model-row { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: flex-end; padding: 1rem 0; border-top: 1px solid var(--line); }
.model-row__name { flex: 1 1 100%; display: grid; gap: .2rem; }
.add-model { margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--line); }

/* Spam guard: off-screen for people, visible to naive bots */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Pagination */
.pagination { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 1rem 0 0; }
.pagination li > a, .pagination li > span { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; padding: 0 .75rem; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; }
.pagination .active > span { background: var(--navy); color: #fff; border-color: var(--navy); }
.pagination .disabled > span { opacity: .45; }

/* Error pages */
.error-page { max-width: 40rem; padding: 3rem 0; }
.error-page__code { font: 800 clamp(4rem, 14vw, 8rem)/1 var(--head); font-stretch: condensed; color: var(--orange); margin: 0; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* Installer */
.installer h2 { margin-top: 1.5rem; }
.installer ul, .installer ol { padding-left: 1.25rem; }
.installer .steps li { margin-bottom: 1rem; }
.secret { white-space: pre-wrap; word-break: break-all; background: var(--bg); padding: .75rem 1rem; border-radius: 6px; border-left: 4px solid var(--orange); user-select: all; }
.installer details { margin: 1rem 0; }
.installer__foot { text-align: center; }
.panel--narrow.installer { max-width: 40rem; }

/* Virtual assistant */
.assistant { position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 20; display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; }
.assistant__panel { width: min(24rem, calc(100vw - 2rem)); max-height: min(34rem, 75vh); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.18); overflow: hidden; }
.assistant__panel[hidden] { display: none; }
.assistant__head { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; background: var(--navy); color: #fff; }
.assistant__head strong { flex: 1; font-family: var(--head); font-stretch: condensed; font-size: 1.1rem; }
.assistant__head .link { color: #fff; font-size: 1.1rem; min-width: 44px; min-height: 44px; }
.assistant__voice { font-size: .8rem; display: flex; gap: .3rem; align-items: center; }
.assistant__log { flex: 1; overflow-y: auto; padding: 1rem; display: grid; gap: .6rem; align-content: start; }
.assistant__msg { margin: 0; padding: .6rem .8rem; border-radius: 10px; max-width: 85%; white-space: pre-wrap; }
.assistant__msg--assistant { background: var(--bg); justify-self: start; }
.assistant__msg--user { background: var(--navy); color: #fff; justify-self: end; }
.assistant__form { display: flex; gap: .5rem; padding: .75rem; border-top: 1px solid var(--line); }
.assistant__form input { flex: 1; }
.assistant__foot { font-size: .8rem; padding: 0 .75rem .75rem; margin: 0; }
.hp-label { position: absolute; left: -10000px; }

/* Public pages */
.lede { font-size: 1.15rem; max-width: 40rem; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin: 1.5rem 0; }
.plan__price { font: 800 2rem/1.1 var(--head); font-stretch: condensed; color: var(--text-strong); }
.faq { border-bottom: 1px solid var(--line); padding: .75rem 0; }
.faq summary { font-weight: 700; cursor: pointer; min-height: 32px; }
.legal-doc { max-width: 48rem; }
.legal-doc h2 { margin-top: 1.75rem; font-size: 1.3rem; }
.legal-nav, .footer__links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.footer__links { margin-bottom: .5rem; }
.footer__legal { margin: .25rem 0; }

/* Eligibility notice */
.eligibility { border-color: var(--navy); margin: 1rem 0; line-height: 1.5; }

/* Portal and admin additions */
.checklist { list-style: none; padding: 0; display: grid; gap: .6rem; }
.checklist__item { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.tag--locked { background: var(--bg); color: var(--muted); }
.job-steps { list-style: none; padding: 0; display: grid; gap: 1rem; }
.job-step.is-locked { opacity: .6; }
.job-step.is-current { border-left: 6px solid var(--orange); }
.job-step.is-done { border-left: 6px solid var(--ok); }
.file-btn { position: relative; overflow: hidden; }
.file-btn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.thumbs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.thumbs img { width: 96px; height: 96px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.thumbs--review img { width: 200px; height: 150px; }
.thumbs--review figure { margin: 0; max-width: 200px; }
.quiz { border: 1px solid var(--line); border-radius: 8px; padding: .75rem 1rem; margin: 0; }
.quiz legend { font-weight: 700; padding: 0 .25rem; }
.thread { display: grid; gap: .6rem; max-height: 28rem; overflow-y: auto; margin-bottom: 1rem; }
.certificate { text-align: center; padding: 3rem 2rem; border: 6px double var(--navy); max-width: 46rem; margin: 0 auto; }
.certificate__brand { font: 800 1.4rem var(--head); font-stretch: condensed; }
.certificate__brand span { color: var(--orange); }
.certificate__name { font: 800 2.2rem var(--head); font-stretch: condensed; color: var(--text-strong); }
@media print { .masthead, .footer, .assistant, .muted:last-child { display: none !important; } .certificate { border-color: #000; } }

/* Header dropdown (Careers) */
.nav-menu { position: relative; }
.nav-menu > summary { list-style: none; cursor: pointer; color: #fff; font-weight: 600; padding: .4rem 0; border-bottom: 3px solid transparent; }
.nav-menu > summary::-webkit-details-marker { display: none; }
.nav-menu > summary::after { content: " ▾"; font-size: .8em; }
.nav-menu[open] > summary { border-bottom-color: var(--orange); }
.nav-menu__list { position: absolute; right: 0; top: calc(100% + .5rem); min-width: 17rem; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.18); padding: .5rem; z-index: 30; }
.nav-menu__list a { display: block; color: var(--text) !important; padding: .6rem .75rem; border-radius: 6px; border: 0 !important; }
.nav-menu__list a:hover { background: var(--bg); }
@media (max-width: 760px) { .nav-menu__list { position: static; box-shadow: none; margin-top: .5rem; } }

/* Assistant launcher no longer covers page content or tabs */
body.has-assistant { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
.assistant__toggle { width: 56px; height: 56px; min-height: 56px; padding: 0; border-radius: 50%; font-size: 0; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.assistant__toggle::before { content: "?"; font: 800 1.6rem/1 var(--head); }
.assistant__toggle[aria-expanded="true"]::before { content: "✕"; font-size: 1.3rem; }
@media (max-width: 600px) {
  .assistant { right: .75rem; bottom: calc(.75rem + env(safe-area-inset-bottom, 0px)); }
  .assistant__panel { position: fixed; left: 0; right: 0; bottom: 0; width: 100%; max-height: 80vh; border-radius: 14px 14px 0 0; }
}
@media (max-width: 600px) { .assistant.is-open .assistant__toggle { display: none; } }

/* Alerts and secure upload */
.badge { display: inline-block; min-width: 1.4rem; padding: 0 .35rem; border-radius: 999px; background: var(--orange); color: var(--navy); font-size: .75rem; font-weight: 800; text-align: center; line-height: 1.4rem; }
tr.is-unread td { font-weight: 600; }
.scan { border: 1px dashed var(--line); border-radius: 10px; padding: 1rem; display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.scan legend { font-weight: 700; padding: 0 .25rem; }
.scan__preview { flex: 1 1 100%; display: flex; gap: .75rem; align-items: center; }
.scan__preview img { width: 120px; height: 80px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }

/* Avatar studio */
.avatar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.avatar-card { margin: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.avatar-card img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.avatar-card figcaption { padding: .75rem; display: grid; gap: .35rem; font-size: .9rem; }
.avatar-card code { font-size: .7rem; word-break: break-all; }

/* Solution pages */
.eyebrow { font: 700 .95rem var(--body); color: var(--orange); text-transform: none; display: flex; gap: .5rem; align-items: center; margin: 0 0 .75rem; }
.steps-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 0 0 2rem; }
.step-card { background: var(--surface); border: 1px solid var(--line); border-top: 6px solid var(--orange); border-radius: 8px; padding: 1.25rem; }
.step-card__n { display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; margin-bottom: .5rem; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem 1.5rem; }
.feature-grid h3 { margin-bottom: .25rem; }
.feature-grid p { margin: 0; }
.cta-band { text-align: center; background: var(--navy); color: #fff; border: 0; }
.cta-band h2, .cta-band p { color: #fff; }

/* Marketplace: Find loads, Post a load, bids, rate confirmations */
.nav-cta { background: var(--orange); color: var(--navy) !important; padding: .35rem .8rem; border-radius: 6px; font-weight: 800; }
.subnav { display: flex; gap: .25rem; flex-wrap: wrap; margin: 0 0 1.25rem; border-bottom: 2px solid var(--line); }
.subnav a { padding: .6rem .9rem; color: var(--text); text-decoration: none; font-weight: 700; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.subnav a.is-active, .subnav a:hover { color: var(--text-strong); border-bottom-color: var(--orange); }
.form .split > label { flex: 1 1 12rem; }
.choice { display: flex; gap: .5rem; flex-wrap: wrap; border: 0; padding: 0; }
.choice legend { font-weight: 700; margin-bottom: .4rem; }
.choice__item { flex: 1 1 8rem; border: 2px solid var(--line); border-radius: 8px; padding: .75rem; font-weight: 700; cursor: pointer; }
.choice__item:has(input:checked) { border-color: var(--orange); background: color-mix(in srgb, var(--orange) 10%, var(--surface)); }
.dash-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; }
.dash-tile { display: grid; gap: .35rem; background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--navy-2); border-radius: 8px; padding: 1.1rem; text-decoration: none; color: var(--text); }
.dash-tile strong { font: 800 1.5rem/1.1 var(--head); color: var(--text-strong); }
.dash-tile:hover { border-left-color: var(--orange); }
.verify-wait { border-left: 6px solid var(--orange); }
.search-form { display: grid; gap: .75rem; padding: 1rem; }
.search-form__row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; }
.search-form__row > label { flex: 1 1 9rem; display: grid; gap: .25rem; font-weight: 600; font-size: .9rem; }
.search-form__row > label:has(input[name="origin"]), .search-form__row > label:has(input[name="dest"]) { flex: 3 1 14rem; }
.search-form__row--end { justify-content: flex-end; }
.search-form__row--end > label { flex: 0 1 12rem; }
.search-form__more summary { cursor: pointer; font-weight: 700; padding: .25rem 0; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; border: 0; padding: 0; margin: .5rem 0; }
.chips legend { font-weight: 600; font-size: .9rem; margin-bottom: .3rem; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: .35rem .75rem; cursor: pointer; font-size: .9rem; display: inline-flex; gap: .35rem; align-items: center; min-height: 40px; }
.chip:has(input:checked) { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn--sm { min-height: 38px; padding: .4rem .8rem; font-size: .9rem; }
table.loads td { vertical-align: top; }
.load-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 1.25rem; align-items: start; }
.action-panel { position: sticky; top: 1rem; display: grid; gap: .75rem; }
.action-panel h2 { margin: .25rem 0 0; }
.price { font: 800 2rem/1 var(--head); color: var(--text-strong); margin: 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .9rem 1.25rem; margin: 0 0 1rem; }
.facts dt { font-size: .85rem; color: var(--muted); font-weight: 600; }
.facts dd { margin: .1rem 0 0; font-weight: 600; }
.prewrap { white-space: pre-line; }
.bid-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.bid-list li { display: flex; justify-content: space-between; gap: .75rem; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: .65rem .75rem; }
.bid-list li.is-best { border-color: var(--ok); }
.link--danger { color: var(--bad); }
.panel--alert { border-left: 6px solid var(--orange); }
.sample { background: var(--bg); padding: .75rem; border-radius: 6px; overflow-x: auto; font-size: .85rem; }
[data-post-load]:has(input[value="instant"]:checked) [data-mode="bids"],
[data-post-load]:has(input[value="bids"]:checked) [data-mode="instant"] { display: none; }
.ratecon { background: #fff; color: #1a1a1a; border: 1px solid var(--line); border-radius: 8px; padding: 2rem; max-width: 52rem; }
.ratecon__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; border-bottom: 4px solid var(--orange); padding-bottom: 1rem; margin-bottom: 1rem; }
.ratecon__head .wordmark { color: #0F2742; }
.ratecon h1, .ratecon h2 { color: #0F2742; }
.ratecon__parties { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ratecon__table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.ratecon__table th, .ratecon__table td { text-align: left; padding: .5rem; border-bottom: 1px solid #d5d9de; vertical-align: top; }
.ratecon__table th { width: 32%; }
.ratecon__total td, .ratecon__total th { font-size: 1.15rem; font-weight: 800; }
.ratecon__sign { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; border-top: 1px solid #d5d9de; padding-top: 1rem; }
@media (max-width: 760px) {
  .load-layout, .ratecon__parties, .ratecon__sign { grid-template-columns: 1fr; }
  .action-panel { position: static; }
  table.loads thead { display: none; }
  table.loads tr { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem .75rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
  table.loads td { border: 0; padding: 0; }
  table.loads td::before { content: attr(data-label); display: block; font-size: .75rem; color: var(--muted); }
  table.loads td[data-label="Lane"] { grid-column: 1 / -1; }
}
@media print { .no-print, .subnav { display: none !important; } body.printable .page { padding: 0; } .ratecon { border: 0; padding: 0; } }

/* Field tracking: shifts, live map, check-ins, customer tracking page */
.shift__status { font-weight: 700; font-size: 1.1rem; display: flex; align-items: center; gap: .5rem; margin: 0 0 .5rem; }
.dot { display: inline-block; width: .8rem; height: .8rem; border-radius: 50%; background: var(--muted); flex: none; }
.dot--ok { background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 25%, transparent); }
.dot--bad { background: var(--bad); box-shadow: 0 0 0 4px color-mix(in srgb, var(--bad) 25%, transparent); }
.geo-help { border-left: 4px solid var(--orange); padding-left: .75rem; margin-top: .75rem; }
.share-box { margin-top: .75rem; display: grid; gap: .5rem; }
.share-box input { width: 100%; font-size: .9rem; }
.timeline { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .4rem; }
.timeline time { display: inline-block; min-width: 8.5rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.map { width: 100%; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.map--live { height: min(70vh, 640px); }
.map--track { height: min(62vh, 520px); }
.live { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1rem; align-items: start; margin-bottom: 1rem; }
.live__list { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: .75rem; max-height: min(70vh, 640px); overflow: auto; }
.live__people { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.live__person { display: grid; gap: .15rem; padding: .6rem; border-radius: 6px; border: 1px solid var(--line); font-size: .9rem; }
.live__person.is-away { border-color: var(--bad); border-left-width: 5px; }
.track { display: grid; gap: .5rem; }
.track h1 { margin: 0; }
.track__meta { font-weight: 700; margin: 0; }
.leaflet-container { font: inherit; }
@media (max-width: 760px) { .live { grid-template-columns: 1fr; } .live__list { max-height: none; } }

/* Location prompt for signed-in team members */
.locbar { background: var(--navy); color: #fff; padding: .75rem 1.25rem; display: grid; gap: .4rem; }
.locbar p { margin: 0; max-width: 70rem; }
.locbar .link { color: #fff; }
.locbar__steps { font-size: .9rem; opacity: .9; }

/* Scans and Jobs Available */
.scan-preview { max-width: min(100%, 360px); border: 1px solid var(--line); border-radius: 6px; }
.scan-bar { width: 100%; max-width: 360px; }
.scan-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 1.25rem; align-items: start; }
.scan-image { margin: 0; position: sticky; top: 1rem; }
.scan-image img { width: 100%; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.checks { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .35rem; }
.checks li { padding: .5rem .75rem; border-radius: 6px; border-left: 5px solid var(--line); background: var(--surface); }
.checks .check-ok { border-left-color: var(--ok); }
.checks .check-warn { border-left-color: var(--orange); }
.checks .check-bad { border-left-color: var(--bad); font-weight: 700; }
fieldset.plain { border: 0; padding: 0; margin: 0; display: grid; gap: .75rem; min-width: 0; }
table.items { width: 100%; }
table.items input { width: 100%; }
.input--sm { max-width: 9rem; }
.print-scan { max-width: 100%; margin-top: 1rem; border: 1px solid #d5d9de; }
@media (max-width: 760px) { .scan-layout { grid-template-columns: 1fr; } .scan-image { position: static; } }

/* Messages */
.inbox { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .4rem; }
.inbox__item a { display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: center; padding: .85rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--text); }
.inbox__item a .muted { flex: 1 1 12rem; }
.inbox__item.is-unread a { border-left: 5px solid var(--orange); }
.inbox__item.is-unread strong { color: var(--text-strong); }
.chat { display: grid; gap: .5rem; max-width: 52rem; }
.chat__list { list-style: none; margin: 0; padding: .75rem; display: flex; flex-direction: column; gap: .6rem; max-height: min(60vh, 640px); overflow-y: auto; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; overscroll-behavior: contain; }
.chat__msg { align-self: flex-start; max-width: min(85%, 34rem); background: var(--surface); border: 1px solid var(--line); border-radius: 12px 12px 12px 4px; padding: .55rem .8rem; }
.chat__msg--mine { align-self: flex-end; background: var(--navy); color: #fff; border-color: var(--navy); border-radius: 12px 12px 4px 12px; }
.chat__msg--mine .chat__who, .chat__msg--mine .chat__at { color: rgba(255,255,255,.75); }
.chat__who { display: block; font-size: .78rem; font-weight: 700; color: var(--muted); }
.chat__body { margin: .15rem 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat__en, .translation { display: block; margin: .3rem 0 0; padding-top: .3rem; border-top: 1px dashed var(--line); font-size: .92rem; }
.chat__at { font-size: .75rem; color: var(--muted); }
.chat__empty { color: var(--muted); text-align: center; padding: 1rem; }
.chat__seen { text-align: right; margin: 0; font-size: .85rem; }
.chat__form { display: flex; gap: .5rem; align-items: flex-end; position: sticky; bottom: 0; background: var(--bg); padding: .25rem 0; }
.chat__form textarea { flex: 1; min-height: 48px; resize: vertical; }
.call-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; max-height: 28rem; overflow: auto; }

/* Website chat: clean panel, tap-to-answer choices, one-tap human contact */
.assistant__head { display: flex; align-items: center; gap: .5rem; }
.assistant__head strong { flex: 1; }
.assistant__human { border: 1px solid var(--line); background: transparent; color: var(--text-strong); border-radius: 999px; padding: .3rem .75rem; font: 600 .85rem var(--body); cursor: pointer; min-height: 36px; }
.assistant__people { display: flex; flex-wrap: wrap; gap: .4rem; padding: .5rem .75rem; border-bottom: 1px solid var(--line); background: var(--bg); }
.assistant__chips { display: flex; flex-wrap: wrap; gap: .4rem; padding: .25rem .75rem .5rem; }
.chip-btn { border: 2px solid var(--navy-2); background: var(--surface); color: var(--text-strong); border-radius: 999px; padding: .45rem .9rem; min-height: 40px; font: 600 .92rem var(--body); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; touch-action: manipulation; }
.chip-btn:hover, .chip-btn:focus-visible { background: var(--navy); color: #fff; }
.chip-btn--link { border-color: var(--orange); background: var(--orange); color: var(--navy); }
.assistant__note { flex-basis: 100%; margin: .2rem 0 0; font-size: .8rem; color: var(--muted); }
.assistant__msg.is-typing::after { content: "•••"; letter-spacing: .2em; animation: tm-typing 1s infinite; }
@keyframes tm-typing { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .assistant__msg.is-typing::after { animation: none; } }
.assistant__foot .assistant__voice { font-size: .8rem; }
.funnel { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.funnel li { display: grid; grid-template-columns: minmax(10rem, 1.4fr) 2fr auto auto; gap: .6rem; align-items: center; }
.funnel meter { width: 100%; height: 1rem; }
.callback-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding: .75rem 1rem; background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--orange); border-radius: 8px; }
.subnav--small { border: 0; margin: 0; }
@media (max-width: 600px) { .funnel li { grid-template-columns: 1fr auto; } .funnel meter { grid-column: 1 / -1; } }
.assistant__human { color: #fff; border-color: rgba(255,255,255,.6); }
.assistant__human:hover, .assistant__human:focus-visible { background: rgba(255,255,255,.15); }
.assistant__people[hidden] { display: none; }
.assistant__panel { height: min(36rem, 80vh); max-height: none; }
.assistant__log { min-height: 8rem; }
.assistant__chips { flex: none; max-height: 40%; overflow-y: auto; }
.assistant__chips:empty { display: none; }
@media (max-width: 600px) { .assistant__panel { height: 85vh; max-height: none; } .chip-btn { padding: .4rem .8rem; } }
.assistant__foot { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; } .assistant__foot .assistant__voice { display: inline-flex; align-items: center; gap: .25rem; }

/* Growth briefing */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .75rem; margin-bottom: 1.25rem; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: .9rem 1rem; display: grid; gap: .15rem; }
.kpi__label { font-size: .85rem; color: var(--muted); }
.kpi__value { font: 800 1.7rem/1.1 var(--head); color: var(--text-strong); font-variant-numeric: tabular-nums; }
.kpi__change { font-size: .82rem; color: var(--muted); }
.kpi__change.is-up { color: var(--ok); }
.kpi__change.is-down { color: var(--bad); }
.actions { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.action { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: .75rem 1rem; border: 1px solid var(--line); border-left: 6px solid var(--line); border-radius: 8px; background: var(--surface); }
.action p { margin: .15rem 0 0; color: var(--muted); }
.action__area { display: block; font-size: .78rem; color: var(--muted); }
.action--p1 { border-left-color: var(--bad); }
.action--p2 { border-left-color: var(--orange); }
.briefing { border-left: 6px solid var(--navy-2); }

/* Verify a photo */
.verify__badge { display: inline-block; background: var(--ok); color: #fff; font-weight: 800; padding: .3rem .8rem; border-radius: 999px; margin: 0 0 .5rem; }
.verify__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.verify__img { width: 100%; border-radius: 8px; border: 1px solid var(--line); }
@media (max-width: 760px) { .verify__grid { grid-template-columns: 1fr; } }

/* TruckersMove camera */
body.camera-page { margin: 0; background: #000; color: #fff; overscroll-behavior: none; }
.cam { position: fixed; inset: 0; display: flex; flex-direction: column; background: #000; }
.cam__top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: calc(.5rem + env(safe-area-inset-top, 0px)) .75rem .5rem; background: #fff; color: #111; }
.cam__icon { width: 44px; height: 44px; display: grid; place-items: center; font-size: 1.35rem; background: none; border: 0; color: #111; text-decoration: none; cursor: pointer; }
.cam__icon[aria-pressed="true"] { color: var(--orange); }
.cam__verify { border: 1.5px solid #333; border-radius: 999px; padding: .3rem .8rem; color: #111; text-decoration: none; font-weight: 700; font-size: .9rem; }
.cam__view { position: relative; flex: 1; overflow: hidden; }
.cam__view video { width: 100%; height: 100%; object-fit: cover; display: block; background: #111; }
.cam__tag { position: absolute; top: .75rem; left: .75rem; background: #2589E6; color: #fff; font-weight: 700; padding: .3rem .75rem; border-radius: 4px; }
.cam__mark { position: absolute; left: 0; right: 0; bottom: 0; padding: 3rem .9rem .8rem; background: linear-gradient(transparent, rgba(0,0,0,.55)); text-shadow: 0 1px 2px rgba(0,0,0,.7); }
.cam__mark p { margin: .1rem 0; font-size: .95rem; }
.cam__clock { display: flex; align-items: center; gap: .35rem; }
.cam__clock strong { font: 800 3.1rem/1 "Roboto Condensed", "Arial Narrow", sans-serif; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cam__clock sup { font-size: .8rem; align-self: flex-start; margin-top: .35rem; }
.cam__bar { width: 3px; align-self: stretch; background: var(--orange); margin: .2rem .35rem; }
.cam__date { display: grid; font-size: .95rem; }
.cam__small { font-size: .8rem !important; opacity: .9; }
.cam__brand { position: absolute; right: .9rem; bottom: .8rem; font-weight: 800; font-size: 1.15rem; text-align: right; line-height: 1.1; }
.cam__brand small { display: block; font-weight: 400; font-size: .72rem; }
.cam__brand b { color: var(--orange); }
.cam__toast { position: absolute; top: 3.4rem; left: 50%; transform: translateX(-50%); max-width: 90%; background: rgba(15,39,66,.92); padding: .5rem .9rem; border-radius: 8px; text-align: center; margin: 0; }
.cam__bottom { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom, 0px)); background: #fff; color: #111; }
.cam__last img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; border: 2px solid #ddd; }
.cam__shutter { width: 76px; height: 76px; border-radius: 50%; border: 6px solid #111; background: #fff; cursor: pointer; touch-action: manipulation; }
.cam__shutter:active, .cam__shutter.is-busy { background: #ddd; transform: scale(.94); }
.cam__shutter:disabled { opacity: .4; }
.cam__count { justify-self: end; display: grid; justify-items: end; gap: .3rem; font-size: .9rem; }
.cam__done { background: var(--orange); color: var(--navy); font-weight: 800; padding: .35rem .9rem; border-radius: 999px; text-decoration: none; }
.cam.is-flash .cam__view::after { content: ""; position: absolute; inset: 0; background: #fff; opacity: .7; }
.cam__fallback { position: absolute; inset: auto 0 0 0; background: #fff; color: #111; padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom, 0px)); }
.cam__last[hidden] { display: block; visibility: hidden; }
.cam__icon[hidden] { display: grid; visibility: hidden; }
.cam__bottom > :first-child { justify-self: start; }
.map--load { height: min(50vh, 420px); }
.driver-map { margin-bottom: 1rem; }
.driver-share { border-top: 1px solid var(--line); padding-top: .75rem; }

/* Documents */
.doc-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.doc-text { font: .92rem/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; min-height: 30rem; }
.doc-preview { max-height: 32rem; overflow: auto; border: 1px solid var(--line); border-radius: 6px; padding: .75rem 1rem; background: var(--bg); font-size: .92rem; }
.new-doc { position: relative; }
.new-doc summary { list-style: none; cursor: pointer; }
.new-doc__menu { position: absolute; right: 0; z-index: 5; display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; min-width: 16rem; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.new-doc__menu a { padding: .65rem .9rem; text-decoration: none; color: var(--text-strong); }
.new-doc__menu a:hover { background: var(--bg); }
.sign-block { border-top: 2px solid var(--line); margin-top: 1.5rem; padding-top: 1rem; }
.sig-name { font: italic 700 1.3rem Georgia, "Times New Roman", serif; }
.sign-form { border: 2px solid var(--orange); border-radius: 8px; padding: 1rem; margin-top: 1rem; }
@media (max-width: 900px) { .doc-layout { grid-template-columns: 1fr; } }

/* Social */
.social-inbox { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.social-item { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--line); border-radius: 8px; padding: .8rem 1rem; display: grid; gap: .35rem; }
.social-item.is-lead { border-left-color: var(--ok); }
.social-item.is-urgent { border-left-color: var(--bad); }
.social-item__head { display: flex; flex-wrap: wrap; gap: .4rem .7rem; align-items: center; }
.social-item__text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.social-item__reply { margin: 0; padding: .4rem .6rem; background: var(--bg); border-radius: 6px; }
.social-reply { display: grid; gap: .4rem; }

/* 2.7 W-9 signing and 1099-NEC forms */
.w9-cert { border: 1px solid var(--line); border-radius: 8px; padding: 1rem; margin: 1rem 0; }
.w9-cert legend { font-weight: 700; padding: 0 .4rem; }
.w9-cert ol { padding-left: 1.2rem; font-size: .92rem; }
.sig-input { font-family: "Brush Script MT", "Segoe Script", cursive; font-size: 1.35rem; }
.tax-act { display: inline-flex; gap: .35rem; align-items: center; margin: .25rem 0; }
.tax-act input { max-width: 10rem; }
.btn--small { padding: .3rem .65rem; font-size: .85rem; }
.taxform { max-width: 820px; margin: 0 auto; border: 2px solid #111; background: #fff; color: #111; padding: 1rem; }
.taxform__head { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: .75rem; border-bottom: 2px solid #111; padding-bottom: .6rem; margin-bottom: .6rem; }
.taxform__grid { display: grid; grid-template-columns: 2fr 1fr; border-top: 1px solid #111; border-left: 1px solid #111; }
.taxform__box { border-right: 1px solid #111; border-bottom: 1px solid #111; padding: .4rem .55rem; min-height: 3.2rem; }
.taxform__box h3 { font-size: .7rem; font-weight: 600; margin: 0 0 .2rem; text-transform: none; letter-spacing: 0; }
.taxform__box p { margin: 0; font-family: ui-monospace, Menlo, Consolas, monospace; }
.taxform__amount { font-size: 1.2rem; font-weight: 700; }
.taxform__note { font-size: .78rem; margin-top: .75rem; }
@media (max-width: 600px) { .taxform__grid, .taxform__head { grid-template-columns: 1fr; } }
@media print { .taxform { border-width: 1px; max-width: none; } }

/* 2.8 Work orders: site lookup and job-site map */
.site-lookup { display: grid; gap: .4rem; }
.site-lookup__results { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 6px; max-height: 14rem; overflow: auto; }
.site-lookup__results[hidden], .site-lookup__map[hidden] { display: none; }
.site-lookup__pick { display: block; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: .55rem .7rem; font: inherit; color: inherit; cursor: pointer; }
.site-lookup__pick:hover, .site-lookup__pick:focus { background: var(--surface); }
.site-lookup__map, .job-site-map { height: 240px; border-radius: 8px; border: 1px solid var(--line); }
.plain-list { list-style: none; padding: 0; }
.plain-list li { padding: .25rem 0; border-bottom: 1px solid var(--line); }
.site-lookup [data-site-find] { justify-self: start; }
.site-lookup [data-site-status]:empty { display: none; }

/* 2.9 Suggested rate on Post a load */
.rate-guide { border: 1px dashed var(--line); border-radius: 8px; padding: .75rem; margin: .5rem 0; display: grid; gap: .4rem; }
.rate-guide [data-rate-guide-go] { justify-self: start; }
.rate-guide__out[hidden] { display: none; }
.rate-guide__range strong { font-size: 1.35rem; }
.rate-guide [data-rate-guide-msg]:empty { display: none; }

/* 2.11 App feel: touch, safe areas, motion */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
a, button, .btn, summary, label.check, input[type=checkbox], input[type=radio], select { touch-action: manipulation; -webkit-tap-highlight-color: rgba(255, 106, 0, .18); }
.btn--small { min-height: 38px; }
@media (pointer: coarse) {
  .btn--sm, .btn--small, .chip-btn { min-height: 44px; }
  summary { min-height: 44px; display: list-item; padding: .6rem 0; }
  .plain-list a, .table-wrap td a { display: inline-block; padding: .6rem 0; }
}
.page { padding-left: max(1.25rem, env(safe-area-inset-left, 0px)); padding-right: max(1.25rem, env(safe-area-inset-right, 0px)); }
@media (display-mode: standalone) {
  body { overscroll-behavior-y: none; }
  .masthead { position: sticky; top: 0; z-index: 15; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
img { max-width: 100%; height: auto; }
.table-wrap { -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
