/* MukheDao rider app — phone-first, big tap targets */
body.rider { background: var(--admin-bg); padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.rider-auth { min-height: 100vh; }
.r-top { background: var(--inverse); color: #fff; padding: calc(14px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 18px max(16px, env(safe-area-inset-left)); border-radius: 0 0 28px 28px; display: grid; gap: 12px; }
.r-top-row { display: flex; justify-content: space-between; align-items: center; }
.r-top .logo { color: #fff; }
.r-out { color: rgba(255,255,255,.7); font-weight: 700; font-size: 14px; }
.r-me b { display: block; font-family: var(--display); font-size: 22px; }
.r-me small { color: rgba(255,255,255,.65); font-weight: 700; }
.duty { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; border-radius: 18px; padding: 16px 18px; font-family: var(--display); font-size: 17px; font-weight: 800; background: rgba(255,255,255,.1); color: #fff; text-align: left; }
.duty.on { background: var(--grad); box-shadow: var(--shadow); }
.duty-dot { width: 14px; height: 14px; border-radius: 50%; background: #777; flex: none; }
.duty.on .duty-dot { background: var(--surface); box-shadow: 0 0 0 5px rgba(255,255,255,.3); animation: pulse 1.6s infinite; }
.r-gps { margin: 0; font-size: 13px; color: rgba(255,255,255,.7); font-weight: 600; min-height: 18px; }
.r-main { max-width: 640px; margin: 0 auto; padding: 18px max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); display: grid; gap: 14px; }
.r-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.r-stats div { background: var(--surface); border: 2px solid var(--line); border-radius: 18px; padding: 12px; }
.r-stats b { display: block; font-family: var(--display); font-size: 22px; }
.r-stats span { font-size: 12px; font-weight: 700; color: var(--muted); }
.r-map { height: 260px; border-radius: 22px; overflow: hidden; border: 2px solid var(--line); background: var(--surface-2); display: grid; place-items: center; }
.r-list { display: grid; gap: 14px; }
.r-card { background: var(--surface); border: 2px solid var(--line); border-radius: 24px; padding: 16px; display: grid; gap: 12px; }
.r-card.picked { border-color: var(--red); box-shadow: 0 0 0 3px var(--soft); }
.r-card header { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.r-card header small { display: block; color: var(--muted); font-weight: 700; }
.r-step { display: grid; grid-template-columns: 34px 1fr auto; gap: 8px 10px; align-items: center; }
.r-acts { display: flex; gap: 6px; }
.r-step > div { min-width: 0; }
.r-step b { display: block; }
.r-step small { color: var(--muted); font-weight: 600; }
.r-n { width: 34px; height: 34px; border-radius: 12px; background: var(--soft); color: var(--red); display: grid; place-items: center; font-family: var(--display); font-weight: 800; }
@media (max-width: 480px) { .r-step { grid-template-columns: 34px 1fr; } .r-acts { grid-column: 2; } }
.r-items { list-style: none; margin: 0; padding: 10px 0 0; border-top: 2px dashed var(--line); display: grid; gap: 4px; }
.r-pay { border-radius: 14px; padding: 12px 14px; font-weight: 800; }
.r-pay.due { background: var(--warn-bg); color: var(--warn-fg); font-size: 18px; }
.r-pay.ok { background: var(--ok-bg); color: var(--ok-fg); }
.r-pay.warn { background: var(--bad-bg); color: var(--bad); font-size: 14px; }
.r-cash { font-size: 16px; }
.r-tip { text-align: center; }
.md-pin { background: none; border: 0; }

.r-card .field-msg:empty { display: none; }
.r-card .field-msg { margin: 0; min-height: 0; }
.r-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: -4px; }
.r-foot:not(:has(.field-msg:not(:empty))) { justify-content: flex-end; }
.r-help-link { font-size: 13px; font-weight: 800; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.r-help { justify-content: center; }
.r-alarm { position: fixed; left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right)); top: calc(12px + env(safe-area-inset-top)); z-index: 90;
  background: var(--grad); color: #fff; border-radius: 22px; padding: 18px; display: grid; gap: 12px; justify-items: center; text-align: center;
  box-shadow: 0 24px 50px -16px rgba(0,0,0,.6); animation: alarmPulse 1.2s ease-in-out infinite; }
.r-alarm b { font-family: var(--display); font-size: 20px; }
.r-alarm svg { animation: shake .6s ease-in-out infinite; }
.r-alarm-sound { color: #fff; }
@keyframes alarmPulse { 50% { box-shadow: 0 0 0 10px rgb(var(--red-rgb) / .25), 0 24px 50px -16px rgba(0,0,0,.6); } }
@keyframes shake { 25% { transform: rotate(-14deg); } 75% { transform: rotate(14deg); } }
.r-tools { display: flex; gap: 8px; align-items: center; }
.r-top .theme-btn, .r-top .lang-btn { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: #fff; height: 36px; }

/* Phones: smaller headings and numbers */
@media (max-width: 640px) {
  .r-me b, .r-stats b { font-size: 17px; }
  .duty { font-size: 15px; padding: 13px 15px; }
  .r-alarm b { font-size: 18px; }
}
