.m-dashboard-hero { display: grid; gap: 18px; }
.m-dashboard-hero h1 { margin: 0; font-size: 30px; line-height: 1.08; letter-spacing: -.055em; font-weight: 950; }
.m-dashboard-hero p { margin: 0; color: var(--m-text-muted); line-height: 1.55; }
.m-dashboard-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.m-dashboard-card-list { display: grid; gap: 14px; }
.m-ride-card { display: grid; gap: 14px; }
.m-ride-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.m-ride-card-head h3 { margin: 6px 0 0; font-size: 20px; line-height: 1.22; letter-spacing: -.035em; font-weight: 950; }
.m-ride-card-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--m-text-muted); font-size: 13px; font-weight: 750; }
.m-ride-route { display: grid; gap: 10px; }
.m-ride-route-row { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; }
.m-ride-route-dot { width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center; background: var(--m-primary-soft); color: var(--m-primary-strong); font-size: 12px; font-weight: 950; }
.m-ride-route-row strong { display: block; font-size: 13px; color: var(--m-text-muted); margin-bottom: 2px; }
.m-ride-route-row span span { display: block; font-size: 15px; font-weight: 850; overflow-wrap: anywhere; }
.m-ride-card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.m-ride-card-actions .m-btn-wide { min-width: 0; }
.m-boarding-code-card { background: linear-gradient(135deg, #eef4ff 0%, #ffffff 100%); border-color: rgba(63, 125, 244, .22); }
.m-boarding-code-value { display: grid; place-items: center; min-height: 88px; border-radius: 24px; background: #fff; border: 1px dashed rgba(63, 125, 244, .42); color: var(--m-primary-strong); font-size: 38px; line-height: 1; letter-spacing: .12em; font-weight: 950; font-variant-numeric: tabular-nums; }
.m-payment-link-card { background: #fff7ed; border-color: #fed7aa; color: #9a3412; }
.m-payment-link-card p { margin: 0; line-height: 1.5; }
.m-refresh-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.m-refresh-row .m-live-message { margin: 0; flex: 1; }
@media (max-width: 360px) {
  .m-dashboard-actions,
  .m-ride-card-actions { grid-template-columns: 1fr; }
  .m-boarding-code-value { font-size: 32px; }
}

/* 2026-06-18 dashboard/history UI polish: CSS-only. */
.m-dashboard-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff 0%, #f4f8ff 100%);
  border-color: rgba(63, 125, 244, .12);
}

.m-dashboard-hero::after {
  content: "";
  position: absolute;
  right: -42px;
  top: -44px;
  width: 138px;
  height: 138px;
  border-radius: 999px;
  background: rgba(63, 125, 244, .09);
}

.m-dashboard-hero > * { position: relative; z-index: 1; }

.m-dashboard-actions .m-btn {
  min-height: 52px;
  border-radius: 16px;
}

.m-ride-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(226, 232, 240, .88);
}

.m-ride-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--m-primary), rgba(63, 125, 244, 0));
}

.m-ride-route-dot,
.m-boarding-code-value {
  box-shadow: inset 0 0 0 1px rgba(63, 125, 244, .08);
}

.m-payment-link-card {
  box-shadow: 0 12px 28px rgba(154, 52, 18, .08);
}
