:root {
  --mh-theme: rgb(35, 135, 183);
  --mh-theme-soft: rgba(35, 135, 183, 0.12);
  --mh-text: #222;
  --mh-muted: #777;
  --mh-line: #edf1f1;
  --mh-soft: #edf6fb;
  --mh-danger: #e93939;
}

.font-theme {
  color: var(--mh-theme) !important;
}

.bg-theme-theme,
.btn-solid {
  background-color: var(--mh-theme) !important;
}

.border-theme,
.btn-solid {
  border-color: var(--mh-theme-soft) !important;
}

.btn-outline {
  border-color: var(--mh-theme) !important;
  color: var(--mh-theme) !important;
}

body.mh-driver-app,
body.mh-customer-app {
  min-height: 100vh;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.mh-driver-app {
  background: #f3f5f6;
}

body.mh-customer-app {
  background: #fff;
}

.mh-header .logo-wrap {
  min-width: 0;
}

.mh-header {
  position: sticky;
}

.mh-home-header,
.mh-history-header {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 25;
  width: min(100%, 600px);
  transform: translateX(-50%);
  border-bottom: 1px solid var(--mh-line);
  background: #fff;
}

.mh-header .logo-wrap > div {
  min-width: 0;
}

.mh-header-title {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(190px, calc(100% - 150px));
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}

.mh-header .logo-wrap h1,
.mh-header .logo-wrap span {
  display: block;
}

.mh-header .logo-wrap h1 {
  line-height: 1.12;
}

.mh-header .logo-wrap span {
  margin-top: 0;
  line-height: 1.12;
}

.mh-header-title h1 {
  margin-top: 2px;
  line-height: 1.12;
}

.mh-header-title span {
  margin-top: 2px;
  line-height: 1.12;
}

.mh-header .avatar-wrap {
  min-width: max-content;
}

.mh-list-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid var(--mh-line);
  border-radius: 999px;
  color: var(--mh-muted);
  font-weight: 800;
}

.mh-back-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  color: var(--mh-text);
}

.mh-back-icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.mh-list-icon {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.mh-summary {
  padding-bottom: 15px;
}

.mh-summary-card {
  padding: 18px;
  border: 1px solid var(--mh-line);
  border-radius: 8px;
  background: linear-gradient(135deg, #effefc 0%, #fff9d8 100%);
}

.mh-summary-card h2 {
  margin: 8px 0;
  line-height: 1.2;
}

.mh-summary-card p {
  margin-bottom: 0;
}

.mh-home-page {
  display: grid;
  gap: 12px;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 72px 15px 34px;
  background: #f3f5f6;
}

.mh-history-page {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 72px 15px 34px;
  background: #f3f5f6;
}

.mh-home-summary,
.mh-next-card,
.mh-home-delivery-card,
.mh-history-search,
.mh-history-summary,
.mh-history-card,
.mh-history-empty {
  border: 1px solid var(--mh-line);
  border-radius: 8px;
  background: #fff;
}

.mh-home-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 16px !important;
  background: linear-gradient(135deg, #e8f7ff 0%, #f3fbff 48%, #ffffff 100%);
}

.mh-home-summary h2 {
  margin: 5px 0 0;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.2;
}

.mh-home-summary h2 strong {
  font-weight: 900;
}

.mh-home-header .mh-list-link,
.mh-history-header .mh-list-link {
  font-weight: 400;
}

.mh-history-search {
  padding: 14px 16px 12px !important;
}

.mh-history-search label {
  display: block;
  margin-bottom: 7px;
}

.mh-date-input-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  gap: 8px;
}

.mh-date-input-wrap input {
  min-width: 0;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid #e3e9ea;
  border-radius: 8px;
  background: #f8fbfb;
  color: var(--mh-text);
  font-size: 16px;
  font-weight: 800;
}

.mh-date-input-wrap .btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
}

.mh-quick-dates {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.mh-quick-dates a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid #e3e9ea;
  border-radius: 8px;
  color: var(--mh-muted);
  font-size: 13px;
  font-weight: 700;
}

.mh-quick-dates a.active {
  border-color: rgba(35, 135, 183, 0.28);
  background: var(--mh-soft);
  color: var(--mh-theme);
}

.mh-history-summary {
  padding: 14px 16px 13px !important;
  background: linear-gradient(135deg, #e8f7ff 0%, #f3fbff 48%, #ffffff 100%);
}

.mh-history-summary h2 {
  margin: 5px 0 10px;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
}

.mh-history-summary h2 strong {
  font-weight: 900;
}

.mh-history-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.mh-history-stats span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border: 1px solid rgba(35, 135, 183, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--mh-muted);
  font-size: 12px;
  line-height: 1.1;
}

.mh-home-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mh-home-stats div {
  display: grid;
  place-items: center;
  min-width: 58px;
  min-height: 58px;
  border: 1px solid rgba(35, 135, 183, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.75);
}

.mh-home-stats span {
  color: var(--mh-muted);
  font-size: 12px;
  line-height: 1.1;
}

.mh-home-stats strong {
  color: var(--mh-theme);
  font-size: 22px;
  line-height: 1;
}

.mh-next-card {
  padding: 16px !important;
}

.mh-next-label {
  margin-bottom: 10px;
  color: var(--mh-theme);
  font-size: 13px;
  font-weight: 800;
}

.mh-next-heading {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.mh-next-heading h2 {
  margin: 0;
  color: var(--mh-text);
  font-size: 23px;
  font-weight: 900;
  line-height: 1.26;
  overflow-wrap: anywhere;
}

.mh-next-heading .mh-status-chip {
  margin-top: 7px;
}

.mh-next-card > p {
  margin: 13px 0 0;
  padding: 12px;
  border: 1px solid #f0f2f3;
  border-radius: 8px;
  color: var(--mh-text);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
  word-break: keep-all;
  word-break: auto-phrase;
  overflow-wrap: break-word;
}

.mh-next-placement {
  margin-top: 10px;
  padding: 13px;
  border-radius: 8px;
  background: #fff8ed;
}

.mh-next-placement span {
  display: block;
  color: var(--mh-muted);
  font-size: 13px;
  line-height: 1.3;
}

.mh-next-placement strong {
  display: block;
  margin-top: 6px;
  color: #8a3d00;
  font-size: 18px;
  line-height: 1.35;
  word-break: keep-all;
  word-break: auto-phrase;
  overflow-wrap: break-word;
}

.mh-next-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 12px;
  border-radius: 8px;
  font-weight: 900;
}

.mh-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 17px;
}

.mh-section-title h3 {
  margin: 0;
  line-height: 1.25;
}

.mh-status-tabs {
  margin-bottom: 14px;
}

.delivery-stack {
  display: grid;
  gap: 12px;
}

.mh-home-delivery-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  padding: 13px !important;
  color: inherit;
}

.mh-home-delivery-card:hover {
  color: inherit;
}

.mh-home-delivery-card.is-next-delivery {
  border-color: var(--mh-theme);
  box-shadow: 0 0 0 1px rgba(35, 135, 183, 0.08);
}

.mh-home-delivery-body {
  min-width: 0;
}

.mh-home-delivery-body p {
  margin: 6px 0 10px;
  line-height: 1.42;
  word-break: keep-all;
  word-break: auto-phrase;
  overflow-wrap: break-word;
}

.mh-home-item-count {
  font-weight: 400;
}

.mh-home-item-count strong {
  font-weight: 900;
}

.mh-home-card-foot {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.mh-home-delivery-card .mh-card-title h2 {
  font-size: 17px;
  font-weight: 800;
}

.mh-history-title {
  margin-top: 6px;
}

.mh-history-stack {
  display: grid;
  gap: 12px;
}

.mh-history-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 12px !important;
  color: inherit;
}

.mh-history-card:hover {
  color: inherit;
}

.mh-history-thumb {
  display: grid;
  place-items: center;
  align-self: stretch;
  min-height: 92px;
  overflow: hidden;
  border-radius: 8px;
  background: #111;
}

.mh-history-thumb img {
  width: 100%;
  height: 100%;
  min-height: 92px;
  object-fit: cover;
}

.mh-history-thumb.empty {
  border: 1px dashed #dfe5e7;
  background: #f8fafb;
  color: #9aa4aa;
}

.mh-history-thumb.empty i {
  margin-bottom: 4px;
  font-size: 24px;
}

.mh-history-thumb.empty span {
  display: block;
  font-size: 12px;
  line-height: 1.2;
}

.mh-history-card-body {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
}

.mh-history-card-body .mh-card-title {
  margin-bottom: 0;
}

.mh-history-card-body .mh-card-title h2 {
  font-size: 17px;
  font-weight: 800;
}

.mh-history-card-body p {
  margin: 0;
  line-height: 1.42;
  word-break: keep-all;
  word-break: auto-phrase;
  overflow-wrap: break-word;
}

.mh-history-card-body > span {
  display: block;
  margin-top: 0;
}

.mh-history-card.status-completed,
.mh-history-card.status-manual_completed {
  background: #fafbfb;
}

.mh-history-card.status-completed .mh-home-item-count,
.mh-history-card.status-completed .mh-home-item-count strong,
.mh-history-card.status-manual_completed .mh-home-item-count,
.mh-history-card.status-manual_completed .mh-home-item-count strong {
  color: #737d84 !important;
}

.mh-history-empty {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 24px 18px !important;
  text-align: center;
}

.mh-history-empty i {
  margin-bottom: 12px;
  color: var(--mh-theme);
  font-size: 34px;
}

.mh-history-empty h2 {
  margin-bottom: 6px;
  line-height: 1.3;
}

.mh-history-empty p {
  margin: 0;
  line-height: 1.45;
}

.status-completed.mh-home-delivery-card,
.status-manual_completed.mh-home-delivery-card {
  border-color: #e1e5e7;
  background: #fafbfb;
  opacity: 1;
}

.mh-home-delivery-card.status-completed .mh-route-no,
.mh-home-delivery-card.status-manual_completed .mh-route-no {
  background: #bfc7cc;
}

.mh-home-delivery-card.status-completed .mh-card-title h2,
.mh-home-delivery-card.status-completed .mh-home-item-count,
.mh-home-delivery-card.status-completed .mh-home-item-count strong,
.mh-home-delivery-card.status-completed .mh-home-card-foot span,
.mh-home-delivery-card.status-manual_completed .mh-card-title h2,
.mh-home-delivery-card.status-manual_completed .mh-home-item-count,
.mh-home-delivery-card.status-manual_completed .mh-home-item-count strong,
.mh-home-delivery-card.status-manual_completed .mh-home-card-foot span {
  color: #737d84 !important;
}

.mh-home-delivery-card.status-completed .mh-status-chip,
.mh-home-delivery-card.status-manual_completed .mh-status-chip {
  background: #e1e5e7;
  color: #667078;
}

.mh-order-box {
  display: block;
  color: inherit;
}

.mh-order-box:hover {
  color: inherit;
}

.mh-order-box .media {
  align-items: flex-start;
}

.mh-route-no {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--mh-theme);
  color: #fff;
  font-weight: 800;
}

.mh-card-title {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  justify-content: space-between;
  min-width: 0;
  margin-bottom: 6px;
}

.mh-card-title h2 {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.mh-order-box p {
  margin-bottom: 6px;
  line-height: 1.45;
}

.mh-status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--mh-soft);
  color: var(--mh-theme);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.status-completed .mh-status-chip,
.status-manual_completed .mh-status-chip {
  background: #ecfdf3;
  color: #067647;
}

.status-upload_failed .mh-status-chip,
.status-manual_sms_required .mh-status-chip {
  background: #fef3f2;
  color: var(--mh-danger);
}

.mh-feedback {
  padding: 13px 14px;
  border-radius: 8px;
  background: #ecfdf3;
  color: #05603a;
  font-weight: 800;
  line-height: 1.45;
}

.mh-feedback.error {
  background: #fef3f2;
  color: var(--mh-danger);
}

.hidden,
.visually-hidden {
  display: none !important;
}

.mh-driver-action-space {
  padding-bottom: 204px;
}

.mh-delivery-detail {
  display: grid;
  gap: 12px;
  min-height: calc(100vh - 58px);
  padding: 14px 15px 204px;
  background: #f3f5f6;
}

.mh-delivery-detail section {
  padding-top: 0;
  padding-bottom: 0;
}

.mh-stop-card,
.mh-placement-callout,
.mh-contact-strip,
.mh-work-steps,
.mh-driver-items,
.mh-manual-panel {
  border: 1px solid var(--mh-line);
  border-radius: 8px;
  background: #fff;
}

.mh-stop-card {
  padding: 16px !important;
  background: linear-gradient(135deg, #e8f7ff 0%, #f3fbff 48%, #ffffff 100%);
}

.mh-stop-heading {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin-bottom: 12px;
}

.mh-route-badge {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--mh-theme);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.mh-stop-title {
  min-width: 0;
}

.mh-stop-title h2 {
  margin: 0;
  font-size: 25px;
  font-weight: 900;
  line-height: 1.26;
  overflow-wrap: anywhere;
}

.mh-stop-title .mh-status-chip {
  margin-top: 7px;
}

/* Kept for older markup during hot reloads. */
.mh-stop-meta {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.mh-address-callout {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 12px !important;
  border: 1px solid #f0f2f3;
  border-radius: 8px;
  background: #fff;
}

.mh-address-callout i {
  color: var(--mh-theme);
  font-size: 24px;
}

.mh-address-callout p {
  margin: 0;
  color: var(--mh-text);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.mh-address-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #e8eeee;
  border-radius: 8px;
  background: #f8fbfb;
  color: var(--mh-theme);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.mh-placement-callout {
  padding: 14px 16px !important;
  border-color: #ffe3c7;
  background: #fff8ed;
}

.mh-placement-callout span,
.mh-work-steps p,
.mh-issue-title p {
  display: block;
  margin: 0;
  color: var(--mh-muted);
}

.mh-placement-callout span {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
}

.mh-placement-callout strong {
  display: block;
  margin-top: 7px;
  margin-bottom: 0;
  color: #8a3d00;
  font-size: 23px;
  line-height: 1.28;
  word-break: keep-all;
  word-break: auto-phrase;
  overflow-wrap: break-word;
  white-space: normal;
}

.mh-contact-strip {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 16px !important;
}

.mh-contact-strip strong {
  display: block;
  margin-top: 3px;
  font-size: 17px;
  line-height: 1.25;
}

.mh-contact-actions {
  display: flex;
  gap: 8px;
}

.mh-quick-button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 56px;
  border-radius: 8px;
  background: var(--mh-soft);
  color: var(--mh-theme);
  font-size: 13px;
  font-weight: 900;
}

.mh-quick-button i {
  margin-bottom: 3px;
  font-size: 22px;
}

.mh-work-steps,
.mh-driver-items,
.mh-manual-panel {
  padding: 16px !important;
}

.mh-driver-items .item-wrap {
  padding: 0;
}

.mh-driver-items .item-wrap,
.mh-manual-panel form,
.mh-manual-actions {
  margin-top: 0;
}

.mh-work-steps h3,
.mh-driver-items h3,
.mh-manual-panel h3 {
  margin-bottom: 13px;
  line-height: 1.25;
}

.mh-work-steps ol {
  display: grid;
  gap: 11px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.mh-work-steps li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 9px;
  align-items: flex-start;
}

.mh-work-steps li > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--mh-soft);
  color: var(--mh-theme);
  font-weight: 900;
}

.mh-work-steps strong {
  display: block;
  color: var(--mh-text);
  font-size: 15px;
  line-height: 1.35;
}

.mh-work-steps p {
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.42;
}

.mh-item-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 42px;
  padding: 9px 0;
  border-bottom: 1px dashed #d9e0de;
}

.mh-item-line:last-child {
  border-bottom: 0;
}

.mh-item-name {
  color: var(--mh-text);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.mh-item-qty {
  color: var(--mh-text);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
}

.mh-photo-preview img,
.customer-photo {
  display: block;
  width: 100%;
  max-height: 70vh;
  margin: 12px 0;
  object-fit: contain;
  border-radius: 8px;
  background: #111;
}

.mh-manual-panel .input-box {
  margin: 12px 0 10px;
}

.mh-issue-title h3 {
  margin-bottom: 6px;
  line-height: 1.25;
}

.mh-issue-title p {
  font-size: 13px;
  line-height: 1.45;
}

.mh-manual-panel,
.mh-manual-panel h3,
.mh-manual-panel p {
  word-break: keep-all;
  word-break: auto-phrase;
  overflow-wrap: break-word;
}

.mh-manual-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.mh-sms-link,
.mh-manual-complete-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  width: 100%;
  border-radius: 8px;
  font-weight: 800;
}

.mh-manual-complete-form {
  margin: 0;
}

.mh-manual-complete-button {
  border: 1px solid var(--mh-theme);
  color: #fff;
}

.mh-sms-link i {
  font-size: 20px;
}

.mh-detail-footer {
  background: #fff;
  border: 1px solid var(--mh-line);
  box-shadow: 0 -8px 26px rgba(34, 34, 34, 0.08);
}

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

.mh-footer-actions .btn-outline,
.mh-footer-actions .btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  margin: 0;
  text-align: center;
  cursor: pointer;
}

.mh-footer-actions button {
  font: inherit;
}

.mh-driver-action-bar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: min(100%, 600px);
  padding: 11px 15px calc(12px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  border-top: 1px solid var(--mh-line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -12px 30px rgba(34, 34, 34, 0.12);
  backdrop-filter: blur(12px);
}

.mh-big-action {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-items: center;
  gap: 4px;
  min-height: 76px;
  width: 100%;
  padding: 10px 8px;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
}

.mh-big-action i {
  font-size: 25px;
  text-align: center;
}

.mh-big-action span {
  color: inherit;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
}

.mh-big-action small {
  color: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  opacity: 0.8;
}

.mh-copy-action {
  border: 1px solid var(--mh-theme);
  background: #fff;
  color: var(--mh-theme);
}

.mh-camera-action {
  border: 1px solid var(--mh-theme);
  background: var(--mh-theme);
  color: #fff;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 176px;
  z-index: 30;
  transform: translateX(-50%) translateY(20px);
  width: min(92vw, 360px);
  padding: 12px 14px;
  border-radius: 8px;
  background: #222;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.mh-customer-photo {
  min-height: 100vh;
  padding-top: 24px;
}

.mh-customer-photo h1 {
  margin: 8px 0 18px;
  line-height: 1.25;
}

.empty-photo {
  display: grid;
  place-items: center;
  min-height: 320px;
  border: 1px dashed var(--mh-line);
  border-radius: 8px;
  color: var(--mh-muted);
  font-weight: 800;
}

@media (max-width: 390px) {
  .mh-stop-card h2 {
    font-size: 23px;
    line-height: 1.28;
  }

  .mh-placement-callout strong {
    font-size: 22px;
  }

  .mh-address-callout p {
    font-size: 15px;
  }

  .mh-contact-strip {
    grid-template-columns: 1fr;
  }

  .mh-contact-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .mh-footer-actions {
    gap: 8px;
  }

  .mh-footer-actions .btn-outline,
  .mh-footer-actions .btn-solid {
    min-height: 44px;
    padding-left: 12px;
    padding-right: 12px;
    font-size: 14px;
  }

  .mh-delivery-detail .order-summary li span:last-child,
  .mh-delivery-detail .order-summary li a {
    max-width: 58%;
  }

  .mh-big-action {
    min-height: 68px;
    grid-template-columns: 34px 1fr;
  }

  .mh-big-action span {
    font-size: 16px;
  }
}

/* Design refinement pass: driver mobile */
:root {
  --mh-theme: rgb(35, 135, 183);
  --mh-theme-dark: #176f9c;
  --mh-theme-soft: rgba(35, 135, 183, 0.11);
  --mh-bg: #eef2f4;
  --mh-card: #ffffff;
  --mh-text: #171d23;
  --mh-muted: #66737d;
  --mh-line: #dfe7eb;
  --mh-soft: #edf7fc;
  --mh-warning-bg: #fff7e8;
  --mh-warning-text: #7a3d00;
  --mh-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 22px rgba(16, 24, 40, 0.04);
}

body.mh-driver-app {
  background: var(--mh-bg);
  color: var(--mh-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif;
}

.mh-header {
  min-height: 58px;
  padding: 9px 15px;
  border-bottom-color: rgba(32, 47, 58, 0.08);
  box-shadow: 0 1px 0 rgba(32, 47, 58, 0.02);
}

.mh-header .logo-wrap h1,
.mh-header-title h1 {
  font-size: 17px !important;
  font-weight: 700;
  letter-spacing: 0;
}

.mh-header .logo-wrap span,
.mh-header-title span {
  color: var(--mh-muted) !important;
  font-size: 12px !important;
  font-weight: 400;
}

.mh-list-link {
  min-height: 34px;
  padding: 0 12px;
  border-color: var(--mh-line);
  background: #fff;
  color: var(--mh-muted);
  font-size: 12px !important;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
}

.mh-home-page,
.mh-history-page {
  align-content: start;
  grid-auto-rows: max-content;
  gap: 13px;
  padding: 72px 14px 32px;
  background: var(--mh-bg);
}

.mh-delivery-detail {
  align-content: start;
  grid-auto-rows: max-content;
  gap: 13px;
  padding: 14px 14px 204px;
  background: var(--mh-bg);
}

.mh-home-summary,
.mh-next-card,
.mh-home-delivery-card,
.mh-history-search,
.mh-history-summary,
.mh-history-card,
.mh-history-empty,
.mh-stop-card,
.mh-placement-callout,
.mh-contact-strip,
.mh-work-steps,
.mh-driver-items,
.mh-manual-panel,
.mh-photo-preview {
  border-color: var(--mh-line);
  border-radius: 8px;
  background-color: var(--mh-card);
  box-shadow: var(--mh-shadow);
}

.mh-home-summary,
.mh-history-summary,
.mh-stop-card {
  background: linear-gradient(135deg, #e7f6fd 0%, #f6fbfe 58%, #ffffff 100%);
}

.mh-home-summary {
  min-height: 112px;
  padding: 15px !important;
}

.mh-home-summary h2,
.mh-history-summary h2 {
  color: var(--mh-text);
  font-weight: 400;
  letter-spacing: 0;
}

.mh-home-summary h2 strong,
.mh-history-summary h2 strong {
  color: var(--mh-text);
  font-weight: 800;
}

.mh-home-stats div,
.mh-history-stats span {
  border-color: rgba(35, 135, 183, 0.16);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.mh-home-stats strong {
  color: var(--mh-theme-dark);
  font-weight: 800;
}

.mh-next-card {
  padding: 15px !important;
}

.mh-next-label,
.mh-driver-items h3,
.mh-work-steps h3 {
  color: var(--mh-theme-dark) !important;
  font-weight: 700;
}

.mh-next-heading h2,
.mh-stop-title h2 {
  color: var(--mh-text);
  font-weight: 800;
  letter-spacing: 0;
  word-break: keep-all;
  word-break: auto-phrase;
  overflow-wrap: break-word;
}

.mh-next-card > p,
.mh-address-callout {
  border-color: var(--mh-line);
  background: #fff;
}

.mh-next-card > p,
.mh-address-callout p {
  color: var(--mh-text);
  font-weight: 650;
  word-break: keep-all;
  word-break: auto-phrase;
  overflow-wrap: break-word;
}

.mh-next-placement,
.mh-placement-callout {
  border-color: #f6ddb8;
  background: var(--mh-warning-bg);
}

.mh-next-placement strong,
.mh-placement-callout strong {
  color: var(--mh-warning-text);
  font-weight: 750;
  letter-spacing: 0;
}

.mh-next-link,
.mh-date-input-wrap .btn-solid,
.mh-manual-complete-button {
  background: var(--mh-theme) !important;
  border-color: var(--mh-theme) !important;
  color: #fff !important;
  font-weight: 750;
  box-shadow: 0 8px 18px rgba(35, 135, 183, 0.16);
}

.mh-section-title {
  margin: 18px 0 2px;
}

.mh-section-title h3 {
  color: var(--mh-text) !important;
  font-size: 17px !important;
  font-weight: 750;
}

.delivery-stack,
.mh-history-stack {
  gap: 10px;
}

.mh-home-delivery-card {
  min-height: 116px;
  padding: 13px !important;
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.mh-home-delivery-card.is-next-delivery {
  background: #fbfdff;
  border-color: rgba(35, 135, 183, 0.72);
  box-shadow: 0 0 0 1px rgba(35, 135, 183, 0.08), var(--mh-shadow);
}

.mh-home-delivery-card .mh-card-title h2,
.mh-history-card-body .mh-card-title h2 {
  color: var(--mh-text) !important;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: 0;
  word-break: keep-all;
  word-break: auto-phrase;
  overflow-wrap: break-word;
}

.mh-home-delivery-body p,
.mh-history-card-body p,
.mh-home-card-foot span {
  color: var(--mh-muted) !important;
  font-weight: 400;
}

.mh-home-item-count {
  color: var(--mh-theme-dark) !important;
}

.mh-route-no,
.mh-route-badge {
  background: linear-gradient(180deg, #2c96c7 0%, var(--mh-theme-dark) 100%);
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(35, 135, 183, 0.18);
}

.mh-status-chip {
  min-height: 25px;
  border: 1px solid rgba(35, 135, 183, 0.12);
  background: var(--mh-soft);
  color: var(--mh-theme-dark);
  font-weight: 600;
}

.status-completed.mh-home-delivery-card,
.status-manual_completed.mh-home-delivery-card,
.mh-history-card.status-completed,
.mh-history-card.status-manual_completed {
  background: #f8fafb;
  border-color: #e4e9ec;
}

.mh-home-delivery-card.status-completed .mh-route-no,
.mh-home-delivery-card.status-manual_completed .mh-route-no {
  background: #c4ccd2;
  box-shadow: none;
}

.mh-history-search,
.mh-history-summary,
.mh-history-card {
  padding: 14px !important;
}

.mh-date-input-wrap input,
.mh-quick-dates a {
  border-color: var(--mh-line);
  color: var(--mh-text);
  font-weight: 650;
}

.mh-quick-dates a {
  background: #fff;
}

.mh-quick-dates a.active {
  border-color: rgba(35, 135, 183, 0.28);
  background: var(--mh-soft);
  color: var(--mh-theme-dark);
}

.mh-history-thumb {
  background: #17202a;
}

.mh-history-empty {
  min-height: 260px;
}

.mh-address-copy,
.mh-quick-button,
.mh-sms-link {
  border: 1px solid rgba(35, 135, 183, 0.16);
  background: var(--mh-soft);
  color: var(--mh-theme-dark);
  font-weight: 700;
}

.mh-driver-items .item-wrap {
  border-radius: 8px;
  overflow: hidden;
}

.mh-item-line {
  min-height: 48px;
  padding: 11px 0;
  border-bottom-color: var(--mh-line);
}

.mh-item-name {
  font-weight: 650;
  word-break: keep-all;
  word-break: auto-phrase;
  overflow-wrap: break-word;
}

.mh-item-qty {
  font-size: 24px;
  font-weight: 800;
}

.mh-work-steps li > span {
  background: var(--mh-soft);
  color: var(--mh-theme-dark);
}

.mh-work-steps strong {
  font-weight: 700;
}

.mh-driver-action-bar {
  border-top-color: rgba(32, 47, 58, 0.08);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 -14px 34px rgba(16, 24, 40, 0.13);
}

.mh-big-action {
  min-height: 74px;
  border-radius: 8px;
  font-weight: 700;
}

.mh-big-action span {
  font-weight: 800;
}

.mh-copy-action {
  background: #fff;
  color: var(--mh-theme-dark);
}

.mh-camera-action {
  background: linear-gradient(180deg, #2c96c7 0%, var(--mh-theme-dark) 100%);
}

.toast {
  border-radius: 8px;
  background: rgba(23, 29, 35, 0.94);
  box-shadow: 0 14px 30px rgba(16, 24, 40, 0.18);
}

/* NobleUI convergence layer */
:root {
  --mh-theme: rgb(35, 135, 183);
  --mh-theme-dark: #176f9c;
  --mh-theme-soft: rgba(35, 135, 183, 0.12);
  --bs-primary: rgb(35, 135, 183);
  --bs-primary-rgb: 35, 135, 183;
  --bs-link-color: rgb(35, 135, 183);
  --bs-link-hover-color: #176f9c;
  --mh-bg: #f9fafb;
  --mh-card: #ffffff;
  --mh-text: #060c17;
  --mh-muted: #7987a1;
  --mh-line: #f2f4f9;
  --mh-soft: rgba(35, 135, 183, 0.12);
  --mh-warning-bg: rgba(251, 188, 6, 0.12);
  --mh-warning-text: #8a6500;
  --mh-shadow: 0 0 10px 0 rgba(183, 192, 206, 0.2);
}

body.mh-driver-app,
body.mh-customer-app {
  background: var(--mh-bg);
  color: var(--mh-text);
  font-family: "Roboto", "Noto Sans KR", Helvetica, sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  width: 100% !important;
  max-width: none !important;
  margin: 0;
}

body.mh-driver-app,
body.mh-customer-app {
  overflow-x: hidden;
}

.mh-header,
.mh-home-header,
.mh-history-header {
  min-height: 60px;
  border-bottom: 1px solid var(--bs-border-color, #e9ecef);
  background: var(--mh-card);
  box-shadow: none;
}

body.mh-driver-app > .mh-header:not(.mh-home-header):not(.mh-history-header) {
  width: min(100%, 600px);
  margin-right: auto;
  margin-left: auto;
}

.mh-header .logo-wrap h1,
.mh-header-title h1 {
  color: var(--mh-text) !important;
  font-size: 1rem !important;
  font-weight: 500;
}

.mh-header .logo-wrap span,
.mh-header-title span {
  color: var(--mh-muted) !important;
  font-size: 0.8125rem !important;
  font-weight: 400;
}

.mh-home-page,
.mh-history-page,
.mh-delivery-detail {
  box-sizing: border-box;
  width: min(100%, 600px) !important;
  max-width: 600px;
  margin-right: auto !important;
  margin-left: auto !important;
  background: var(--mh-bg);
}

.mh-home-summary,
.mh-next-card,
.mh-home-delivery-card,
.mh-history-search,
.mh-history-summary,
.mh-history-card,
.mh-history-empty,
.mh-stop-card,
.mh-placement-callout,
.mh-contact-strip,
.mh-work-steps,
.mh-driver-items,
.mh-manual-panel,
.mh-photo-preview {
  border: 1px solid var(--mh-line);
  border-radius: 0.25rem;
  background: var(--mh-card);
  box-shadow: var(--mh-shadow);
}

.mh-home-summary,
.mh-history-summary,
.mh-stop-card {
  background: var(--mh-card);
}

.mh-home-summary h2,
.mh-history-summary h2,
.mh-next-heading h2,
.mh-stop-title h2,
.mh-home-delivery-card .mh-card-title h2,
.mh-history-card-body .mh-card-title h2 {
  color: var(--mh-text) !important;
  font-weight: 500;
}

.mh-home-summary h2 strong,
.mh-history-summary h2 strong,
.mh-home-item-count strong,
.mh-item-qty {
  font-weight: 700;
}

.mh-list-link,
.mh-address-copy,
.mh-quick-button,
.mh-sms-link,
.mh-copy-action,
.mh-next-link,
.mh-date-input-wrap .btn-solid,
.mh-manual-complete-button,
.mh-camera-action {
  border-radius: 0.25rem;
  font-weight: 500;
}

.mh-next-link,
.mh-date-input-wrap .btn-solid,
.mh-manual-complete-button,
.mh-camera-action {
  border-color: var(--mh-theme) !important;
  background: var(--mh-theme) !important;
  color: #fff !important;
  box-shadow: none;
}

.mh-copy-action,
.mh-address-copy,
.mh-quick-button,
.mh-sms-link {
  border-color: var(--mh-theme) !important;
  background: rgba(35, 135, 183, 0.12) !important;
  color: var(--mh-theme) !important;
  box-shadow: none;
}

.mh-home-stats div,
.mh-history-stats span,
.mh-date-input-wrap input,
.mh-quick-dates a,
.mh-address-callout,
.mh-next-card > p,
.mh-file-like-box {
  border: 1px solid var(--bs-border-color, #e9ecef);
  border-radius: 0.25rem;
  background: var(--mh-card);
  box-shadow: none;
}

.mh-date-input-wrap input {
  color: var(--mh-text);
  font-size: 0.875rem;
  font-weight: 400;
}

.mh-quick-dates a.active {
  border-color: var(--mh-theme);
  background: rgba(35, 135, 183, 0.12);
  color: var(--mh-theme);
}

.mh-route-no,
.mh-route-badge,
.mh-work-steps li > span {
  border-radius: 0.25rem;
  background: var(--mh-theme);
  color: #fff;
  font-weight: 500;
  box-shadow: none;
}

.mh-status-chip {
  min-height: auto;
  padding: 0.35em 0.65em;
  border: 0;
  border-radius: 0.25rem;
  background: rgba(35, 135, 183, 0.12);
  color: var(--mh-theme);
  font-size: 0.8em;
  font-weight: 500;
  line-height: 1;
}

.status-completed .mh-status-chip,
.status-manual_completed .mh-status-chip {
  background: rgba(5, 163, 74, 0.12);
  color: #05a34a;
}

.status-upload_failed .mh-status-chip,
.status-manual_sms_required .mh-status-chip {
  background: rgba(255, 51, 102, 0.12);
  color: #ff3366;
}

.mh-next-placement,
.mh-placement-callout {
  border: 1px solid rgba(251, 188, 6, 0.3);
  border-radius: 0.25rem;
  background: var(--mh-warning-bg);
}

.mh-next-placement strong,
.mh-placement-callout strong {
  color: var(--mh-warning-text);
  font-weight: 500;
}

.mh-reference-callout {
  padding: 14px 16px !important;
  border: 1px solid rgba(35, 135, 183, 0.18);
  border-radius: 0.25rem;
  background: rgba(35, 135, 183, 0.08);
  box-shadow: var(--mh-shadow);
}

.mh-reference-callout span {
  display: block;
  margin: 0;
  color: var(--mh-muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
}

.mh-reference-callout strong {
  display: block;
  margin-top: 7px;
  color: var(--mh-text);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.42;
  word-break: keep-all;
  word-break: auto-phrase;
  overflow-wrap: break-word;
  white-space: pre-line;
}

.mh-section-title h3,
.mh-next-label,
.mh-driver-items h3,
.mh-work-steps h3,
.mh-manual-panel h3 {
  color: var(--mh-text) !important;
  font-size: 1rem !important;
  font-weight: 500;
}

.mh-home-delivery-card.is-next-delivery {
  border-color: var(--mh-theme);
  background: var(--mh-card);
  box-shadow: var(--mh-shadow);
}

.status-completed.mh-home-delivery-card,
.status-manual_completed.mh-home-delivery-card,
.mh-history-card.status-completed,
.mh-history-card.status-manual_completed {
  background: #fff;
  border-color: var(--mh-line);
}

.mh-home-delivery-card.status-completed .mh-route-no,
.mh-home-delivery-card.status-manual_completed .mh-route-no {
  background: #7987a1;
}

.mh-home-delivery-body p,
.mh-history-card-body p,
.mh-home-card-foot span,
.mh-work-steps p,
.mh-issue-title p,
.mh-next-placement span,
.mh-placement-callout span {
  color: var(--mh-muted) !important;
  font-weight: 400;
}

.mh-home-item-count,
.mh-driver-items h3,
.mh-work-steps h3 {
  color: var(--mh-theme) !important;
}

.mh-item-line {
  border-bottom: 1px solid var(--mh-line);
}

.mh-item-name {
  color: var(--mh-text);
  font-weight: 500;
}

.mh-driver-action-bar {
  border-top: 1px solid var(--bs-border-color, #e9ecef);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 -0.5rem 1rem rgba(183, 192, 206, 0.2);
}

.mh-big-action span {
  font-weight: 500;
}

.mh-big-action small {
  font-weight: 400;
}

.toast {
  border-radius: 0.25rem;
  background: #060c17;
  box-shadow: var(--mh-shadow);
  font-weight: 400;
}

.mh-customer-photo {
  box-sizing: border-box;
  width: min(100%, 600px);
  min-height: 100vh;
  min-height: 100dvh;
  margin-right: auto;
  margin-left: auto;
  padding: 1.5rem 15px;
  background: var(--mh-bg);
}

.mh-customer-photo section {
  padding: 1.5rem !important;
  border: 1px solid var(--mh-line);
  border-radius: 0.25rem;
  background: var(--mh-card);
  box-shadow: var(--mh-shadow);
}

.mh-customer-photo .font-theme {
  color: var(--mh-theme) !important;
  font-weight: 500 !important;
}

.mh-customer-photo h1 {
  color: var(--mh-text) !important;
  font-size: 1.25rem !important;
  font-weight: 500;
}

.customer-photo {
  border-radius: 0.25rem;
}

.empty-photo {
  border-color: var(--bs-border-color, #e9ecef);
  border-radius: 0.25rem;
  background: var(--mh-bg);
  color: var(--mh-muted);
  font-weight: 400;
}
