:root {
  --brand: #6fba3c;
  --brand-deep: #2f7d28;
  --brand-soft: #edf8e6;
  --ink: #1f271d;
  --muted: #687463;
  --subtle: #8a9485;
  --line: #dfe8d8;
  --page: #f3f8ee;
  --panel: #ffffff;
  --amber: #f6a23c;
  --red: #e64b55;
  --blue: #2f7ed8;
  --shadow: 0 10px 28px rgba(36, 52, 32, 0.08);
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans Thai", "Noto Sans Myanmar", "Myanmar Sangam MN", "Thonburi", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: #e9f1e3;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.rider-shell {
  position: relative;
  width: min(100vw, 480px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(12px, env(safe-area-inset-top)) 12px calc(86px + env(safe-area-inset-bottom));
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0) 190px),
    linear-gradient(180deg, #f7fbf2 0%, #f2f7ed 46%, #eef5e9 100%);
}

html[data-lang="th"],
html[data-lang="my"],
html[data-lang="en"] {
  word-break: normal;
  overflow-wrap: anywhere;
}

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

.app-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 0 10px;
}

.app-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  min-width: 0;
}

.language-select {
  display: grid;
  gap: 2px;
  min-width: 76px;
  padding: 5px 7px;
  border: 1px solid rgba(222, 232, 216, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 6px 16px rgba(37, 45, 34, 0.06);
}

.language-select span {
  color: var(--subtle);
  font-size: 9.5px;
  font-weight: 900;
  line-height: 1;
}

.language-select select {
  width: 100%;
  min-width: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 950;
  outline: none;
}

.brand-lockup {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.brand-lockup img {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(111, 186, 60, 0.18);
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 6px 18px rgba(43, 65, 34, 0.08);
}

.brand-lockup div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-lockup span {
  color: var(--brand-deep);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
}

.brand-lockup strong {
  color: var(--ink);
  font-size: 21px;
  font-weight: 950;
  line-height: 1.1;
}

.brand-lockup small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.online-toggle {
  display: grid;
  grid-template-columns: 16px auto;
  gap: 6px;
  align-items: center;
  min-width: 84px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #6e786a;
  background: #fff;
  box-shadow: 0 6px 16px rgba(37, 45, 34, 0.07);
}

.online-toggle i,
#syncDot {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #bfc9ba;
}

.online-toggle.active {
  border-color: rgba(111, 186, 60, 0.24);
  color: #fff;
  background: var(--brand);
}

.online-toggle.active i,
#syncDot.is-ok {
  background: #fff;
  box-shadow: 0 0 0 4px rgba(47, 125, 40, 0.2);
}

.online-toggle b {
  font-size: 12px;
  font-weight: 950;
}

.program-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(111, 186, 60, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.program-strip div {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 2px 8px;
  align-items: center;
  min-width: 0;
}

.program-strip strong,
.program-strip small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.program-strip strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
}

.program-strip small {
  grid-column: 2;
  color: var(--subtle);
  font-size: 11px;
  font-weight: 820;
}

.program-strip button,
.hero-actions button,
.contact-row button,
.call-pill,
.stage-panel header button,
.order-action-strip button,
.action-grid button,
.chat-quick button,
.exception-options button,
.bridge-actions button,
.location-actions button,
.home-panel button,
.home-message-list button,
.message-card button,
.order-browser-panel button,
.profile-action button {
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  color: #284321;
  background: var(--brand-soft);
  font-size: 12px;
  font-weight: 950;
}

.program-strip button {
  background: #ecf3e8;
}

button:disabled,
button[aria-disabled="true"] {
  cursor: not-allowed;
  color: #7b8678 !important;
  background: #eef1eb !important;
  box-shadow: none !important;
  opacity: 0.68;
}

.ops-alerts {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
}

.ops-alerts[hidden] {
  display: none;
}

.ops-alert-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(47, 125, 40, 0.18);
  border-radius: 8px;
  background: #f8fcf3;
  box-shadow: 0 10px 22px rgba(36, 52, 31, 0.08);
}

.ops-alert-card div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.ops-alert-card strong {
  color: #23391f;
  font-size: 13px;
  font-weight: 950;
}

.ops-alert-card span {
  color: #5f7059;
  font-size: 11.5px;
  font-weight: 820;
  line-height: 1.35;
}

.ops-alert-card em {
  padding: 5px 7px;
  border-radius: 999px;
  color: #5a3914;
  background: #ffe9bd;
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

.ops-alert-card.warning,
.ops-alert-card.blocking {
  border-color: rgba(214, 139, 27, 0.3);
  background: #fff7e7;
}

.ops-alert-card.danger {
  border-color: rgba(199, 68, 55, 0.3);
  background: #fff0ee;
}

.ops-alert-card.danger strong {
  color: #8b251f;
}

.route-hero {
  margin-top: 10px;
}

.hero-card,
.metric-card,
.task-card,
.detail-panel,
.map-panel,
.product-panel,
.proof-panel,
.timeline-panel,
.action-panel,
.location-panel,
.home-panel,
.message-card,
.order-browser-panel,
.profile-panel,
.route-card,
.empty-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.hero-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  overflow: hidden;
}

.hero-head,
.panel-title,
.detail-head,
.stage-panel header,
.map-panel header,
.home-panel header,
.task-card header,
.route-card header,
.message-card header,
.profile-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hero-head span,
.status-chip,
.task-card em,
.tag,
.sync-pill,
.provider-chip,
.proof-status,
.message-badge {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--brand-deep);
  background: var(--brand-soft);
  font-size: 10.5px;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
}

.status-chip.warn,
.tag.warn,
.sync-pill.pending {
  color: #8a4d08;
  background: #fff3df;
}

.status-chip.danger,
.tag.danger,
.sync-pill.fail {
  color: #a62f38;
  background: #ffe9eb;
}

.status-chip.blue,
.tag.blue {
  color: #165ca8;
  background: #e9f2ff;
}

.hero-head strong {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 950;
}

.hero-head-side,
.home-delivery-head-side {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.hero-route {
  display: grid;
  gap: 5px;
}

.hero-route strong {
  color: var(--ink);
  font-size: 20px;
  font-weight: 950;
  line-height: 1.18;
}

.hero-route span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}

.provider-row,
.hero-actions,
.task-meta,
.proof-meta,
.bridge-actions,
.location-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  align-items: center;
}

.provider-chip {
  color: #45523f;
  background: #f1f5ed;
}

.provider-chip.active {
  color: #fff;
  background: #263126;
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
}

.hero-actions .elapsed-action {
  color: #52614b;
  background: #f5f9f1;
  opacity: 1;
}

.customer-receipt-card {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(246, 162, 60, 0.34);
  border-radius: 8px;
  background: #fff8ea;
}

.customer-receipt-card div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.customer-receipt-card strong {
  overflow: hidden;
  color: #2f382b;
  font-size: 13px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-receipt-card span {
  color: #9b671a;
  font-size: 18px;
  font-weight: 950;
  line-height: 1.05;
}

.customer-receipt-card small {
  overflow: hidden;
  color: #6f6048;
  font-size: 11px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.receipt-passive-note {
  max-width: 128px;
  padding: 8px 10px;
  border: 1px solid rgba(155, 103, 26, 0.18);
  border-radius: 8px;
  color: #7c5a24;
  background: rgba(255, 255, 255, 0.58);
  font-size: 10.5px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
}

.customer-receipt-card button {
  min-height: 38px;
  padding-inline: 14px;
  white-space: nowrap;
}

.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 {
  color: #fff;
  background: var(--brand);
}

.rider-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 10px;
}

.metric-card {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px 7px;
}

.metric-card span {
  overflow: hidden;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-card strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
}

.metric-card small {
  overflow: hidden;
  color: var(--subtle);
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-tabs {
  position: sticky;
  top: 0;
  z-index: 14;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin: 10px -2px 8px;
  padding: 8px 2px;
  background: linear-gradient(180deg, rgba(247, 251, 242, 0.96), rgba(247, 251, 242, 0.88));
  backdrop-filter: blur(12px);
}

.status-tabs button {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  color: #53604d;
  background: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 950;
}

.status-tabs button.active {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 8px 18px rgba(86, 157, 43, 0.18);
}

.rider-workspace,
.task-list,
.task-detail,
.home-view,
.route-view,
.orders-view,
.messages-view,
.profile-view {
  display: grid;
  gap: 8px;
}

.rider-layout {
  display: grid;
  gap: 10px;
}

.task-card {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 11px;
  color: inherit;
  text-align: left;
}

.task-card.active {
  border-color: rgba(111, 186, 60, 0.58);
  box-shadow: 0 10px 24px rgba(75, 145, 40, 0.14);
}

.task-card.is-delivering,
.home-task-strip.is-delivering {
  border-color: rgba(47, 126, 216, 0.55);
  background: linear-gradient(135deg, #f3f8ff 0%, #ffffff 58%, #eef8ff 100%);
  box-shadow: 0 12px 26px rgba(47, 126, 216, 0.16);
}

.task-card.is-delivering {
  box-shadow: inset 4px 0 0 #2f7ed8, 0 12px 26px rgba(47, 126, 216, 0.14);
}

.home-task-strip.is-delivering {
  box-shadow: inset 4px 0 0 #2f7ed8, 0 12px 26px rgba(47, 126, 216, 0.14);
}

.order-row.order-kind-mail.is-delivering {
  border-color: rgba(246, 162, 60, 0.42);
  background: #fff8ea;
}

.task-card strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-card p,
.empty-card p {
  margin: 0;
  color: #4f5a49;
  font-size: 12.5px;
  font-weight: 820;
  line-height: 1.38;
}

.task-meta span {
  padding: 4px 7px;
  border-radius: 999px;
  color: #65715f;
  background: #f3f7ef;
  font-size: 10.5px;
  font-weight: 850;
}

.task-meta .cold {
  color: #1263a9;
  background: #eaf4ff;
}

.task-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}

.task-progress i {
  height: 4px;
  border-radius: 999px;
  background: #dfe8d9;
}

.task-progress i.done {
  background: var(--brand);
}

.detail-panel,
.stage-panel,
.combined-order-panel,
.mail-panel,
.map-panel,
.product-panel,
.proof-panel,
.timeline-panel,
.action-panel,
.location-panel,
.route-card,
.home-panel,
.order-browser-panel,
.message-card,
.profile-panel,
.empty-card {
  padding: 12px;
}

.detail-head strong,
.stage-panel header strong,
.panel-title strong,
.map-panel header strong,
.route-card header strong,
.home-panel header strong,
.order-browser-panel header strong,
.message-card header strong,
.profile-panel header strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 950;
}

.detail-head small,
.stage-panel header span,
.panel-title span,
.map-panel header span,
.route-card header span,
.home-panel header span,
.order-browser-panel header span,
.message-card header span,
.profile-panel header span {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 850;
}

.bridge-grid,
.address-grid,
.mail-grid,
.route-metrics,
.order-summary-strip,
.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.bridge-grid div,
.mail-grid div,
.route-metrics div,
.order-summary-strip div,
.profile-grid div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 9px;
  border-radius: 8px;
  background: #f5f9f1;
}

.bridge-grid span,
.mail-grid span,
.route-metrics span,
.order-summary-strip span,
.profile-grid span {
  color: var(--subtle);
  font-size: 10.5px;
  font-weight: 900;
}

.bridge-grid strong,
.mail-grid strong,
.route-metrics strong,
.order-summary-strip strong,
.profile-grid strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.address-card {
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: 8px;
  background: #f5f9f1;
}

.mail-panel {
  display: grid;
  gap: 10px;
}

.mail-proof-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mail-proof-preview {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 8px;
  border: 1px solid rgba(222, 232, 216, 0.92);
  border-radius: 8px;
  background: #fffdf8;
}

.mail-proof-preview img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  object-fit: cover;
  background: #f6f8f3;
}

.mail-proof-preview figcaption {
  overflow: hidden;
  color: #6d5b3e;
  font-size: 11px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mail-proof-guide section {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(222, 232, 216, 0.92);
  border-radius: 8px;
  background: #f8fbf5;
}

.mail-proof-guide strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
}

.mail-proof-guide section > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mail-proof-guide figure {
  display: grid;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 7px;
  border: 1px solid rgba(222, 232, 216, 0.9);
  border-radius: 8px;
  background: #fff;
}

.mail-proof-guide img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 7px;
  object-fit: cover;
  background: #f6f8f3;
}

.mail-proof-guide figcaption {
  display: grid;
  gap: 3px;
}

.mail-proof-guide b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mail-proof-guide b {
  color: var(--ink);
  font-size: 11px;
  font-weight: 950;
}

.mail-proof-guide span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 820;
  line-height: 1.25;
}

.combined-order-panel {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(126, 88, 214, 0.2);
  background: #fff;
  box-shadow: inset 4px 0 0 #7e58d6;
}

.combined-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 8px;
  background: #f7f3ff;
}

.combined-hero div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.combined-hero span,
.combined-section header span,
.combined-sub-card header span,
.combined-row-mini span,
.combined-flags span {
  color: #716583;
  font-size: 11px;
  font-weight: 900;
}

.combined-hero strong {
  color: #241b3d;
  font-size: 19px;
  font-weight: 950;
}

.combined-hero p {
  margin: 0;
  color: #4f4562;
  font-size: 12.5px;
  font-weight: 820;
  line-height: 1.45;
}

.combined-hero em {
  padding: 5px 8px;
  border-radius: 999px;
  color: #5b3ca0;
  background: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

.combined-flags,
.combined-sub-grid,
.merge-condition-grid,
.fee-breakdown {
  display: grid;
  gap: 8px;
}

.combined-flags {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.combined-flags div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 9px;
  border-radius: 8px;
  background: #f8fbf5;
}

.combined-flags strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
}

.combined-sub-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.combined-sub-card,
.combined-section {
  display: grid;
  gap: 9px;
  padding: 10px;
  border: 1px solid rgba(222, 232, 216, 0.9);
  border-radius: 8px;
  background: #fbfdf8;
}

.combined-sub-card.canteen {
  border-color: rgba(213, 162, 60, 0.32);
  background: #fff8ea;
}

.combined-sub-card.supermarket {
  border-color: rgba(47, 126, 216, 0.26);
  background: #f3f8ff;
}

.combined-sub-card header,
.combined-section header {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  justify-content: space-between;
}

.combined-sub-card header strong,
.combined-section header strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
}

.combined-item-list {
  display: grid;
  gap: 6px;
}

.combined-item-list div,
.merge-condition-grid div,
.fee-breakdown div,
.combined-row-mini {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.combined-item-list b,
.combined-row-mini strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.combined-item-list small,
.combined-row-mini small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.combined-sub-card dl,
.fee-breakdown {
  display: grid;
  gap: 6px;
  margin: 0;
}

.combined-sub-card dl div,
.fee-breakdown div {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.combined-sub-card dt,
.fee-breakdown dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.combined-sub-card dd,
.fee-breakdown dd {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
  text-align: right;
}

.merge-condition-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.merge-condition-grid div {
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
}

.merge-condition-grid i {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--brand);
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
}

.merge-condition-grid .fail i {
  background: #d76d2b;
}

.merge-condition-grid span,
.merge-condition-grid strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.combined-conclusion,
.combined-route-note {
  margin: 0;
  padding: 9px;
  border-radius: 8px;
  color: #2f6d27;
  background: #edf8e6;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.4;
}

.combined-route-steps {
  display: grid;
  gap: 8px;
}

.combined-route-steps div {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 2px 8px;
  align-items: center;
  padding: 9px;
  border-radius: 8px;
  background: #f7faf4;
}

.combined-route-steps i {
  grid-row: span 2;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #7e58d6;
  font-style: normal;
  font-weight: 950;
}

.combined-route-steps strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
}

.combined-route-steps span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.35;
}

.fee-breakdown .total {
  background: #f7f3ff;
}

.fee-breakdown .total dd {
  color: #5b3ca0;
  font-size: 14px;
}

.combined-risk-card {
  display: grid;
  gap: 7px;
  padding: 10px;
  border-radius: 8px;
  background: #edf8e6;
  color: #2f6d27;
}

.combined-risk-card.warning {
  background: #fff8ea;
  color: #81570f;
}

.combined-risk-card strong {
  font-size: 13px;
  font-weight: 950;
}

.combined-risk-card ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
}

.combined-risk-card li {
  font-size: 11.5px;
  font-weight: 850;
  line-height: 1.35;
}

.combined-safe-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.combined-safe-actions button {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  padding: 0 10px;
  color: #53604d;
  background: #f1f6ec;
  font-size: 12px;
  font-weight: 950;
}

.combined-safe-actions button.primary {
  color: #fff;
  background: #7e58d6;
}

.combined-row-mini {
  margin-top: 2px;
  background: #f7f3ff;
}

.order-inline-actions {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.order-status-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 5px 8px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid rgba(222, 232, 216, 0.92);
  border-radius: 8px;
  background: #f7faf4;
}

.order-status-line.is-delivering {
  border-color: rgba(47, 126, 216, 0.44);
  background: #eaf4ff;
}

.order-status-line span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.order-status-line strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
}

.order-status-line.is-delivering strong {
  color: #0f4f93;
}

.order-status-line small {
  grid-column: 1 / -1;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-action-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.order-action-strip button {
  min-width: 0;
  white-space: nowrap;
}

.stage-panel {
  display: grid;
  gap: 10px;
}

.stage-panel header > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.stage-panel header button {
  min-width: 88px;
  min-height: 36px;
  padding: 0 12px;
  white-space: nowrap;
}

.stage-next {
  display: grid;
  gap: 4px;
  padding: 11px;
  border: 1px solid rgba(47, 126, 216, 0.22);
  border-radius: 8px;
  background: #eef6ff;
}

.stage-next span {
  color: #2a679f;
  font-size: 10.5px;
  font-weight: 950;
}

.stage-next strong {
  color: #0f4f93;
  font-size: 18px;
  font-weight: 950;
  line-height: 1.1;
}

.stage-next small {
  color: #4f6579;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}

.stage-next button {
  min-height: 38px;
  margin-top: 2px;
  border: 0;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 950;
}

.stage-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.stage-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 2px 7px;
  align-items: center;
  min-width: 0;
  padding: 9px;
  border: 1px solid #e0ead9;
  border-radius: 8px;
  background: #f8fbf5;
  color: inherit;
  font: inherit;
  text-align: left;
}

.stage-item:not(:disabled) {
  cursor: pointer;
}

.stage-item:disabled {
  opacity: 1;
}

.stage-item i {
  grid-row: span 2;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 2px solid #cbdac2;
  border-radius: 50%;
  background: #fff;
}

.stage-item i::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbdac2;
  content: "";
}

.stage-item strong {
  overflow: hidden;
  color: #263126;
  font-size: 12.5px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stage-item span {
  overflow: hidden;
  color: #778270;
  font-size: 10.5px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stage-item.done {
  border-color: rgba(111, 186, 60, 0.26);
  background: #f3faee;
}

.stage-item.done i {
  border-color: var(--brand);
  background: var(--brand);
}

.stage-item.done i::before {
  width: 9px;
  height: 5px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  border-radius: 0;
  background: transparent;
  transform: rotate(45deg) translate(-1px, -1px);
}

.stage-item.active {
  border-color: rgba(47, 126, 216, 0.55);
  background: #eaf4ff;
  box-shadow: inset 3px 0 0 #2f7ed8;
}

.stage-item.active i {
  border-color: #2f7ed8;
  background: #2f7ed8;
}

.stage-item.active i::before {
  background: #fff;
}

.stage-item.active strong {
  color: #0f4f93;
}

.address-card strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
}

.address-card span,
.address-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
  line-height: 1.35;
}

.address-card.customer {
  background: #f4f8ff;
}

.customer-title-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.customer-title-line strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.photo-thumbs figure,
.proof-slot {
  position: relative;
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 6px;
  border: 1px dashed #cddfc3;
  border-radius: 8px;
  background: #f9fcf6;
  text-align: center;
}

.photo-thumbs img,
.proof-slot img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  object-fit: cover;
  background: #fff;
}

.photo-thumbs figcaption,
.proof-slot span {
  overflow: hidden;
  color: #53604d;
  font-size: 10px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-row,
.action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 10px;
}

.call-pill {
  overflow: hidden;
  min-width: 0;
  padding: 0 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
}

.map-panel {
  overflow: hidden;
}

.live-map {
  position: relative;
  min-height: 230px;
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid #dfe8d8;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.82) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(180deg, rgba(255, 255, 255, 0.78) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(135deg, #edf5e7, #f8faf4);
}

.map-road {
  position: absolute;
  height: 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 0 0 1px rgba(209, 221, 202, 0.72);
}

.map-road.main {
  left: -10%;
  top: 58%;
  width: 120%;
  transform: rotate(-20deg);
}

.map-road.side-a {
  left: 28%;
  top: 8%;
  width: 28%;
  transform: rotate(76deg);
}

.map-road.side-b {
  right: 4%;
  top: 42%;
  width: 42%;
  transform: rotate(38deg);
}

.map-route {
  position: absolute;
  left: 16%;
  top: 61%;
  width: 68%;
  height: 0;
  border-top: 5px solid rgba(111, 186, 60, 0.22);
  border-radius: 999px;
  transform: rotate(-20deg);
  transform-origin: left center;
}

.map-route i {
  display: block;
  width: var(--route-progress, 50%);
  height: 5px;
  margin-top: -5px;
  border-radius: inherit;
  background: linear-gradient(90deg, #6fba3c, #279b65);
}

.pin {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 8px 8px 8px 2px;
  color: #fff;
  font-size: 11px;
  font-weight: 950;
  box-shadow: 0 10px 22px rgba(35, 48, 31, 0.16);
  transform: rotate(-45deg);
}

.pin span {
  transform: rotate(45deg);
}

.pin.store {
  left: 11%;
  top: 56%;
  background: linear-gradient(135deg, #f6a23c, #e96d42);
}

.pin.customer {
  right: 9%;
  top: 18%;
  background: linear-gradient(135deg, #65bb3b, #259d60);
}

.rider-position {
  position: absolute;
  left: var(--rider-x, 54%);
  top: var(--rider-y, 48%);
  z-index: 3;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: #253026;
  box-shadow: 0 12px 26px rgba(28, 38, 26, 0.22);
  transform: translate(-50%, -50%);
}

.rider-position::before {
  width: 21px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 10px 10px 5px 5px;
  content: "";
}

.map-eta {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 4;
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border: 1px solid rgba(223, 232, 216, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 20px rgba(44, 65, 38, 0.1);
  backdrop-filter: blur(10px);
}

.map-eta strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
}

.map-eta span {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.location-grid div {
  display: grid;
  gap: 3px;
  padding: 8px;
  border-radius: 8px;
  background: #f5f9f1;
}

.location-grid span {
  color: var(--subtle);
  font-size: 10px;
  font-weight: 900;
}

.location-grid strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-list,
.timeline-list,
.track-list,
.message-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.product-row {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.product-row img {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
  background: #f5f8f1;
}

.product-row strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-row span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
}

.product-row em {
  color: var(--red);
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
}

.proof-slots,
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.proof-grid {
  margin-top: 0;
}

.proof-grid.compact,
.proof-slots.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.proof-grid.single,
.proof-slots.single {
  grid-template-columns: minmax(0, 1fr);
}

.proof-slot input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.proof-slot.uploaded {
  border-style: solid;
  border-color: rgba(111, 186, 60, 0.48);
}

.proof-slot.sample {
  border-style: solid;
  border-color: rgba(47, 126, 216, 0.24);
  background: #f3f8ff;
}

.proof-slot.locked {
  border-color: rgba(86, 118, 76, 0.24);
  background: #f4f8f0;
}

.proof-delete,
.proof-lock,
.proof-sample-badge {
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 4;
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
}

.proof-delete {
  border: 0;
  color: #fff;
  background: rgba(36, 45, 33, 0.82);
  font-size: 17px;
  font-weight: 950;
  line-height: 1;
}

.proof-lock {
  padding: 0 7px;
  color: #fff;
  background: rgba(89, 139, 55, 0.92);
  font-size: 9.5px;
  font-style: normal;
  font-weight: 950;
}

.proof-sample-badge {
  left: 8px;
  right: auto;
  padding: 0 7px;
  color: #fff;
  background: rgba(47, 126, 216, 0.9);
  font-size: 9.5px;
  font-style: normal;
  font-weight: 950;
}

.timeline-list div,
.track-list div {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 34px;
}

.timeline-list i,
.track-list i {
  width: 18px;
  height: 18px;
  border: 2px solid #dce8d4;
  border-radius: 50%;
  background: #fff;
}

.timeline-list .done i,
.timeline-list .active i,
.track-list .done i,
.track-list .active i {
  border-color: var(--brand);
  background: var(--brand);
  box-shadow: inset 0 0 0 3px #fff;
}

.timeline-list strong,
.track-list strong {
  overflow: hidden;
  color: #2d362a;
  font-size: 12.5px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-list span,
.track-list span {
  color: #899482;
  font-size: 11px;
  font-weight: 850;
}

.route-view .live-map {
  min-height: 300px;
}

.home-view {
  gap: 10px;
}

.home-config-note {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px dashed rgba(111, 186, 60, 0.36);
  border-radius: 8px;
  color: #4f673f;
  background: #f7fbf2;
}

.home-config-note strong {
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 950;
}

.home-config-note span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.35;
}

.home-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.home-panel > header > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.home-panel > header button {
  min-height: 34px;
  padding: 0 10px;
  white-space: nowrap;
}

.home-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.home-preview-grid button {
  display: grid;
  gap: 5px;
  min-width: 0;
  min-height: 64px;
  padding: 8px;
  text-align: left;
}

.home-preview-grid button.hot {
  color: #0f4f93;
  background: #eaf4ff;
  box-shadow: inset 0 0 0 1px rgba(47, 126, 216, 0.22);
}

.home-preview-grid button.hot strong {
  color: #0f4f93;
}

.home-preview-grid span,
.home-task-strip small,
.home-message-list span,
.home-empty-note {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-preview-grid strong {
  color: var(--ink);
  font-size: 20px;
  font-weight: 950;
  line-height: 1;
}

.home-delivery-list {
  display: grid;
  gap: 10px;
}

.home-delivery-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(111, 186, 60, 0.34);
  border-radius: 8px;
  background: #f4fbef;
  box-shadow: inset 4px 0 0 var(--brand), 0 12px 26px rgba(75, 145, 40, 0.12);
}

.home-delivery-card.is-delivering {
  border-color: rgba(47, 126, 216, 0.42);
  background: linear-gradient(135deg, #f3f8ff 0%, #ffffff 58%, #eef8ff 100%);
  box-shadow: inset 4px 0 0 #2f7ed8, 0 12px 26px rgba(47, 126, 216, 0.14);
}

.home-delivery-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.home-delivery-card > header > div,
.home-delivery-route {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.home-delivery-card > header > .home-delivery-head-side {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.home-delivery-card header strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-delivery-card header span,
.home-delivery-route span {
  overflow: hidden;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 850;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-delivery-card em {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--brand-deep);
  background: var(--brand-soft);
  font-size: 10.5px;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
}

.home-delivery-card em.warn {
  color: #8a4d08;
  background: #fff3df;
}

.home-delivery-card em.blue {
  color: #165ca8;
  background: #e9f2ff;
}

.home-delivery-card em.danger {
  color: #a62f38;
  background: #ffe9eb;
}

.home-delivery-route strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
  line-height: 1.18;
}

.home-delivery-meta,
.home-delivery-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  align-items: center;
}

.home-delivery-meta span {
  padding: 5px 8px;
  border-radius: 999px;
  color: #45523f;
  background: rgba(255, 255, 255, 0.78);
  font-size: 10.5px;
  font-weight: 900;
  line-height: 1;
}

.home-delivery-stage {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.home-delivery-stage span {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 0;
  padding: 7px 4px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.home-delivery-stage i {
  width: 18px;
  height: 18px;
  border: 2px solid #cad9c3;
  border-radius: 999px;
  background: #fff;
}

.home-delivery-stage b {
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 950;
  line-height: 1;
}

.home-delivery-stage small {
  overflow: hidden;
  width: 100%;
  color: var(--subtle);
  font-size: 9.5px;
  font-weight: 850;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-delivery-stage span.done i {
  border-color: var(--brand);
  background: var(--brand);
}

.home-delivery-stage span.current {
  background: #e9f2ff;
}

.home-delivery-stage span.current i {
  border-color: #2f7ed8;
  background: #2f7ed8;
  box-shadow: inset 0 0 0 4px #fff;
}

.home-delivery-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-delivery-actions button {
  min-height: 36px;
  min-width: 0;
  padding-inline: 7px;
  white-space: nowrap;
}

.home-delivery-actions button.primary {
  color: #fff;
  background: #2f7ed8;
}

.home-delivery-actions .elapsed-action {
  color: #52614b;
  background: rgba(255, 255, 255, 0.78);
  opacity: 1;
}

.home-order-preview,
.home-message-list {
  display: grid;
  gap: 8px;
}

.home-task-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(222, 232, 216, 0.92);
  border-radius: 8px;
  background: #fff;
}

.home-task-strip.order-kind-delivery {
  border-color: rgba(111, 186, 60, 0.28);
  background: #f4fbef;
}

.home-task-strip.order-kind-combined {
  border-color: rgba(126, 88, 214, 0.28);
  background: #f7f3ff;
}

.home-task-strip.order-kind-errand {
  border-color: rgba(47, 126, 216, 0.26);
  background: #f3f8ff;
}

.home-task-strip.order-kind-mail {
  border-color: rgba(246, 162, 60, 0.32);
  background: #fff8ea;
}

.home-task-strip div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.home-task-strip strong,
.home-message-list strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-task-strip span {
  overflow: hidden;
  color: #4f5a49;
  font-size: 12px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-task-strip button {
  min-width: 72px;
}

.home-task-strip.is-delivering button,
.order-row.is-delivering .order-row-actions button.primary {
  color: #fff;
  background: var(--blue);
}

.home-two-column {
  display: grid;
  gap: 10px;
}

.home-map-preview {
  position: relative;
  min-height: 154px;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(135deg, #edf7e8, #f8fbf5);
}

.home-map-preview .map-road.main {
  top: 78px;
}

.home-map-preview .map-route {
  inset: 42px 38px 42px;
}

.home-map-preview .pin.store {
  left: 14%;
  bottom: 20%;
}

.home-map-preview .pin.customer {
  right: 14%;
  top: 20%;
}

.home-message-list button {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 9px;
  text-align: left;
}

.order-browser-panel {
  display: grid;
  gap: 10px;
}

.order-browser-panel > header,
.order-row header {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
}

.order-browser-panel > header > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.order-browser-panel > header button,
.order-row-actions button {
  min-height: 32px;
  border: 0;
  border-radius: 8px;
  padding: 0 10px;
  color: #53604d;
  background: #f1f6ec;
  font-size: 11.5px;
  font-weight: 950;
  white-space: nowrap;
}

.order-summary-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 0;
}

.order-browser-list {
  display: grid;
  gap: 8px;
}

.order-category-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.order-category-tabs button {
  display: grid;
  gap: 4px;
  min-width: 0;
  min-height: 58px;
  border: 1px solid rgba(222, 232, 216, 0.92);
  border-radius: 8px;
  padding: 9px 6px;
  color: #53604d;
  background: #fbfdf8;
  text-align: center;
}

.order-category-tabs button.active {
  border-color: rgba(111, 186, 60, 0.36);
  color: var(--brand-deep);
  background: #edf8e6;
  box-shadow: inset 0 0 0 1px rgba(111, 186, 60, 0.14);
}

.order-category-tabs span,
.order-category-tabs strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-category-tabs span {
  font-size: 11px;
  font-weight: 950;
}

.order-category-tabs strong {
  color: inherit;
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
}

.order-kind-grid {
  display: grid;
  gap: 10px;
}

.accept-view {
  display: grid;
  gap: 10px;
}

.accept-running-grid {
  gap: 12px;
}

.accept-running-grid .order-row-actions {
  grid-template-columns: repeat(auto-fit, minmax(78px, 1fr));
}

.order-kind-section {
  display: grid;
  gap: 7px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.order-kind-section.green {
  background: transparent;
}

.order-kind-section.blue {
  background: transparent;
}

.order-kind-section.amber {
  background: transparent;
}

.order-kind-section.violet {
  background: transparent;
}

.order-kind-section > header {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0 2px;
}

.order-kind-section > header div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.order-kind-section > header strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
}

.order-kind-section > header span,
.order-kind-section > header em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.order-kind-section > header em {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
}

.order-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  padding: 10px;
  border: 1px solid rgba(222, 232, 216, 0.92);
  border-radius: 8px;
  background: #fff;
}

.order-row.order-kind-delivery {
  border-color: rgba(111, 186, 60, 0.52);
  background: #ffffff;
  box-shadow: inset 4px 0 0 var(--brand), 0 10px 24px rgba(67, 118, 38, 0.11);
}

.order-row.order-kind-combined {
  border-color: rgba(126, 88, 214, 0.36);
  background: #f9f6ff;
  box-shadow: inset 4px 0 0 #7e58d6, 0 10px 24px rgba(91, 60, 160, 0.12);
}

.order-row.active-order {
  border-color: rgba(47, 126, 216, 0.5);
  box-shadow: inset 5px 0 0 #2f7ed8, 0 14px 30px rgba(47, 126, 216, 0.16);
}

.order-row.just-accepted {
  animation: acceptedPulse 1.25s ease-in-out 2;
}

@keyframes acceptedPulse {
  0%,
  100% {
    transform: translateY(0);
  }

  45% {
    transform: translateY(-2px);
    box-shadow: inset 5px 0 0 #2f7ed8, 0 18px 34px rgba(47, 126, 216, 0.26);
  }
}

.order-row.order-kind-errand {
  border-color: rgba(47, 126, 216, 0.28);
  background: #f3f8ff;
}

.order-row.order-kind-mail {
  border-color: rgba(246, 162, 60, 0.34);
  background: #fff8ea;
}

.order-row > div:first-child {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.order-row header strong {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-row header em {
  flex: 0 0 auto;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
}

.order-type-chip {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  color: #81570f;
  background: #fff1d8;
  font-size: 10px;
  font-weight: 950;
  line-height: 1.2;
  white-space: nowrap;
}

.order-type-chip.green {
  color: #2f7d28;
  background: #eaf7df;
}

.order-type-chip.blue {
  color: #0f4f93;
  background: #eaf4ff;
}

.order-type-chip.amber {
  color: #81570f;
  background: #fff1d8;
}

.order-type-chip.violet {
  color: #5b3ca0;
  background: #efe8ff;
}

.order-elapsed-badge {
  display: grid;
  flex: 0 0 auto;
  gap: 2px;
  min-width: 70px;
  padding: 5px 7px;
  border: 1px solid rgba(47, 126, 216, 0.18);
  border-radius: 8px;
  color: #0f4f93;
  background: #eaf4ff;
  text-align: center;
}

.order-elapsed-badge span,
.order-elapsed-badge strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-elapsed-badge span {
  font-size: 9.5px;
  font-weight: 950;
  line-height: 1;
}

.order-elapsed-badge strong {
  color: #0f4f93;
  font-size: 11.5px;
  font-weight: 950;
  line-height: 1.05;
}

.pending-accept-elapsed {
  display: grid;
  flex: 0 0 auto;
  gap: 2px;
  min-width: 108px;
  max-width: 136px;
  margin-left: auto;
  padding: 6px 8px;
  border: 1px solid rgba(230, 75, 85, 0.28);
  border-radius: 8px;
  color: #8f3036;
  background: #fff0f1;
  text-align: right;
}

.pending-accept-elapsed span,
.pending-accept-elapsed strong {
  overflow: hidden;
  text-overflow: ellipsis;
}

.pending-accept-elapsed span {
  color: #8f3036;
  font-size: 10px;
  font-weight: 950;
  line-height: 1.15;
  white-space: normal;
}

.pending-accept-elapsed strong {
  color: var(--red);
  font-size: 12px;
  font-weight: 950;
  line-height: 1.05;
  white-space: nowrap;
}

.order-row header .pending-accept-elapsed strong {
  color: var(--red);
}

.order-row p,
.order-row small {
  overflow: hidden;
  margin: 0;
  color: #4f5a49;
  font-size: 12px;
  font-weight: 820;
  line-height: 1.38;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-row small {
  color: var(--muted);
  font-size: 11px;
}

.order-row-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 6px;
  align-items: center;
  min-width: 0;
  padding: 7px;
  border: 1px solid rgba(126, 148, 115, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.order-row-contact span {
  overflow: hidden;
  color: #4f5a49;
  font-size: 11px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-row-contact .call-pill {
  min-height: 28px;
  border: 1px solid rgba(47, 126, 216, 0.18);
  color: #0f4f93;
  background: #eaf4ff;
  font-size: 11px;
}

.return-inline-btn {
  min-height: 28px;
  min-width: 78px;
  padding: 0 10px;
  border: 1px solid rgba(230, 75, 85, 0.22);
  border-radius: 999px;
  color: #9c2830;
  background: #fff4f2;
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
}

.return-inline-btn.locked,
.return-inline-btn:disabled {
  color: #879081;
  border-color: rgba(126, 148, 115, 0.22);
  background: #eef4ea;
}

.vehicle-plate-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(47, 126, 216, 0.18);
  border-radius: 8px;
  background: #f3f8ff;
}

.vehicle-plate-panel.pending {
  border-color: rgba(246, 162, 60, 0.28);
  background: #fff8ea;
}

.vehicle-plate-panel div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.vehicle-plate-panel span,
.vehicle-plate-panel small {
  overflow: hidden;
  color: #607170;
  font-size: 10.5px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vehicle-plate-panel strong {
  overflow: hidden;
  color: #0f4f93;
  font-size: 15px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vehicle-plate-panel.pending strong {
  color: #8a5b10;
}

.vehicle-plate-panel b {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #0f4f93;
  background: #ffffff;
  font-size: 10.5px;
  font-weight: 950;
  white-space: nowrap;
}

.order-runtime-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  align-items: stretch;
}

.order-runtime-row.waiting {
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr) auto;
}

.order-runtime-row.done {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.order-runtime-cell {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px;
  border-radius: 8px;
  background: #f5f9f1;
}

.order-runtime-row.waiting .order-runtime-cell.receipt {
  border: 1px solid rgba(246, 162, 60, 0.28);
  background: #fff8ea;
}

.order-runtime-cell.passive {
  border: 1px solid rgba(155, 103, 26, 0.16);
  background: #fffaf0;
}

.order-runtime-row.done .order-runtime-cell.receipt {
  border: 1px solid rgba(111, 186, 60, 0.24);
  background: #f0f9e8;
}

.order-runtime-cell span {
  overflow: hidden;
  color: var(--subtle);
  font-size: 10px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-runtime-cell strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-runtime-row.waiting .order-runtime-cell.receipt strong {
  color: #9b671a;
}

.order-runtime-cell small {
  overflow: hidden;
  color: #7a846f;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-runtime-row button {
  min-height: 40px;
  align-self: stretch;
  padding: 0 10px;
}

.rider-order-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
}

.rider-order-track button {
  display: grid;
  gap: 4px;
  min-width: 0;
  min-height: 62px;
  place-items: center;
  padding: 6px 3px 5px;
  border: 1px solid #e4eddd;
  border-radius: 8px;
  color: #7d8877;
  background: #fbfdf8;
}

.rider-order-track button i,
.rider-order-track button img {
  width: 16px;
  height: 16px;
}

.rider-order-track button i {
  border: 2px solid #d4e2cb;
  border-radius: 50%;
  background: #fff;
}

.rider-order-track button img {
  width: 24px;
  height: 24px;
  border: 2px solid #fff;
  border-radius: 7px;
  object-fit: cover;
  box-shadow: 0 3px 8px rgba(31, 48, 28, 0.14);
}

.rider-order-track button b {
  overflow: hidden;
  max-width: 100%;
  color: inherit;
  font-size: 10px;
  font-weight: 950;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rider-order-track button small {
  overflow: hidden;
  max-width: 100%;
  color: #8a9385;
  font-size: 9px;
  font-weight: 850;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rider-order-track button.done {
  color: var(--brand-deep);
}

.rider-order-track button.done small {
  color: #5c8f3b;
}

.rider-order-track button.done i {
  border-color: var(--brand);
  background: var(--brand);
  box-shadow: inset 0 0 0 3px #fff;
}

.rider-order-track button.static {
  cursor: default;
}

.rider-order-track button.static:disabled {
  opacity: 1;
}

.rider-order-track button.current {
  border-color: rgba(47, 126, 216, 0.52);
  color: #0f4f93;
  background: #eaf4ff;
  box-shadow: inset 0 0 0 1px rgba(47, 126, 216, 0.12);
}

.rider-order-track button.current small {
  color: #2a679f;
}

.rider-order-track button.current i {
  border-color: #2f7ed8;
  background: #2f7ed8;
  box-shadow: inset 0 0 0 4px #fff;
}

.hero-card .rider-order-track {
  margin-top: -2px;
}

.order-row-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.accept-running-grid .order-row-actions button {
  border: 1px solid rgba(126, 148, 115, 0.38);
  color: #263126;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(38, 49, 38, 0.07);
}

.accept-running-grid .order-row-actions button.primary {
  border-color: rgba(47, 126, 216, 0.38);
  color: #fff;
  background: #2f7ed8;
  box-shadow: 0 6px 14px rgba(47, 126, 216, 0.2);
}

.order-elapsed-box {
  display: grid;
  place-content: center;
  gap: 2px;
  min-width: 0;
  min-height: 32px;
  border-radius: 8px;
  padding: 4px 6px;
  color: #52614b;
  background: #f1f6ec;
  text-align: center;
}

.accept-running-grid .order-elapsed-box {
  border: 1px solid rgba(126, 148, 115, 0.38);
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(38, 49, 38, 0.07);
}

.order-elapsed-box span,
.order-elapsed-box strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-elapsed-box span {
  color: var(--subtle);
  font-size: 9.5px;
  font-weight: 900;
  line-height: 1;
}

.order-elapsed-box strong {
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 950;
  line-height: 1.05;
}

.message-card {
  display: grid;
  gap: 8px;
}

.message-card p {
  margin: 0;
  color: #4f5a49;
  font-size: 12.5px;
  line-height: 1.4;
}

.profile-panel {
  display: grid;
  gap: 10px;
}

.profile-status-hero {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(111, 186, 60, 0.22);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(37, 45, 34, 0.08);
}

.profile-status-hero header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.profile-status-hero header strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 950;
}

.profile-status-hero header span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.profile-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.profile-status-card {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 72px;
  padding: 11px;
  border-radius: 8px;
  background: #f5f9f1;
}

.profile-status-card i {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 0 5px rgba(111, 186, 60, 0.16);
}

.profile-status-card.danger {
  background: #fff2ee;
}

.profile-status-card.danger i {
  background: #d94a33;
  box-shadow: 0 0 0 5px rgba(217, 74, 51, 0.14);
}

.profile-status-card.warn {
  background: #fff8e8;
}

.profile-status-card.warn i {
  background: var(--amber);
  box-shadow: 0 0 0 5px rgba(246, 162, 60, 0.16);
}

.profile-status-card strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 17px;
  font-weight: 950;
  line-height: 1.12;
}

.profile-status-card span {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: #52614b;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.25;
}

.profile-history-panel > header {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.profile-history-panel > header div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.profile-history-panel > header strong,
.profile-history-panel > header span {
  overflow-wrap: anywhere;
}

.profile-history-date {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.profile-history-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 8px;
  align-items: end;
}

.profile-history-date span {
  color: var(--subtle);
  font-size: 10.5px;
  font-weight: 950;
}

.profile-history-date input {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(222, 232, 216, 0.95);
  border-radius: 8px;
  padding: 0 8px;
  color: var(--ink);
  background: #fff;
  font-size: 12px;
  font-weight: 950;
  outline: none;
}

.profile-history-controls button {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  color: #fff;
  background: var(--brand);
  font-size: 12.5px;
  font-weight: 950;
  white-space: nowrap;
}

.profile-history-day {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(126, 148, 115, 0.22);
  border-radius: 8px;
  background: #f9fbf6;
}

.profile-history-day header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.profile-history-day header div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.profile-history-day header em {
  flex: 0 0 auto;
  padding: 7px 9px;
  border-radius: 8px;
  color: #2f6b21;
  background: #e7f5dc;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
}

.profile-history-list {
  display: grid;
  gap: 7px;
}

.profile-history-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(106px, auto);
  gap: 8px;
  align-items: center;
  width: 100%;
  border: 1px solid rgba(222, 232, 216, 0.92);
  border-radius: 8px;
  padding: 9px;
  color: inherit;
  background: #fff;
  text-align: left;
}

.profile-history-row.delivery-kind {
  border-left: 5px solid #6fba3c;
}

.profile-history-row.mail-kind {
  border-left: 5px solid #4b8fd8;
}

.profile-history-row.errand-kind {
  border-left: 5px solid #e0a23a;
}

.profile-history-row span,
.profile-history-row em {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.profile-history-row strong,
.profile-history-row b,
.profile-history-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-history-row strong {
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 950;
}

.profile-history-row small {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 850;
}

.profile-history-row em {
  color: var(--ink);
  font-style: normal;
  text-align: right;
}

.profile-history-row b {
  font-size: 11px;
  font-weight: 950;
}

.profile-history-empty {
  margin: 0;
  padding: 12px;
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  font-size: 12px;
  font-weight: 850;
  text-align: center;
}

.profile-doc-panel {
  grid-column: 1 / -1;
}

.profile-doc-panel summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  cursor: pointer;
  list-style: none;
}

.profile-doc-panel summary::-webkit-details-marker {
  display: none;
}

.profile-doc-panel summary div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.profile-doc-panel summary strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 950;
}

.profile-doc-panel summary span {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 850;
  line-height: 1.35;
}

.profile-doc-panel summary em {
  justify-self: start;
  padding: 8px 10px;
  border-radius: 8px;
  color: #2f6b21;
  background: #e7f5dc;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
  line-height: 1.25;
  white-space: normal;
}

.profile-doc-review-note {
  margin: 0;
  padding: 9px 10px;
  border-radius: 8px;
  color: #6d511b;
  background: #fff8e8;
  font-size: 11.5px;
  font-weight: 850;
  line-height: 1.35;
}

.profile-doc-preview-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding-top: 2px;
}

.profile-doc-preview-strip figure {
  display: grid;
  gap: 5px;
  margin: 0;
}

.profile-doc-preview-strip img,
.profile-doc-thumb {
  width: 100%;
  aspect-ratio: 1.15;
  border-radius: 8px;
  object-fit: cover;
  background: #eef4ea;
}

.profile-doc-preview-strip figcaption {
  overflow: hidden;
  color: var(--subtle);
  font-size: 10px;
  font-weight: 900;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-doc-group {
  display: grid;
  gap: 8px;
  padding-top: 4px;
}

.profile-doc-group > header {
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
}

.profile-doc-group > p {
  margin: 0;
  color: #65715f;
  font-size: 11.5px;
  font-weight: 850;
  line-height: 1.4;
}

.profile-plate-field {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(222, 232, 216, 0.92);
  border-radius: 8px;
  background: #f9fbf6;
}

.profile-plate-field span {
  color: var(--subtle);
  font-size: 10.5px;
  font-weight: 900;
}

.profile-plate-field input {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  padding: 0 10px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-weight: 950;
  outline: 1px solid rgba(222, 232, 216, 0.92);
}

.profile-doc-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.profile-doc-item {
  position: relative;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 86px;
  padding: 12px;
  border: 1px solid rgba(222, 232, 216, 0.92);
  border-radius: 8px;
  background: #f9fbf6;
}

.profile-doc-item.submitted {
  border-color: rgba(111, 186, 60, 0.32);
  background: #f1faea;
}

.profile-doc-item.doc-status-reviewing {
  border-color: rgba(246, 162, 60, 0.36);
  background: #fff8e8;
}

.profile-doc-item.doc-status-reviewing em {
  color: #79530d;
  background: #ffe8b8;
}

.profile-doc-item.doc-status-approved {
  border-color: rgba(111, 186, 60, 0.38);
  background: #f1faea;
}

.profile-doc-item.doc-status-approved em {
  color: #2f6b21;
  background: #dff3d1;
}

.profile-doc-item.doc-status-rejected {
  border-color: rgba(217, 74, 51, 0.28);
  background: #fff2ee;
}

.profile-doc-item.doc-status-rejected em {
  color: #9b2f1d;
  background: #ffd8cf;
}

.profile-doc-item input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.profile-doc-thumb,
.profile-doc-placeholder {
  width: 62px;
  height: 62px;
  border-radius: 8px;
}

.profile-doc-placeholder {
  display: block;
  background: linear-gradient(135deg, #eaf3e4, #f8fbf5);
}

.profile-doc-item span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.profile-doc-item strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-doc-item small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-doc-item em {
  grid-column: 2;
  justify-self: start;
  padding: 7px 9px;
  border-radius: 8px;
  color: #2f6b21;
  background: #e7f5dc;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
  white-space: normal;
}

.profile-action {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.rider-bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 28;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(100vw, 480px);
  padding: 8px 16px max(10px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(222, 232, 216, 0.9);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 -10px 24px rgba(37, 45, 34, 0.08);
  backdrop-filter: blur(16px);
  transform: translateX(-50%);
}

.rider-bottom-nav button {
  display: grid;
  gap: 4px;
  place-items: center;
  border: 0;
  color: #606b5c;
  background: transparent;
  font-size: 10.5px;
  font-weight: 900;
}

.rider-bottom-nav button.active {
  color: var(--brand-deep);
}

.rider-bottom-nav img {
  width: 23px;
  height: 23px;
  object-fit: contain;
}

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);
}

html[data-lang="th"] button,
html[data-lang="my"] button,
html[data-lang="en"] button {
  white-space: normal;
  line-height: 1.18;
}

html[data-lang="th"] .program-strip,
html[data-lang="my"] .program-strip,
html[data-lang="en"] .program-strip {
  grid-template-columns: minmax(0, 1fr) minmax(70px, auto);
}

html[data-lang="th"] .brand-lockup strong,
html[data-lang="my"] .brand-lockup strong,
html[data-lang="en"] .brand-lockup strong {
  font-size: 18px;
  line-height: 1.18;
}

html[data-lang="th"] .brand-lockup small,
html[data-lang="my"] .brand-lockup small,
html[data-lang="en"] .brand-lockup small,
html[data-lang="th"] .program-strip strong,
html[data-lang="my"] .program-strip strong,
html[data-lang="en"] .program-strip strong,
html[data-lang="th"] .program-strip small,
html[data-lang="my"] .program-strip small,
html[data-lang="en"] .program-strip small,
html[data-lang="th"] .metric-card span,
html[data-lang="my"] .metric-card span,
html[data-lang="en"] .metric-card span,
html[data-lang="th"] .metric-card small,
html[data-lang="my"] .metric-card small,
html[data-lang="en"] .metric-card small,
html[data-lang="th"] .home-delivery-stage small,
html[data-lang="my"] .home-delivery-stage small,
html[data-lang="en"] .home-delivery-stage small,
html[data-lang="th"] .vehicle-plate-panel span,
html[data-lang="my"] .vehicle-plate-panel span,
html[data-lang="en"] .vehicle-plate-panel span,
html[data-lang="th"] .vehicle-plate-panel small,
html[data-lang="my"] .vehicle-plate-panel small,
html[data-lang="en"] .vehicle-plate-panel small,
html[data-lang="th"] .rider-order-track button b,
html[data-lang="my"] .rider-order-track button b,
html[data-lang="en"] .rider-order-track button b,
html[data-lang="th"] .rider-order-track button small,
html[data-lang="my"] .rider-order-track button small,
html[data-lang="en"] .rider-order-track button small,
html[data-lang="th"] .order-category-tabs span,
html[data-lang="my"] .order-category-tabs span,
html[data-lang="en"] .order-category-tabs span,
html[data-lang="th"] .rider-bottom-nav span,
html[data-lang="my"] .rider-bottom-nav span,
html[data-lang="en"] .rider-bottom-nav span {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

html[data-lang="th"] .status-chip,
html[data-lang="my"] .status-chip,
html[data-lang="en"] .status-chip,
html[data-lang="th"] .task-card em,
html[data-lang="my"] .task-card em,
html[data-lang="en"] .task-card em,
html[data-lang="th"] .tag,
html[data-lang="my"] .tag,
html[data-lang="en"] .tag,
html[data-lang="th"] .sync-pill,
html[data-lang="my"] .sync-pill,
html[data-lang="en"] .sync-pill,
html[data-lang="th"] .provider-chip,
html[data-lang="my"] .provider-chip,
html[data-lang="en"] .provider-chip,
html[data-lang="th"] .order-type-chip,
html[data-lang="my"] .order-type-chip,
html[data-lang="en"] .order-type-chip {
  line-height: 1.2;
  text-align: center;
  white-space: normal;
}

html[data-lang="th"] .vehicle-plate-panel,
html[data-lang="my"] .vehicle-plate-panel,
html[data-lang="en"] .vehicle-plate-panel,
html[data-lang="th"] .plate-select-head,
html[data-lang="my"] .plate-select-head,
html[data-lang="en"] .plate-select-head {
  grid-template-columns: minmax(0, 1fr);
}

html[data-lang="th"] .vehicle-plate-panel b,
html[data-lang="my"] .vehicle-plate-panel b,
html[data-lang="en"] .vehicle-plate-panel b,
html[data-lang="th"] .plate-select-head strong,
html[data-lang="my"] .plate-select-head strong,
html[data-lang="en"] .plate-select-head strong {
  justify-self: start;
  white-space: normal;
}

html[data-lang="th"] .status-tabs button,
html[data-lang="my"] .status-tabs button,
html[data-lang="en"] .status-tabs button,
html[data-lang="th"] .order-action-strip button,
html[data-lang="my"] .order-action-strip button,
html[data-lang="en"] .order-action-strip button,
html[data-lang="th"] .order-row-actions button,
html[data-lang="my"] .order-row-actions button,
html[data-lang="en"] .order-row-actions button,
html[data-lang="th"] .home-delivery-actions button,
html[data-lang="my"] .home-delivery-actions button,
html[data-lang="en"] .home-delivery-actions button {
  min-height: 42px;
  padding-inline: 7px;
}

html[data-lang="th"] .rider-order-track,
html[data-lang="my"] .rider-order-track,
html[data-lang="en"] .rider-order-track,
html[data-lang="th"] .home-delivery-stage,
html[data-lang="my"] .home-delivery-stage,
html[data-lang="en"] .home-delivery-stage {
  grid-template-columns: repeat(5, minmax(54px, 1fr));
  overflow-x: auto;
  padding-bottom: 2px;
}

html[data-lang="th"] .rider-order-track button,
html[data-lang="my"] .rider-order-track button,
html[data-lang="en"] .rider-order-track button {
  min-height: 74px;
}

html[data-lang="th"] .order-row header,
html[data-lang="my"] .order-row header,
html[data-lang="en"] .order-row header,
html[data-lang="th"] .hero-head,
html[data-lang="my"] .hero-head,
html[data-lang="en"] .hero-head,
html[data-lang="th"] .home-delivery-card > header,
html[data-lang="my"] .home-delivery-card > header,
html[data-lang="en"] .home-delivery-card > header {
  flex-wrap: wrap;
}

html[data-lang="th"] .order-runtime-row.waiting,
html[data-lang="my"] .order-runtime-row.waiting,
html[data-lang="en"] .order-runtime-row.waiting {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

html[data-lang="th"] .order-runtime-row.waiting button,
html[data-lang="my"] .order-runtime-row.waiting button,
html[data-lang="en"] .order-runtime-row.waiting button {
  grid-column: 1 / -1;
}

@media (max-width: 390px) {
  .app-top {
    align-items: flex-start;
  }

  .brand-lockup {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .brand-lockup img {
    width: 36px;
    height: 36px;
  }

  .app-actions {
    display: grid;
    min-width: 96px;
  }

  .online-toggle {
    width: 100%;
    min-width: 0;
  }

  .language-select {
    min-width: 0;
  }

  .combined-flags,
  .combined-sub-grid,
  .merge-condition-grid,
  .combined-safe-actions {
    grid-template-columns: minmax(0, 1fr);
  }
}

.phone-preview-mode body {
  background: #f3f8ee;
}

.phone-preview-mode .rider-shell {
  width: 100vw;
  padding-top: 48px;
  padding-bottom: 108px;
}

.phone-preview-mode .rider-bottom-nav {
  bottom: 12px;
  width: min(calc(100vw - 24px), 456px);
  padding-bottom: 10px;
  border: 1px solid rgba(222, 232, 216, 0.9);
  border-radius: 24px;
  box-shadow: 0 -8px 24px rgba(37, 45, 34, 0.12);
}

.rider-dialog {
  width: min(430px, calc(100vw - 24px));
  max-height: min(82dvh, 720px);
  margin: auto auto 12px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(22, 31, 18, 0.22);
}

.rider-dialog::backdrop {
  background: rgba(22, 31, 18, 0.28);
  backdrop-filter: blur(3px);
}

.plate-dialog {
  margin: auto;
}

.completion-dialog,
.return-dialog,
.store-confirm-dialog {
  margin: auto;
}

.rider-dialog form {
  display: grid;
  gap: 10px;
  max-height: inherit;
  overflow-y: auto;
  padding: 14px;
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dialog-head strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
}

.dialog-head button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #5f695a;
  background: #f2f6ef;
  font-size: 20px;
}

.dialog-copy {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 820;
  line-height: 1.45;
}

.verify-card,
.chat-order {
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: 8px;
  background: #f5faf1;
}

.verify-card strong,
.chat-order strong {
  color: var(--ink);
  font-size: 14px;
}

.verify-card span,
.chat-order span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.verify-card small {
  color: #8a4d08;
  font-size: 11px;
  font-weight: 950;
}

.record-dialog {
  width: min(430px, calc(100vw - 24px));
}

.record-order {
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid rgba(47, 126, 216, 0.14);
  border-radius: 8px;
  background: #f3f8ff;
}

.record-order strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
}

.record-order span,
.record-order small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 850;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-timeline {
  display: grid;
  gap: 7px;
}

.record-timeline div {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 9px;
  border: 1px solid rgba(222, 232, 216, 0.92);
  border-radius: 8px;
  background: #fbfdf8;
}

.record-timeline div.done {
  border-color: rgba(111, 186, 60, 0.2);
  background: #f4fbef;
}

.record-timeline i {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--brand);
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
}

.record-timeline span {
  overflow: hidden;
  color: #4f5a49;
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-timeline strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
}

.handoff-proof-card {
  border: 1px solid rgba(47, 126, 216, 0.16);
  background: #f3f8ff;
}

.handoff-contact-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.handoff-contact-row .call-pill {
  min-height: 34px;
  border: 1px solid rgba(47, 126, 216, 0.2);
  color: #0f4f93;
  background: #ffffff;
}

.handoff-code-input {
  padding: 10px;
  border: 1px solid rgba(47, 126, 216, 0.18);
  border-radius: 8px;
  background: #f3f8ff;
}

.plate-order-card {
  border: 1px solid rgba(47, 126, 216, 0.14);
  background: #f3f8ff;
}

.return-order-card {
  border: 1px solid rgba(246, 162, 60, 0.24);
  background: #fff8ea;
}

.return-consent-card {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(230, 75, 85, 0.18);
  border-radius: 8px;
  background: #fff4f2;
}

.return-consent-card strong {
  color: #9c2830;
  font-size: 13px;
  font-weight: 950;
}

.return-consent-card span {
  color: #73504d;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.4;
}

.return-action-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.return-action-options button {
  display: grid;
  gap: 4px;
  min-height: 64px;
  padding: 9px 8px;
  border: 1px solid rgba(126, 148, 115, 0.22);
  border-radius: 8px;
  color: #263126;
  background: #fff;
  text-align: left;
}

.return-action-options button strong {
  font-size: 12.5px;
  font-weight: 950;
}

.return-action-options button span {
  color: #66745f;
  font-size: 10.5px;
  font-weight: 850;
  line-height: 1.25;
}

.return-action-options button.active {
  border-color: rgba(47, 126, 216, 0.42);
  background: #eef6ff;
  box-shadow: inset 0 0 0 1px rgba(47, 126, 216, 0.16);
}

.return-transfer-card {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(47, 126, 216, 0.18);
  border-radius: 8px;
  background: #f4f9ff;
}

.return-transfer-card[hidden] {
  display: none;
}

.return-transfer-card strong {
  color: #163f70;
  font-size: 13px;
  font-weight: 950;
}

.return-transfer-card span {
  color: #4d6275;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}

.return-transfer-card select {
  min-height: 36px;
  border: 1px solid rgba(47, 126, 216, 0.22);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--ink);
  background: #fff;
  font-size: 13px;
  font-weight: 900;
}

.order-cancel-notice {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  padding: 9px 10px;
  border: 1px solid rgba(230, 75, 85, 0.16);
  border-radius: 8px;
  color: #713238;
  background: #fff4f2;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}

.order-cancel-notice.compensated {
  border-color: rgba(47, 126, 216, 0.18);
  color: #173f70;
  background: #eff7ff;
}

.plate-options {
  display: grid;
  gap: 8px;
}

.plate-select-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 0 2px;
}

.plate-select-head span {
  color: var(--subtle);
  font-size: 11px;
  font-weight: 900;
}

.plate-select-head strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.plate-option {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 11px;
  border: 1px solid rgba(222, 232, 216, 0.95);
  border-radius: 8px;
  background: #fbfdf8;
}

.plate-option.active {
  border-color: rgba(47, 126, 216, 0.4);
  background: #f3f8ff;
  box-shadow: inset 0 0 0 1px rgba(47, 126, 216, 0.08);
}

.plate-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

.plate-option span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.plate-option strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 16px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plate-option small,
.plate-empty {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 850;
  line-height: 1.35;
}

.plate-empty {
  padding: 12px;
  border: 1px dashed rgba(230, 75, 85, 0.3);
  border-radius: 8px;
  background: #fff4f2;
}

.arrival-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 8px;
}

.arrival-confirm-actions button {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  color: #53604f;
  background: #eef4ea;
  font-size: 14px;
  font-weight: 950;
}

.proof-second-confirm {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(246, 162, 60, 0.32);
  border-radius: 8px;
  background: #fff8ea;
}

.proof-second-confirm[hidden] {
  display: none;
}

.proof-second-confirm strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
}

.proof-second-confirm span {
  color: #6f6048;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.4;
}

.proof-second-confirm div {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 8px;
}

.proof-second-confirm button {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  color: #53604f;
  background: #f1eadf;
  font-size: 13px;
  font-weight: 950;
}

.verify-input {
  display: grid;
  gap: 6px;
}

.verify-input span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.verify-input input,
.chat-input input,
.exception-dialog textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  color: var(--ink);
  background: #f8fbf5;
  font-size: 16px;
}

.verify-input input {
  min-height: 44px;
  padding: 0 12px;
  font-weight: 950;
  letter-spacing: 0;
}

.mail-number-input input {
  text-transform: uppercase;
}

.chat-members {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.chat-members div {
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: 8px 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.chat-members i {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--brand);
  font-style: normal;
  font-weight: 950;
}

.chat-members strong,
.chat-members span {
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-members strong {
  color: var(--ink);
  font-size: 11px;
}

.chat-members span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.chat-messages {
  display: grid;
  gap: 8px;
}

.chat-message {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 8px;
  background: #f7faf4;
}

.chat-message.mine {
  margin-left: 34px;
  background: #ebf8df;
}

.chat-message strong {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--brand-deep);
  font-size: 12px;
}

.chat-message em {
  color: #99a293;
  font-size: 10px;
  font-style: normal;
}

.chat-message p {
  margin: 0;
  color: #4b5647;
  font-size: 12.5px;
  line-height: 1.45;
}

.chat-quick {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.chat-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 66px;
  gap: 8px;
  padding-top: 2px;
}

.chat-input input {
  min-height: 40px;
  padding: 0 12px;
}

.chat-input button {
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--brand);
  font-size: 13px;
  font-weight: 950;
}

.exception-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.exception-options button.active {
  color: #fff;
  background: var(--amber);
}

.exception-dialog textarea {
  min-height: 96px;
  padding: 10px 12px;
  resize: none;
}

.return-dialog textarea {
  width: 100%;
  min-height: 88px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  color: var(--ink);
  background: #f8fbf5;
  font-size: 15px;
  line-height: 1.45;
  resize: none;
}

.completion-dialog {
  width: min(390px, calc(100vw - 28px));
}

.completion-dialog form {
  gap: 12px;
  padding: 18px;
}

.completion-visual {
  display: grid;
  justify-items: center;
}

.completion-visual i {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #6fba3c, #2f7e28);
  box-shadow: 0 12px 28px rgba(69, 137, 49, 0.25);
  font-size: 28px;
  font-style: normal;
  font-weight: 950;
}

.completion-copy {
  display: grid;
  gap: 7px;
  text-align: center;
}

.completion-copy strong {
  color: var(--ink);
  font-size: 20px;
  font-weight: 950;
}

.completion-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.5;
}

.completion-order {
  border: 1px solid rgba(111, 186, 60, 0.18);
  background: #f4fbef;
}

.completion-countdown {
  padding: 10px 12px;
  border: 1px solid rgba(47, 126, 216, 0.16);
  border-radius: 8px;
  color: #0f4f93;
  background: #f3f8ff;
  font-size: 13px;
  font-weight: 950;
  text-align: center;
}

.completion-actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 8px;
}

.completion-actions button {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  color: #53604f;
  background: #eef4ea;
  font-size: 14px;
  font-weight: 950;
}

.rider-dialog .primary {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 950;
}

.rider-toast {
  position: fixed;
  left: 50%;
  bottom: calc(88px + env(safe-area-inset-bottom));
  z-index: 70;
  max-width: min(360px, calc(100vw - 36px));
  padding: 10px 14px;
  border-radius: 999px;
  color: #fff;
  background: rgba(31, 38, 30, 0.88);
  box-shadow: 0 12px 28px rgba(31, 38, 30, 0.18);
  font-size: 12.5px;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.rider-toast.large {
  max-width: min(420px, calc(100vw - 28px));
  padding: 15px 18px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 950;
  line-height: 1.35;
  text-align: left;
  white-space: pre-line;
  box-shadow: 0 18px 38px rgba(31, 38, 30, 0.22);
}

.rider-toast.success {
  color: #fff;
  background: #2f7d28;
}

.rider-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.rider-toast.center {
  top: 50%;
  bottom: auto;
  width: min(360px, calc(100vw - 48px));
  max-width: min(360px, calc(100vw - 48px));
  padding: 18px 20px;
  border-radius: 18px;
  font-size: 17px;
  line-height: 1.45;
  text-align: center;
  transform: translate(-50%, -42%) scale(0.98);
  box-shadow: 0 24px 58px rgba(31, 38, 30, 0.28);
}

.rider-toast.center.show {
  transform: translate(-50%, -50%) scale(1);
}

@media (max-width: 380px) {
  .brand-lockup strong {
    font-size: 19px;
  }

  .rider-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-task-strip {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-task-strip button {
    width: 100%;
  }

  .home-delivery-card > header {
    align-items: stretch;
  }

  .home-delivery-route strong {
    font-size: 16px;
  }

  .home-delivery-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .accept-running-grid .order-row-actions {
    grid-template-columns: repeat(auto-fit, minmax(78px, 1fr));
  }

  .order-summary-strip,
  .order-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .order-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .order-row-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-actions,
  .order-action-strip,
  .contact-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-status-grid,
  .profile-doc-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile-doc-item {
    grid-template-columns: 58px minmax(0, 1fr);
    min-height: 82px;
  }

  .profile-doc-thumb,
  .profile-doc-placeholder {
    width: 58px;
    height: 58px;
  }

  .profile-history-panel > header,
  .profile-history-controls,
  .profile-history-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile-history-controls button {
    width: 100%;
  }

  .profile-history-row em {
    text-align: left;
  }

  .customer-receipt-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .receipt-passive-note {
    max-width: none;
  }

  .customer-receipt-card button {
    width: 100%;
  }
}

@media (min-width: 860px) {
  .rider-shell {
    width: min(100vw, 980px);
  }

  .rider-layout {
    grid-template-columns: 320px minmax(0, 1fr);
    align-items: start;
  }

  .rider-metrics {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .task-list {
    position: sticky;
    top: 62px;
    max-height: calc(100dvh - 170px);
    overflow-y: auto;
    padding-right: 2px;
  }

  .route-view,
  .home-two-column,
  .orders-view,
  .messages-view,
  .profile-view {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .route-view .map-panel,
  .orders-view .order-browser-panel,
  .messages-view .message-list,
  .profile-status-hero {
    grid-column: span 2;
  }

  .rider-bottom-nav {
    width: min(100vw, 980px);
  }
}

.phone-preview-mode .rider-shell {
  width: min(100vw, 480px);
}

.phone-preview-mode .rider-bottom-nav {
  width: min(calc(100vw - 24px), 456px);
}

.phone-preview-mode[data-lang="th"] .rider-shell,
.phone-preview-mode[data-lang="my"] .rider-shell,
.phone-preview-mode[data-lang="en"] .rider-shell {
  width: min(100vw, 520px);
}

.phone-preview-mode[data-lang="th"] .rider-bottom-nav,
.phone-preview-mode[data-lang="my"] .rider-bottom-nav,
.phone-preview-mode[data-lang="en"] .rider-bottom-nav {
  width: min(calc(100vw - 24px), 496px);
}
