/* Panda Rider v2 (2026-10-17) · 熊猫骑手-三页设计-v1
 * Warm porcelain page, white cards, apricot actions with dark text, butter-yellow navigation,
 * dark coral only for cash and lateness. Loaded after rider.css. */
:root {
  --v2-page: #faf9f7;
  --v2-card: #ffffff;
  --v2-ink: #302d32;
  --v2-ink-2: #5e5862;
  --v2-muted: #8a847f;
  --v2-line: #ece9e5;
  --v2-line-2: #e2ddd7;
  --v2-apricot: #f39b79;
  --v2-apricot-soft: #fdeee6;
  --v2-apricot-deep: #c4552c;
  --v2-butter: #f8d96d;
  --v2-butter-soft: #fff6d9;
  --v2-coral: #b7473e;
  --v2-coral-soft: #fbecea;
  --v2-green: #2f9e5b;
  --v2-green-soft: #e8f5ec;
  --v2-shadow: 0 1px 2px rgba(48, 45, 50, 0.04), 0 8px 22px rgba(48, 45, 50, 0.06);
  --brand: #f39b79;
  --brand-deep: #c4552c;
  --brand-soft: #fdeee6;
  --ink: #302d32;
  --muted: #8a847f;
  --subtle: #a39d97;
  --line: #ece9e5;
  --page: #faf9f7;
  --panel: #ffffff;
  --shadow: 0 1px 2px rgba(48, 45, 50, 0.04), 0 8px 22px rgba(48, 45, 50, 0.06);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Noto Sans Thai", "Noto Sans Myanmar", "Myanmar Sangam MN", "Thonburi", "Microsoft YaHei", Arial, sans-serif;
}

html,
body {
  background: var(--v2-page);
  color: var(--v2-ink);
  -webkit-tap-highlight-color: transparent;
}

.rider-shell {
  background: var(--v2-page);
  padding: max(10px, env(safe-area-inset-top)) 16px calc(92px + env(safe-area-inset-bottom));
  color: var(--v2-ink);
  font-size: 16px;
}

/* ---------- Header ---------- */
.app-top {
  align-items: center;
  gap: 10px;
  padding: 4px 0 12px;
}

.brand-lockup {
  gap: 10px;
  min-width: 0;
  align-items: center;
}

.brand-lockup img {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px var(--v2-line), 0 4px 10px rgba(48, 45, 50, 0.08);
  object-fit: cover;
}

.brand-kicker {
  display: none !important;
}

#brandTitle {
  display: block;
  color: var(--v2-ink);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
}

#shiftLine {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
  color: var(--v2-ink-2);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#shiftLine:empty {
  display: none;
}

#shiftLine::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  background: var(--v2-ink-2);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.app-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex: 0 0 auto;
}

.language-select {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.language-select > span {
  display: none;
}

.language-select select {
  min-height: 32px;
  padding: 0 22px 0 8px;
  border: 0;
  border-radius: 10px;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23302d32' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 4px center / 14px no-repeat;
  color: var(--v2-ink);
  font-size: 15px;
  font-weight: 700;
  -webkit-appearance: none;
          appearance: none;
}

.online-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--v2-line-2);
  border-radius: 999px;
  background: #fff;
  color: var(--v2-ink-2);
  font-size: 14px;
  font-weight: 700;
  box-shadow: none;
}

.online-toggle i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #b9b2ab;
  box-shadow: none;
}

.online-toggle.active {
  border-color: rgba(47, 158, 91, 0.32);
  background: var(--v2-green-soft);
  color: #1f6e3f;
}

.online-toggle.active i {
  background: var(--v2-green);
  box-shadow: 0 0 0 3px rgba(47, 158, 91, 0.18);
}

.online-toggle b {
  font-weight: 800;
}

.top-logout-btn {
  display: none !important;
}

/* ---------- Sync line ---------- */
.program-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 0;
  margin: 0 0 12px;
  padding: 8px 8px 8px 14px;
  border: 1px solid var(--v2-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
}

.program-strip > div {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.program-strip #syncDot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  background: #c9c2bb;
  box-shadow: none;
}

.program-strip #syncDot.is-ok {
  background: var(--v2-green);
}

#syncTitle {
  color: var(--v2-ink);
  font-size: 14px;
  font-weight: 700;
}

#syncMeta {
  color: var(--v2-muted);
  font-size: 13px;
  font-weight: 600;
}

#syncMeta.is-off {
  color: var(--v2-coral);
}

#syncNowBtn {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--v2-line-2);
  border-radius: 10px;
  background: #fff;
  color: var(--v2-ink);
  font-size: 14px;
  font-weight: 700;
  box-shadow: none;
}

.ops-alerts {
  margin-bottom: 12px;
}

.ops-alert-card {
  border-radius: 16px;
}

/* ---------- Shared pieces ---------- */
.rider-workspace {
  min-width: 0;
}

.rider-workspace > * {
  min-width: 0;
  max-width: 100%;
}

.v2-home,
.v2-orders,
.v2-messages,
.v2-profile,
.v2-detail {
  min-width: 0;
}

.v2-card {
  margin-bottom: 12px;
  padding: 16px;
  border: 1px solid var(--v2-line);
  border-radius: 20px;
  background: var(--v2-card);
  box-shadow: var(--v2-shadow);
}

.v2-card h3 {
  margin: 0 0 8px;
  color: var(--v2-ink);
  font-size: 18px;
  font-weight: 800;
}

.v2-muted {
  color: var(--v2-muted);
  font-size: 14px;
  font-weight: 600;
}

.v2-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 12px;
}

.v2-page-head h1 {
  margin: 0;
  color: var(--v2-ink);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
}

.v2-page-hint {
  margin: -4px 0 12px;
  color: var(--v2-muted);
  font-size: 14px;
}

.v2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: #fff;
  color: var(--v2-ink);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  box-shadow: none;
  touch-action: manipulation;
}

.v2-btn:active:not(:disabled) {
  transform: translateY(1px);
  filter: brightness(0.97);
}

.v2-btn.apricot {
  background: var(--v2-apricot);
  color: var(--v2-ink);
}

.v2-btn.butter {
  background: var(--v2-butter);
  color: var(--v2-ink);
}

.v2-btn.butter.nav::before,
.v2-btn.butter[data-action^="nav-"]::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background: var(--v2-ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21.7 2.3a1 1 0 0 0-1.06-.23l-18 7a1 1 0 0 0 .08 1.9l7.6 2.1 2.1 7.6a1 1 0 0 0 1.9.08l7-18a1 1 0 0 0-.22-1.05z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21.7 2.3a1 1 0 0 0-1.06-.23l-18 7a1 1 0 0 0 .08 1.9l7.6 2.1 2.1 7.6a1 1 0 0 0 1.9.08l7-18a1 1 0 0 0-.22-1.05z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.v2-btn.outline,
.v2-btn.ghost {
  border-color: var(--v2-line-2);
  background: #fff;
  color: var(--v2-ink);
}

.v2-btn.small {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 15px;
}

.v2-btn.wide {
  grid-column: 1 / -1;
  width: 100%;
}

.v2-btn.chip {
  min-height: 44px;
  padding: 0 14px;
  border-color: var(--v2-line-2);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
}

.v2-btn:disabled,
.v2-btn[aria-disabled="true"] {
  border-color: var(--v2-line);
  background: #f1eeea;
  color: #a7a09a;
}

.v2-btn:disabled::before {
  background: #a7a09a !important;
}

.v2-mini-btn {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--v2-line-2);
  border-radius: 10px;
  background: #fff;
  color: var(--v2-ink);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.v2-mini-btn.on {
  border-color: transparent;
  background: var(--v2-apricot);
}

.v2-mini-btn:disabled {
  color: #a7a09a;
  background: #f5f2ef;
}

.v2-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 36px;
  margin-left: auto;
  padding: 0 4px 0 8px;
  border: 0;
  background: transparent;
  color: var(--v2-ink-2);
  font-size: 14px;
  font-weight: 700;
}

.v2-dot-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #e5484d;
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
}

.v2-chevron {
  color: #b2aba5;
  font-size: 22px;
  font-style: normal;
  line-height: 1;
}

.v2-empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 30px 20px;
  border: 1px dashed var(--v2-line-2);
  border-radius: 20px;
  background: #fff;
  color: var(--v2-muted);
  text-align: center;
}

.v2-empty i {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: url("../assets/panda-logo.png") center / cover no-repeat;
  opacity: 0.45;
  filter: grayscale(1);
}

.v2-empty p {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

/* ---------- 接单工作台 ---------- */
.v2-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 16px;
  padding: 14px 0;
  border: 1px solid var(--v2-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--v2-shadow);
}

.v2-summary > div {
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  padding: 0 16px;
}

.v2-summary > div + div {
  border-left: 1px solid var(--v2-line);
}

.v2-summary .v2-ico {
  grid-row: 1 / span 2;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--v2-apricot-soft);
  position: relative;
}

.v2-summary .v2-ico::after {
  content: "";
  position: absolute;
  inset: 9px;
  background: var(--v2-apricot-deep);
}

.v2-ico.done::after {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='4' width='14' height='17' rx='2'/%3E%3Cpath d='M9 4V3h6v1M9 12l2 2 4-4'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='4' width='14' height='17' rx='2'/%3E%3Cpath d='M9 4V3h6v1M9 12l2 2 4-4'/%3E%3C/svg%3E") center / contain no-repeat;
}

.v2-ico.coin::after {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cellipse cx='12' cy='6' rx='7' ry='3'/%3E%3Cpath d='M5 6v6c0 1.7 3.1 3 7 3s7-1.3 7-3V6M5 12v6c0 1.7 3.1 3 7 3s7-1.3 7-3v-6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cellipse cx='12' cy='6' rx='7' ry='3'/%3E%3Cpath d='M5 6v6c0 1.7 3.1 3 7 3s7-1.3 7-3V6M5 12v6c0 1.7 3.1 3 7 3s7-1.3 7-3v-6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.v2-summary span {
  color: var(--v2-muted);
  font-size: 13px;
  font-weight: 700;
}

.v2-summary strong {
  color: var(--v2-ink);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.v2-summary strong small {
  margin-left: 2px;
  font-size: 16px;
  font-weight: 800;
}

.v2-summary strong small.v2-muted {
  font-size: 14px;
}

.v2-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 2px 2px 6px;
}

.v2-section-head h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
}

.v2-section-head span {
  color: var(--v2-muted);
  font-size: 13px;
  font-weight: 600;
}

.v2-seg {
  display: flex;
  gap: 4px;
  margin: 0 0 14px;
  border-bottom: 1px solid var(--v2-line);
  overflow-x: auto;
  scrollbar-width: none;
}

.v2-seg::-webkit-scrollbar {
  display: none;
}

.v2-seg button {
  position: relative;
  display: inline-flex;
  flex: 1 0 auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 48px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--v2-ink-2);
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.v2-seg button b {
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 999px;
  background: #f1eeea;
  color: var(--v2-ink-2);
  font-size: 13px;
  font-weight: 800;
  line-height: 18px;
}

.v2-seg button.active {
  color: var(--v2-apricot-deep);
  font-weight: 800;
}

.v2-seg button.active b {
  background: var(--v2-apricot);
  color: var(--v2-ink);
}

.v2-seg button.active::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: -1px;
  height: 3px;
  border-radius: 3px;
  background: var(--v2-apricot);
}

.v2-seg button.danger,
.v2-seg button.danger.active {
  color: var(--v2-coral);
}

.v2-seg button.danger b {
  background: var(--v2-coral);
  color: #fff;
}

.v2-task-list {
  display: grid;
  gap: 12px;
}

.v2-task {
  padding: 14px 16px 16px;
  border: 1px solid var(--v2-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--v2-shadow);
  scroll-margin: 90px;
}

.v2-task.just-accepted {
  box-shadow: 0 0 0 3px rgba(243, 155, 121, 0.55), var(--v2-shadow);
}

.v2-task-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.v2-task-id {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  padding-top: 2px;
}

.v2-kind {
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--v2-apricot-soft);
  color: var(--v2-apricot-deep);
  font-size: 14px;
  font-weight: 800;
}

.v2-task.kind-combined .v2-kind {
  background: #f3effb;
  color: #5b3ca0;
}

.v2-task.kind-mail .v2-kind {
  background: #eaf2fd;
  color: #1f5ea8;
}

.v2-task-id b {
  color: var(--v2-ink-2);
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.v2-task-id .cod-task-badge {
  padding: 3px 8px;
  border: 0;
  border-radius: 8px;
  background: var(--v2-coral-soft);
  color: var(--v2-coral);
  font-size: 13px;
  font-weight: 800;
}

.v2-income {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex: 0 0 auto;
}

.v2-income small {
  color: var(--v2-muted);
  font-size: 13px;
  font-weight: 700;
}

.v2-income strong {
  color: var(--v2-ink);
  font-size: 24px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.v2-task-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 8px 0 4px;
}

.v2-when {
  color: var(--v2-ink-2);
  font-size: 15px;
  font-weight: 800;
}

.v2-when.late {
  color: var(--v2-coral);
}

.v2-prep {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.v2-prep.ready {
  background: var(--v2-green-soft);
  color: #1f6e3f;
}

.v2-prep.waiting {
  background: var(--v2-butter-soft);
  color: #7a5a06;
}

.v2-route {
  display: grid;
  gap: 0;
  margin: 8px 0 4px;
  padding: 0;
  list-style: none;
  cursor: pointer;
}

.v2-route li {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
  min-height: 48px;
  padding: 4px 0;
}

.v2-route li.pick::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 38px;
  bottom: -6px;
  border-left: 2px dotted #d7d0c9;
}

.v2-route i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 15px;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
}

html[data-lang="th"] .v2-route i,
html[data-lang="my"] .v2-route i {
  font-size: 11px;
}

.v2-route .pick i {
  background: var(--v2-apricot-soft);
  color: var(--v2-apricot-deep);
}

.v2-route .drop i {
  background: var(--v2-butter);
  color: var(--v2-ink);
}

.v2-route div {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding-top: 5px;
}

.v2-route strong {
  color: var(--v2-ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.v2-route .drop strong {
  font-size: 19px;
  font-weight: 800;
}

.v2-route small {
  color: var(--v2-muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.v2-task-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin: 6px 0 12px;
  padding-top: 10px;
  border-top: 1px solid var(--v2-line);
  color: var(--v2-ink-2);
  font-size: 14px;
  font-weight: 700;
}

.v2-bags::before,
.v2-pay::before {
  content: "";
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-right: 5px;
  vertical-align: -2px;
  background: currentColor;
}

.v2-bags::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1 13H6L5 8z'/%3E%3Cpath d='M9 8V6a3 3 0 0 1 6 0v2'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1 13H6L5 8z'/%3E%3Cpath d='M9 8V6a3 3 0 0 1 6 0v2'/%3E%3C/svg%3E") center / contain no-repeat;
}

.v2-pay::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='3' y='6' width='18' height='13' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='3' y='6' width='18' height='13' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E") center / contain no-repeat;
}

.v2-pay.cash {
  padding: 3px 9px;
  border-radius: 8px;
  background: var(--v2-coral-soft);
  color: var(--v2-coral);
  font-weight: 800;
}

.v2-pay.cash-done {
  color: #1f6e3f;
}

.v2-customer-no {
  color: var(--v2-muted);
  font-weight: 600;
}

.v2-task-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.v2-task-actions .v2-btn:only-child {
  grid-column: 1 / -1;
}

.v2-task .order-runtime-row,
.v2-task .order-cancel-notice,
.v2-task .customer-receipt-wait {
  margin: 0 0 12px;
  border-radius: 14px;
}

/* ---------- 订单 / 消息 ---------- */
.v2-message-list {
  display: grid;
  gap: 10px;
}

.v2-message {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 72px;
  padding: 12px 14px;
  border: 1px solid var(--v2-line);
  border-radius: 18px;
  background: #fff;
  color: var(--v2-ink);
  text-align: left;
  box-shadow: var(--v2-shadow);
}

.v2-message-avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #f1ecfa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b3ca0' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v11H9l-5 4V5z'/%3E%3Cpath d='M8 9h8M8 12h5' stroke-linecap='round'/%3E%3C/svg%3E") center / 24px no-repeat;
}

.v2-message-body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.v2-message-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.v2-message-top strong {
  overflow: hidden;
  font-size: 16px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2-message-top small {
  flex: 0 0 auto;
  color: var(--v2-muted);
  font-size: 12.5px;
  font-weight: 700;
}

.v2-message-text {
  overflow: hidden;
  color: var(--v2-ink-2);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2-message.has-unread .v2-message-text {
  color: var(--v2-ink);
  font-weight: 700;
}

/* ---------- 配送详情 ---------- */
.rider-shell[data-view="tasks"] .app-top,
.rider-shell[data-view="tasks"] .program-strip {
  display: none !important;
}

.rider-shell[data-view="tasks"] {
  padding-bottom: calc(170px + env(safe-area-inset-bottom));
}

.v2-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(52px, auto) 1fr minmax(52px, auto);
  align-items: center;
  margin: calc(-1 * max(10px, env(safe-area-inset-top))) -16px 6px;
  padding: max(6px, env(safe-area-inset-top)) 8px 6px;
  background: rgba(250, 249, 247, 0.94);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
          backdrop-filter: saturate(1.2) blur(12px);
}

.v2-bar strong {
  text-align: center;
  font-size: 18px;
  font-weight: 800;
}

.v2-back {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--v2-ink);
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
}

.v2-back span {
  position: relative;
  top: -2px;
}

.v2-bar-chat {
  position: relative;
  justify-self: end;
  min-height: 40px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--v2-ink-2);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.v2-bar-chat .v2-dot-count {
  position: absolute;
  top: 0;
  right: -4px;
}

.v2-detail .rider-order-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  margin: 2px 0 12px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.v2-detail .rider-order-track::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 17px;
  height: 2px;
  background: var(--v2-line-2);
}

.v2-detail .rider-order-track button {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 4px;
  min-height: 64px;
  padding: 0 2px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
  color: var(--v2-muted);
  text-align: center;
}

.v2-detail .rider-order-track button i,
.v2-detail .rider-order-track button img {
  width: 34px;
  height: 34px;
  border: 2px solid var(--v2-line-2);
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
}

.v2-detail .rider-order-track button.done i {
  border-color: #c9c2bb;
  background: #f1eeea url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235e5862' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 18px no-repeat;
}

.v2-detail .rider-order-track button.current i {
  border-color: var(--v2-apricot);
  background: var(--v2-apricot);
  box-shadow: 0 0 0 4px rgba(243, 155, 121, 0.25);
}

.v2-detail .rider-order-track button b {
  color: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.v2-detail .rider-order-track button.current b {
  color: var(--v2-apricot-deep);
}

.v2-detail .rider-order-track button.done b {
  color: var(--v2-ink-2);
}

.v2-detail .rider-order-track button small {
  display: none;
}

.v2-detail-head {
  margin: 0 0 12px;
  padding: 16px;
  border: 1px solid var(--v2-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--v2-shadow);
}

.v2-status-chip {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 999px;
  background: #f1eeea;
  color: var(--v2-ink-2);
  font-size: 13px;
  font-weight: 800;
}

.v2-detail-head h1 {
  margin: 8px 0 4px;
  color: var(--v2-ink);
  font-size: 27px;
  font-weight: 800;
  line-height: 1.2;
}

.v2-detail-head p {
  margin: 0 0 8px;
  color: var(--v2-ink-2);
  font-size: 15px;
  line-height: 1.5;
}

.v2-detail-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  color: var(--v2-muted);
  font-size: 14px;
  font-weight: 700;
}

.v2-detail .merchant-prep-banner,
.v2-detail .cod-stage-notice,
.v2-detail .cash-on-delivery-stage-notice {
  margin: 0 0 12px;
  border-radius: 16px;
}

.v2-detail .map-panel {
  margin: 0 0 12px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--v2-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--v2-shadow);
}

.v2-detail .map-panel > header {
  display: none;
}

.v2-detail .map-panel .live-map {
  min-height: 150px;
  height: 160px;
  margin: 0;
  border: 0;
  border-radius: 0;
}

.v2-detail .detail-panel,
.v2-detail .product-panel,
.v2-detail .proof-panel,
.v2-detail .mail-shipment-panel,
.v2-detail .combined-order-panel {
  margin: 0 0 12px;
  padding: 16px;
  border: 1px solid var(--v2-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--v2-shadow);
}

.v2-detail .detail-panel .detail-head {
  display: none;
}

.v2-detail .address-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.v2-detail .address-card {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.v2-detail .address-card:not(.customer) {
  order: 2;
  padding-top: 10px;
  border-top: 1px solid var(--v2-line);
}

.v2-detail .address-card:not(.customer) strong {
  font-size: 15px;
}

.v2-detail .address-card:not(.customer) span,
.v2-detail .address-card:not(.customer) small {
  color: var(--v2-muted);
  font-size: 13.5px;
}

.v2-detail .address-card.customer {
  order: 1;
  display: grid;
  gap: 6px;
}

.v2-detail .address-card.customer .customer-title-line strong {
  color: var(--v2-ink-2);
  font-size: 15px;
  font-weight: 700;
}

.v2-detail .address-card.customer > span {
  color: var(--v2-ink);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.v2-detail .address-card.customer > small {
  padding: 10px 12px;
  border-radius: 12px;
  background: #faf6f2;
  color: var(--v2-ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}

.v2-detail .contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.v2-detail .contact-row button {
  min-height: 48px;
  padding: 0 10px;
  border: 1px solid var(--v2-line-2);
  border-radius: 14px;
  background: #fff;
  color: var(--v2-ink);
  font-size: 15px;
  font-weight: 800;
  box-shadow: none;
}

.v2-detail .contact-row button.primary {
  border-color: transparent;
  background: var(--v2-butter);
}

.v2-detail .contact-row .address-correction-button {
  grid-column: 1 / -1;
  color: var(--v2-ink-2);
  font-weight: 700;
}

.v2-detail .merchant-prep-banner {
  border: 1px solid rgba(47, 158, 91, 0.2);
  background: var(--v2-green-soft);
  color: #1f6e3f;
}

.v2-detail .merchant-prep-banner strong,
.v2-detail .merchant-prep-banner span,
.v2-detail .merchant-prep-banner em {
  color: #1f6e3f;
}

.v2-detail .product-row em {
  color: var(--v2-apricot-deep);
  font-size: 17px;
  font-weight: 800;
}

.v2-detail .contact-row .call-pill {
  min-height: 48px;
}

.v2-detail .vehicle-plate-panel {
  margin-top: 12px;
  border-radius: 14px;
}

.v2-more .v2-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.v2-actionbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 30;
  width: min(100vw, 480px);
  padding: 8px 16px calc(12px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  border-top: 1px solid var(--v2-line);
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  box-shadow: 0 -8px 24px rgba(48, 45, 50, 0.06);
}

html[data-lang="th"] .v2-actionbar,
html[data-lang="my"] .v2-actionbar,
html[data-lang="en"] .v2-actionbar {
  width: min(100vw, 520px);
}

.v2-report {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 36px;
  margin: 0 0 6px;
  border: 0;
  background: transparent;
  color: var(--v2-ink-2);
  font-size: 14px;
  font-weight: 700;
}

.v2-report i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--v2-apricot);
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.v2-actionbar-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.v2-actionbar-row.two {
  grid-template-columns: 1fr 1fr;
}

.v2-actionbar .v2-btn {
  width: 100%;
  min-height: 54px;
}

/* ---------- 我的 ---------- */
.v2-me {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
}

.v2-me img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--v2-line);
}

.v2-me div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.v2-me strong {
  font-size: 20px;
  font-weight: 800;
}

.v2-me small {
  overflow: hidden;
  color: var(--v2-muted);
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2-account {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.v2-account.ok {
  background: var(--v2-green-soft);
  color: #1f6e3f;
}

.v2-account.off {
  background: var(--v2-coral-soft);
  color: var(--v2-coral);
}

.v2-wallet {
  position: relative;
  overflow: hidden;
}

.v2-wallet::before {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--v2-butter-soft);
}

.v2-wallet-top {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.v2-wallet-top > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.v2-wallet-top span {
  color: var(--v2-ink-2);
  font-size: 15px;
  font-weight: 700;
}

.v2-wallet-top strong {
  color: var(--v2-ink);
  font-size: 34px;
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.v2-wallet-top small {
  color: var(--v2-muted);
  font-size: 14px;
  font-weight: 600;
}

.v2-wallet-top .v2-btn {
  flex: 0 0 auto;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  font-size: 16px;
}

.v2-rule-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0 4px;
}

.v2-rule {
  position: relative;
  margin: 0;
  color: var(--v2-muted);
  font-size: 13px;
}

.v2-row-details {
  border-top: 1px solid var(--v2-line);
}

.v2-row-details > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  list-style: none;
  cursor: pointer;
  color: var(--v2-ink);
  font-size: 16px;
  font-weight: 700;
}

.v2-row-details > summary::-webkit-details-marker {
  display: none;
}

.v2-row-details > summary > span {
  flex: 1;
}

.v2-row-details > summary .v2-chevron {
  transition: transform 0.18s ease;
}

.v2-row-details[open] > summary .v2-chevron {
  transform: rotate(90deg);
}

.v2-row-body {
  padding: 0 0 14px;
}

.v2-row-body .profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.v2-row-body .profile-grid > div {
  padding: 10px 12px;
  border-radius: 12px;
  background: #faf8f5;
}

.v2-row-body .profile-history-panel {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.v2-income-card h3 {
  margin-bottom: 4px;
}

.v2-income-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  border-top: 1px solid var(--v2-line);
}

.v2-income-card h3 + .v2-income-row {
  border-top: 0;
}

.v2-income-row div {
  display: grid;
  gap: 2px;
}

.v2-income-row strong {
  font-size: 15.5px;
  font-weight: 700;
}

.v2-income-row small {
  color: var(--v2-muted);
  font-size: 13px;
}

.v2-income-row b {
  color: var(--v2-ink);
  font-size: 17px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.v2-settings {
  padding: 4px 16px;
}

.v2-settings > :first-child {
  border-top: 0;
}

.v2-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 8px 0;
  border: 0;
  border-top: 1px solid var(--v2-line);
  background: transparent;
  color: var(--v2-ink);
  font-size: 16px;
  font-weight: 700;
  text-align: left;
}

.v2-row > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.v2-row > span small {
  color: var(--v2-muted);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
}

.v2-row select {
  min-height: 40px;
  padding: 0 28px 0 12px;
  border: 1px solid var(--v2-line-2);
  border-radius: 10px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23302d32' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 8px center / 14px no-repeat;
  color: var(--v2-ink);
  font-size: 15px;
  font-weight: 700;
  -webkit-appearance: none;
          appearance: none;
}

.v2-row.danger {
  justify-content: center;
  color: var(--v2-coral);
}

.v2-profile .profile-version-footer {
  margin-top: 8px;
}

/* ---------- Bottom navigation ---------- */
.rider-bottom-nav {
  left: 50%;
  right: auto;
  bottom: 0;
  width: min(100vw, 480px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  border: 0;
  border-top: 1px solid var(--v2-line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  box-shadow: 0 -6px 20px rgba(48, 45, 50, 0.05);
}

html[data-lang="th"] .rider-bottom-nav,
html[data-lang="my"] .rider-bottom-nav,
html[data-lang="en"] .rider-bottom-nav {
  width: min(100vw, 520px);
}

.rider-bottom-nav button {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 3px;
  min-height: 54px;
  padding: 4px 2px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
  color: #8f8882;
}

.rider-bottom-nav button svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rider-bottom-nav button span {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.1;
}

.rider-bottom-nav button.active {
  background: transparent;
  color: var(--v2-apricot-deep);
}

.rider-bottom-nav button.active svg {
  fill: rgba(243, 155, 121, 0.22);
}

.rider-bottom-nav button.active span {
  font-weight: 800;
}

.v2-nav-badge {
  position: absolute;
  top: 2px;
  left: calc(50% + 6px);
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #e5484d;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 0 0 2px #fff;
}

/* ---------- Legacy panels and dialogs: warm palette, dark text on apricot ---------- */
.hero-actions button.primary,
.contact-row button.primary,
.stage-panel header button.primary,
.order-action-strip button.primary,
.action-grid button.primary,
.rider-dialog .primary,
.message-card button.primary,
.order-row-actions button.primary,
.order-runtime-row button.primary,
.profile-action button.primary,
.combined-safe-actions button.primary,
.home-delivery-actions button.primary,
.profile-status-actions button.primary,
.withdraw-dialog .primary,
.rider-login-panel button.primary,
.customer-address-search-row button.primary,
.customer-address-actions button.primary,
.stage-next button.primary,
.location-actions button.primary,
.profile-history-controls button.primary {
  border-color: transparent;
  background: var(--v2-apricot);
  color: var(--v2-ink);
  box-shadow: none;
}

.rider-login-panel button.primary:disabled,
.rider-dialog .primary:disabled {
  background: #efe9e3;
  color: #a7a09a;
}

.rider-dialog {
  border: 0;
  border-radius: 24px;
  color: var(--v2-ink);
}

.rider-dialog .dialog-head strong {
  font-size: 19px;
  font-weight: 800;
}

.rider-dialog .primary,
.rider-dialog button {
  min-height: 50px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 800;
}

.rider-dialog [data-dialog-close] {
  min-height: 40px;
  border-radius: 50%;
}

.new-order-dialog .new-order-list > * {
  border-radius: 16px;
}

.v2-detail .order-elapsed-badge,
.v2-detail .hero-elapsed-badge {
  border-radius: 10px;
}

@media (max-width: 360px) {
  .rider-shell {
    padding-left: 12px;
    padding-right: 12px;
  }

  .v2-bar {
    margin-left: -12px;
    margin-right: -12px;
  }

  .v2-summary strong {
    font-size: 23px;
  }

  .v2-summary > div {
    grid-template-columns: 34px 1fr;
    padding: 0 10px;
  }

  .v2-summary .v2-ico {
    width: 34px;
    height: 34px;
  }

  .v2-seg button {
    padding: 0 6px;
    font-size: 15px;
  }

  .v2-income strong {
    font-size: 20px;
  }

  .v2-route .drop strong {
    font-size: 17px;
  }

  .v2-detail-head h1 {
    font-size: 23px;
  }

  .v2-wallet-top strong {
    font-size: 28px;
  }

  .v2-btn {
    font-size: 16px;
  }

  .v2-actionbar {
    padding-left: 12px;
    padding-right: 12px;
  }
}
