/* JKE Driver — AnyVan-style dark mobile UI */
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #000;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.app {
  position: relative;
  height: 100%;
  max-width: 480px;
  margin: 0 auto;
  background: #000;
  overflow: hidden;
  /* Steady shell — stop layout thrash from child reflows */
  contain: layout style;
}

/* Native full-app shell — edge-to-edge on phone / installed PWA */
html.jke-native-app,
html.jke-native-app body {
  overscroll-behavior: none;
  -webkit-overflow-scrolling: touch;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
html.jke-native-app body {
  position: fixed;
  inset: 0;
  width: 100%;
  overflow: hidden;
}
html.jke-native-app .app {
  max-width: none;
  width: 100%;
  margin: 0;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
}
html.jke-native-app.theme-light,
html.jke-native-app.theme-light body {
  background: #f2f2f7;
}
html.jke-native-app .nav-sheet,
html.jke-native-app .ios-install-dock {
  max-width: none;
  left: 0;
  right: 0;
  margin: 0;
}
html.jke-native-app .ios-install-dock {
  left: .75rem;
  right: .75rem;
}
html.jke-native-app .panel {
  width: 100%;
  max-width: none;
  left: 0;
  right: 0;
}
html.jke-native-app .screen-login {
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}
html.jke-standalone .app {
  max-width: none;
}

/* Login */
.screen-login {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: #000;
}
.login-card {
  width: 100%;
  max-width: 340px;
}
.login-logo {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 0.5rem;
}
.login-title {
  margin: 0;
  text-align: center;
  font-size: 1.5rem;
}
.login-sub {
  text-align: center;
  color: #8e8e93;
  font-size: 0.9rem;
  margin: 0.5rem 0 1.25rem;
}
.login-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #8e8e93;
  text-transform: uppercase;
  margin: 0.75rem 0 0.35rem;
}
.login-input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid #333;
  border-radius: 12px;
  background: #1c1c1e;
  color: #fff;
  font-size: 1.05rem;
}
.login-input:focus {
  outline: none;
  border-color: #0a84ff;
}
.login-btn {
  width: 100%;
  margin-top: 1.25rem;
  padding: 0.95rem;
  border: none;
  border-radius: 12px;
  background: #0a84ff;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  min-height: 48px;
}
.login-btn:disabled {
  opacity: 0.5;
  pointer-events: none;
}
.login-btn:active:not(:disabled) {
  transform: scale(0.98);
  opacity: 0.92;
}
.login-btn--primary {
  margin-top: 0.85rem;
  background: #0a84ff;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
}
.login-btn--primary:hover { background: #0077ed; }
.login-btn--secondary {
  margin-top: 0.65rem;
  background: #2c2c2e;
  color: #fff;
}
.login-btn--secondary:hover { background: #3a3a3c; }
html.theme-light .login-btn--secondary {
  background: #e5e5ea;
  color: #000;
}
.login-error {
  color: #ff453a;
  font-size: 0.85rem;
  margin: 0.75rem 0 0;
}
.login-help {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.78rem;
  color: #636366;
  line-height: 1.45;
}
/* Steady sign-in screen — no spinner / no bounce (solid black card only) */
.login-loading {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: #000;
}
.login-loading[hidden] { display: none !important; }
.login-loading-box {
  width: 100%;
  max-width: 280px;
  text-align: center;
  padding: 1.5rem 1.25rem;
  border-radius: 16px;
  background: #0a0a0a;
  border: 1px solid #2c2c2e;
}
.login-loading-spinner {
  display: none !important; /* no spinning wheel */
}
@keyframes login-spin {
  to { transform: none; }
}
.login-loading-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
}
.login-loading-sub {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: #8e8e93;
}
html.theme-light .login-loading { background: #f2f2f7; }
html.theme-light .login-loading-box {
  background: #fff;
  border-color: #e5e5ea;
}
html.theme-light .login-loading-title { color: #000; }
html.theme-light .login-loading-sub { color: #636366; }
.login-btn--busy {
  opacity: 0.75;
  pointer-events: none;
  /* keep label visible — no spinner overlay */
}
.login-btn--busy::after {
  display: none !important;
  content: none !important;
  animation: none !important;
}
.login-hint {
  margin: 0.35rem 0 0.75rem;
  font-size: 0.82rem;
  color: #8e8e93;
  line-height: 1.4;
}
.login-hint--timer {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  color: #636366;
}
.login-link-btn {
  display: block;
  width: 100%;
  margin-top: 0.65rem;
  padding: 0.5rem;
  border: 0;
  background: transparent;
  color: #0a84ff;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}
html.theme-light .login-hint { color: #636366; }

/* Side drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 9000;
}
.drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(320px, 88vw);
  background: #0a0a0a;
  z-index: 9001;
  transform: translateX(-105%);
  transition: transform .28s ease;
  display: flex;
  flex-direction: column;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
  border-right: 1px solid #1a1a1a;
}
.drawer.open { transform: translateX(0); }
.drawer-close {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top));
  left: 14px;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  padding: 4px 8px;
  cursor: pointer;
}
.drawer-profile {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 3.5rem 1.25rem 1rem;
  gap: 1rem;
}
.drawer-first { font-size: 1.35rem; font-weight: 600; }
.drawer-name { font-size: 1.35rem; font-weight: 600; margin-top: .1rem; }
.drawer-org, .drawer-id { color: #8e8e93; font-size: .95rem; margin-top: .15rem; }
.drawer-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #3a3a3c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}
.drawer-shift {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin: 0 1rem 1rem;
  padding: .85rem 1rem;
  background: #1c1c1e;
  border-radius: 12px;
  font-weight: 600;
  border: 1px solid #2c2c2e;
  transition: background .2s, border-color .2s;
}
.drawer-shift--on {
  background: rgba(52, 199, 89, .12);
  border-color: rgba(52, 199, 89, .45);
}
.drawer-shift-text {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  flex: 1;
  min-width: 0;
}
.drawer-shift-clock {
  font-size: .74rem;
  font-weight: 600;
  color: #8e8e93;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  min-height: 1.1em;
  white-space: nowrap;
  /* always in layout — never hide/show (that was the glitch) */
  display: block;
}
.drawer-shift--on .drawer-shift-clock { color: #30d158; }
.drawer-shift--on #shift-label { color: #30d158; }
.drawer-shift-icon { opacity: .85; }
.toggle {
  margin-left: auto;
  position: relative;
  width: 52px;
  height: 32px;
  flex-shrink: 0;
  cursor: pointer;
}
.toggle input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  z-index: 2;
}
.toggle-slider {
  position: absolute;
  inset: 0;
  background: #3a3a3c;
  border-radius: 999px;
  transition: .2s;
}
.toggle-slider::before {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  left: 2px;
  top: 2px;
  background: #fff;
  border-radius: 50%;
  transition: .2s;
}
.toggle input:checked + .toggle-slider { background: #34c759; }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); }
.drawer-nav {
  flex: 1;
  margin: 0 1rem;
  background: #1c1c1e;
  border-radius: 12px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.drawer-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  width: 100%;
  padding: .95rem 1rem;
  color: #fff;
  text-decoration: none;
  border: none;
  border-bottom: 1px solid #2c2c2e;
  border-radius: 0;
  background: transparent;
  font: inherit;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.drawer-link:active { background: rgba(255, 255, 255, .06); }
.drawer-link:last-child { border-bottom: none; }
.drawer-link::after {
  content: "›";
  margin-left: auto;
  color: #0a84ff;
  font-size: 1.2rem;
}
.drawer-link-icon { width: 1.25rem; text-align: center; opacity: .9; }
.drawer-footer {
  display: flex;
  justify-content: space-between;
  padding: 1.25rem;
  color: #8e8e93;
  font-size: .85rem;
}

/* Screens */
.screen {
  display: none;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}
.screen--active { display: flex; }
/* Login must win over .screen { display:none } — same element has both classes */
.screen.screen-login { display: flex; }
.screen.screen-login[hidden] { display: none !important; }
html.jke-signed-in #screen-login,
html.jke-signed-in .screen-login { display: none !important; }
#screen-list:not([hidden]) { position: relative; z-index: 1; }
#screen-job { position: relative; z-index: 10; }
html:has(#screen-job.screen--active) #screen-list {
  display: none !important;
}

.topbar, .job-topbar {
  display: flex;
  align-items: center;
  padding: .65rem .75rem;
  padding-top: calc(.65rem + env(safe-area-inset-top));
  padding-left: max(.75rem, env(safe-area-inset-left));
  background: #000;
  border-bottom: 1px solid #1c1c1e;
  flex-shrink: 0;
  position: relative;
  z-index: 400;
  isolation: isolate;
}
.topbar-menu, .job-back {
  background: none;
  border: none;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: .45rem .55rem;
  cursor: pointer;
  line-height: 1.1;
  min-width: 3.5rem;
  min-height: 44px;
  text-align: left;
  position: relative;
  z-index: 60;
  pointer-events: auto !important;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(47, 111, 237, .18);
  -webkit-user-select: none;
  user-select: none;
}
html.jke-platform-ios .job-back {
  min-width: 76px;
  min-height: 48px;
  padding: 12px 18px 12px 10px;
}
.topbar-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 0;
  gap: 0.12rem;
}
.topbar-title {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.topbar-right {
  min-width: 4.5rem;
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-left: auto;
  padding-right: .15rem;
}
.topbar-live {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .72rem;
  color: #30d158;
  font-weight: 700;
  white-space: nowrap;
}
.topbar-live-timer {
  font-variant-numeric: tabular-nums;
  letter-spacing: .03em;
  min-width: 3.2rem;
  text-align: right;
  display: inline-block;
}
.topbar-live[hidden] { display: none !important; }
.topbar-shift {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: nowrap;
}
.topbar-shift[hidden] { display: none !important; }
.topbar-live {
  border: none;
  background: transparent;
  cursor: default;
  padding: 0;
}
button.topbar-live { cursor: pointer; }
.topbar-end-shift {
  border: 1px solid rgba(255, 59, 48, 0.55);
  background: rgba(255, 59, 48, 0.12);
  color: #ff453a;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
  cursor: pointer;
  white-space: nowrap;
}
.topbar-end-shift:active { opacity: 0.85; }
.drawer-end-shift {
  display: block;
  width: 100%;
  margin: 0.65rem 0 0.25rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 59, 48, 0.45);
  border-radius: 12px;
  background: rgba(255, 59, 48, 0.1);
  color: #ff453a;
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
}
.drawer-end-shift[hidden] { display: none !important; }
html.theme-light .topbar-end-shift,
html.theme-light .drawer-end-shift {
  color: #d70015;
  border-color: rgba(215, 0, 21, 0.35);
  background: rgba(255, 59, 48, 0.08);
}
.topbar-live-dot {
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: #30d158;
  flex-shrink: 0;
  /* solid LIVE dot — no pulse (steady screen) */
  animation: none !important;
}
@keyframes topbar-live-pulse {
  0%, 100% {
    box-shadow: none;
    transform: none;
  }
  50% {
    box-shadow: none;
    transform: none;
  }
}
.topbar-sort-wrap {
  display: flex;
  justify-content: center;
  min-width: 8.5rem;
}
.topbar-sort {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  background: #1c1c1e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath fill='%23ffffff' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 0.7rem center;
  border: 1px solid #3a3a3c;
  border-radius: 10px;
  padding: 0.45rem 1.8rem 0.45rem 0.85rem;
  min-width: 8.5rem;
  max-width: 11rem;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.sort-hint {
  margin: 0;
  padding: 0 .75rem .45rem;
  font-size: .72rem;
  color: #636366;
  background: #000;
  border-bottom: 1px solid #1c1c1e;
}
.sort-hint[hidden] { display: none !important; }
.run-card-sort {
  font-size: .72rem;
  color: #8e8e93;
  margin: 0 0 .35rem;
}
.run-card-sort--urgent { color: #ff453a; font-weight: 700; }
.job-topbar-center { flex: 1; text-align: center; min-width: 0; }
.job-id {
  font-size: .98rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.job-sub { font-size: .72rem; color: #8e8e93; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.theme-light .job-topbar {
  background: #fff;
  border-bottom-color: #e5e5ea;
}
html.theme-light .job-id { color: #111; }

.run-list {
  padding: .75rem;
  padding-bottom: .75rem;
}
.empty-state {
  color: #8e8e93;
  font-size: .92rem;
  line-height: 1.45;
  padding: 1rem .25rem;
}
.login-logo-mark {
  width: 4rem;
  height: 4rem;
  margin: 0 auto .75rem;
  border-radius: 16px;
  background: #0a84ff;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: .04em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-menu {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}
.topbar-menu {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  z-index: 2;
}
.icon-menu { pointer-events: none; }
.drawer-avatar-mark {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: #2c2c2e;
  flex-shrink: 0;
}
body.drawer-open { overflow: hidden; }
.get-app-strip {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: .5rem .75rem 0;
  padding: .55rem .55rem .55rem .85rem;
  background: #0a84ff;
  color: #fff;
  border-radius: 10px;
  flex-shrink: 0;
}
.get-app-strip-link {
  flex: 1;
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  text-decoration: none;
  line-height: 1.3;
}
.get-app-strip-dismiss {
  border: 0;
  background: rgba(255,255,255,.18);
  color: #fff;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.get-app-strip[hidden] { display: none !important; }
.run-job-group {
  margin: 0 0 .7rem;
  padding: .55rem .6rem .5rem;
  background: #1c1c1e;
  border: 1px solid #2c2c2e;
  border-radius: 14px;
}
.run-job-group-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem .45rem;
  margin: 0 0 .4rem .05rem;
}
.run-job-group-ref {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #0a84ff;
}
.run-job-sort {
  font-size: .7rem;
  font-weight: 700;
  color: #ffd60a;
}
.run-job-group-route {
  font-size: .8rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0;
  text-transform: none;
}
.run-job-group-cargo,
.run-job-group-meta,
.run-job-group-flags {
  margin: 0 0 .4rem .05rem;
  font-size: .76rem;
  color: #8e8e93;
  line-height: 1.3;
}
.run-job-group-cargo { color: #aeaeb2; }
.run-job-group-flags {
  color: #ff9f0a;
  font-weight: 600;
}
.run-stop-row {
  display: flex;
  align-items: center;
  gap: .55rem;
  width: 100%;
  margin: 0 0 .55rem;
  padding: .65rem .7rem;
  min-height: 64px;
  border: 1px solid #2c2c2e;
  border-radius: 12px;
  background: #1c1c1e;
  color: #fff;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.run-stop-row:last-child { margin-bottom: .55rem; }
.run-stop-row:active { opacity: .88; }
.run-stop-row--wait { opacity: .78; }
.run-stop-row--wait .run-stop-go { color: #8e8e93; }
.run-stop-tag {
  flex-shrink: 0;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .28rem .42rem;
  border-radius: 6px;
}
.run-stop-row--pickup .run-stop-tag { background: #ff9500; color: #000; }
.run-stop-row--dropoff .run-stop-tag { background: #0a84ff; color: #fff; }
.run-stop-mid { flex: 1; min-width: 0; }
.run-stop-when {
  display: block;
  margin-bottom: .12rem;
  font-weight: 800;
  font-size: .86rem;
  letter-spacing: .01em;
  color: #ffd60a;
}
.run-stop-pc {
  display: block;
  font-weight: 800;
  font-size: .92rem;
  line-height: 1.25;
  white-space: normal;
  overflow: visible;
  word-break: break-word;
}
.run-stop-load {
  display: block;
  margin-top: .12rem;
  font-size: .8rem;
  font-weight: 700;
  color: #e5e5ea;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.run-stop-tight {
  display: inline-block;
  margin-left: .35rem;
  padding: .05rem .35rem;
  border-radius: 999px;
  background: #30d158;
  color: #000;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .02em;
  vertical-align: middle;
}
.run-stop-addr {
  display: block;
  margin-top: .12rem;
  font-size: .78rem;
  color: #aeaeb2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.run-stop-go {
  flex-shrink: 0;
  align-self: flex-start;
  font-weight: 800;
  font-size: .92rem;
  color: #30d158;
}
.run-stop-go--ok { color: #30d158; }
.run-stop-go--tight { color: #ffd60a; }
.run-stop-go--late { color: #ff453a; }
.run-card {
  background: #1c1c1e;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: .5rem;
  cursor: pointer;
  border: 1px solid #2c2c2e;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(255, 149, 0, 0.25);
  user-select: none;
  pointer-events: auto !important;
  position: relative;
  z-index: 2;
}
.run-card:last-child { margin-bottom: 0; }
.run-card:active { opacity: .85; transform: scale(0.99); }
.run-card-open-btn {
  display: block;
  width: 100%;
  margin-top: .65rem;
  padding: .85rem 1rem;
  border: none;
  border-radius: 12px;
  background: #ff9500;
  color: #000;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  min-height: 48px;
  pointer-events: auto !important;
}
.run-card--dropoff .run-card-open-btn {
  background: #0a84ff;
  color: #fff;
}
.run-card-open-btn:active { transform: scale(0.98); opacity: .92; }
.run-card-open-btn--locked {
  background: #3a3a3c !important;
  color: #8e8e93 !important;
  cursor: not-allowed;
  text-align: center;
}
.run-card--pickup { border-left: 4px solid #ff9500; }
.run-card--dropoff { border-left: 4px solid #0a84ff; }
.run-card--locked {
  opacity: .5;
  cursor: not-allowed;
}
.run-card--locked:active { opacity: .5; }
.run-card-phase {
  display: inline-block;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .06em;
  padding: .2rem .45rem;
  border-radius: 4px;
  margin-bottom: .35rem;
}
.run-card-phase--pickup { background: #ff9500; color: #000; }
.run-card-phase--dropoff { background: #0a84ff; color: #fff; }
.run-card-title { font-weight: 600; margin: 0 0 .25rem; font-size: .95rem; color: #fff; }
.run-card--pickup .run-card-cta { color: #ff9f0a; }
.run-card--dropoff .run-card-cta { color: #0a84ff; }
.run-card-meta { color: #8e8e93; font-size: .82rem; }
.run-card-ref {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  color: #0a84ff;
  margin-bottom: .35rem;
}
.run-card-journey {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem .5rem;
  margin: .55rem 0 .35rem;
}
.run-leg {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: .2rem .45rem;
  border-radius: 5px;
  background: #2c2c2e;
  color: #8e8e93;
}
.run-leg--pickup { background: rgba(255,149,0,.2); color: #ff9500; }
.run-leg--dropoff { background: rgba(10,132,255,.2); color: #0a84ff; }
.run-leg--active { box-shadow: 0 0 0 2px currentColor; }
.run-leg--done { opacity: .45; text-decoration: line-through; }
.run-leg-arrow { color: #636366; font-size: .85rem; }
.run-card-cta {
  margin: .25rem 0 0;
  font-size: .82rem;
  color: #30d158;
  font-weight: 600;
}
.run-card-cta--muted { color: #8e8e93; }
.run-card-sort--muted { color: #636366; }
.job-pair {
  margin: 0 0 .75rem;
  padding: .65rem .75rem;
  background: #1c1c1e;
  border-radius: 10px;
  border: 1px solid #2c2c2e;
}
.job-pair-ref {
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .05em;
  color: #0a84ff;
}
.job-pair-route {
  margin-top: .35rem;
  font-size: .78rem;
  color: #aeaeb2;
  line-height: 1.45;
}

/* Job detail */
.job-map-wrap {
  position: relative;
  height: 200px;
  min-height: 200px;
  max-height: 200px;
  flex-shrink: 0;
  background: #1a1a2e;
  overflow: hidden;
  contain: strict;
}
.job-map {
  width: 100%;
  height: 100%;
  z-index: 1;
}
/* Leaflet: no fade flicker on tiles */
.job-map .leaflet-fade-anim .leaflet-tile,
.job-map .leaflet-zoom-anim .leaflet-zoom-animated {
  transition: none !important;
}
.job-map .leaflet-control-attribution { font-size: 9px; }
.map-pin-wrap { background: none; border: none; }
.map-pin {
  display: block;
  box-sizing: border-box;
}
.map-pin--job {
  width: 18px;
  height: 18px;
  margin: 0 auto;
  background: var(--pin-color, #ff9500);
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.map-pin--driver {
  width: 16px;
  height: 16px;
  margin: 3px;
  background: #0a84ff;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(10,132,255,.25);
  /* no pulse animation — stops “moving” feel on the map */
}
.job-map-driver {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: .45rem;
  background: rgba(10,132,255,.92);
  color: #fff;
  padding: .4rem .6rem;
  border-radius: 8px;
  font-size: .76rem;
  font-weight: 600;
  line-height: 1.25;
  pointer-events: none;
}
.job-map-driver-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
}
.job-map-corner {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 520;
}
.job-map-corner[hidden] { display: none !important; }
.job-map-preview {
  display: block;
  width: 78px;
  height: 58px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 8px;
  overflow: hidden;
  background: #1c1c1e;
  box-shadow: 0 2px 10px rgba(0,0,0,.45);
  cursor: pointer;
  touch-action: manipulation;
}
.job-map-preview[hidden] { display: none !important; }
.job-map-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.job-map-peek {
  position: absolute;
  inset: 0;
  z-index: 540;
  background: #111;
}
.job-map-peek[hidden] { display: none !important; }
.job-map-peek-img {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  background: #111;
}
.job-map-peek-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 541;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 16px;
  background: rgba(0,0,0,.72);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.job-map-label {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 60px;
  background: rgba(28,28,30,.92);
  padding: .45rem .65rem;
  border-radius: 8px;
  font-size: .78rem;
  line-height: 1.3;
}

.job-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 1rem calc(240px + env(safe-area-inset-bottom));
  -webkit-overflow-scrolling: touch;
}
.job-note-wrap--active {
  margin-top: .45rem;
  padding: .45rem .6rem;
  border-radius: 10px;
  background: #ffffff !important;
  border: 1px solid #d1d1d6 !important;
  color: #111111 !important;
}
.job-note-wrap--active .job-note-head {
  color: #111111 !important;
  font-weight: 700;
  font-size: .75rem;
  background: #ffffff !important;
}
.job-note-wrap--active .job-note-body {
  color: #111111 !important;
  font-weight: 600;
  line-height: 1.3;
  font-size: .84rem;
  background: #ffffff !important;
}
.job-print-docs {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  margin: .55rem 0 .75rem;
}
.job-print-doc {
  display: block;
  text-align: center;
  background: #0f172a;
  color: #fff !important;
  font-weight: 800;
  font-size: .92rem;
  text-decoration: none;
  padding: .78rem .85rem;
  border-radius: 10px;
}
.job-print-doc--load { background: #9a3412; }
.job-print-doc--unload { background: #0f172a; }
.job-share-papers {
  margin: 0 0 .85rem;
  padding: .7rem .75rem;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
}
.job-share-papers-lead {
  margin: 0 0 .45rem;
  font-size: .78rem;
  font-weight: 650;
  color: #334155;
  line-height: 1.35;
}
.job-share-papers-row {
  display: flex;
  gap: .4rem;
}
.job-share-papers-row input {
  flex: 1;
  min-width: 0;
  border: 1px solid #94a3b8;
  border-radius: 8px;
  padding: .55rem .6rem;
  font-size: 1rem;
}
.job-share-papers-row button {
  border: 0;
  border-radius: 8px;
  background: #0f172a;
  color: #fff;
  font-weight: 800;
  padding: .55rem .8rem;
  font-size: .88rem;
}
.job-share-status { margin: .4rem 0 0; font-size: .78rem; font-weight: 700; }
.job-share-status--ok { color: #166534; }
.job-share-status--err { color: #b91c1c; }
.job-share-status--busy { color: #1e40af; }
.job-doc-hint {
  margin: .65rem 0;
  padding: .65rem .85rem;
  border-radius: 10px;
  font-size: .88rem;
  line-height: 1.4;
}
.job-doc-hint--broker {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
}
.job-doc-hint--private {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}
html.theme-light .job-doc-hint--broker { background: #fff7ed; color: #9a3412; }
html.theme-light .job-doc-hint--private { background: #ecfdf5; color: #065f46; }

/* trans.eu stamped ORIGINAL CMR checklist */
.broker-proof-panel {
  margin: .75rem 0 1rem;
  padding: .9rem 1rem;
  border-radius: 14px;
  background: linear-gradient(160deg, #1a1208 0%, #2a1a0a 100%);
  border: 2px solid #f59e0b;
  color: #fef3c7;
}
.broker-proof-panel[hidden] { display: none !important; }
.broker-proof-title {
  margin: 0 0 .4rem;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: .02em;
  color: #fbbf24;
}
.broker-proof-lead {
  margin: 0 0 .75rem;
  font-size: .86rem;
  line-height: 1.45;
  color: #fde68a;
}
.broker-proof-list {
  margin: 0 0 .85rem;
  padding: 0 0 0 1.15rem;
  font-size: .88rem;
  line-height: 1.5;
  font-weight: 700;
}
.broker-proof-list li {
  margin: .35rem 0;
  color: #fca5a5;
}
.broker-proof-list li.bp-done {
  color: #86efac;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.broker-proof-list li.bp-now {
  color: #fef08a;
  list-style: none;
  margin-left: -.15rem;
}
.broker-proof-list li.bp-now::before {
  content: "→ ";
  color: #fbbf24;
  font-weight: 900;
}
.broker-proof-cta { display: none !important; } /* no big button — use Photo / Sign */
.photo-kind-hint {
  margin: 0 .75rem .65rem;
  padding: .65rem .75rem;
  border-radius: 10px;
  background: #3a2a00;
  color: #ffd60a;
  font-size: .85rem;
  font-weight: 700;
  line-height: 1.4;
}
.photo-kind-hint[hidden] { display: none !important; }
html.theme-light .broker-proof-panel {
  background: #fffbeb;
  border-color: #f59e0b;
  color: #78350f;
}
html.theme-light .broker-proof-title { color: #b45309; }
html.theme-light .broker-proof-lead { color: #92400e; }
html.theme-light .broker-proof-list li { color: #b91c1c; }
html.theme-light .broker-proof-list li.bp-done { color: #15803d; }
html.theme-light .broker-proof-list li.bp-now { color: #a16207; }
.job-phase-badge {
  display: inline-block;
  margin-top: .85rem;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .08em;
  padding: .25rem .5rem;
  border-radius: 4px;
  background: #ff9500;
  color: #000;
}
.job-phase-badge--dropoff { background: #0a84ff; color: #fff; }

.job-go-now {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: .75rem;
  padding: .75rem .85rem;
  background: #0a84ff;
  border-radius: 12px;
  color: #fff;
}
.job-go-now-text {
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.35;
  flex: 1;
}
.job-go-now-btn {
  flex-shrink: 0;
  padding: .55rem .85rem;
  background: #fff;
  color: #0a84ff;
  border-radius: 10px;
  font-weight: 800;
  font-size: .88rem;
  text-decoration: none;
  white-space: nowrap;
}
html.theme-light .job-go-now { background: #0a84ff; }

.job-at-location {
  margin-top: .75rem;
  padding: .75rem .85rem;
  border-radius: 12px;
  border: 1px solid #333;
  background: #1c1c1e;
}
.job-at-location--ok {
  border-color: rgba(48, 209, 88, .45);
  background: rgba(48, 209, 88, .1);
}
.job-at-location--wait { border-color: #3a3a3c; }
.job-at-location-head {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
}
.job-at-location-dot {
  width: .65rem;
  height: .65rem;
  border-radius: 50%;
  background: #8e8e93;
  margin-top: .35rem;
  flex-shrink: 0;
}
.job-at-location--ok .job-at-location-dot {
  background: #30d158;
  animation: none !important;
}
.job-at-location-title {
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #8e8e93;
}
.job-at-location-status {
  font-size: .88rem;
  line-height: 1.35;
  margin-top: .15rem;
}
.job-at-location-note {
  margin: .65rem 0 0;
  padding: .55rem .65rem;
  border-radius: 8px;
  background: rgba(10, 132, 255, .12);
  border: 1px solid rgba(10, 132, 255, .28);
  color: #c8e1ff;
  font-size: .8rem;
  line-height: 1.4;
}
.job-at-location-note strong { color: #fff; }
.job-at-location-note[hidden] { display: none !important; }
.job-at-location-force {
  width: 100%;
  margin-top: .65rem;
  padding: .6rem .75rem;
  border: 1px dashed #636366;
  border-radius: 10px;
  background: transparent;
  color: #0a84ff;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
}
.job-at-location-force[hidden] { display: none !important; }
/* Was locking Sign/Complete until GPS said “here” — that broke pickup work */
.bottom-dock--locked [data-action="signature"],
.bottom-dock--locked .complete-row {
  opacity: 1 !important;
  pointer-events: auto !important;
  filter: none !important;
}

#offer-list[hidden],
#run-list[hidden] {
  display: none !important;
}
.run-card[data-ref] {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(10, 132, 255, 0.2);
  user-select: none;
}

.job-ingest-hint {
  font-size: .78rem;
  color: #8e8e93;
  margin: 0 0 .5rem;
  line-height: 1.4;
}
.job-ingest-text {
  width: 100%;
  border: 1px solid #333;
  border-radius: 10px;
  background: #1c1c1e;
  color: #fff;
  padding: .65rem .75rem;
  font-size: .85rem;
  font-family: inherit;
  resize: vertical;
  min-height: 5.5rem;
}
.job-ingest-actions {
  display: flex;
  gap: .5rem;
  margin-top: .55rem;
}
.job-ingest-btn {
  flex: 1;
  border: none;
  border-radius: 10px;
  padding: .65rem .75rem;
  background: #0a84ff;
  color: #fff;
  font-weight: 700;
  font-size: .82rem;
  cursor: pointer;
}
.job-ingest-btn--ghost {
  background: #2c2c2e;
  color: #fff;
}
.job-ingest-status {
  margin: .55rem 0 0;
  font-size: .78rem;
  line-height: 1.35;
}
.job-ingest-status--ok { color: #30d158; }
.job-ingest-status--err { color: #ff453a; }
.job-ingest-status--busy { color: #8e8e93; }
.job-ingest-status[hidden] { display: none !important; }
html.theme-light .job-at-location { background: #fff; border-color: #e5e5ea; }
html.theme-light .job-at-location--ok { background: rgba(48, 209, 88, .08); }
html.theme-light .job-at-location-note {
  background: rgba(10, 132, 255, .08);
  border-color: rgba(10, 132, 255, .22);
  color: #1c3f6e;
}
html.theme-light .job-at-location-note strong { color: #000; }
html.theme-light .job-ingest-text { background: #fff; border-color: #d1d1d6; color: #000; }
html.theme-light .job-ingest-btn--ghost { background: #f2f2f7; color: #000; }

#screen-list {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.job-alert-banner {
  flex-shrink: 0;
  margin: 0 10px 6px;
  padding: 12px 12px 10px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0d4f3a 0%, #063528 100%);
  border: 1px solid #34d399;
  box-shadow: 0 8px 28px rgba(16, 185, 129, .4);
  transform: translateY(-120%);
  opacity: 0;
  transition: transform .35s ease, opacity .35s ease;
  z-index: 90;
}
.job-alert-banner--visible {
  transform: translateY(0);
  opacity: 1;
}
.job-alert-banner--assigned {
  background: linear-gradient(135deg, #0d4f3a 0%, #063528 100%);
  border-color: #34d399;
  box-shadow: 0 8px 28px rgba(16, 185, 129, .45);
  animation: none !important;
}
@keyframes jkeNewOrderPulse {
  0%, 100% { box-shadow: 0 8px 28px rgba(16, 185, 129, .35); }
}
.job-alert-banner--removed {
  background: linear-gradient(135deg, #3a1a1a 0%, #281010 100%);
  border-color: #ff453a;
  box-shadow: 0 8px 24px rgba(255, 69, 58, .3);
  animation: none;
}
.job-alert-banner-inner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.job-alert-banner-icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
}
.job-alert-banner-text { flex: 1; min-width: 0; }
.job-alert-banner-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.job-alert-banner-body {
  font-size: .88rem;
  line-height: 1.4;
  color: #aeaeb2;
  white-space: pre-line;
}
.job-alert-banner-dismiss {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
.job-alert-banner-action {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  border: 0;
  border-radius: 10px;
  background: #0a84ff;
  color: #fff;
  font-weight: 800;
  font-size: .92rem;
  cursor: pointer;
}
.job-alert-banner--removed .job-alert-banner-action {
  background: #ff453a;
}
.pull-refresh {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 0;
  overflow: hidden;
  color: #8e8e93;
  font-size: .78rem;
  font-weight: 600;
  transition: height .15s ease;
}
.pull-refresh--active { color: #aeaeb2; }
.pull-refresh--ready { color: #0a84ff; }
.pull-refresh--ready .pull-refresh-spinner { border-top-color: #0a84ff; }
.pull-refresh-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #3a3a3c;
  border-top-color: #8e8e93;
  border-radius: 50%;
  flex-shrink: 0;
}
.pull-refresh--loading .pull-refresh-spinner {
  animation: none !important;
  opacity: 0.45;
  border-top-color: #0a84ff;
}
@keyframes ptr-spin { to { transform: none; } }
.list-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.list-scroll--empty {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.list-scroll--empty .run-list {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem .75rem 1.5rem;
}
.run-done-strip {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  margin: .35rem .75rem .85rem;
}
.run-done-row {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .7rem .8rem;
  border-radius: 12px;
  background: rgba(48, 209, 88, .12);
  border: 1px solid rgba(48, 209, 88, .35);
}
.run-done-badge {
  flex: 0 0 auto;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #30d158;
}
.run-done-ref {
  flex: 0 1 auto;
  font-size: .86rem;
  font-weight: 700;
  color: #fff;
}
.run-done-title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: .78rem;
  color: #aeaeb2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html.theme-light .run-done-row {
  background: rgba(36, 138, 61, .1);
  border-color: rgba(36, 138, 61, .28);
}
html.theme-light .run-done-badge { color: #248a3d; }
html.theme-light .run-done-ref { color: #111; }
html.theme-light .run-done-title { color: #636366; }
.work-empty {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  text-align: center;
  padding: 1.75rem 1.25rem;
  background: #1c1c1e;
  border-radius: 16px;
  border: 1px solid #2c2c2e;
}
.work-empty-status {
  display: inline-block;
  margin-bottom: 1rem;
  padding: .3rem .65rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #8e8e93;
  background: #2c2c2e;
}
.work-empty-status--on {
  color: #30d158;
  background: rgba(48, 209, 88, .15);
}
.work-empty-title {
  margin: 0 0 .65rem;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}
.work-empty-desc {
  margin: 0 0 1.25rem;
  font-size: .92rem;
  line-height: 1.5;
  color: #aeaeb2;
}
.work-empty-actions {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.work-empty-btn {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: .95rem;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  touch-action: manipulation;
}
.work-empty-btn--primary {
  background: #0a84ff;
  color: #fff;
}
.work-empty-btn--ghost {
  background: #2c2c2e;
  color: #fff;
}
.work-empty-tip,
.work-empty-note {
  margin: 1.1rem 0 0;
  font-size: .82rem;
  line-height: 1.45;
  color: #636366;
}
.assign-model-banner {
  margin: 10px 14px 8px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #1c1c1e;
  border: 1px solid #3a3a3c;
  font-size: 13px;
  line-height: 1.45;
  color: #d1d1d6;
}
.assign-model-banner strong {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  color: #fff;
}
.assign-model-banner p {
  margin: 0;
}
.assign-van-chip {
  display: inline-block;
  margin-top: 8px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(10, 132, 255, .18);
  color: #64b5ff;
  font-weight: 700;
  font-size: 12px;
}
html.theme-light .assign-model-banner {
  background: #fff;
  border-color: #d1d1d6;
  color: #3a3a3c;
}
html.theme-light .assign-model-banner strong { color: #000; }
html.theme-light .assign-van-chip {
  background: rgba(10, 132, 255, .12);
  color: #0066cc;
}
.gps-lock-card {
  margin: 10px 14px 8px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #12261a;
  border: 1px solid #1f6f43;
  font-size: 13px;
  line-height: 1.45;
  color: #d1d1d6;
}
.gps-lock-card strong {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  color: #7dffa3;
}
.gps-lock-card p {
  margin: 0 0 8px;
}
.gps-lock-id {
  font-size: 12px;
  color: #a8b5ad;
}
.gps-lock-id code {
  color: #fff;
  font-weight: 700;
}
.gps-lock-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.gps-lock-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 10px;
  border: 0;
  background: #30d158;
  color: #04210d;
  font-weight: 800;
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
}
html.theme-light .gps-lock-card {
  background: #e8f8ee;
  border-color: #8fd9a8;
  color: #1c1c1e;
}
html.theme-light .gps-lock-card strong { color: #0b7a38; }
html.theme-light .gps-lock-id { color: #3a3a3c; }
html.theme-light .gps-lock-id code { color: #000; }

.assigned-hint-banner {
  margin: 0 .75rem .75rem;
  padding: 1rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #1a3a5c 0%, #0d2840 100%);
  border: 1px solid #0a84ff;
  text-align: center;
}
.assigned-hint-banner strong {
  display: block;
  font-size: 1rem;
  margin-bottom: .35rem;
}
.assigned-hint-banner p {
  margin: 0 0 .75rem;
  font-size: .85rem;
  color: #aeaeb2;
  line-height: 1.4;
}
html.theme-light .work-empty {
  background: #fff;
  border-color: #d1d1d6;
}
html.theme-light .work-empty-title { color: #000; }
html.theme-light .work-empty-desc { color: #636366; }
html.theme-light .work-empty-status { background: #e5e5ea; color: #636366; }
html.theme-light .work-empty-status--on { background: rgba(48, 209, 88, .18); color: #248a3d; }
html.theme-light .work-empty-btn--ghost { background: #e5e5ea; color: #000; }
html.theme-light .work-empty-tip { color: #8e8e93; }
.nav-busy-bar {
  display: none !important; /* no sliding busy bar */
}
.nav-busy-bar[hidden] { display: none !important; }
@keyframes nav-busy-slide {
  0%, 100% { background-position: 0 0; }
}
/* Never show the jobs spinner — open straight onto a steady list */
.list-loading {
  display: none !important;
}
.list-loading[hidden] { display: none !important; }
.list-loading-spinner,
.job-map-loading-spinner {
  display: none !important;
  animation: none !important;
}
.list-loading-text {
  display: none !important;
}
.job-map-loading {
  display: none !important; /* map paints solid — no loading veil */
}
.job-map-loading[hidden] { display: none !important; }
.job-nav-main--busy {
  opacity: 0.8;
  pointer-events: auto;
}
.job-nav-main--busy::after {
  display: none !important;
  content: none !important;
  animation: none !important;
}
html.theme-light .list-loading-text { color: #636366; }
.bottom-nav {
  display: flex;
  flex-shrink: 0;
  border-top: 1px solid #2c2c2e;
  background: #0a0a0a;
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 100;
}
.bottom-nav--busy .bottom-nav-btn { opacity: 0.85; pointer-events: none; }
.bottom-nav--busy .bottom-nav-btn--active,
.bottom-nav--busy .bottom-nav-btn--pending {
  opacity: 1;
  pointer-events: auto;
}
.bottom-nav-btn--pending span:first-child::after {
  content: none;
  animation: none !important;
}
@keyframes nav-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.bottom-nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .1rem;
  padding: .75rem .25rem .55rem;
  border: 0;
  background: transparent;
  color: #8e8e93;
  font-size: .68rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  touch-action: manipulation;
}
.bottom-nav-btn--active { color: #0a84ff; }
.bottom-nav-btn span:first-child { font-size: .82rem; font-weight: 700; }
.bottom-nav-badge {
  position: absolute;
  top: .25rem;
  right: calc(50% - 1.5rem);
  min-width: 1rem;
  padding: 0 4px;
  border-radius: 8px;
  background: #ff453a;
  color: #fff;
  font-size: .6rem;
  font-weight: 800;
}
.bottom-nav-btn--link { color: #636366; }
.empty-state-btn {
  display: block;
  width: 100%;
  margin-top: 1rem;
  padding: 14px;
  border: 0;
  border-radius: 12px;
  background: #0a84ff;
  color: #fff;
  font-weight: 800;
  font-size: .95rem;
  cursor: pointer;
}
.offer-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.offer-btn {
  flex: 1;
  padding: 12px 10px;
  border: 0;
  border-radius: 10px;
  font-weight: 800;
  font-size: .85rem;
  cursor: pointer;
}
.offer-btn--decline { background: #2c2c2e; color: #fff; }
.offer-btn--accept { background: #30d158; color: #000; }
.offer-btn:disabled { opacity: .5; }
.push-enable-strip { display: none !important; }
.push-remind {
  position: fixed;
  left: 50%;
  bottom: calc(1.1rem + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 80;
  border: none;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  background: #ff9f0a;
  color: #111;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0,0,0,.28);
  cursor: pointer;
}
.push-remind[hidden] { display: none !important; }
/* EMERGENCY unfreeze3: push gate fully disabled — never cover jobs */
.jke-push-gate,
#jke-push-gate {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}
html.jke-push-required #app {
  pointer-events: auto !important;
  user-select: auto !important;
  filter: none !important;
}
.jke-push-gate-card {
  width: min(420px, 100%);
  padding: 22px 20px 20px;
  border-radius: 18px;
  background: linear-gradient(165deg, #0f2a22 0%, #0a1620 55%, #0b1220 100%);
  border: 1px solid rgba(52, 211, 153, .45);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .55), 0 0 0 1px rgba(16, 185, 129, .12);
  color: #f3f4f6;
  text-align: center;
}
.jke-push-gate-icon { font-size: 2.6rem; line-height: 1; margin-bottom: 6px; }
.jke-push-gate-brand {
  margin: 0 0 8px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  color: #34d399;
}
.jke-push-gate-title {
  margin: 0 0 10px;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.2;
  color: #fff;
}
.jke-push-gate-lead {
  margin: 0 0 14px;
  font-size: .95rem;
  line-height: 1.45;
  color: #d1d5db;
  text-align: left;
}
.jke-push-gate-bullets {
  margin: 0 0 16px;
  padding: 0 0 0 1.1rem;
  text-align: left;
  font-size: .88rem;
  line-height: 1.45;
  color: #e5e7eb;
}
.jke-push-gate-bullets li { margin-bottom: 6px; }
.jke-push-gate-denied {
  margin: 0 0 14px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(239, 68, 68, .12);
  border: 1px solid rgba(248, 113, 113, .4);
  text-align: left;
  font-size: .84rem;
  line-height: 1.4;
  color: #fecaca;
}
.jke-push-gate-denied ol {
  margin: 8px 0 0;
  padding-left: 1.15rem;
}
.jke-push-gate-denied li { margin-bottom: 6px; }
.jke-push-gate-btn {
  display: block;
  width: 100%;
  margin: 0 0 10px;
  padding: 16px 14px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #34d399 0%, #059669 100%);
  color: #042f1a;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(16, 185, 129, .35);
}
.jke-push-gate-btn:active { transform: scale(.98); }
.jke-push-gate-btn:disabled { opacity: .55; cursor: wait; }
.jke-push-gate-btn--secondary {
  background: #1f2937;
  color: #f9fafb;
  box-shadow: none;
  border: 1px solid #374151;
  font-weight: 700;
  font-size: .92rem;
}
.jke-push-gate-status {
  margin: 4px 0 0;
  min-height: 1.2em;
  font-size: .8rem;
  color: #9ca3af;
}
.job-track-notice {
  margin: .5rem 0 0;
  padding: .45rem .65rem;
  font-size: .78rem;
  line-height: 1.35;
  color: #8ae66a;
  background: rgba(46, 125, 50, .22);
  border-radius: 6px;
}

.job-track-msg {
  display: block;
  margin-bottom: .35rem;
}

.job-track-share {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .5rem;
  align-items: center;
}

.job-track-link,
.job-track-copy {
  font-size: .74rem;
  font-weight: 700;
}

.job-track-link {
  color: #b8f5a8;
  text-decoration: underline;
}

.job-track-copy {
  border: 1px solid rgba(184, 245, 168, .45);
  background: rgba(0, 0, 0, .2);
  color: #e8ffe0;
  border-radius: 6px;
  padding: .2rem .45rem;
  cursor: pointer;
}
.job-ui-hidden { display: none !important; }
.job-address-row--top { margin-top: .35rem; margin-bottom: .15rem; }
.job-address-row { margin-top: .5rem; }
.job-address {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.35;
  white-space: pre-wrap;
  word-break: break-word;
}
.job-address--nav {
  cursor: default;
  text-decoration: none;
}
.job-floor { margin: .25rem 0 0; color: #aeaeb2; font-size: .88rem; line-height: 1.35; }
.photo-cam-video {
  width: 100%;
  max-height: 52vh;
  border-radius: 10px;
  background: #000;
  object-fit: cover;
}
.modal--photo { max-width: 96vw; }

.job-nav-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  width: 100%;
  margin-top: .65rem;
  padding: .7rem .85rem;
  border: none;
  border-radius: 10px;
  background: #0a84ff;
  color: #fff;
  font-size: .88rem;
  font-weight: 800;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.job-nav-main:active { opacity: .9; }
.job-nav-main:disabled { opacity: .4; cursor: not-allowed; }
.job-nav-main-icon {
  width: 18px;
  height: 18px;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.job-who-name {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 .2rem;
}
.job-nav-row {
  display: none !important;
}
.job-nav-app {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .75rem .5rem;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 800;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.job-nav-app--waze { background: #33ccff; color: #111; }
.job-nav-app--google { background: #0a84ff; color: #fff; }
.job-nav-app:active { opacity: .88; }
.job-nav-app--off { opacity: .4; pointer-events: none; }

.job-contact-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  margin-top: .55rem;
  padding: .65rem .75rem;
  background: #1c1c1e;
  border: 1px solid #2c2c2e;
  border-radius: 12px;
}
.job-contact-info {
  flex: 1;
  min-width: 0;
}
.job-contact-btns {
  display: flex;
  align-items: center;
  gap: .45rem;
  flex-shrink: 0;
}
.job-contact-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.job-contact-icon-btn svg {
  width: 20px;
  height: 20px;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.job-contact-icon-btn--call {
  background: rgba(48, 209, 88, .18);
  color: #30d158;
  border: 1px solid rgba(48, 209, 88, .35);
}
.job-contact-icon-btn--sms {
  background: rgba(100, 210, 255, .15);
  color: #64d2ff;
  border: 1px solid rgba(100, 210, 255, .3);
}
.job-contact-icon-btn--nav {
  background: rgba(10, 132, 255, .18);
  color: #0a84ff;
  border: 1px solid rgba(10, 132, 255, .4);
  padding: 0;
}
.job-contact-icon-btn:active { opacity: .8; }
.job-contact-icon-btn--disabled {
  opacity: .3;
  pointer-events: none;
}

.job-times {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
  margin-top: 1rem;
  text-align: center;
}
.job-time-label { color: #8e8e93; font-size: .72rem; }
.job-time-val { font-size: .95rem; font-weight: 600; margin-top: .15rem; }
.job-time-val--late { color: #ff453a; }
.job-time-val--tight { color: #ffd60a; }
.job-time-val--ontime { color: #30d158; }
.job-late--ok {
  background: #1c7c3a;
}

.job-late {
  margin-top: .65rem;
  background: #ff453a;
  color: #fff;
  text-align: center;
  padding: .55rem .75rem;
  font-size: .82rem;
  font-weight: 600;
  border-radius: 0;
  position: relative;
}
.job-late::before, .job-late::after {
  content: "";
  position: absolute;
  top: -6px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 6px solid #ff453a;
}
.job-late::before { left: 18%; }
.job-late::after { left: 52%; }

.job-contact-label {
  display: block;
  color: #8e8e93;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .15rem;
}
.job-contact-name {
  display: block;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.job-contact-phone {
  display: block;
  margin-top: .1rem;
  font-size: .82rem;
  color: #aeaeb2;
  font-variant-numeric: tabular-nums;
}
.icon-btn--disabled { opacity: 0.35; pointer-events: none; }

.job-section { margin-top: .85rem; }
.job-section-label { color: #8e8e93; font-size: .82rem; margin-bottom: .25rem; }
.job-desc { margin: 0; font-size: .92rem; line-height: 1.4; }

.job-note {
  margin-top: .55rem;
  background: #ffffff;
  border: 1px solid #d1d1d6;
  border-radius: 10px;
  padding: .45rem .6rem;
  color: #111111;
}
.job-note-head {
  display: flex;
  justify-content: space-between;
  font-size: .75rem;
  color: #111111;
  font-weight: 700;
  margin-bottom: .2rem;
  background: #ffffff;
}
.job-note-body { font-size: .84rem; line-height: 1.3; color: #111111; font-weight: 600; background: #ffffff; }
.job-note-cmr {
  margin: .35rem 0 0;
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.35;
  color: #3a3a3c;
}
.job-note-cmr[hidden] { display: none !important; }

.job-inventory-section { margin-top: .25rem; }
.job-inventory-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .45rem;
}
.job-inventory-summary {
  font-size: .75rem;
  font-weight: 700;
  color: #30d158;
}
.inv-list { list-style: none; margin: 0; padding: 0; }
.inv-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .6rem .65rem;
  margin-bottom: .4rem;
  background: #1c1c1e;
  border: 1px solid #2c2c2e;
  border-radius: 10px;
}
.inv-row--done { border-color: rgba(48, 209, 88, .35); background: rgba(48, 209, 88, .08); }
.inv-row--added .inv-name::after { content: " · added"; color: #8e8e93; font-size: .75rem; font-weight: 500; }
.inv-row-main { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: .4rem; }
.inv-qty { flex-shrink: 0; font-size: .82rem; font-weight: 800; color: #ff9500; }
.inv-name { font-size: .88rem; line-height: 1.3; word-break: break-word; }
.inv-row-actions { display: flex; align-items: center; gap: .4rem; flex-shrink: 0; }
.inv-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: #2c2c2e;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
}
.inv-btn--plus { background: #0a84ff; }
.inv-progress { min-width: 2.4rem; text-align: center; font-size: .9rem; font-weight: 800; color: #34c759; }
.inv-empty { padding: .75rem; color: #8e8e93; font-size: .85rem; text-align: center; }

/* File picker — keep in DOM & "visible" enough for WebView .click() */
.jke-file-input {
  position: fixed !important;
  left: 0 !important;
  top: 0 !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0.01 !important;
  overflow: hidden !important;
  z-index: -1 !important;
  pointer-events: none !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}
/* Photo kind sheet above job dock / banners */
.photo-kind-layer.modal-backdrop,
#photo-kind-backdrop {
  z-index: 1300 !important;
}
.photo-kind-layer.nav-sheet,
#photo-kind-sheet {
  z-index: 1301 !important;
  pointer-events: auto !important;
}
#photo-kind-sheet .nav-sheet-opt,
#photo-kind-sheet .photo-kind-opt {
  pointer-events: auto !important;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(10, 132, 255, 0.35);
  touch-action: manipulation;
  width: 100%;
  border: none;
  text-align: left;
}
.nav-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  max-width: 480px;
  margin: 0 auto;
  padding: .5rem 1rem calc(1rem + env(safe-area-inset-bottom));
  background: #1c1c1e;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -8px 32px rgba(0,0,0,.45);
}
.nav-sheet[hidden] { display: none !important; }
.nav-sheet-handle {
  width: 36px;
  height: 4px;
  margin: 0 auto .65rem;
  border-radius: 2px;
  background: #3a3a3c;
}
.nav-sheet-title {
  margin: 0 0 .65rem;
  font-size: .95rem;
  font-weight: 700;
  text-align: center;
}
.nav-sheet-options { display: flex; flex-direction: column; gap: .4rem; }
.nav-sheet-opt {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .75rem .85rem;
  border-radius: 12px;
  background: #2c2c2e;
  color: #fff;
  text-decoration: none;
  font-size: .92rem;
  font-weight: 700;
}
.nav-sheet-opt:active { opacity: .85; }
.nav-sheet-opt[hidden] { display: none !important; }
.nav-sheet-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}
.nav-sheet-mark--waze { background: #33ccff linear-gradient(135deg, #33ccff, #0099ff); }
.nav-sheet-mark--google { background: #4285f4 linear-gradient(135deg, #ea4335 33%, #fbbc05 33% 66%, #34a853 66%); }
.nav-sheet-mark--apple { background: #2c2c2e; box-shadow: inset 0 0 0 2px #636366; }

.nav-sheet-cancel {
  width: 100%;
  margin-top: .55rem;
  padding: .75rem;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: #8e8e93;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
}

.job-inventory-title { font-size: 1.35rem; font-weight: 700; margin: 1.25rem 0 .65rem; }
.job-pickup-box {
  display: flex;
  align-items: center;
  gap: .75rem;
  border: 2px solid #0a84ff;
  border-radius: 10px;
  padding: .75rem;
  margin-bottom: .5rem;
}
.pickup-box-icon { font-size: 1.5rem; }
.pickup-box-label { font-weight: 600; }
.pickup-box-level { color: #8e8e93; font-size: .85rem; }
.job-inventory-toggle {
  background: none;
  border: none;
  color: #0a84ff;
  font-size: .88rem;
  padding: .35rem 0;
  cursor: pointer;
  margin-bottom: .5rem;
}
.inventory-list { list-style: none; margin: 0; padding: 0; }
.inventory-list[hidden] { display: none; }
.inventory-item {
  display: flex;
  align-items: center;
  gap: .65rem;
  background: #1c1c1e;
  border-radius: 10px;
  padding: .85rem .75rem;
  margin-bottom: .45rem;
}
.inventory-minus {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #48484a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8e8e93;
  font-size: 1.1rem;
  flex-shrink: 0;
  background: #2c2c2e;
  cursor: pointer;
}
.inventory-plus {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #0a84ff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  flex-shrink: 0;
  cursor: pointer;
  margin-left: .35rem;
}
.inventory-item--added .inventory-name::after {
  content: " · extra";
  color: #bf5af2;
  font-size: .75rem;
}
.inventory-name { flex: 1; font-size: .92rem; }
.inventory-count { color: #34c759; font-weight: 700; font-size: .95rem; }

.photo-feed {
  margin-top: .75rem;
  padding: .85rem .9rem .35rem;
  background: #fff;
  border: 1px solid #e5e5ea;
  border-radius: 12px;
}
.photo-feed .job-inventory-title {
  margin: 0 0 .45rem;
  font-size: 1.05rem;
  color: #111;
}
.photo-feed-lead {
  margin: 0 0 .55rem;
  font-size: .78rem;
  font-weight: 600;
  color: #636366;
  line-height: 1.35;
}
.photo-feed-empty {
  margin: .2rem 0 .7rem;
  font-size: .86rem;
  font-weight: 700;
  color: #8e8e93;
}
.photo-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem 0;
  border-bottom: 1px solid #e5e5ea;
  width: 100%;
  background: none;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.photo-row:last-child { border-bottom: 0; }
.photo-row time { margin-left: auto; color: #8e8e93; font-size: .82rem; flex-shrink: 0; }
.photo-row-copy { flex: 1; min-width: 0; }
.photo-row-copy strong { display: block; font-size: .88rem; font-weight: 800; color: #111; }
.photo-row-copy span { display: block; font-size: .75rem; color: #636366; }
.photo-row--sig .photo-row-copy strong { color: #111; }
.photo-thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e5e5ea;
  overflow: hidden;
  flex-shrink: 0;
}
.photo-thumb img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: #fff;
  display: block;
}
.photo-thumb--photo img { object-fit: cover; }

#proof-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0, 0, 0, .92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  gap: 12px;
}
#proof-lightbox[hidden] { display: none !important; }
#proof-lightbox img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 10px;
  background: #111;
}
.proof-lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: #111;
  font-weight: 800;
  font-size: 1rem;
}

/* Bottom dock — fixed footprint so Complete row never jumps */
.bottom-dock {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding-bottom: env(safe-area-inset-bottom);
  background: linear-gradient(transparent, #000 24%);
  pointer-events: none;
  z-index: 40;
  transform: translateZ(0);
  contain: layout style;
}
#jke-arrive-banner {
  display: none !important;
}
.action-bar {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  margin: 0 .5rem .5rem;
  padding: .55rem .25rem .35rem;
  background: rgba(28,28,30,.92);
  border-radius: 14px;
  backdrop-filter: blur(12px);
  pointer-events: auto;
}
.action-item {
  background: none;
  border: none;
  color: #8e8e93;
  font-size: .58rem;
  text-align: center;
  padding: .25rem .15rem;
  cursor: pointer;
  position: relative;
  min-width: 56px;
}
.action-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0 auto .1rem;
}
.action-icon svg {
  width: 22px;
  height: 22px;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.action-label { line-height: 1.15; display: block; }
.action-item--active { color: #ffd60a; }
.action-item--active .action-icon {
  background: rgba(255,214,10,.15);
  border-radius: 8px;
  padding: .15rem;
}
.action-dot {
  position: absolute;
  top: 0;
  right: 8px;
  width: 7px;
  height: 7px;
  background: #ff453a;
  border-radius: 50%;
  display: none;
}
.action-check {
  position: absolute;
  top: -2px;
  right: 6px;
  width: 14px;
  height: 14px;
  background: #34c759;
  color: #fff;
  border-radius: 50%;
  font-size: .55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.complete-row {
  display: flex;
  gap: .5rem;
  padding: 0 .75rem .75rem;
  pointer-events: auto;
}
.btn-complete {
  flex: 1;
  padding: .95rem 1rem;
  border: none;
  border-radius: 12px;
  background: #3a3a3c;
  color: #8e8e93;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}
.btn-complete.ready,
#arrive-code-check.ready {
  background: #0a84ff;
  color: #fff;
}
.btn-complete.btn-complete--wait {
  background: #3a3a3c;
  color: #8e8e93;
}
.btn-complete:not(.ready) {
  /* still tappable — never HTML-disabled (WebView swallows disabled clicks) */
  pointer-events: auto;
  opacity: 1;
}
.modal--waiver {
  top: auto;
  bottom: 0;
  left: 0;
  right: 0;
  transform: none;
  width: 100%;
  max-width: none;
  max-height: min(92dvh, 720px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 18px 18px 0 0;
  padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
}
.waiver-back {
  display: block;
  width: 100%;
  margin: 0 0 10px;
  padding: 12px 14px;
  border: 0;
  border-radius: 12px;
  background: #2c2c2e;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
}
.modal--waiver .waiver-box {
  max-height: 22vh;
  overflow: auto;
  margin: 0 0 .85rem;
  padding: .85rem .9rem;
  border-radius: 12px;
  background: #1c1c1e;
  border: 1px solid #3a3a3c;
  color: #f2f2f7;
  font-size: .9rem;
  line-height: 1.45;
  white-space: pre-wrap;
  text-align: left;
  -webkit-overflow-scrolling: touch;
}
.modal--waiver .modal-actions {
  position: sticky;
  bottom: 0;
  background: #1c1c1e;
  padding-top: .5rem;
}
html.theme-light .modal--waiver .waiver-box {
  background: #f5f5f7;
  border-color: #d1d1d6;
  color: #1c1c1e;
}
.btn-scan {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: #2c2c2e;
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  flex-shrink: 0;
}

.install-banner {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: .5rem .75rem 0;
  padding: .65rem .75rem;
  background: #0a84ff;
  border-radius: 10px;
  font-size: .82rem;
}
.install-banner p { flex: 1; margin: 0; }
.install-banner-btn {
  background: #fff;
  color: #0a84ff;
  border: none;
  border-radius: 8px;
  padding: .45rem .65rem;
  font-weight: 700;
  font-size: .82rem;
  cursor: pointer;
  white-space: nowrap;
}
.install-dismiss {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.25rem;
  padding: 0 .25rem;
  cursor: pointer;
  line-height: 1;
}

.empty-state {
  text-align: center;
  color: #8e8e93;
  padding: 3rem 1.5rem;
  font-size: .95rem;
}

.drawer-tracking,
#drawer-tracking,
#job-live-track-banner,
.job-live-track-banner {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}
.arrive-code-say {
  margin: 0 0 .75rem;
  padding: 0 4px;
  font-size: .92rem;
  line-height: 1.4;
  color: #d1d1d6;
}
html.theme-light .arrive-code-say { color: #3a3a3c; }
.arrive-code-err {
  margin: .5rem 0 0;
  color: #ff453a;
  font-size: .88rem;
  font-weight: 600;
  text-align: center;
}
.job-access {
  margin: .75rem 0 1rem;
  padding: .9rem 1rem;
  border-radius: 14px;
  background: #1c1c1e;
  border: 1px solid #3a3a3c;
  text-align: center;
}
.job-access-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #8e8e93;
}
.job-access-code {
  margin: .35rem 0 .2rem;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: .18em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.job-access-hint {
  font-size: .78rem;
  color: #8e8e93;
}
html.theme-light .job-access {
  background: #fff;
  border-color: #e5e5ea;
}
html.theme-light .job-access-code { color: #000; }
.drawer-link--tel,
.drawer-link--wa { text-decoration: none; }
.drawer-prefs .theme-opt { font-size: .8rem; padding: .5rem .4rem; }
.drawer-prefs {
  padding: .55rem .85rem .7rem;
  border-bottom: 1px solid #1c1c1e;
}
.drawer-pref-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #8e8e93;
  margin: .65rem 0 .4rem;
}
.drawer-prefs .theme-picker { margin-top: 0; }
.drawer-prefs .panel-select {
  width: 100%;
  margin-top: 0;
}
html.theme-light .drawer-prefs { border-color: #e5e5ea; }
html.theme-light .drawer-pref-label { color: #636366; }
.drawer.drawer--sub .drawer-profile,
.drawer.drawer--sub .drawer-shift,
.drawer.drawer--sub .drawer-end-shift,
.drawer.drawer--sub .drawer-tracking { display: none !important; }

.drawer-sub {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0 1rem calc(1rem + env(safe-area-inset-bottom));
}
.drawer-sub[hidden] { display: none !important; }
#drawer-main[hidden] { display: none !important; }
.drawer-sub-back {
  align-self: flex-start;
  background: none;
  border: none;
  color: #0a84ff;
  font-size: .95rem;
  font-weight: 600;
  padding: .5rem 0 1rem;
  cursor: pointer;
}
.drawer-sub-title {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 700;
}
.drawer-sub-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Sub-panel screens */
.panel-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 300;
}
.panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(480px, 100vw);
  margin: 0 auto;
  left: 0;
  background: #0a0a0a;
  z-index: 301;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .25s ease;
}
.panel.open { transform: translateX(0); }
.panel-head {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: calc(12px + env(safe-area-inset-top)) 1rem 12px;
  border-bottom: 1px solid #1a1a1a;
}
.panel-back {
  background: none;
  border: none;
  color: #0a84ff;
  font-size: 1.75rem;
  line-height: 1;
  padding: 0 .25rem;
  cursor: pointer;
}
.panel-title { margin: 0; font-size: 1.1rem; font-weight: 600; flex: 1; }
.panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom));
  -webkit-overflow-scrolling: touch;
}
.panel-section { margin-bottom: 1.5rem; }
.panel-section h3 {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #8e8e93;
  margin: 0 0 .65rem;
}
.panel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 0;
  border-bottom: 1px solid #1a1a1a;
  gap: 1rem;
}
.panel-row:last-child { border-bottom: none; }
.panel-row-label { font-size: .95rem; }
.panel-row-desc { font-size: .78rem; color: #8e8e93; margin-top: .15rem; }
.panel-select {
  background: #1c1c1e;
  color: #fff;
  border: 1px solid #3a3a3c;
  border-radius: 8px;
  padding: .45rem .6rem;
  font-size: .9rem;
}
.panel-text { color: #aeaeb2; font-size: .92rem; line-height: 1.55; }
.panel-text p { margin: 0 0 .75rem; }
.panel-btn {
  display: block;
  width: 100%;
  padding: .85rem;
  margin-top: .5rem;
  border: none;
  border-radius: 10px;
  background: #0a84ff;
  color: #fff;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}
.panel-btn--ghost {
  background: #2c2c2e;
  color: #fff;
}
html.theme-light .panel-btn--ghost {
  background: #e5e5ea;
  color: #111;
}
.drawer-link--highlight {
  color: #34c759;
  font-weight: 700;
}
html.theme-light .drawer-link--highlight {
  color: #1b8a2f;
}
.history-item {
  padding: .85rem 0;
  border-bottom: 1px solid #1a1a1a;
}
.history-item strong { display: block; font-size: .95rem; }
.history-item span { font-size: .82rem; color: #8e8e93; }
.shift-hist-row {
  padding: .75rem 0;
  border-bottom: 1px solid #2c2c2e;
}
.shift-hist-row:last-child { border-bottom: 0; }
.shift-hist-day {
  font-weight: 800;
  font-size: .92rem;
  margin-bottom: .2rem;
}
.shift-hist-time {
  font-size: .88rem;
  font-weight: 700;
}
.shift-hist-hours {
  margin-top: .15rem;
  font-size: .8rem;
  color: #aeaeb2;
}

/* Light theme (default) — white background */
html.theme-light,
html.theme-light body {
  background: #f2f2f7;
  color: #000;
  color-scheme: light;
}
html.theme-light .app,
html.theme-light .panel { background: #f2f2f7; color: #000; }
html.theme-light .screen-login { background: #f2f2f7; }
html.theme-light .login-sub,
html.theme-light .login-label,
html.theme-light .login-help { color: #636366; }
html.theme-light .login-input {
  background: #fff;
  border-color: #c7c7cc;
  color: #000;
}
html.theme-light .drawer {
  background: #fff;
  border-color: #e5e5ea;
  color: #000;
}
html.theme-light .drawer-close,
html.theme-light .drawer-first,
html.theme-light .drawer-name,
html.theme-light .drawer-link { color: #000; }
html.theme-light .drawer-org,
html.theme-light .drawer-id,
html.theme-light .drawer-footer,
html.theme-light .panel-section h3,
html.theme-light .history-item span,
html.theme-light .panel-text,
html.theme-light .panel-row-desc,
html.theme-light .job-sub,
html.theme-light .job-floor,
html.theme-light .job-section-label,
html.theme-light .job-contact-label,
html.theme-light .job-time-label,
html.theme-light .run-card-meta,
html.theme-light .run-card-sort,
html.theme-light .empty-state,
html.theme-light .sort-hint,
html.theme-light .pickup-box-level { color: #636366; }
html.theme-light .drawer-shift,
html.theme-light .drawer-nav { background: #f2f2f7; }
html.theme-light .drawer-shift { border-color: #d1d1d6; }
html.theme-light .drawer-shift--on {
  background: rgba(48, 209, 88, .12);
  border-color: rgba(48, 209, 88, .35);
}
html.theme-light .drawer-link { border-color: #e5e5ea; }
html.theme-light .drawer-avatar { background: #e5e5ea; }
html.theme-light .topbar-title { color: #000; }
html.theme-light .sort-hint {
  background: #f2f2f7;
  border-color: #e5e5ea;
}
html.theme-light .topbar-menu,
html.theme-light .job-time-val--late { color: #c9342a; }
html.theme-light .job-late {
  background: #c9342a;
  color: #fff;
}
html.theme-light .job-back { color: #000; }
html.theme-light .job-address { color: #111; }
html.theme-light .job-floor { color: #48484a; }
html.theme-light .topbar-sort {
  color: #000;
  background-color: rgba(255, 255, 255, 0.92);
}
.topbar-sort option {
  color: #000;
  background: #fff;
}
html.theme-light .run-card {
  background: #fff;
  border-color: #e5e5ea;
  color: #000;
}
html.theme-light .run-card-title { color: #000; }
html.theme-light .run-card--pickup .run-card-cta { color: #c93400; }
html.theme-light .run-card--dropoff .run-card-cta { color: #0071e3; }
html.theme-light .run-job-group {
  background: #fff;
  border-color: #e5e5ea;
}
html.theme-light .run-job-group-ref { color: #007aff; }
html.theme-light .run-job-group-route { color: #1c1c1e; }
html.theme-light .run-job-group-cargo,
html.theme-light .run-job-group-meta { color: #636366; }
html.theme-light .run-stop-row { background: #f2f2f7; color: #111; }
html.theme-light .run-stop-when { color: #9a6700; }
html.theme-light .job-nav-app--waze { background: #00b8e6; color: #111; }
html.theme-light .job-nav-app--google { background: #0071e3; color: #fff; }
html.theme-light .run-stop-addr { color: #636366; }
html.theme-light .run-stop-load { color: #1c1c1e; }
html.theme-light .run-stop-go { color: #248a3d; }
html.theme-light .run-leg-arrow { color: #8e8e93; }
html.theme-light .bottom-nav {
  background: #fff;
  border-color: #e5e5ea;
}
html.theme-light .bottom-nav-btn { color: #8e8e93; }
html.theme-light .bottom-nav-btn--link { color: #636366; }
html.theme-light .inventory-item {
  background: #fff;
  border: 1px solid #e5e5ea;
}
html.theme-light .job-note,
html.theme-light .job-note.job-note-wrap--active {
  background: #ffffff !important;
  border: 3px solid #111111 !important;
  color: #000000 !important;
}
html.theme-light .job-note-head { color: #000000 !important; background: #ffffff !important; }
html.theme-light .job-note-body { color: #000000 !important; background: #ffffff !important; }
html.theme-light .job-contact-bar {
  background: #fff;
  border-color: #e5e5ea;
}
html.theme-light .job-contact-phone { color: #636366; }
html.theme-light .inv-row {
  background: #fff;
  border-color: #e5e5ea;
}
html.theme-light .nav-sheet { background: #fff; }
html.theme-light .nav-sheet-opt { background: #f2f2f7; color: #000; }
html.theme-light .job-nav-btn,
html.theme-light .icon-btn,
html.theme-light .btn-scan,
html.theme-light .inventory-minus {
  background: #e5e5ea;
  color: #000;
  border-color: #c7c7cc;
}
html.theme-light .photo-feed { background: #fff; border-color: #e5e5ea; }
html.theme-light .photo-feed .job-inventory-title { color: #111; }
html.theme-light .photo-row { border-color: #e5e5ea; }
html.theme-light .photo-thumb { background: #fff; border-color: #e5e5ea; }
html.theme-light .photo-row-copy strong { color: #111; }
html.theme-light .bottom-dock {
  background: linear-gradient(transparent, #f2f2f7 24%);
}
html.theme-light .action-bar {
  background: rgba(255,255,255,.94);
  border: 1px solid #e5e5ea;
}
html.theme-light .action-item { color: #636366; }
html.theme-light .btn-complete {
  background: #e5e5ea;
  color: #636366;
}
html.theme-light .btn-complete.ready {
  background: #0a84ff;
  color: #fff;
}
html.theme-light .offer-btn--decline {
  background: #e5e5ea;
  color: #000;
}
html.theme-light .panel-head,
html.theme-light .panel-row,
html.theme-light .history-item { border-color: #e5e5ea; }
html.theme-light .panel-select {
  background: #fff;
  color: #000;
  border-color: #c7c7cc;
}
html.theme-light .modal {
  background: #fff;
  color: #000;
}
html.theme-light .modal-hint,
html.theme-light .modal-label { color: #636366; }
html.theme-light .modal-input,
html.theme-light .modal-textarea {
  background: #f2f2f7;
  border-color: #c7c7cc;
  color: #000;
}
html.theme-light .modal-btn--ghost {
  background: #e5e5ea;
  color: #000;
}
html.theme-light .ios-install-steps { color: #1c1c1e; }
html.theme-light .ios-safari-bar { background: #e5e5ea; }
html.theme-light .ios-safari-url { background: #fff; color: #636366; }
html.theme-light .ios-install-url { background: #e5e5ea; }
html.theme-light .ios-install-dock-dismiss { background: #e5e5ea; color: #636366; }
html.theme-light .install-banner--ios {
  background: #fff;
  border-color: #0a84ff;
}
html.theme-light .install-banner--ios p { color: #000; }

/* Settings: white / black picker */
.panel-row--stack { flex-wrap: wrap; align-items: flex-start; }
.theme-picker {
  display: flex;
  gap: .35rem;
  margin-top: .5rem;
  width: 100%;
}
.theme-opt {
  flex: 1;
  padding: .55rem .75rem;
  border: 2px solid #3a3a3c;
  border-radius: 10px;
  background: #1c1c1e;
  color: #fff;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
}
.theme-opt--active {
  border-color: #0a84ff;
  background: #0a84ff;
  color: #fff;
}
html.theme-light .theme-opt {
  background: #fff;
  border-color: #c7c7cc;
  color: #000;
}
html.theme-light .theme-opt--active {
  border-color: #0a84ff;
  background: #0a84ff;
  color: #fff;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  z-index: 400;
}
.modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(360px, 92vw);
  background: #1c1c1e;
  border-radius: 14px;
  padding: 1.25rem;
  z-index: 401;
  box-shadow: 0 12px 40px rgba(0,0,0,.45);
}
/* Signature: scrollable, Save always reachable, never off-screen */
.modal.modal--sig {
  top: auto;
  bottom: max(12px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  max-height: min(92dvh, 640px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  width: min(400px, 96vw);
  z-index: 500;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom));
}
.modal.modal--sig .modal-actions--sig {
  position: sticky;
  bottom: 0;
  background: #1c1c1e;
  padding-top: .5rem;
  z-index: 2;
}
.modal.modal--sig .sig-save-btn {
  width: 100%;
  min-height: 54px !important;
  background: #30d158 !important;
  color: #000 !important;
}
#sig-backdrop { z-index: 499; }
#sig-modal { z-index: 500; }
.modal-title { margin: 0 0 .35rem; font-size: 1.1rem; }
.modal-hint { margin: 0 0 .85rem; font-size: .82rem; color: #8e8e93; }
.modal-label { display: block; font-size: .82rem; color: #8e8e93; margin-bottom: .35rem; }
.modal-input, .modal-textarea {
  width: 100%;
  background: #2c2c2e;
  border: 1px solid #3a3a3c;
  border-radius: 10px;
  color: #fff;
  padding: .65rem .75rem;
  font-size: .95rem;
  margin-bottom: .65rem;
}
.modal-textarea { resize: vertical; min-height: 90px; }
.sig-canvas {
  width: 100%;
  height: 160px;
  background: #fff;
  border-radius: 10px;
  touch-action: none;
  display: block;
  margin-bottom: .75rem;
}
.modal-actions { display: flex; gap: .5rem; justify-content: flex-end; flex-wrap: wrap; }
.modal-actions--sig { margin-top: .75rem; }
.sig-save-btn {
  flex: 1 1 100%;
  min-height: 52px !important;
  font-size: 1.05rem !important;
  font-weight: 900 !important;
  pointer-events: auto !important;
  opacity: 1 !important;
}
.sig-name-input {
  min-height: 48px;
  font-size: 1.05rem !important;
  font-weight: 700;
}
.modal-btn {
  border: none;
  border-radius: 10px;
  padding: .65rem 1rem;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  background: #0a84ff;
  color: #fff;
}
.modal-btn--ghost { background: #3a3a3c; color: #fff; }
.action-item--done .action-check { display: flex; }
.action-item .action-check { display: none; }
.action-item--done .action-dot { display: none !important; }
.action-item--done .action-label { color: #1b8a2f; font-weight: 800; }
.action-item--sig-required .action-dot { display: block; background: #ff453a; }
/* Required steps still open — red dot on Photo / Sign (Complete locked until done) */
.action-item--need .action-dot {
  display: block !important;
  background: #ff453a;
  box-shadow: 0 0 0 3px rgba(255, 69, 58, 0.35);
}
.action-item--need .action-label {
  color: #ff9f0a;
  font-weight: 800;
}
.photo-thumb img { width: 52px; height: 52px; object-fit: contain; border-radius: 8px; background: #fff; }

.ios-install-steps {
  margin: 0 0 1rem 1.1rem;
  padding: 0;
  color: #e5e5ea;
  font-size: .92rem;
  line-height: 1.55;
}
.ios-install-steps li { margin-bottom: .65rem; }
.ios-share-pill {
  display: inline-block;
  background: #0a84ff;
  color: #fff;
  font-weight: 800;
  padding: .1rem .35rem;
  border-radius: 4px;
  font-size: .85rem;
}
.install-banner--ios { background: #1c1c1e; border: 1px solid #0a84ff; }
.install-banner--ios p { color: #fff; }
.install-banner--ios .install-banner-btn { background: #0a84ff; color: #fff; }

.ios-install-visual {
  margin: 0 0 1rem;
  text-align: center;
}
.ios-install-arrow {
  font-size: 2rem;
  color: #0a84ff;
  line-height: 1;
  margin-bottom: .25rem;
  animation: ios-bounce 1.2s ease-in-out infinite;
}
@keyframes ios-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
.ios-safari-bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: #2c2c2e;
  border-radius: 12px;
  padding: .55rem .65rem;
  font-size: .78rem;
}
.ios-safari-back { color: #0a84ff; font-size: 1.1rem; }
.ios-safari-url {
  flex: 1;
  background: #1c1c1e;
  border-radius: 8px;
  padding: .35rem .5rem;
  color: #8e8e93;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ios-safari-share-btn {
  background: #0a84ff;
  color: #fff;
  font-weight: 700;
  padding: .35rem .55rem;
  border-radius: 8px;
  font-size: .72rem;
}
.ios-install-url {
  background: #2c2c2e;
  padding: .65rem .75rem;
  border-radius: 8px;
  font-size: .82rem;
  word-break: break-all;
  color: #0a84ff;
  margin: 0 0 .75rem;
}

/* Sticky iOS install dock — sits above Safari bottom bar */
.ios-install-dock {
  position: fixed;
  left: .75rem;
  right: .75rem;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 350;
  display: flex;
  align-items: stretch;
  gap: .35rem;
  max-width: none;
  margin: 0;
}
.ios-install-dock[hidden] { display: none !important; }
#jke-install-modal.modal-backdrop {
  z-index: 360;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom));
}
#jke-install-modal.modal-backdrop[hidden] { display: none !important; }
#jke-install-modal .modal {
  width: 100%;
  max-width: 400px;
  margin: 0;
}
.ios-install-dock-main {
  flex: 1;
  display: flex;
  align-items: center;
  gap: .65rem;
  background: linear-gradient(135deg, #0a84ff 0%, #0066cc 100%);
  border: none;
  border-radius: 14px;
  padding: .65rem .85rem;
  color: #fff;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(10,132,255,.45);
}
.ios-dock-icon { font-size: 1.5rem; flex-shrink: 0; }
.ios-dock-app-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.22);
  background: #fff;
}
.install-modal-icon {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  margin: 0 auto .75rem;
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
}
.ios-dock-text { display: flex; flex-direction: column; gap: .1rem; }
.ios-dock-text strong { font-size: .88rem; }
.ios-dock-text small { font-size: .72rem; opacity: .92; }
.ios-install-dock-dismiss {
  width: 40px;
  border: none;
  border-radius: 12px;
  background: #2c2c2e;
  color: #8e8e93;
  font-size: 1.25rem;
  cursor: pointer;
  flex-shrink: 0;
}
body.ios-dock-visible .run-list {
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
}

.complete-celebration {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
  background: rgba(0, 0, 0, 0.52);
  animation: none !important;
  pointer-events: none;
}
.complete-celebration[hidden] { display: none !important; }
.complete-celebration-card {
  pointer-events: auto;
  text-align: center;
  background: #1c1c1e;
  border: 1px solid rgba(48, 209, 88, 0.35);
  border-radius: 22px;
  padding: 1.85rem 1.35rem 1.5rem;
  max-width: 300px;
  width: 100%;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  animation: none !important;
}
.job-doc-hint {
  margin: 0 0 .65rem;
  padding: .65rem .75rem;
  border-radius: 10px;
  font-size: .82rem;
  line-height: 1.4;
  font-weight: 600;
}
.job-doc-hint--broker {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
}
.job-doc-hint--private {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}
.job-note-wrap--active {
  background: #ffffff !important;
  border: 1px solid #d1d1d6 !important;
  border-radius: 10px;
  padding: .45rem .6rem;
  margin: .45rem 0;
  color: #111111 !important;
}
.job-note-wrap--active .job-section-label,
.job-note-wrap--active .job-note-head {
  color: #111111 !important;
  font-weight: 700;
  font-size: .75rem;
  background: #ffffff !important;
}
.job-note-wrap--active .job-note-body {
  color: #111111 !important;
  font-weight: 600;
  font-size: .84rem;
  line-height: 1.3;
  background: #ffffff !important;
}
.complete-celebration--drop .complete-celebration-card {
  border-color: #22c55e;
  box-shadow: 0 20px 50px rgba(34, 197, 94, 0.35);
}
.complete-celebration--drop .complete-celebration-icon {
  background: #22c55e;
  font-size: 2.4rem;
}
.complete-celebration-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 0.9rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #34d058, #28a745);
  color: #fff;
  font-size: 2.15rem;
  font-weight: 800;
  line-height: 68px;
  box-shadow: 0 6px 20px rgba(48, 209, 88, 0.45);
}
.complete-celebration-title {
  margin: 0 0 0.45rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}
.complete-celebration-sub {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #aeaeb2;
}
html.theme-light .complete-celebration-card {
  background: #fff;
  border-color: rgba(52, 199, 89, 0.45);
}
html.theme-light .complete-celebration-title { color: #000; }
html.theme-light .complete-celebration-sub { color: #636366; }
@keyframes complete-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes complete-pop {
  0% { opacity: 0; transform: scale(0.82) translateY(12px); }
  70% { transform: scale(1.03) translateY(0); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.job-distance-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.35rem 0 0.65rem;
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  background: #1c1c1e;
  border: 1px solid #3a3a3c;
  font-size: 0.88rem;
  font-weight: 600;
}
.job-distance-chip--ok {
  background: rgba(48, 209, 88, 0.12);
  border-color: rgba(48, 209, 88, 0.35);
  color: #30d158;
}
.job-distance-chip--wait { color: #aeaeb2; }
.job-distance-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8e8e93;
  flex-shrink: 0;
}
.job-distance-chip--ok .job-distance-dot {
  background: #30d158;
  box-shadow: 0 0 0 3px rgba(48, 209, 88, 0.25);
}
.job-distance-text { flex: 1; min-width: 0; }
.job-distance-here {
  border: none;
  border-radius: 8px;
  padding: 0.35rem 0.55rem;
  background: #2c2c2e;
  color: #0a84ff;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}
.job-distance-here[hidden] { display: none !important; }
html.theme-light .job-distance-chip { background: #fff; border-color: #e5e5ea; }
html.theme-light .job-distance-chip--ok { background: rgba(52, 199, 89, 0.1); }
html.theme-light .job-distance-here { background: #f2f2f7; }

.sig-box-wrap {
  border: 2px solid #0a84ff;
  border-radius: 12px;
  padding: 0.5rem;
  margin-bottom: 0.65rem;
  background: #fff;
}
.sig-box-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #636366;
  margin-bottom: 0.35rem;
}
.modal--sig .sig-canvas {
  display: block;
  width: 100%;
  height: auto;
  touch-action: none;
  border-radius: 8px;
  background: #fff;
}
.modal-btn--save {
  background: #30d158;
  color: #000;
  font-weight: 800;
}
.modal-hint--short { font-size: 0.82rem; margin-bottom: 0.65rem; }
.sig-saved-hint {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  color: #30d158;
  font-weight: 600;
}
.action-item--photo-first .action-dot { display: block; background: #ff9f0a; }

/* Add-item quote preview (customer email confirm flow) */
.add-quote-box {
  margin: 10px 0 4px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(16, 185, 129, 0.18);
  border: 2px solid rgba(48, 209, 88, 0.55);
  font-size: 0.92rem;
  line-height: 1.35;
}
.add-quote-box[hidden] { display: none !important; }
.add-quote-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #a7f3d0;
  margin-bottom: 4px;
  font-weight: 700;
}
.add-quote-amount {
  font-size: 2.4rem;
  font-weight: 900;
  color: #30d158;
  line-height: 1.05;
  margin: 4px 0 8px;
  letter-spacing: -0.02em;
}
.add-quote-tip {
  margin-top: 8px;
  font-size: 0.84rem;
  color: #d1fae5;
  line-height: 1.35;
}
.add-quote-line { font-weight: 700; color: #ecfdf5; }
.add-quote-earn { margin-top: 6px; color: #6ee7b7; font-weight: 700; }
.add-quote-card { margin-top: 6px; color: #9ca3af; font-size: 0.82rem; }
.add-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.add-modal-actions .modal-btn { flex: 1 1 40%; min-width: 7rem; }
#add-save:disabled {
  opacity: 0.45;
  pointer-events: none;
}
.inv-row--pending { border-left: 3px solid #f59e0b; }

/* Extra item: wait vs paid banners */
.add-item-banner {
  margin: 8px 0 12px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.4;
}
.add-item-banner--wait {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fde68a;
}
.add-item-banner--paid {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #a7f3d0;
}
.add-item-earn-total { margin-top: 6px; font-weight: 700; color: #6ee7b7; }
.add-item-pay-hint { margin-top: 6px; font-size: 0.82rem; color: #fde68a; opacity: 0.9; }
.add-item-pay-btn {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 14px 16px;
  border: 0;
  border-radius: 12px;
  background: #059669;
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  cursor: pointer;
}
.inv-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  vertical-align: middle;
}
.inv-badge--paid { background: #059669; color: #fff; }
.inv-badge--wait { background: #b45309; color: #fff; }
.inv-earn { margin-left: 6px; color: #6ee7b7; font-weight: 700; font-size: 0.85rem; }
.inv-row--paid { border-left: 3px solid #10b981; }

.add-kind-row { display:flex; gap:8px; margin:0 0 10px; }
.add-kind-btn {
  flex:1; padding:10px 8px; border-radius:10px; border:1px solid rgba(255,255,255,.15);
  background:rgba(255,255,255,.06); color:#c8cdd3; font-weight:700; font-size:.85rem;
}
.add-kind-btn.is-on { background:rgba(16,185,129,.25); border-color:rgba(16,185,129,.55); color:#a7f3d0; }
#add-fields-access .modal-input, #add-fields-item .modal-input { margin-bottom:8px; }

/* Dual-label markup — one language only (phone/driver setting).
   Scoped so we never hide random UI; only .lang-de / .lang-en label spans. */
html[data-jke-lang="de"] span.lang-en,
html[data-jke-lang="de"] h2.lang-en,
html[data-jke-lang="de"] p.lang-en { display: none !important; }
html:not([data-jke-lang="de"]) span.lang-de,
html:not([data-jke-lang="de"]) h2.lang-de,
html:not([data-jke-lang="de"]) p.lang-de { display: none !important; }
html:not([data-jke-lang]) span.lang-de,
html:not([data-jke-lang]) h2.lang-de,
html:not([data-jke-lang]) p.lang-de { display: none !important; }
html[data-jke-lang="it"] span.lang-en,
html[data-jke-lang="it"] h2.lang-en,
html[data-jke-lang="it"] p.lang-en,
html[data-jke-lang="pl"] span.lang-en,
html[data-jke-lang="pl"] h2.lang-en,
html[data-jke-lang="pl"] p.lang-en { display: none !important; }
