/* Honest Load Board only. Values come from the approved app drawing. */
:root {
  --hlb-navy: #020C1F;
  --hlb-orange: #FE7905;
  --hlb-paper: #f3f5f7;
  --hlb-blue-check: #00A8E1;
  --hlb-on-soft: #e2f4e8;
  --hlb-on-ink: #11632c;
  --hlb-radius-button: 20px;
  --hlb-radius-card: 22px;
  --hlb-radius-field: 18px;
  --hlb-radius-tag: 999px;
  --hlb-radius-bar: 35px;
  --hlb-radius-tab: 29px;
  --hlb-text-title: 33px;
  --hlb-text-body: 17px;
  --hlb-text-small: 15px;
  --hlb-text-button: 17px;
  --hlb-text-tab: 11.5px;
  --hlb-button-height: 50px;
  --hlb-quiet-height: 44px;
  --hlb-bar-height: 70px;
  --hlb-tab-height: 58px;
  --hlb-bar-gap: 12px;
  --hlb-nav-clearance: calc(var(--hlb-bar-height) + 2 * var(--hlb-bar-gap) + env(safe-area-inset-bottom));
}
html { background: var(--hlb-navy); }
html:has(body.hlb-settings-page), html:has(body.hlb-post-page), html:has(body .hlb-menu) { background: var(--hlb-bg, #fff); }
html body [hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--hlb-paper);
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: var(--hlb-text-body);
}
html:root body:is(.hlb-post-page,.hlb-settings-page), html:root body:has(.hlb-menu) { background: var(--hlb-bg, #fff); min-height: 100svh; }
/* These aliases belong to the board, including the two broker workspaces.
   Override the family palette at its source instead of patching individual pages. */
html:root[data-style][data-theme], html:root[data-theme], html:root[data-palette], html:root {
  --hlb-bg: var(--hlb-paper); --hlb-surface: #fff; --hlb-ink: var(--hlb-navy);
  --paper: var(--hlb-paper); --white: #fff; --navy: var(--hlb-navy);
  --orange: var(--hlb-orange); --muted: #556175; --line: #dce2e9;
  --ui-bg: var(--hlb-paper); --ui-panel: #fff; --ui-card: #fff; --ui-nav: #fff; --ui-soft: var(--hlb-paper);
  --ui-text: var(--hlb-navy); --ui-muted: #556175; --ui-line: #dce2e9;
  --ui-accent: var(--hlb-orange); --ui-gold: var(--hlb-orange);
  --ui-button-text: var(--hlb-navy); --ui-control-line: #dce2e9;
  --palette-bg: var(--hlb-paper); --palette-panel: #fff;
  --palette-text: var(--hlb-navy); --palette-accent: var(--hlb-orange);
  --family-bg: var(--hlb-paper); --family-panel: #fff; --family-soft: var(--hlb-paper);
  --family-text: var(--hlb-navy); --family-accent: var(--hlb-orange);
  --ooa-nav-current: none; --ooa-nav-mark: var(--hlb-orange);
  --ooa-bar-1: none; --ooa-bar-2: none; --ooa-bar-3: none;
  --card: #fff; --soft: var(--hlb-paper); --text: var(--hlb-navy);
  --ink: var(--hlb-navy); --forest: var(--hlb-orange);
  color-scheme: light;
}
html:root body { color: var(--hlb-navy); background-color: var(--hlb-paper); }
html:root body * { box-sizing: border-box; }
/* Deliberately outweigh family-controls and page-specific rules, once here. */
html:root body :is(button,a[href],[role="button"],summary) {
  border-radius: var(--hlb-radius-button) !important;
  text-decoration: none !important;
}
html:root body :is(input,select,textarea) { border-radius: var(--hlb-radius-field) !important; }
html:root body :is(.card,[class$="-card"],[class*="-card "],dialog,fieldset,figure,table,video,pre,.scorecard,.truck-row,.example-journey,.load-row,.weekly-lane-row,.choice-row,.check-row,.key-box,.tms-key-row,.load-offers,.interval-cap,.credit-history-item,.connection-row) {
  border-radius: var(--hlb-radius-card) !important;
}
html:root body :is(img,.notice,.error,.booking-note,.checkin-progress) { border-radius: var(--hlb-radius-field); }
html:root body :is(.hlb-person-avatar,.hlb-person-picture) { border-radius: 50% !important; }
/* A logo is never rounded or cropped: the owner's artwork shows whole. */
html:root body :is(header.site-header .brand img, img[src*="lockup"], img[src*="logo"]) { border-radius: 0 !important; }
html:root body :is(main,section,form,.header-inner,.post-workspace,.backend-main) { min-width: 0; max-width: 100%; }
html:root body :is(input,select,textarea,button) { max-width: 100%; }
/* Ordinary links keep their text geometry. Only named actions receive boxes. */
html:root body :is(.front-door-footer,.site-footer,.footer-links,.hlb-page-links,.lp-note,.hero-note) a[href] {
  display: inline; height: auto; min-height: 0 !important; min-block-size: 0 !important;
  max-height: none; padding: 0 !important; margin: 0 6px;
  background: transparent !important; color: var(--ui-text); border: 0 !important;
  border-radius: 0 !important; box-shadow: none !important;
  font-size: var(--hlb-text-small) !important; line-height: 1.5;
  text-decoration: none !important;
}
html:root body :is(.front-door-footer,.site-footer,.footer-links,.hlb-page-links,.lp-note,.hero-note) a[href]:is(:hover,:focus-visible) {
  text-decoration: underline !important; text-underline-offset: 3px;
}
html:root body :is(.front-door-footer,.footer-links,.hlb-page-links) { gap: 16px; flex-wrap: wrap; }
/* Sentence links on the reading pages are the sole text-link exception. */
html:root body .page-copy :is(p,li) a[href] { display: inline; min-height: auto !important; padding: 0; text-decoration: underline !important; }
html:root body :is(.login-button,.book-button,.go-btn-primary,.me-cta-primary,.trucks-cta-primary) {
  background: var(--hlb-orange); color: var(--hlb-navy); border-color: var(--hlb-orange);
}
html:root body :is(.login-swap,.proof-button,.go-btn-quiet,.text-button,.settings-back,.hlb-action,summary) {
  color: var(--hlb-navy); background: #fff; border: 1px solid var(--line); padding: 12px 16px; text-decoration: none;
}
html:root body main.info a[href]:not(.hero-cta,.card-action-link,.hlb-action,.proof-button,.book-button,.login-button,.login-swap) {
  color: var(--ui-text); font-weight: 650;
}
html:root body header.site-header { background: var(--hlb-navy); min-height: 68px; }
@media (min-width: 768px) {
  html:root body header.site-header .suite-header .suite-signin { width: auto; min-width: 120px; max-width: none; }
}
.hlb-theme-label { display: none; }
html:root body .card-meta { flex-wrap: wrap; align-items: flex-start; }
@media (max-width: 767px) {
  html:root body :is(p:not(.go-pay-amount):not(.total-amount):not(.price):not(.detail-price):not(.detail-broker),span,label,small,a,button,input,select,textarea,li,dt,dd,th,td,summary,code,output) {
    font-size: max(var(--hlb-text-small), 1em) !important;
  }
  html:root body :is(p:not(.go-pay-amount):not(.total-amount):not(.price):not(.detail-price):not(.detail-broker),label,legend,li,dt,dd,th,td) { font-size: max(var(--hlb-text-body), 1em) !important; }
  html:root body .hlb-app-tab, html:root body .hlb-app-tab span { font-size: var(--hlb-text-tab) !important; }
  /* Beat the 15px floor. Bottom-bar words are the one exception, at the drawing size. */
  html:root body nav#hlb-app-nav a.hlb-app-tab,
  html:root body nav#hlb-app-nav a.hlb-app-tab span {
    font-size: 11.5px !important; font-weight: 600; line-height: 1.1;
  }
  html:root body nav#hlb-app-nav a.hlb-app-tab svg { width: 25px; height: 25px; }
  html:root body nav#hlb-app-nav a.hlb-app-tab[aria-current="page"] { color: #FE7905; background: #fff1e4; }
  html:root body nav#hlb-app-nav a.hlb-app-tab[aria-current="page"] span { color: #b84700; }
  html:root body header.site-header {
    position: relative; height: 56px; min-height: 56px; max-height: 56px;
    top: 0; padding: 0; margin: 0; border: 0; overflow: hidden;
  }
  html:root[data-page] body.hlb-post-page, html:root body.hlb-settings-page { padding-top: 0; }
  /* One reserve for every page, including flex Home and long lists. The last
     control can always scroll fully above the floating bar. */
  html:root[data-page] body.hlb-has-app-nav, html:root body.hlb-has-app-nav { padding-bottom: var(--hlb-nav-clearance) !important; }
  html:has(body.hlb-has-app-nav) { scroll-padding-bottom: var(--hlb-nav-clearance); }
  body.hlb-has-app-nav :is(button,a,input,select,textarea,summary) { scroll-margin-bottom: var(--hlb-nav-clearance); }
  html:root body header.site-header .header-inner,
  html:root body header.site-header:has(#board-signin-link) .header-inner {
    display: flex; align-items: center; height: 56px; min-height: 0; padding: 8px 16px; margin: 0;
  }
  html:root body header.site-header :is(.header-actions,.header-company,.tagline,.byline) { display: none !important; }
  /* Theme stays off the phone top row. The shared sign-in stays when nobody is signed in. */
  html:root body header.site-header button.suite-theme { display: none !important; }
  html:root:not([data-board-account="out"]) body header.site-header nav.suite-header { display: none !important; }
  html:root[data-board-account="out"] body header.site-header .header-inner {
    justify-content: space-between; gap: 8px; padding: 6px 10px;
  }
  html:root[data-board-account="out"] body header.site-header .brand-block { min-width: 0; flex: 1 1 auto; }
  html:root[data-board-account="out"] body header.site-header .brand {
    width: auto; max-width: 148px; min-width: 0; flex: 1 1 auto; flex-shrink: 1;
  }
  html:root[data-board-account="out"] body header.site-header nav.suite-header {
    position: static !important; display: flex !important; align-items: center; justify-content: flex-end;
    width: auto !important; max-width: none !important; height: 44px; min-height: 44px; margin: 0 !important;
    padding: 0 !important; left: auto !important; right: auto !important; top: auto !important; gap: 0 !important; flex: 0 0 auto;
  }
  html:root[data-board-account="out"] body header.site-header nav.suite-header .suite-signin {
    position: static !important; display: inline-flex !important; visibility: visible !important;
    width: auto !important; min-width: 0 !important; max-width: none !important; height: 44px !important;
    min-height: 44px !important; padding: 0 10px !important; background: #fff !important; color: var(--hlb-navy) !important;
    border: 1px solid #dce2e9 !important; font-size: 17px !important; font-weight: 650; flex: 0 0 auto;
  }
  html:root body td.broker-row-lane { min-width: 0; overflow: hidden; }
  html:root body td.broker-row-lane a.broker-load-link.hlb-tap-row {
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; max-width: 100%;
  }
  html:root body header.site-header .brand { width: 198px; max-width: 100%; height: 40px; padding: 0; margin: 0; overflow: visible; flex-shrink: 0; }
  html:root body header.site-header .brand img { display: block; width: 100%; height: 40px; max-height: 40px; object-fit: contain; object-position: left center; padding: 0; border-radius: 0; }
  html:root body .hlb-menu { padding: 18px 22px; }
  html:root body .hlb-menu-list { margin: 12px 0 0; }
  html:root body .hlb-menu-list :is(a,button) { justify-content: space-between; padding: 12px 16px; }
  html:root body .hlb-menu-account { display: flex; flex-direction: column; width: 100%; margin: 0; }
  html:root body .hlb-menu-account .suite-header { position: static; display: flex; flex-direction: column; width: 100%; height: auto; padding: 0; gap: 0; }
  html:root body .hlb-menu-account :is(.suite-theme,.suite-control) {
    position: static; display: flex !important; align-items: center; justify-content: flex-start;
    width: 100%; min-width: 0; max-width: 100%; height: 56px; margin: 0; padding: 12px 16px;
    background: transparent; color: var(--hlb-navy); border: 0; box-shadow: none; font-weight: 700;
  }
  html:root body .hlb-menu-account .suite-signin { display: none !important; }
  html:root body .hlb-menu-account .suite-theme svg { display: none; }
  html:root body .hlb-menu-account .hlb-theme-label { display: inline; }
  html:root body.hlb-settings-page .settings-shell { display: none; }
  html:root body.hlb-settings-page .settings-shell-layout { display: block; padding: 0; margin: 0; }
  html:root body.hlb-settings-page .backend-main { padding: 20px 16px; }
  /* A leftover family bar must not push the navy row down. The row sits on the top edge. */
  html:root body:has(> header.family-topbar) { padding-top: 0 !important; }
}
html body :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  border-radius: var(--hlb-radius-field);
  font-size: var(--hlb-text-body);
  min-height: var(--hlb-button-height);
}
/* Match the family control selector's weight while keeping the change here. */
html:has(link[href*="board.css"]):not(:has(#setup-stage)) body :is(button,.button,.btn,.icon-button,[role="button"],a.login-button,a.post-link-button,a.hero-cta,a.summary-button,a.signin-link,a.apps-link,.hero-door,.go-btn-primary,.go-btn-quiet,.me-cta-primary,.me-load-link,.me-card-link,.trucks-cta-primary):not(.suite-control,.suite-theme) {
  border-radius: var(--hlb-radius-button) !important;
}
html body :is(.load-card,.go-card,.driver-card,.total-card,.state-card,.me-state-card,.trucks-card,dialog,fieldset,video,pre) {
  border-radius: var(--hlb-radius-card);
}
html:root body :is(.sample-tag,.vetted-tag,.pill,.chip,.rush-tag,.go-pill,.load-status,.req-chips li,.filter-chip) {
  border-radius: var(--hlb-radius-tag) !important;
}
@supports (corner-shape: squircle) {
  html body :is(button,.button,.btn,[role="button"],.hero-door,.hero-cta,.summary-button,.go-btn-primary,.go-btn-quiet,.me-cta-primary,.trucks-cta-primary,input:not([type="checkbox"]):not([type="radio"]),select,textarea,article,dialog,fieldset,figure,video,pre,.load-card,.go-card,.driver-card,.total-card,.state-card,.me-state-card,.trucks-card) {
    corner-shape: squircle;
  }
}
/* The shared suite controls remain above the board's own navigation. */
html[data-suite-mounted="1"] header.site-header #board-signin-link,
header.site-header .suite-header .suite-signin { display: none !important; }
html:not([data-board-account]) header.site-header .suite-header .suite-control { visibility: hidden !important; }
html[data-board-account="out"] header.site-header .suite-header :is(.suite-apps,.suite-settings,.suite-signout) { display: none !important; }
html[data-board-account="out"] header.site-header .suite-header .suite-signin { display: inline-flex !important; }
html body header.site-header .suite-header .suite-control { font-size: var(--hlb-text-small); }
.hlb-app-nav {
  position: fixed;
  left: max(var(--hlb-bar-gap), env(safe-area-inset-left));
  right: max(var(--hlb-bar-gap), env(safe-area-inset-right));
  bottom: calc(var(--hlb-bar-gap) + env(safe-area-inset-bottom));
  z-index: 40;
  height: var(--hlb-bar-height);
  padding: 0 6px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  border-radius: var(--hlb-radius-bar);
  background: rgba(255,255,255,.97);
  color: #556175;
  box-shadow: 0 8px 26px rgba(2,12,31,.18), 0 0 0 1px rgba(2,12,31,.06);
}
.hlb-app-nav[hidden] { display: none; }
.hlb-app-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  padding: 0 2px;
  height: var(--hlb-tab-height);
  border-radius: var(--hlb-radius-tab);
  color: inherit;
  font-size: var(--hlb-text-tab);
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.hlb-app-tab svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hlb-app-tab[aria-current="page"] { color: #FE7905; background: #fff1e4; }
.hlb-app-tab[aria-current="page"] span { color: #b84700; }
.hlb-app-tab:focus-visible { outline: 3px solid var(--hlb-orange); outline-offset: 2px; }
body.hlb-has-app-nav { padding-bottom: var(--hlb-nav-clearance); }
.hlb-menu { width: min(100%, 640px); margin: auto; padding: 32px 26px; }
.hlb-menu h1 { font-size: var(--hlb-text-title); }
.hlb-menu-list { list-style: none; margin: 24px 0 0; padding: 0; }
.hlb-menu-list li { border-bottom: 1px solid var(--line, #dce2e9); }
.hlb-menu-list :is(a,button),
html:root body .hlb-menu-account > .hlb-menu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: var(--hlb-button-height);
  padding: 19px 16px;
  border: 0;
  border-bottom: 1px solid var(--line, #dce2e9);
  border-radius: var(--hlb-radius-button);
  background: transparent;
  color: var(--navy, var(--hlb-navy));
  font: inherit;
  font-size: 19.5px;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
  text-decoration: none;
}
html:root body .hlb-menu-account { display: flex; flex-direction: column; width: 100%; margin: 0; }
.hlb-menu-meta { display: inline-flex; align-items: center; gap: 8px; color: var(--muted, #556175); font-weight: 600; flex: none; }
@media (max-width: 767px) {
  html body :is(main h1,.page-hero h1,.go-heading) { font-size: var(--hlb-text-title) !important; line-height: 1.08; }
  html body :is(.book-button,.hero-cta,.hero-door,.contact-submit-btn,.go-btn-primary,.go-btn-quiet,.me-cta-primary,.trucks-cta-primary) { font-size: var(--hlb-text-button); }
  html body :is(.book-button,.hero-cta,.hero-door,.contact-submit-btn,.go-btn-primary,.go-btn-quiet,.me-cta-primary,.trucks-cta-primary) { white-space: nowrap; }
  html body :is(.close-button,.refresh-button) { width: var(--hlb-button-height); flex-basis: var(--hlb-button-height); }
  html body .card-actions { flex-wrap: wrap; }
}
@media (min-width: 768px) {
  html:root body:is(.hlb-post-page,.hlb-settings-page) { padding-top: 0; }
  html:root body:is(.hlb-post-page,.hlb-settings-page) header.site-header {
    position: sticky; top: 0; z-index: 80; overflow: visible; background: #020c1f;
  }
  body.hlb-has-app-nav { padding-bottom: 0; }
  .hlb-app-nav {
    position: static;
    height: 66px;
    padding: 0 26px;
    display: flex;
    gap: 26px;
    border-radius: var(--hlb-radius-card);
    background: var(--hlb-navy);
    color: #fff;
    box-shadow: none;
  }
  .hlb-app-tab { flex-direction: row; height: var(--hlb-button-height); padding: 0 14px; font-size: 16px; font-weight: 600; }
  .hlb-app-tab svg { display: none; }
  .hlb-app-tab[aria-current="page"] { color: var(--hlb-orange); background: transparent; }
  .hlb-app-tab[aria-current="page"] span { color: inherit; }
  html:root body .hlb-menu-account > .hlb-menu-theme { display: none !important; }
}

html:root body button:disabled { opacity:1; }

.hlb-menu-sound button { display:flex; align-items:center; width:100%; padding:12px 16px; background:#fff; color:var(--hlb-navy); border:0; font:inherit; text-align:left; }
.hlb-page-links { display: flex; gap: 12px; margin-top: 16px; }

/* Only action classes have a fixed height. A button element may be a whole
   multi-line card, so the element itself never gets a height or nowrap lock. */
html:root body :is(.hlb-action,.button,.btn,.front-door-signin,.front-door-watch,.proof-button,.card-action-link,.hero-cta,.front-door-button,.login-button,.login-swap,.go-btn,.me-cta,.trucks-cta,.text-button,.close-button,.refresh-button,.contact-back,.signout-button,.offer-button,.offer-withdraw,.trucks-cta-quiet,.go-btn-quiet,.me-load-link,.me-card-link,.availability-switch,.trouble-btn,.card-action-btn,.driver-tab,.accept-offer-btn,.cancel-load-btn,.retry-carrier-btn,.truck-ask-btn,.camera-button,.example-change-role,.filter-chip,.suite-control,.suite-theme,.join-quiet,summary):not(:is(.hlb-tap-row,.example-role,.carrier-first-row,.truck-summary,.photo-row,[data-choice-card],.faq-list summary,.terms-full summary)) {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  box-sizing: border-box; flex-shrink: 0;
  height: var(--hlb-control-height, var(--hlb-quiet-height));
  max-height: var(--hlb-control-height, var(--hlb-quiet-height));
  min-height: var(--hlb-control-height, var(--hlb-quiet-height)) !important;
  min-block-size: var(--hlb-control-height, var(--hlb-quiet-height)) !important;
  padding: 0 16px !important;
  font-size: var(--hlb-text-button) !important;
  line-height: 1.2 !important;
  white-space: nowrap;
}
html:root body.public-page .page-hero .hero-cta,
html:root body :is(.login-button,.book-button,.go-btn-primary,.go-btn-pass,.me-cta-primary,.trucks-cta-primary,.hero-cta,.front-door-button,.contact-submit-btn,.load-ladder-primary,[data-primary]) {
  --hlb-control-height: var(--hlb-button-height);
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  box-sizing: border-box; flex-shrink: 0;
  max-height: var(--hlb-button-height);
  height: var(--hlb-button-height);
  min-height: var(--hlb-button-height) !important;
  min-block-size: var(--hlb-button-height) !important;
  padding: 0 16px !important;
  font-size: var(--hlb-text-button) !important;
  line-height: 1.2 !important;
  white-space: nowrap;
}
html:root body :is(.login-button,.book-button,.go-btn-primary,.me-cta-primary,.trucks-cta-primary,.contact-submit-btn,.hero-cta),
html:root body.hlb-front-door a.front-door-button.haul,
html:root body .page-main a.hero-cta {
  background: var(--hlb-orange) !important; color: var(--hlb-navy) !important; border-color: var(--hlb-orange);
}
html:root body.hlb-front-door a.front-door-button.post,
html:root body .page-hero a.hero-cta,
html:root body a.card-action-link {
  background: var(--hlb-navy) !important; color: #fff !important;
}

/* Picture choices and multi-line list rows keep their content-sized card geometry. */
html:root body :is(.hlb-tap-row,.example-role,.carrier-first-row,.truck-summary,.photo-row,[data-choice-card]) {
  height: auto; min-height: var(--hlb-quiet-height); padding: 16px !important; white-space: normal;
  line-height: 1.35;
}

html:root body #load-dialog p.detail-price {
  font-size: 48px !important; font-weight: 850; line-height: 1.05; color: var(--hlb-navy); margin: 0 0 8px;
}
html:root body #load-dialog #load-content #load-title {
  font-size: 27px; line-height: 1.15; margin: 0 0 8px; letter-spacing: -0.03em;
}
html:root body #load-dialog p.detail-broker {
  color: #556175; font-size: 15px !important; font-weight: 650; margin: 8px 0 0;
}
html:root body :is(#load-dialog,#offer-dialog) :is(.eyebrow,p.detail-broker) {
  text-transform: none; letter-spacing: normal;
}
html:root body #load-dialog .dialog-heading { margin-bottom: 8px; align-items: center; }

html:root body .load-status.broker-status { border: 0; font-weight: 700; padding: 7px 12px; }
html:root body .load-status.broker-status.is-posted { color: #020C1F; background: #f3f5f7; }
html:root body .load-status.broker-status.is-rush { color: #c92d20; background: #fde9e7; }
html:root body .load-status.broker-status.is-booked { color: #00719a; background: #E4F6FD; }
html:root body .load-status.broker-status.is-pickup { color: #fff; background: #020C1F; }
html:root body .load-status.broker-status.is-delivered { color: #12733a; background: #e3f6ea; }

html:root body a.broker-back { align-self: flex-start; width: auto; margin: 0 0 12px; justify-content: center; }

html:root body .money-field { position: relative; display: block; }
html:root body .money-field .money-mark,
html:root body .money-field .money-face {
  position: absolute; top: 50%; transform: translateY(-50%); pointer-events: none; z-index: 1;
  font-size: 20px; font-weight: 700; color: var(--hlb-navy); line-height: 1;
}
html:root body .money-field .money-mark { left: 14px; }
html:root body .money-field .money-face { left: 32px; font-weight: 600; }
html:root body .money-field input { padding-left: 32px !important; }
html:root body .money-field:not(.is-typing) input { color: transparent !important; -webkit-text-fill-color: transparent; }
html:root body .money-field.is-typing .money-face { visibility: hidden; }
html:root body .money-field.is-typing input { color: var(--hlb-navy) !important; -webkit-text-fill-color: var(--hlb-navy); }
html:root body :is(.faq-list summary,.terms-full summary) {
  height: auto; min-height: var(--hlb-quiet-height); white-space: normal;
  font-size: var(--hlb-text-button) !important; line-height: 1.4;
  border-radius: var(--hlb-radius-button);
}
/* The compact menu rows have a single label; carrier and load rows retain
   their second line and the content-sized rule above. */
html:root body .example-visit-line { align-items: center; }
html:root body .example-visit-line [data-example-fill] {
  align-self: center; justify-self: end; background: #fff; color: var(--hlb-navy); border: 1px solid #dce2e9;
}
html:root body :is(.hlb-menu-list a,.hlb-menu-switch-row,.hlb-menu-account > .hlb-menu-row,.settings-rows a,.broker-menu-row:not(:has(small))) {
  height: var(--hlb-quiet-height); min-height: var(--hlb-quiet-height);
  min-block-size: var(--hlb-quiet-height); padding: 0 16px !important;
  font-size: var(--hlb-text-button) !important; line-height: 1.2; white-space: nowrap;
}

/* The saved shared theme must also paint the board's workspaces. */
html:root[data-style][data-theme="dark"], html:root[data-theme="dark"] {
  --hlb-surface: #142238; --hlb-ink: #f3f5f7;
  --surface: #142238; --surface-alt: #142238;
  --ui-nav: #142238; --ui-control-line: #53647c;
  --palette-bg: #020c1f; --palette-panel: #142238; --palette-text: #f3f5f7;
  --family-bg: #020c1f; --family-panel: #142238; --family-soft: #142238; --family-text: #f3f5f7;
  --ink: #f3f5f7;
  --hlb-bg: #020c1f; --ui-bg: #020c1f; --ui-panel: #142238; --ui-card: #142238;
  --ui-soft: #142238; --ui-text: #f3f5f7; --ui-muted: #b7c3d3; --ui-line: #53647c;
  --paper: #020c1f; --white: #142238; --navy: #f3f5f7; --text: #f3f5f7;
  --muted: #b7c3d3; --line: #53647c; --card: #142238; --soft: #142238;
  color-scheme: dark;
}
html:root[data-theme="dark"], html:root[data-theme="dark"] body { background-color: #020c1f; color: #f3f5f7; }
html:root[data-theme="dark"] body :is(.settings-card,.post-card,.load-card,.hlb-action,.settings-rows a,.broker-menu-row,.post-question,input,select,textarea) {
  background-color: #142238; color: #f3f5f7; border-color: #53647c;
}
html:root[data-theme="dark"] body :is(.hlb-menu-list a,.hlb-menu-switch-row,.hlb-menu-account > .hlb-menu-row) { color: #f3f5f7; }
html:root[data-theme="dark"] body :is(.post-title,.post-kicker,.post-company,.settings-field,.settings-back) { color: #f3f5f7; }
html:root:has(body.hlb-front-door) { background-color: var(--hlb-paper); }
html:root[data-theme="dark"]:has(body.hlb-front-door) { background-color: #020c1f; }

/* Fields remain distinct from the one-question surface in either theme. */
html:root body:is(.hlb-post-page,.hlb-settings-page) :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea) { background-color: #f3f5f7; border-color: #798598; }
html:root[data-theme="dark"] body:is(.hlb-post-page,.hlb-settings-page) :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea) { background-color: #0b172b; color: #f3f5f7; border-color: #697a92; }

html:root[data-theme="dark"] body :is(.papers-radio,.tms-notice-card,.credit-history-item,.connection-row,.tms-key-row,.choice-row,.check-row,.offer-when-choice) { background-color: #142238; color: #f3f5f7; }
html:root[data-theme="dark"] body #load-dialog p.detail-price { color: #f3f5f7; }
html:root[data-theme="dark"] body #load-dialog p.detail-broker { color: #b7c3d3; }

html:root[data-theme="dark"] body .money-field :is(.money-mark,.money-face) { color: #f3f5f7; }
html:root[data-theme="dark"] body .money-field.is-typing input { color: #f3f5f7 !important; -webkit-text-fill-color: #f3f5f7; }

/* Brand-filled actions keep their paired ink when the page surface changes. */
html:root body main.info .lp-trucks a { background: var(--hlb-navy); color: #fff; border-color: var(--hlb-navy); }
html:root body .example-visit, html:root body .example-visit a.example-change-role { color: var(--ui-text); }

/* One board logo row on both hosts; controls are still made by suite-header.mjs. */
html:root body header.site-header {
  display: flex; align-items: center; gap: 8px; flex-wrap: nowrap;
  width: 100%; height: 132px; min-height: 132px; max-height: 132px;
  padding: 6px 40px; margin: 0; border: 0; border-bottom: 4px solid var(--hlb-orange);
  background: var(--hlb-navy); color: #fff; overflow: visible;
}
html:root body header.site-header .header-inner,
html:root body header.site-header:has(#board-signin-link) .header-inner {
  display: contents; padding: 0; margin: 0;
}
html:root body header.site-header .brand-block { margin: 0; padding: 0; flex: none; display: flex; flex-direction: column; gap: 0; }
html:root body header.site-header :is(.header-actions,.header-company,.tagline) { display: none !important; }
html:root body header.site-header .brand {
  display: block; flex: none; width: auto; max-width: none; height: auto;
  padding: 0; margin: 0; overflow: visible; border: 0; background: transparent;
}
html:root body header.site-header .brand img {
  display: block; width: auto; height: 100px; min-width: 0; max-width: none; max-height: 100px;
  object-fit: contain; object-position: left center; border: 0; border-radius: 0 !important;
  padding: 0; margin: 0; clip-path: none; mask: none; transform: none;
}
html:root body header.site-header .brand::after {
  content: "by RICERCA Labs"; display: block; color: #c9d2df;
  font-size: 15px; line-height: 16px; font-weight: 600; letter-spacing: 0;
}
/* A page that carries the real byline shows it under the logo; the drawn one fills in only where a page has none. */
html:root body header.site-header .brand-block:has(.byline) .brand::after { content: none; }
html:root body header.site-header .byline { display: block; margin: 0; color: #c9d2df; font-size: 15px; line-height: 16px; font-weight: 600; letter-spacing: 0; }
html:root body header.site-header button.suite-theme {
  position: static !important; display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 44px; width: 44px; min-width: 44px; max-width: 44px;
  height: 44px; min-height: 44px; max-height: 44px;
  padding: 0 !important; margin: 0 0 0 auto; border-radius: 20px !important;
  background: var(--ui-panel); color: var(--ui-text);
}
html:root body header.site-header button.suite-theme svg {
  flex: none; width: 20px; height: 20px; min-width: 20px; min-height: 20px;
}
html:root body header.site-header nav.suite-header,
html:root[data-board-account="out"] body header.site-header nav.suite-header {
  position: static !important; display: flex; align-items: center; gap: 8px !important;
  flex: 0 0 auto; width: auto !important; max-width: none !important;
  height: 44px; min-height: 44px; padding: 0 !important; margin: 0 !important;
}
html:root body header.site-header .suite-header .suite-control,
html:root[data-board-account="out"] body header.site-header nav.suite-header .suite-signin {
  width: auto !important; min-width: 0 !important; max-width: none !important;
  padding: 0 12px !important; border-radius: 20px !important;
  height: 44px !important; min-height: 44px !important; max-height: 44px;
}
html:root body .hlb-signed-out {
  width: min(100%, 420px); max-width: 420px; margin: 0 auto;
  padding: 32px 24px; text-align: center;
}
html:root body .hlb-signed-out h1 { margin: 0 0 20px; color: var(--ui-text); font-size: 33px; }
html:root body .hlb-signin-card { margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
html:root body .hlb-signin-card p { margin: 0 0 24px; color: var(--ui-muted); font-size: 17px; }
html:root body .hlb-signin-card [data-primary] { width: 100%; background: var(--hlb-orange); color: var(--hlb-navy); border: 0; }
@media (min-width: 768px) {
  html:root body :is(.hero-cta,.card-action-link,.contact-submit-btn,.front-door-button,.hlb-signin-card [data-primary]) { width: 100%; max-width: 360px; }
  html:root body header.site-header .suite-header .suite-control { font-size: 17px !important; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  html:root body header.site-header { padding-right: 12px; padding-left: 12px; gap: 6px; }
  html:root body header.site-header nav.suite-header { gap: 6px !important; }
  html:root body header.site-header .suite-header .suite-control { padding: 0 4px !important; }
  html:root body header.site-header .suite-apps svg { display: none; }
}
@media (max-width: 767px) {
  /* A phone keeps the family's 16px side gutter (room rule R1), and the logo link is a 44px tap target (R4) around the 40px logo. */
  html:root body header.site-header { height: 56px; min-height: 56px; max-height: 56px; padding: 6px 16px; border: 0; }
  html:root body header.site-header .brand,
  html:root[data-board-account="out"] body header.site-header .brand { flex: none; width: auto; max-width: none; height: 44px; display: flex; align-items: center; }
  html:root body header.site-header .brand img { width: auto; height: 40px; max-height: 40px; }
  html:root body header.site-header .brand::after { display: none; }
  html:root[data-board-account="out"] body header.site-header nav.suite-header { margin-left: auto !important; }
  html:root[data-board-account="out"] body header.site-header nav.suite-header .suite-signin { padding: 0 8px !important; font-size: 17px !important; }
}

/* Page surfaces and quiet controls use the saved theme; brand art stays navy. */
html:root body :is(.page-hero,.public-page .page-hero,.cta-band) { background: var(--hlb-surface); color: var(--ui-text); }
html:root body :is(.page-hero h1,.public-page .page-hero h1) { color: var(--ui-text); }
html:root body .page-hero :is(.lede,.hero-note) { color: var(--ui-muted); }
html:root body :is(.page-hero .eyebrow,.page-hero .hero-note a) { color: var(--ui-text); }
html:root body :is(.login-swap,.proof-button,.go-btn-quiet,.text-button,.settings-back,.hlb-action,.contact-back) {
  background-color: var(--hlb-surface); color: var(--ui-text); border-color: var(--ui-line);
}
html:root body .public-contact .contact-progress i[data-current] { background: var(--ui-text); }
html:root[data-theme="dark"] body .hlb-app-nav { background: #142238; color: #b7c3d3; }
html:root[data-theme="dark"] body :is(.hlb-menu-sound button,.hlb-menu-account .suite-control,.hlb-menu-account .suite-theme) { background: #142238; color: #f3f5f7; }
html:root[data-theme="dark"] body :is(.state-card,.go-card,.me-state-card,.trucks-card,.driver-card,.card-state) { background-color: var(--hlb-surface); color: var(--ui-text); }

/* The visitor's action and notification box stay separate at every width. */
html:root body #loads .board-intro .notify-box { margin-top: 16px; }

/* A plain page title never touches the header above it. */
html:root body main.info:has(> h1,> #contact-question) { padding-top: 22px; }

/* On a computer a lone button is no wider than 360 and lines up with the words above it. */
@media (min-width: 768px) {
  html:root body main :is(.post-link-button,.broker-main-action,#post-next,.settings-buy,.me-cta-primary,.go-btn-quiet,.text-button:is([data-driver-signout],[href$="view=link"])) {
    width: 100%; max-width: 360px; align-self: flex-start; justify-self: start;
  }
}

/* The commercial card, 17 Nov: the 15 Nov layout with the owner's reading sizes.
   Card content keeps its own hierarchy; page word budgets apply outside it. */
html:root body .load-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
html:root body .load-card[data-load-id] { border-radius: var(--hlb-radius-card) !important; }
html:root body .load-card[data-load-id] .card-body { padding: 22px 22px 18px; }
html:root body .load-card[data-load-id] .card-meta { align-items: center; margin-bottom: 19px; }
html:root body .load-card[data-load-id] .vetted-tag { font-weight: 750; padding: 5px 7px; border: 1px solid #b7dfc4; }
html:root body .load-card[data-load-id] .equipment { margin-left: auto; text-align: right; }
html:root body .load-card[data-load-id] .lane { font-size: 19px; line-height: 1.35; }
html:root body .load-card[data-load-id] .lane-button { display: grid; grid-template-columns: 14px 1fr; gap: 6px 10px; padding: 0; min-height: 58px; height: auto; font-size: inherit !important; text-align: left; }
html:root body .load-card[data-load-id] .lane-button span { font-size: inherit !important; }
/* The stop is a square symbol, not a card or control. */
html:root body .load-card[data-load-id] .route-stop { background: transparent; }
html:root body .load-card[data-load-id] .route-stop::after { content: ""; display: block; width: 9px; height: 9px; background: var(--navy); clip-path: inset(0 round 2px); }
html:root body .load-card[data-load-id] :is(.equipment,.broker,.metric-label,.price-status,.fsc,.load-details,.load-details p,.load-details span,.req-chips li,.numbers-note,.lane-stops,.load-number,.vetted-tag,.rush-line,.carrier-notice,.booking-note,.offer-line,.hlb-person-name,.hlb-person-meta) { font-size: var(--hlb-text-small) !important; }
html:root body .load-card[data-load-id] .price-row { padding-top: 17px; }
html:root body .load-card[data-load-id] .price { font-size: 35px; }
html:root body .load-card[data-load-id] .price [data-field] { font-size: inherit !important; }
html:root body .load-card[data-load-id] .metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0 18px; }
html:root body .load-card[data-load-id] .metric-value { font-size: 21px; }
html:root body .load-card[data-load-id] .metric-value [data-field] { font-size: inherit !important; }
html:root body .load-card[data-load-id] .metric-value small { font-size: var(--hlb-text-small) !important; }
html:root body .load-card[data-load-id] .card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 15px 22px; background: var(--hlb-surface); }
html:root body .load-card[data-load-id] .card-actions > :is(.book-button,div:first-child) { flex: 1 1 0; min-width: 0; }
html:root body .load-card[data-load-id] .card-actions > [data-detail] { flex: 0 0 auto; }
html:root body .load-card[data-load-id] .card-actions > [data-load-map] { flex: 0 0 auto; }
html:root body .load-card[data-load-id] .card-actions > .offer-button { order: 3; flex: 1 1 100%; }
@media (max-width: 1100px) {
  html:root body .load-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  html:root body .load-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  html:root body .load-card[data-load-id] .card-body { padding: 21px 20px 17px; }
  html:root body .load-card[data-load-id] .card-actions { padding: 15px 20px; }
  html:root body .load-card[data-load-id] .lane { font-size: 20px; }
  html:root body .load-card[data-load-id] .price { font-size: 37px; }
  html:root body .load-card[data-load-id] .metrics { gap: 16px; }
}

/* Reserve both rate views' full height while one is hidden, at every card width.
   With reduced motion both views keep the existing stacked layout. */
html:root body .load-card[data-load-id] .rotating-metrics:has(> [hidden]) { display: grid; }
html:root body .load-card[data-load-id] .rotating-metrics:has(> [hidden]) > [data-rate-view] { grid-area: 1 / 1; margin-top: 0; }
html:root body .load-card[data-load-id] .rotating-metrics > [data-rate-view][hidden] { display: block !important; visibility: hidden; }

/* Numbered board pages share one control on Loads and the front door. */
html:root body .load-pages { display: flex; align-items: center; justify-content: center; gap: 8px; max-width: 100%; margin-top: 24px; }
html:root body .load-pages a { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; height: 44px; min-height: 44px; max-height: 44px; min-width: 44px; padding: 0 12px; border: 1px solid #020C1F; border-radius: 16px !important; background: #fff; color: #020C1F; font-size: 17px !important; line-height: 1.2; font-weight: 650; text-decoration: none; }
html:root body .load-pages a[aria-current="page"] { background: #020C1F; color: #fff; }
html:root[data-theme="dark"] body .load-pages a[aria-current="page"] { border-color: #fff; }
html:root body .load-pages .load-page-status { display: none; font-size: 17px !important; white-space: nowrap; }
html:root body .load-pages > span.load-page-number { font-size: 17px !important; }
@media (max-width: 767px) {
  html:root body .load-pages .load-page-number { display: none; }
  html:root body .load-pages .load-page-status { display: block; }
}

/* Find a load box: its lists stay inside the box, and Refresh is as wide as its word. */
html:root body #filter-dialog label { grid-template-columns: minmax(0, 1fr); }
html:root body #filter-dialog select { width: 100%; min-width: 0; }
html:root body #filter-dialog .refresh-button { width: auto; flex-basis: auto; min-width: 44px; margin-right: 8px; }
