/* EarthRoute2Scanner V13.1.1 — verified Driver action contrast fix.
   The live Driver page is #v67DriverPage (not #page-driver). */

#v67DriverPage .v110-primary-grid,
#v110DriverTemplate .v110-primary-grid,
.v110-driver-screen .v110-primary-grid {
  align-items: stretch !important;
}

/* Higher specificity than the V12.6 white-card theme override. */
#v67DriverPage .v110-primary-grid .v110-action,
#v110DriverTemplate .v110-primary-grid .v110-action,
.v110-driver-screen .v110-primary-grid .v110-action {
  min-width: 0 !important;
  min-height: 112px !important;
  overflow: hidden !important;
  color: #f8fafc !important;
  border-radius: 22px !important;
  box-shadow: 0 12px 28px rgba(2, 6, 23, .30) !important;
  -webkit-tap-highlight-color: transparent;
  opacity: 1 !important;
}

#v67DriverPage .v110-primary-grid .v110-action > span,
#v67DriverPage .v110-primary-grid .v110-action > b,
#v67DriverPage .v110-primary-grid .v110-action > small,
#v110DriverTemplate .v110-primary-grid .v110-action > span,
#v110DriverTemplate .v110-primary-grid .v110-action > b,
#v110DriverTemplate .v110-primary-grid .v110-action > small,
.v110-driver-screen .v110-primary-grid .v110-action > span,
.v110-driver-screen .v110-primary-grid .v110-action > b,
.v110-driver-screen .v110-primary-grid .v110-action > small {
  position: relative !important;
  z-index: 1 !important;
  display: block !important;
  max-width: 100% !important;
  overflow-wrap: anywhere !important;
  opacity: 1 !important;
}

#v67DriverPage .v110-primary-grid .v110-action > span,
#v110DriverTemplate .v110-primary-grid .v110-action > span,
.v110-driver-screen .v110-primary-grid .v110-action > span {
  line-height: 1 !important;
  font-size: 30px !important;
}

#v67DriverPage .v110-primary-grid .v110-action > b,
#v110DriverTemplate .v110-primary-grid .v110-action > b,
.v110-driver-screen .v110-primary-grid .v110-action > b {
  margin-top: 10px !important;
  color: #ffffff !important;
  font-size: 17px !important;
  line-height: 1.18 !important;
  font-weight: 850 !important;
  letter-spacing: -.01em !important;
}

#v67DriverPage .v110-primary-grid .v110-action > small,
#v110DriverTemplate .v110-primary-grid .v110-action > small,
.v110-driver-screen .v110-primary-grid .v110-action > small {
  margin-top: 7px !important;
  color: #a9b9cc !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  font-weight: 650 !important;
}

#v67DriverPage .v110-primary-grid .v110-scan,
#v110DriverTemplate .v110-primary-grid .v110-scan,
.v110-driver-screen .v110-primary-grid .v110-scan {
  background: radial-gradient(circle at 12% 5%, rgba(16,185,129,.24), transparent 43%), linear-gradient(145deg,#102b31 0%,#091827 100%) !important;
  border: 1px solid rgba(16,185,129,.52) !important;
}

#v67DriverPage .v110-primary-grid .v110-scan > span,
#v110DriverTemplate .v110-primary-grid .v110-scan > span,
.v110-driver-screen .v110-primary-grid .v110-scan > span {
  color: #34d399 !important;
}

#v67DriverPage .v110-primary-grid .v110-navigate,
#v110DriverTemplate .v110-primary-grid .v110-navigate,
.v110-driver-screen .v110-primary-grid .v110-navigate {
  background: radial-gradient(circle at 12% 5%, rgba(59,130,246,.25), transparent 43%), linear-gradient(145deg,#142b4b 0%,#091827 100%) !important;
  border: 1px solid rgba(59,130,246,.56) !important;
}

#v67DriverPage .v110-primary-grid .v110-navigate > span,
#v110DriverTemplate .v110-primary-grid .v110-navigate > span,
.v110-driver-screen .v110-primary-grid .v110-navigate > span {
  color: #60a5fa !important;
}

/* Disabled actions remain dark and readable. */
#v67DriverPage .v110-primary-grid .v110-action:disabled,
#v110DriverTemplate .v110-primary-grid .v110-action:disabled,
.v110-driver-screen .v110-primary-grid .v110-action:disabled {
  opacity: .62 !important;
  filter: saturate(.78) !important;
  color: #e5edf7 !important;
}

#v67DriverPage .v110-primary-grid .v110-action:disabled > b,
#v110DriverTemplate .v110-primary-grid .v110-action:disabled > b,
.v110-driver-screen .v110-primary-grid .v110-action:disabled > b {
  color: #eef5fc !important;
}

#v67DriverPage .v110-primary-grid .v110-action:disabled > small,
#v110DriverTemplate .v110-primary-grid .v110-action:disabled > small,
.v110-driver-screen .v110-primary-grid .v110-action:disabled > small {
  color: #91a4ba !important;
}

@media (max-width: 390px) {
  #v67DriverPage .v110-primary-grid .v110-action,
  #v110DriverTemplate .v110-primary-grid .v110-action,
  .v110-driver-screen .v110-primary-grid .v110-action {
    min-height: 104px !important;
    padding: 14px !important;
  }
}
