.test-mode-badge {
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .04em;
  color: #8a5a13;
  background: #fff4d6;
  border: 1px solid #eed28a;
  border-radius: 999px;
  padding: .42rem .6rem;
  white-space: nowrap;
}

.public-tracking-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  background: radial-gradient(circle at 50% 22%, #0b3f7d 0, #061a35 34%, #01050b 72%);
}

.public-tracking-card {
  width: 100%;
  max-width: 600px;
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  margin-top: 2rem;
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.public-tracking-card .brand-lockup {
  color: var(--navy);
}

.public-tracking-card .sidebar-logo {
  max-height: 60px;
}

@media (max-width: 760px) {
  .test-mode-badge { display: none; }
}

.push-setup {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
  color: #fff;
  background: linear-gradient(135deg, #075fb9, #008af5);
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(0, 105, 210, .2);
}

.push-setup strong,
.push-setup small {
  display: block;
}

.push-setup small {
  margin-top: .2rem;
  color: #d9edff;
}

.notification-settings {
  margin-bottom: 1rem;
}

.financials-panel, .rate-confirmation-panel, .invoice-panel { margin-top: 1rem; }
.money-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
  flex-wrap: wrap;
  padding: .9rem 1rem;
  border: 1px solid #bfe5ce;
  border-radius: 11px;
  background: #edf9f2;
  color: #145d38;
}
.money-flow span { color: #526b82; font-size: .84rem; }
.financial-totals {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: .84rem;
}
.financial-totals strong { color: var(--navy); margin-left: .25rem; }
.invoice-fields { border: 0; margin: 0; min-width: 0; padding: 0; }
.signup-legal-gate,
.legal-center,
.compliance-center-panel { margin-top: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: #f7fafc; }
.signup-legal-gate h4,
.legal-center h4,
.compliance-center-panel h4 { margin: .2rem 0 .5rem; color: var(--navy); }
.legal-check { align-items: flex-start; margin: .4rem 0; }
.legal-check .text-btn { display: inline; padding: 0; color: var(--blue); text-decoration: underline; }
.legal-document-dialog { width: min(820px, 96vw); max-height: 92vh; padding: 0; border: 0; border-radius: 14px; box-shadow: 0 25px 80px rgba(0,0,0,.3); }
.legal-document-dialog::backdrop { background: rgba(3,13,27,.7); }
.legal-document-page { padding: clamp(1rem, 4vw, 3rem); overflow: auto; max-height: 92vh; background: #fff; color: var(--ink); }
.legal-document-toolbar { display: flex; justify-content: flex-end; gap: .5rem; margin-bottom: 1.2rem; }
.legal-meta { display: flex; gap: 1rem; flex-wrap: wrap; color: var(--muted); font-size: .8rem; }
.legal-disclaimer { margin: 1rem 0; padding: .8rem 1rem; border: 1px solid #eed28a; border-radius: 9px; background: #fff8e6; color: #78520c; font-size: .82rem; }
.legal-copy { max-width: 70ch; font: 1rem/1.7 Georgia, 'Times New Roman', serif; white-space: normal; }
.legal-document-list { display: grid; gap: .5rem; }
.legal-document-row { display: flex; align-items: center; justify-content: space-between; gap: .7rem; padding: .7rem; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.legal-document-row small { display: block; margin-top: .2rem; color: var(--muted); }
.compliance-admin-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.incident-row select { max-width: 180px; }
@media print {
  .legal-document-toolbar { display: none; }
  .legal-document-page { max-height: none; }
  .legal-document-dialog { width: 100%; max-height: none; box-shadow: none; }
  .legal-copy { font-size: 11pt; }
}
@media (max-width: 760px) {
  .legal-document-row { align-items: flex-start; flex-direction: column; }
  .legal-document-row .response-actions { width: 100%; }
  .legal-document-row .response-actions .btn { flex: 1; }
  .compliance-admin-grid { grid-template-columns: 1fr; }
  .incident-row { align-items: flex-start; flex-direction: column; }
  .incident-row select { max-width: none; width: 100%; }
}
.pod-actions { margin-top: 1rem; }
@media (max-width: 760px) {
  .money-flow { align-items: flex-start; flex-direction: column; }
}

.settings-toggles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .65rem;
  margin: 1rem 0;
}

.settings-toggles label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: .7rem .85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f6f9fc;
}

.settings-toggles input {
  width: 22px;
  height: 22px;
  accent-color: #087ff5;
}

.notification-row {
  width: 100%;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  gap: .75rem;
}

.notification-filters {
  display: flex;
  gap: .5rem;
  margin: 0 0 .8rem;
}

.notification-filters .chip.active {
  background: var(--navy);
  color: #fff;
}

.notification-open {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: inherit;
  padding: .15rem 0;
  text-align: left;
}

.notification-open .main {
  display: grid;
  gap: .25rem;
}

.notification-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-left: auto;
}

.notification-delete {
  color: var(--danger);
}

@media (max-width: 620px) {
  .notification-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .notification-actions {
    width: 100%;
    margin-left: 0;
  }

  .notification-actions .btn {
    flex: 1;
    min-height: 44px;
  }
}

.unavailable-load {
  display: grid;
  place-items: center;
  min-height: 430px;
  padding: 2rem;
  text-align: center;
}

.unavailable-load h2 {
  margin-bottom: .4rem;
}

.unavailable-load p {
  max-width: 480px;
  color: var(--muted);
}

.unavailable-icon {
  font-size: 3.4rem;
}

.fee-preview {
  display: flex;
  justify-content: space-between;
  gap: .6rem;
  margin-top: .7rem;
  padding-top: .65rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .72rem;
}
.fee-preview strong { color: var(--green2); }
.fee-preview-card { display: grid; gap: .35rem; }
.fee-preview-card > span { display: grid; gap: .2rem; }
.rate-calculator { padding: 1rem; border: 1px solid #b9d7f5; border-radius: 12px; background: #f4f9ff; }
.rate-calculator-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.rate-calculator-head small { display: block; margin-top: .2rem; color: var(--muted); }
.rate-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .6rem; margin: .75rem 0; }
.rate-grid span { padding: .7rem; border-radius: 9px; background: #fff; border: 1px solid var(--line); }
.rate-grid small,.rate-grid strong { display: block; }
.rate-warning { margin: .35rem 0 0; color: #8a4b08; font-weight: 750; }
.pricing-admin-panel { margin: 1rem 0; }
.pricing-admin-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .8rem; }
.pricing-admin-grid fieldset { min-width: 0; margin: 0; padding: .75rem; border: 1px solid var(--line); border-radius: 10px; }
.pricing-admin-grid legend { padding: 0 .25rem; font-weight: 850; color: var(--navy); }
.fee-preview-card small { display: block; margin-top: .15rem; }
.optional-upload { padding: .75rem .9rem; border: 1px dashed #b9c9da; border-radius: 10px; background: #f8fbfd; }
.optional-upload input { margin-top: .35rem; }
.install-app-button { white-space: nowrap; }
.carrier-history { border-left: 4px solid #087ff5; }
.eligibility-lock {
  display: grid;
  gap: .15rem;
  margin-top: .7rem;
  padding: .65rem .75rem;
  border-radius: 9px;
  background: #fff3e7;
  color: #93511f;
  font-size: .74rem;
}
.update-dialog { border: 0; border-radius: 18px; padding: 0; width: min(440px, 92vw); box-shadow: 0 25px 80px rgba(0,0,0,.28); }
.update-dialog::backdrop { background: rgba(5,18,31,.62); backdrop-filter: blur(3px); }
.update-dialog .panel { border: 0; box-shadow: none; padding: 1.6rem; }
.confirm-dialog { border: 0; border-radius: 18px; padding: 0; width: min(440px, 92vw); box-shadow: 0 25px 80px rgba(0,0,0,.28); }
.confirm-dialog::backdrop { background: rgba(5,18,31,.62); backdrop-filter: blur(3px); }
.confirm-dialog .panel { border: 0; box-shadow: none; padding: 1.6rem; }
.form-error { margin: 0 0 1rem; padding: .8rem 1rem; border-left: 4px solid var(--danger); border-radius: 9px; background: #fff1f1; color: #8b2f2f; font-size: .86rem; font-weight: 700; }
input.field-error, select.field-error, textarea.field-error { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(194,65,65,.12); }
.field-error-message { display: block; min-height: 0; margin-top: .2rem; color: var(--danger); font-size: .72rem; font-weight: 750; line-height: 1.35; }
.field-error-message:empty { display: none; }
label.has-field-error { color: #8b2f2f; }

@media (max-width: 760px) {
  .push-setup {
    align-items: stretch;
    flex-direction: column;
  }
  .settings-toggles {
    grid-template-columns: 1fr;
  }
  .install-app-button { width: 100%; }
  .load-dialog {
    max-height: calc(100dvh - 1rem);
    margin: .5rem auto;
    overscroll-behavior: contain;
  }
  .load-dialog .detail { padding: .85rem; }
  .load-dialog .detail > .panel { margin-top: .75rem; }
  .load-dialog .panel-title { gap: .65rem; flex-wrap: wrap; }
  .load-dialog .response-actions { width: 100%; }
  .load-dialog .response-actions .btn { flex: 1 1 auto; min-height: 42px; }
  .documents-panel .list-row { display: grid; grid-template-columns: 1fr; gap: .7rem; }
}

.demo-switcher {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .35rem .55rem;
  background: #edf7f1;
  border: 1px solid #bfe5ce;
  border-radius: 12px;
  color: #145d38;
}

.demo-switcher-title {
  font-size: .7rem;
  letter-spacing: .08em;
}

.demo-switcher label {
  display: flex;
  flex-direction: column;
  gap: .12rem;
  font-size: .62rem;
  font-weight: 850;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.demo-switcher select {
  min-width: 170px;
  border: 0;
  padding: .1rem 1.4rem .1rem 0;
  color: #145d38;
  background: transparent;
  font-size: .78rem;
  font-weight: 800;
}

.demo-switcher span {
  border-left: 1px solid #bfe5ce;
  padding-left: .55rem;
  font-size: .7rem;
  font-weight: 750;
  white-space: nowrap;
}

.demo-retry {
  border: 0;
  border-radius: 8px;
  padding: .35rem .55rem;
  background: #fff0ee;
  color: #a5362f;
  font-size: .7rem;
  font-weight: 800;
}

@media (max-width: 1050px) {
  .demo-switcher span {
    display: block;
    border-left: 0;
    border-top: 1px solid #bfe5ce;
    padding: .35rem 0 0;
  }
}

@media (max-width: 760px) {
  .demo-switcher {
    position: fixed;
    top: 75px;
    left: 1rem;
    right: 1rem;
    z-index: 5;
    flex-direction: column;
    align-items: stretch;
    gap: .25rem;
    padding: .65rem .75rem;
    box-shadow: 0 8px 22px rgba(7,27,51,.12);
  }
  .demo-switcher-title { font-size: .75rem; }
  .demo-switcher select { width: 100%; }
  .demo-switcher label { flex: 1; }
  .demo-retry { align-self: flex-start; }
  .page-area { padding-top: 6.5rem; }
}

:root {
  --navy: #020b18;
  --navy2: #071b3a;
  --blue: #0078f4;
  --green: #087ff5;
  --green2: #0066cf;
  --ink: #0c1b2d;
  --bg: #f3f6fa;
}

.landing-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem;
  text-align: center;
  color: #fff;
  background: radial-gradient(circle at 50% 22%, #0b3f7d 0, #061a35 34%, #01050b 72%);
}

.landing-logo {
  width: min(720px, 88vw);
  max-height: 55vh;
  object-fit: contain;
}

.landing-screen h1 {
  margin: 0;
  max-width: 700px;
  font-size: clamp(1.6rem, 4vw, 3rem);
  line-height: 1.08;
}

.landing-enter {
  min-width: 220px;
  min-height: 54px;
  background: linear-gradient(135deg, #008cff, #0063da) !important;
  box-shadow: 0 14px 34px rgba(0, 126, 255, .32);
}

.auth-logo {
  width: min(430px, 75vw);
  margin-bottom: 1.25rem;
  object-fit: contain;
}

.sidebar-logo {
  width: 100%;
  max-height: 92px;
  object-fit: contain;
}

.hero-card {
  background: radial-gradient(circle at 82% 15%, rgba(0, 139, 255, .34), transparent 31%), linear-gradient(135deg, #020b18, #073b76);
}

.location-card {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 12px;
  background: #f4f8fc;
  border: 1px solid #d8e4ef;
}

.location-card h4 {
  margin: 0 0 .4rem;
  color: var(--navy);
}

.location-inline {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}

.subtle {
  color: var(--muted);
  font-size: .82rem;
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .35rem;
  margin: 1rem 0;
}

.workflow-steps span {
  position: relative;
  padding: .55rem .4rem;
  border-radius: 8px;
  background: #edf2f7;
  color: #6a7c90;
  text-align: center;
  font-size: .68rem;
  font-weight: 850;
}

.workflow-steps span.done {
  background: #dbeafe;
  color: #075cb7;
}

.workflow-steps span.current {
  background: #087ff5;
  color: #fff;
}

.status-cta {
  width: 100%;
  margin: 1rem 0;
  min-height: 50px;
}

.pod-form-panel,
.pod-view {
  margin-top: 1rem;
}

.upload-preview {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .7rem;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f7fafc;
}

.upload-preview img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 8px;
  background: #07111f;
}

.upload-preview-copy {
  display: grid;
  gap: .2rem;
  min-width: 0;
}

.upload-preview-copy strong,
.upload-preview-copy small {
  overflow-wrap: anywhere;
}

.pod-photo {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  border-radius: 12px;
  background: #07111f;
}

#signatureCanvas {
  display: block;
  width: 100%;
  height: 150px;
  margin-top: .45rem;
  border: 1px solid #b9c9da;
  border-radius: 10px;
  background: #fff;
  touch-action: none;
}

.signature-proof {
  padding: .8rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.signature-proof small {
  display: block;
  color: var(--muted);
}

.signature-proof img {
  width: 100%;
  max-height: 130px;
  object-fit: contain;
}

.timeline {
  border-left: 2px solid #d8e5f1;
  margin-left: .35rem;
  padding-left: 1rem;
}

.timeline-item {
  display: grid;
  gap: .15rem;
  padding: 0 0 1rem;
  position: relative;
}

.timeline-item:before {
  content: "";
  position: absolute;
  left: -1.39rem;
  top: .25rem;
  width: .65rem;
  height: .65rem;
  border-radius: 50%;
  background: #087ff5;
}

.timeline-item span,
.timeline-item small {
  color: var(--muted);
  font-size: .75rem;
}

.owner-load-row {
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}

.owner-load-row:last-child {
  border-bottom: 0;
}

.owner-load-main {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.owner-load-main strong,
.owner-load-main small {
  display: block;
}

.owner-load-main strong {
  color: var(--navy);
}

.owner-load-main small {
  color: var(--muted);
  margin-top: .25rem;
}

.owner-recovery {
  display: grid;
  grid-template-columns: 180px 1fr auto auto;
  gap: .5rem;
  margin-top: .75rem;
}

@media (max-width: 760px) {
  .mobile-nav {
    grid-template-columns: repeat(6, 1fr);
  }
  .mobile-nav button {
    font-size: .61rem;
  }
  .landing-screen {
    padding: 1.25rem;
  }
  .landing-logo {
    width: 96vw;
  }
  .auth-logo {
    width: min(360px, 90vw);
  }
  .workflow-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
    padding-bottom: 0;
  }
  .workflow-steps span {
    min-width: 0;
  }
  .owner-recovery {
    grid-template-columns: 1fr;
  }
  .response {
    flex-direction: column;
  }
  .rate-calculator-head { align-items: stretch; flex-direction: column; }
  .rate-grid,.pricing-admin-grid { grid-template-columns: 1fr 1fr; }
  #loadFilter {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .4rem;
    overflow: visible;
    padding: 0;
    background: transparent;
  }
  #loadFilter button {
    min-width: 0;
    white-space: normal;
    line-height: 1.2;
    padding: .65rem .45rem;
    background: #e7edf3;
  }
  #loadFilter button.active {
    background: var(--navy);
    color: #fff;
  }
}

/* Let the content column shrink instead of pushing desktop navigation offscreen. */
.content-wrap { min-width: 0; }
.toolbar { flex-wrap: wrap; gap: .75rem; }
.segmented { max-width: 100%; overflow-x: auto; }
@media (min-width: 761px) {
  .topbar { height: auto; min-height: 92px; flex-wrap: wrap; gap: .75rem; padding-top: .75rem; padding-bottom: .75rem; }
  .top-actions { flex-wrap: wrap; min-width: 0; max-width: 100%; }
  .demo-switcher { flex-wrap: wrap; min-width: 0; max-width: 100%; }
  .demo-switcher span { white-space: normal; }
}