/* Pilot Car Helper v40 - Solo Operator Phone Mode */
body.pch-solo-active {
  background: #F1F5F9 !important;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}
body.pch-solo-active > :not(#pchSoloApp):not(#pchPreviewBar):not(#pchPreviewOverlay):not(#pchHowToBg):not(#pchHelpPop):not(#permitModalBg):not(script):not(style) {
  display: none !important;
}
#pchSoloApp {
  display: none;
  max-width: 520px;
  min-height: 100vh;
  margin: 0 auto;
  background: #F1F5F9;
  color: #0F172A;
  padding-bottom: 84px;
  box-sizing: border-box;
}
body.pch-solo-active #pchSoloApp { display: block; }
.ps-top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #0B1528;
  color: #FFFFFF;
  border-bottom: 2px solid #FACC15;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ps-brand { display: flex; align-items: center; gap: 8px; }
.ps-brand-txt strong { display: block; font-size: 14px; color: #FFFFFF; line-height: 1.1; }
.ps-brand-txt span { display: block; font-size: 11px; color: #FACC15; font-weight: 700; }
.ps-top-btns { display: flex; gap: 6px; }
.ps-mini-btn {
  min-height: 34px !important;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid #334155;
  background: #1E293B;
  color: #F8FAFC;
  font-size: 12px !important;
  font-weight: 800;
  cursor: pointer;
}
.ps-body { padding: 14px 12px 20px; }
.ps-card {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 3px 10px rgba(11, 21, 40, 0.06);
}
.ps-card.is-active-job { border-left: 5px solid #FACC15; }
.ps-eyebrow { font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.04em; color: #0284C7; margin-bottom: 4px; }
.ps-title { font-size: 17px; font-weight: 900; color: #0B1528; margin: 0 0 4px; }
.ps-route { font-size: 14px; font-weight: 700; color: #334155; margin-bottom: 8px; }
.ps-meta { font-size: 12.5px; color: #475569; margin-bottom: 10px; }
.ps-timer-box {
  background: #0B1528;
  color: #FFFFFF;
  border-radius: 12px;
  padding: 12px;
  margin: 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.ps-timer-box.is-running { border: 2px solid #FACC15; }
.ps-clock { font-size: 22px; font-weight: 900; color: #FACC15; font-variant-numeric: tabular-nums; }
.ps-btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.ps-btn {
  width: 100%;
  min-height: 46px !important;
  border-radius: 11px;
  border: none;
  font-size: 14px !important;
  font-weight: 800;
  cursor: pointer;
  padding: 10px 12px;
}
.ps-btn-yellow { background: #FACC15; color: #0B1528; }
.ps-btn-navy { background: #0B1528; color: #FFFFFF; }
.ps-btn-green { background: #059669; color: #FFFFFF; }
.ps-btn-red { background: #DC2626; color: #FFFFFF; }
.ps-btn-light { background: #E2E8F0; color: #0B1528; }
.ps-field { margin-bottom: 12px; }
.ps-field label { display: block; font-size: 13px; font-weight: 800; color: #0B1528; margin-bottom: 5px; }
.ps-field input, .ps-field select, .ps-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1.5px solid #CBD5E1;
  border-radius: 10px;
  font-size: 16px;
  background: #FFFFFF;
  color: #0F172A;
  box-sizing: border-box;
}
.ps-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ps-kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.ps-kpi { background: #FFFFFF; border: 1px solid #CBD5E1; border-radius: 12px; padding: 12px; }
.ps-kpi span { display: block; font-size: 11.5px; font-weight: 800; color: #475569; text-transform: uppercase; }
.ps-kpi strong { display: block; font-size: 22px; font-weight: 900; margin-top: 2px; }
.ps-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 520px;
  background: #0B1528;
  border-top: 2px solid #1E293B;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  z-index: 50;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.ps-tab {
  min-height: 58px !important;
  border: none;
  background: transparent;
  color: #94A3B8;
  font-size: 12.5px !important;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.ps-tab.is-on { color: #FACC15; border-top: 3px solid #FACC15; }
.ps-toast {
  position: fixed;
  left: 50%;
  bottom: 72px;
  transform: translateX(-50%);
  background: #0B1528;
  color: #FACC15;
  border: 1.5px solid #FACC15;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  z-index: 96000;
}
.ps-finish-box { background: #F8FAFC; border: 1.5px solid #0284C7; border-radius: 10px; padding: 10px; margin-top: 10px; }

.ps-hint { font-size: 11.5px; color: #64748B; margin-top: 4px; line-height: 1.35; }
.ps-pay-box { background: #F8FAFC; border: 1.5px solid #CBD5E1; border-radius: 12px; padding: 12px; margin-bottom: 12px; }
.ps-pay-preview { background: #0B1528; color: #FACC15; border-radius: 10px; padding: 10px 12px; font-size: 13px; font-weight: 800; line-height: 1.4; margin-top: 8px; }

/* v42 Multi-day strip & optional mileage log */
.ps-multi-box { background: #F8FAFC; border: 1px solid #CBD5E1; border-radius: 11px; padding: 10px; margin: 10px 0; }
.ps-multi-stats { display: flex; justify-content: space-between; gap: 6px; font-size: 12px; font-weight: 800; color: #334155; margin-bottom: 8px; flex-wrap: wrap; }
.ps-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ps-sm-btn {
  min-height: 38px !important; border-radius: 9px; border: 1.5px solid #CBD5E1;
  background: #FFFFFF; color: #0B1528; font-size: 12.5px !important; font-weight: 800; cursor: pointer; padding: 6px;
}
.ps-sm-btn:active { background: #FEF08A; border-color: #CA8A04; }
.ps-check-row {
  display: flex; align-items: center; gap: 10px; background: #FFFFFF; border: 1.5px solid #CBD5E1;
  border-radius: 10px; padding: 10px 12px; margin: 8px 0; cursor: pointer; font-size: 13.5px; font-weight: 800; color: #0B1528;
}
.ps-check-row input { width: 20px !important; height: 20px !important; min-height: 20px !important; margin: 0; }
