:root {
  color-scheme: light;
  --bg: #f5f7fa;
  --panel: #ffffff;
  --panel-strong: #f9fafb;
  --text: #1f2933;
  --muted: #697586;
  --line: #d9e2ec;
  --line-soft: #edf1f5;
  --primary: #155eef;
  --primary-dark: #0b45bf;
  --success: #0f766e;
  --warning: #a16207;
  --danger: #b42318;
  --shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  --radius: 8px;
  --color-primary: #1e5bff;
  --color-primary-dark: #1749d1;
  --color-primary-soft: #edf4ff;
  --color-primary-light: #f5f8ff;
  --color-orange: #ff9f0a;
  --color-orange-dark: #f08a00;
  --color-orange-soft: #fff4e5;
  --color-orange-border: #ffd59a;
  --color-page-bg: #eef3fa;
  --color-card-bg: #ffffff;
  --color-surface-soft: #f6f8fc;
  --color-border: #dde5f0;
  --color-title: #142033;
  --color-text: #4a5568;
  --color-muted: #7b8798;
  --color-placeholder: #a0aec0;
  --status-transit-bg: #eaf2ff;
  --status-transit-text: #2f6bff;
  --status-pending-bg: #fff3df;
  --status-pending-text: #d97a00;
  --status-neutral-bg: #f3f6fb;
  --status-neutral-text: #5b6b81;
  --h5-shadow-card: 0 6px 20px rgba(30, 60, 114, 0.06);
  --h5-shadow-float: 0 14px 32px rgba(30, 60, 114, 0.12);
  --h5-radius-card: 20px;
  --h5-radius-small: 16px;
  --h5-radius-button: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  font-size: 14px;
  overflow-x: hidden;
}

button,
input,
select {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
  padding: 24px;
}

.workspace {
  max-width: 1440px;
  margin: 0 auto;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 20px;
}

.topbar-actions {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 28px;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

h2 {
  margin-bottom: 0;
  font-size: 18px;
}

h3 {
  margin-bottom: 0;
  font-size: 15px;
}

.api-pill,
.status-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--muted);
  background: var(--panel);
  font-size: 12px;
}

.query-panel,
.list-panel,
.detail-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.query-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px auto;
  gap: 12px;
  align-items: end;
  padding: 16px;
  margin-bottom: 16px;
}

.field {
  display: grid;
  gap: 6px;
}

.field span {
  color: var(--muted);
  font-size: 12px;
}

.form-hint {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

input,
select {
  min-height: 38px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  color: var(--text);
  background: #fff;
}

input:focus,
select:focus {
  border-color: var(--primary);
  outline: 2px solid rgba(21, 94, 239, 0.14);
}

.primary-button,
.secondary-button,
.secondary-link-button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  padding: 0 14px;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.primary-button {
  background: var(--primary);
  color: #fff;
}

.primary-button:hover {
  background: var(--primary-dark);
}

.secondary-button,
.secondary-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  text-decoration: none;
}

.secondary-button:hover:not(:disabled),
.secondary-link-button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(620px, 1fr) 420px;
  gap: 16px;
  align-items: start;
}

.list-panel,
.detail-panel {
  overflow: hidden;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line-soft);
}

.detail-header {
  align-items: flex-start;
}

.muted {
  color: var(--muted);
}

.state {
  color: var(--muted);
  padding: 0 16px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}

th,
td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  background: var(--panel-strong);
}

tr:hover td {
  background: #f8fbff;
}

.link-button {
  border: 0;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  padding: 4px 0;
}

.status-pill.ready,
.status-pill.arrived {
  border-color: rgba(15, 118, 110, 0.28);
  color: var(--success);
  background: #f0fdfa;
}

.status-pill.transit {
  border-color: rgba(21, 94, 239, 0.22);
  color: var(--primary);
  background: #eff6ff;
}

.status-pill.exception {
  border-color: rgba(180, 35, 24, 0.24);
  color: var(--danger);
  background: #fff1f2;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.detail-item {
  min-height: 64px;
  padding: 12px 16px;
  background: #fff;
}

.detail-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}

.detail-value {
  font-weight: 600;
  word-break: break-word;
}

.notice {
  margin: 12px 16px 0;
  padding: 10px 12px;
  border: 1px solid #fde68a;
  border-radius: 6px;
  color: var(--warning);
  background: #fffbeb;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 16px 8px;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 4px 16px 18px;
}

.timeline-item {
  position: relative;
  padding: 0 0 16px 22px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
}

.timeline-item::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 18px;
  bottom: 2px;
  width: 2px;
  background: var(--line-soft);
}

.timeline-item:first-child::before {
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(21, 94, 239, 0.13);
}

.timeline-item:last-child::after {
  display: none;
}

.timeline-time {
  color: var(--muted);
  font-size: 12px;
}

.latest-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  margin-left: 8px;
  border-radius: 999px;
  padding: 0 8px;
  color: var(--primary);
  background: #eff6ff;
  font-size: 12px;
  font-weight: 700;
}

.timeline-title {
  margin: 4px 0;
  font-weight: 700;
}

.timeline-meta {
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 1040px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .app-shell {
    padding: 14px;
  }

  .topbar,
  .query-panel {
    display: grid;
    grid-template-columns: 1fr;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  background: var(--bg);
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--bg);
}

.login-panel {
  width: min(420px, 100%);
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.login-panel h1 {
  font-size: 24px;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: #fff;
  padding: 20px 16px;
}

.admin-brand {
  margin-bottom: 18px;
}

.admin-brand h1 {
  font-size: 20px;
}

.admin-nav {
  display: grid;
  gap: 6px;
}

.admin-nav button,
.admin-home-link {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  padding: 0 12px;
  background: transparent;
  color: var(--text);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.admin-nav button:hover,
.admin-nav button.active,
.admin-home-link:hover {
  background: #eff6ff;
  color: var(--primary);
}

.admin-home-link {
  display: flex;
  align-items: center;
  margin-top: auto;
  border: 1px solid var(--line);
}

.admin-main {
  min-width: 0;
  padding: 24px;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 16px;
}

.admin-notice {
  margin: 0 0 16px;
}

.admin-loading,
.admin-section,
.metric-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.admin-loading {
  padding: 18px;
  color: var(--muted);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.metric-card {
  min-height: 104px;
  padding: 16px;
}

.metric-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.metric-card strong {
  display: block;
  margin-top: 10px;
  font-size: 24px;
}

.metric-card.danger strong {
  color: var(--danger);
}

.admin-section {
  overflow: hidden;
  margin-bottom: 16px;
}

.section-title,
.detail-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line-soft);
}

.admin-filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr)) auto;
  gap: 12px;
  align-items: end;
  padding: 16px;
  border-bottom: 1px solid var(--line-soft);
}

.admin-state {
  padding: 16px;
}

.admin-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.notification-template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.notification-template-card {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 12px;
  background: var(--panel-strong);
}

.notification-template-card pre {
  margin: 10px 0 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text);
  font-family: inherit;
  line-height: 1.6;
}

.exception-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin: 2px 4px 2px 0;
  border: 1px solid rgba(180, 35, 24, 0.22);
  border-radius: 999px;
  padding: 0 8px;
  color: var(--danger);
  background: #fff1f2;
  font-size: 12px;
  white-space: nowrap;
}

.admin-count {
  padding: 0 16px 14px;
}

.admin-detail-grid {
  border-bottom: 0;
}

.admin-timeline {
  padding-top: 14px;
}

.raw-box {
  max-height: 320px;
  overflow: auto;
  margin: 0;
  padding: 16px;
  border-top: 1px solid var(--line-soft);
  background: #0f172a;
  color: #e5e7eb;
  font: 12px/1.55 Consolas, "SFMono-Regular", monospace;
  white-space: pre-wrap;
}

.raw-focus {
  outline: 2px solid rgba(21, 94, 239, 0.18);
}

.admin-edit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 16px;
  border-top: 1px solid var(--line-soft);
}

.cns-draft-section textarea {
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 12px;
  line-height: 1.55;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.compact-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.vertical-actions {
  align-self: stretch;
  flex-direction: column;
  justify-content: flex-start;
}

.pre-entry-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  align-items: start;
}

.pre-entry-form,
.side-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.form-section {
  padding: 16px;
  border-bottom: 1px solid var(--line-soft);
}

.form-section h2 {
  margin-bottom: 12px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 12px;
}

textarea {
  min-height: 88px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  color: var(--text);
  resize: vertical;
}

.field-full {
  grid-column: 1 / -1;
}

.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.checkbox-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  color: var(--text);
}

.upload-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.upload-box {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: 12px;
  background: #fbfcfe;
}

.upload-list,
.file-list {
  display: grid;
  gap: 8px;
}

.uploaded-item,
.file-card {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: 8px;
  background: #fff;
}

.file-card {
  color: var(--text);
  text-decoration: none;
}

.file-card:hover {
  border-color: var(--primary);
}

.file-card small {
  color: var(--muted);
}

.file-group {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
}

.file-group h4 {
  margin: 0 0 8px;
}

.form-actions {
  display: flex;
  gap: 10px;
  padding: 16px;
}

.pre-entry-side {
  display: grid;
  gap: 16px;
}

.side-content {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.query-result {
  display: grid;
  gap: 12px;
}

.pre-entry-card {
  display: grid;
  gap: 12px;
}

.inline-link {
  justify-self: start;
}

@media (max-width: 1040px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
  }

  .admin-nav {
    grid-template-columns: repeat(3, 1fr);
  }

  .admin-home-link {
    margin-top: 12px;
  }

  .metric-grid,
  .admin-filters,
  .pre-entry-grid,
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .admin-main {
    padding: 14px;
  }

  .admin-topbar,
  .section-title,
  .detail-title-row {
    display: grid;
    align-items: start;
  }

  .admin-nav,
  .metric-grid,
  .admin-filters,
  .pre-entry-grid,
  .form-grid,
  .upload-grid,
  .admin-edit-row {
    grid-template-columns: 1fr;
  }
}

/* H5 customer app */
.mobile-page-shell,
.login-h5-shell {
  min-height: 100vh;
  background: #edf4ff;
  color: #172033;
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
}

.mobile-page-shell {
  padding: 0 0 86px;
  overflow-x: hidden;
  width: 100vw;
  max-width: 100vw;
}

.mobile-screen {
  width: min(100vw, 430px);
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 16px 14px 34px;
  background: linear-gradient(180deg, #0f4fb8 0, #0f4fb8 146px, #f4f7fb 146px, #f4f7fb 100%);
  overflow-x: hidden;
}

.mobile-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  color: #fff;
  padding: 12px 2px 18px;
}

.mobile-header h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.18;
}

.mobile-header p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

.mobile-eyebrow {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.mobile-card,
.mobile-search-card,
.ready-alert,
.route-card,
.detail-status-card,
.success-panel {
  border: 1px solid rgba(221, 229, 240, 0.9);
  border-radius: var(--h5-radius-card);
  background: var(--color-card-bg);
  box-shadow: var(--h5-shadow-card);
}

.mobile-card,
.mobile-search-card {
  padding: 14px;
  margin-bottom: 12px;
  min-width: 0;
  max-width: 100%;
}

.mobile-card-head,
.package-title-row,
.price-row,
.price-total,
.mobile-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mobile-card-head h2,
.mobile-card h2 {
  margin: 0;
  font-size: 16px;
}

.mobile-card-head p,
.micro-copy,
.package-sub {
  color: var(--color-muted);
  font-size: 12px;
  line-height: 1.55;
}

.center {
  text-align: center;
}

.route-card {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 50px;
  gap: 6px;
  align-items: center;
  padding: 14px;
  margin-bottom: 12px;
  color: #0f356d;
  min-width: 0;
}

.route-end {
  display: grid;
  gap: 4px;
  justify-items: center;
  min-width: 0;
}

.route-end span {
  max-width: 100%;
  white-space: nowrap;
  font-size: 12px;
}

.route-card strong {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e7f0ff;
  color: #0f4fb8;
}

.route-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 12px minmax(0, 1fr) 12px minmax(0, 1fr);
  align-items: center;
  gap: 3px;
  color: #496780;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  min-width: 0;
}

.route-flow i {
  height: 2px;
  background: linear-gradient(90deg, #93b9f5, #f59e0b);
}

.segmented-control,
.filter-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.segmented-control::-webkit-scrollbar,
.filter-scroll::-webkit-scrollbar {
  display: none;
}

.segmented-control button,
.filter-scroll a,
.filter-scroll button {
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-primary-light);
  color: var(--color-text);
  padding: 8px 12px;
  white-space: nowrap;
  text-decoration: none;
}

.segmented-control .active,
.filter-scroll .active {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
}

.mobile-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 12px;
  min-width: 0;
}

.mobile-search-row .mobile-primary-button {
  min-width: 58px;
  padding-inline: 12px;
}

.mobile-search-row.single {
  margin: 0 0 12px;
}

.mobile-search-row input,
.mobile-field input,
.mobile-field textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--h5-radius-button);
  background: var(--color-primary-light);
  color: var(--color-title);
  padding: 0 12px;
}

.mobile-field textarea {
  min-height: 82px;
  padding: 10px 12px;
  resize: vertical;
}

.mobile-field {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.mobile-field span {
  color: var(--color-muted);
  font-size: 12px;
}

.mobile-primary-button,
.mobile-secondary-button {
  min-height: 42px;
  min-width: 0;
  border-radius: var(--h5-radius-button);
  padding: 0 14px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 0;
  text-decoration: none;
  cursor: pointer;
  font-weight: 700;
}

.mobile-primary-button {
  background: var(--color-primary);
  color: #fff;
}

.mobile-warning-button {
  background: var(--color-orange);
  color: #fff;
}

.mobile-warning-button:hover {
  background: var(--color-orange-dark);
}

.mobile-secondary-button {
  border: 1px solid var(--color-border);
  background: var(--color-card-bg);
  color: var(--color-primary);
}

.mobile-primary-button.full,
.mobile-secondary-button.full {
  width: 100%;
  margin-top: 12px;
}

.mobile-plain-link,
.mobile-text-button,
.mobile-card-head a,
.package-actions a,
.bill-amount a,
.login-actions a {
  border: 0;
  background: transparent;
  color: #0f4fb8;
  text-decoration: none;
  font-weight: 700;
}

.mobile-header .mobile-plain-link {
  color: #fff;
}

.ready-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  margin-bottom: 12px;
  border-color: #fde7b5;
  background: #fff8eb;
  color: inherit;
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.ready-alert > div {
  min-width: 0;
}

.ready-alert strong {
  color: var(--status-pending-text);
}

.ready-alert p {
  margin: 4px 0 0;
  color: var(--status-pending-text);
}

.ready-alert:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(255, 159, 10, 0.14);
}

.ready-alert-cta {
  border-radius: 999px;
  padding: 8px 10px;
  background: var(--color-orange);
  color: #fff;
  white-space: nowrap;
  font-weight: 800;
  flex: 0 0 auto;
  font-size: 12px;
}

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

.service-entry {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 8px;
  gap: 4px 6px;
  align-items: center;
  border-radius: 12px;
  padding: 10px 8px;
  background: #f7faff;
  color: #172033;
  text-decoration: none;
  transition: background 140ms ease, transform 140ms ease;
  min-width: 0;
}

.service-entry:hover {
  background: #eef6ff;
  transform: translateY(-1px);
}

.service-icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: #e7f0ff;
  color: #0f4fb8;
  font-weight: 800;
}

.service-entry strong {
  grid-column: 2;
  min-width: 0;
  word-break: keep-all;
  white-space: nowrap;
  font-size: 13px;
  line-height: 1.2;
}

.service-entry small {
  grid-column: 2;
  color: #64748b;
  font-size: 11px;
  line-height: 1.25;
  word-break: keep-all;
  white-space: nowrap;
  min-width: 0;
}

.service-entry b {
  grid-column: 3;
  grid-row: 1 / 3;
  color: #94a3b8;
  font-size: 15px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  margin-top: 12px;
  min-width: 0;
}

.stats-grid a {
  display: grid;
  gap: 4px;
  justify-items: center;
  border-radius: 12px;
  background: #f7faff;
  padding: 10px 2px;
  color: inherit;
  text-decoration: none;
  transition: background 140ms ease, transform 140ms ease;
  min-width: 0;
}

.stats-grid a:hover {
  background: #eef6ff;
  transform: translateY(-1px);
}

.stats-grid strong {
  color: #0f4fb8;
  font-size: 18px;
}

.stats-grid span {
  color: #64748b;
  font-size: 10px;
}

.card-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.package-card,
.bill-card {
  border: 1px solid var(--color-border);
  border-radius: var(--h5-radius-small);
  padding: 12px;
  background: var(--color-card-bg);
  box-shadow: var(--h5-shadow-card);
  min-width: 0;
}

.package-card {
  display: grid;
  gap: 10px;
}

.package-card-main {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-width: 0;
}

.package-card-copy,
.bill-card-copy,
.delivery-method-card > div:first-child {
  min-width: 0;
}

.package-card h3,
.bill-card h3 {
  margin: 0;
  font-size: 15px;
  color: var(--color-title);
  line-height: 1.28;
  word-break: keep-all;
  overflow-wrap: normal;
}

.package-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.package-meta span {
  border-radius: 999px;
  border: 1px solid rgba(221, 229, 240, 0.76);
  background: var(--color-surface-soft);
  color: var(--color-text);
  padding: 4px 8px;
  font-size: 11px;
}

.package-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-muted);
  gap: 10px;
}

.package-actions span {
  font-size: 12px;
  min-width: 0;
  line-height: 1.35;
}

.package-select-box {
  width: 20px;
  height: 20px;
  accent-color: #0f4fb8;
  margin-top: 2px;
  flex: 0 0 auto;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 5px 9px;
  border: 1px solid transparent;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.status-badge.neutral { background: var(--status-neutral-bg); color: var(--status-neutral-text); border-color: rgba(221, 229, 240, 0.72); }
.status-badge.info { background: var(--status-transit-bg); color: var(--status-transit-text); border-color: rgba(47, 107, 255, 0.1); }
.status-badge.purple { background: #f1e8ff; color: #6d28d9; }
.status-badge.warning { background: var(--status-pending-bg); color: var(--status-pending-text); border-color: var(--color-orange-border); }
.status-badge.indigo { background: #e7e9ff; color: #4338ca; }
.status-badge.success { background: #dcfce7; color: #15803d; }
.status-badge.danger { background: #fee2e2; color: #b42318; }

.detail-status-card {
  padding: 14px;
  margin-bottom: 12px;
}

.detail-status-card span {
  display: inline-block;
  border-radius: 999px;
  padding: 5px 9px;
  background: #fff3d6;
  color: #a16207;
  font-size: 12px;
  font-weight: 700;
}

.detail-status-card strong {
  display: block;
  margin-top: 10px;
  color: #172033;
}

.detail-status-card p {
  margin: 6px 0 0;
  color: #64748b;
}

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

.info-row {
  display: grid;
  gap: 4px;
  border-radius: 11px;
  background: #f8fbff;
  padding: 10px;
}

.info-row span {
  color: #7b8794;
  font-size: 11px;
}

.info-row strong {
  color: #172033;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.mobile-timeline {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.mobile-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
}

.timeline-node {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #93a4ba;
  margin-top: 5px;
}

.mobile-timeline li.latest .timeline-node {
  background: #0f4fb8;
  box-shadow: 0 0 0 5px rgba(15, 79, 184, 0.12);
}

.mobile-timeline time {
  color: #64748b;
  font-size: 12px;
}

.mobile-timeline h3 {
  margin: 3px 0;
  font-size: 14px;
}

.timeline-latest-label {
  display: inline-flex;
  margin-left: 8px;
  border-radius: 999px;
  padding: 2px 7px;
  background: #e7f0ff;
  color: #0f4fb8;
  font-size: 11px;
  vertical-align: middle;
}

.mobile-timeline p,
.mobile-timeline small {
  margin: 0;
  color: #64748b;
  line-height: 1.5;
}

.price-summary {
  display: grid;
  gap: 10px;
}

.price-row,
.price-total {
  border-top: 1px solid #edf2fa;
  padding-top: 10px;
}

.price-total strong {
  color: #f59e0b;
  font-size: 20px;
}

.delivery-method-list {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.delivery-method-card {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  text-align: left;
  border: 1px solid #d9e5f5;
  border-radius: 14px;
  background: #fff;
  padding: 14px;
}

.delivery-method-card.selected {
  border-color: #0f4fb8;
  box-shadow: 0 0 0 3px rgba(15, 79, 184, 0.12);
}

.delivery-method-card h3,
.delivery-method-card p {
  margin: 0;
}

.delivery-method-card p {
  margin-top: 5px;
  color: #64748b;
}

.delivery-method-card span {
  display: inline-block;
  border-radius: 999px;
  background: #e7f0ff;
  color: #0f4fb8;
  padding: 4px 8px;
  font-size: 11px;
}

.delivery-method-card strong {
  display: block;
  margin-top: 8px;
  color: #f59e0b;
  white-space: nowrap;
}

.bill-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  min-width: 0;
}

.bill-amount {
  display: grid;
  gap: 10px;
  justify-items: end;
  flex: 0 0 auto;
}

.bill-amount strong {
  color: #0f4fb8;
  font-size: 18px;
}

.payment-methods {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.payment-methods button {
  width: 100%;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 3px 10px;
  align-items: center;
  text-align: left;
  border: 1px solid #d9e5f5;
  border-radius: 12px;
  background: #f8fbff;
  padding: 12px;
}

.mobile-action-row > a {
  flex: 1 1 0;
}

.page-bottom-action {
  margin-bottom: 10px;
}

.mobile-mini-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0 4px;
}

.mobile-mini-actions a {
  display: grid;
  place-items: center;
  min-height: 42px;
  border: 1px solid #d9e5f5;
  border-radius: 12px;
  background: #fff;
  color: #0f4fb8;
  text-decoration: none;
  font-weight: 700;
}

.mobile-list-footer {
  margin: 12px 0 4px;
  color: #94a3b8;
  font-size: 12px;
  text-align: center;
}

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

.help-list article {
  border-radius: 12px;
  background: #f8fbff;
  padding: 12px;
}

.help-list h3,
.help-list p,
.contact-card p {
  margin: 0;
}

.help-list p,
.contact-card p {
  margin-top: 6px;
  color: #64748b;
  line-height: 1.6;
}

.profile-card {
  display: flex;
  gap: 12px;
  align-items: center;
}

.avatar-circle {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: #e7f0ff;
  color: #0f4fb8;
  font-size: 22px;
  font-weight: 900;
}

.profile-card h2,
.profile-card p {
  margin: 0;
}

.profile-card p {
  margin-top: 5px;
  color: #64748b;
  line-height: 1.5;
}

.profile-stats {
  grid-template-columns: repeat(3, 1fr);
}

.profile-stats strong {
  font-size: 15px;
}

.profile-menu {
  display: grid;
  padding: 4px 14px;
}

.profile-menu a,
.profile-menu button {
  min-height: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 0;
  border-bottom: 1px solid #edf2fa;
  background: transparent;
  color: #172033;
  text-align: left;
  text-decoration: none;
  font: inherit;
}

.profile-menu a:last-child,
.profile-menu button:last-child {
  border-bottom: 0;
}

.profile-menu b {
  color: #94a3b8;
  font-size: 18px;
}

.payment-methods button.active {
  border-color: #0f4fb8;
  background: #e7f0ff;
  box-shadow: 0 0 0 3px rgba(15, 79, 184, 0.1);
}

.payment-methods span {
  color: #64748b;
  font-size: 12px;
}

.payment-method-icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #fff;
  color: #0f4fb8;
  font-weight: 800;
}

.qr-placeholder,
.upload-placeholder {
  display: grid;
  place-items: center;
  min-height: 148px;
  border: 1px dashed #b8c8de;
  border-radius: 14px;
  background: #f8fbff;
  color: #64748b;
  text-align: center;
}

.qr-placeholder strong {
  color: #0f4fb8;
  font-size: 16px;
}

.qr-placeholder span {
  color: #64748b;
  font-size: 12px;
}

.upload-placeholder {
  gap: 6px;
  cursor: pointer;
  padding: 18px;
}

.notice-soft,
.mobile-notice {
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
  background: #eef6ff;
  color: #0f4fb8;
  line-height: 1.6;
}

.mobile-loading,
.mobile-empty,
.loading-state {
  border-radius: 14px;
  padding: 22px 16px;
  background: #fff;
  color: #64748b;
  text-align: center;
  line-height: 1.6;
}

.bottom-tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 20;
  width: min(100vw, 430px);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid #d9e5f5;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  padding: 8px 6px 10px;
}

.bottom-tabbar a {
  display: grid;
  gap: 4px;
  justify-items: center;
  color: #64748b;
  text-decoration: none;
  font-size: 11px;
}

.bottom-tabbar a.active {
  color: #0f4fb8;
}

.tab-dot {
  width: 18px;
  height: 4px;
  border-radius: 999px;
  background: transparent;
}

.bottom-tabbar a.active .tab-dot {
  background: #0f4fb8;
}

.login-h5-shell {
  display: grid;
  place-items: center;
  padding: 22px;
}

.login-card-h5 {
  width: min(100%, 393px);
  border-radius: 24px;
  background: linear-gradient(180deg, #0f4fb8 0, #0c3f93 48%, #fff 48%, #fff 100%);
  box-shadow: 0 18px 46px rgba(15, 35, 70, 0.16);
  padding: 30px 22px 22px;
  color: #fff;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 800;
}

.login-card-h5 h1 {
  margin: 18px 0 4px;
}

.login-subtitle,
.login-copy {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.login-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 22px 0 34px;
}

.login-feature-grid span {
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.13);
  text-align: center;
}

.login-card-h5 .mobile-field,
.login-card-h5 .mobile-primary-button,
.login-card-h5 .mobile-secondary-button,
.login-card-h5 .login-actions,
.login-card-h5 .micro-copy {
  color: #172033;
}

.login-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 16px;
}

.login-auth-error {
  display: grid;
  gap: 8px;
  text-align: left;
}

.login-auth-error strong {
  color: #8f2f2f;
  font-size: 13px;
}

.login-auth-error span {
  color: #8f4a4a;
  font-size: 12px;
  line-height: 1.45;
}

.success-panel {
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 34px 20px;
  margin-top: 34px;
}

.success-mark {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #dcfce7;
  position: relative;
}

.success-mark::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 14px;
  width: 15px;
  height: 24px;
  border: solid #15803d;
  border-width: 0 4px 4px 0;
  transform: rotate(45deg);
}

@media (min-width: 700px) {
  .mobile-page-shell {
    background: #dbeafe;
  }

  .mobile-screen {
    box-shadow: 0 0 0 1px rgba(15, 79, 184, 0.08), 0 22px 70px rgba(15, 35, 70, 0.18);
  }
}

/* H5 trial visual closure */
.mobile-page-shell,
.mobile-screen {
  max-width: 100%;
}

.mobile-screen {
  padding: 16px 14px 34px;
  background: linear-gradient(180deg, #0f4fb8 0, #0f4fb8 154px, #f3f6fb 154px, #f3f6fb 100%);
  overflow-x: hidden;
}

.mobile-header.home-hero h1 {
  font-size: 25px;
}

.mobile-header.home-hero p {
  max-width: 270px;
}

.mobile-card,
.mobile-search-card,
.ready-alert,
.route-card,
.detail-status-card,
.success-panel {
  border-radius: 16px;
  border-color: rgba(15, 79, 184, 0.09);
  box-shadow: 0 10px 26px rgba(15, 35, 70, 0.07);
}

.elevated-card {
  box-shadow: 0 14px 34px rgba(15, 35, 70, 0.1);
}

.logistics-flow-card {
  align-items: stretch;
  grid-template-columns: 50px minmax(0, 1fr) 50px;
  gap: 6px;
}

.route-flow span {
  display: grid;
  place-items: center;
  min-height: 26px;
  min-width: 0;
  border-radius: 999px;
  background: #f4f8ff;
  color: #214f86;
  font-size: 10px;
}

.mobile-search-row input,
.mobile-field input,
.mobile-field textarea,
.mobile-field select,
select {
  min-height: 44px;
  border-radius: 12px;
}

.service-entry {
  min-height: 74px;
  grid-template-columns: 28px minmax(0, 1fr) 8px;
  gap: 4px 6px;
  padding: 10px 8px;
}

.service-icon {
  width: 28px;
  height: 28px;
}

.service-entry strong {
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
  word-break: keep-all;
}

.service-entry small {
  display: block;
  max-width: 100%;
  font-size: 11px;
  line-height: 1.25;
  white-space: nowrap;
  word-break: keep-all;
}

.stats-grid a {
  min-height: 64px;
}

.package-card,
.bill-card {
  border-color: #e7edf6;
  box-shadow: 0 8px 20px rgba(15, 35, 70, 0.04);
}

.package-card h3,
.bill-card h3 {
  line-height: 1.35;
}

.package-sub {
  margin: 6px 0 0;
}

.package-actions a,
.bill-amount a {
  border-radius: 999px;
  padding: 7px 11px;
  background: #e7f0ff;
  color: #0f4fb8;
}

.bill-amount a.pay-link {
  background: #fff3d6;
  color: #a16207;
}

.status-badge {
  flex: 0 0 auto;
}

.detail-status-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}

.detail-status-card.info span,
.detail-status-card.indigo span {
  background: #e7f0ff;
  color: #0f4fb8;
}

.detail-status-card.warning span {
  background: #fff3d6;
  color: #a16207;
}

.mobile-timeline {
  position: relative;
}

.mobile-timeline li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 18px;
  bottom: -14px;
  width: 2px;
  background: #e4ebf5;
}

.mobile-timeline li.latest h3 {
  color: #0f4fb8;
}

.delivery-method-card {
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.delivery-method-card.selected {
  background: #f7fbff;
  transform: translateY(-1px);
}

.delivery-method-card.selected span {
  background: #0f4fb8;
  color: #fff;
}

.package-select-box {
  border-radius: 6px;
  cursor: pointer;
}

.success-panel.delivery-success-panel {
  margin-top: 16px;
}

.success-summary {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0 4px;
}

.success-summary span {
  display: grid;
  gap: 5px;
  border-radius: 12px;
  background: #f7faff;
  color: #64748b;
  padding: 10px 4px;
  font-size: 11px;
}

.success-summary strong {
  color: #172033;
  font-size: 13px;
}

.payment-methods button {
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.formal-qr {
  margin-top: 12px;
  min-height: 164px;
  border-style: solid;
  background:
    linear-gradient(135deg, rgba(15, 79, 184, 0.08), rgba(245, 158, 11, 0.08)),
    #f8fbff;
}

.formal-qr small {
  color: #94a3b8;
}

.copy-action-bar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  border-radius: 12px;
  background: #f7faff;
  padding: 10px;
}

.copy-action-bar span {
  color: #475569;
  font-size: 12px;
}

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

.rule-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border: 1px solid #e7edf6;
  border-radius: 16px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 8px 20px rgba(15, 35, 70, 0.04);
}

.rule-card h3,
.rule-card p {
  margin: 0;
}

.rule-card p {
  margin-top: 6px;
  color: #64748b;
  line-height: 1.55;
}

.rule-card b {
  color: #94a3b8;
  font-size: 22px;
}

.hero-profile {
  background: linear-gradient(135deg, #fff 0%, #f5f9ff 100%);
}

.vip-chip {
  display: inline-flex;
  margin-top: 8px;
  border-radius: 999px;
  padding: 4px 8px;
  background: #fff3d6;
  color: #a16207;
  font-size: 12px;
  font-weight: 800;
}

.list-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid #edf2fa;
  color: #172033;
  text-decoration: none;
}

.list-row:last-child {
  border-bottom: 0;
}

.list-row-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: #e7f0ff;
  color: #0f4fb8;
  font-weight: 900;
}

.list-row strong,
.list-row small,
.profile-menu button strong,
.profile-menu button small {
  display: block;
}

.list-row small,
.profile-menu button small {
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
}

.copy-actions-card {
  display: grid;
  gap: 10px;
}

.notice-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.notice-list p {
  margin: 0;
  border-radius: 12px;
  background: #f8fbff;
  color: #475569;
  padding: 10px;
  line-height: 1.5;
}

.radio-grid {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.radio-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  border: 1px solid #d9e5f5;
  border-radius: 13px;
  background: #f8fbff;
  padding: 11px;
}

.radio-card.selected,
.radio-card:has(input:checked) {
  border-color: #0f4fb8;
  background: #eef6ff;
}

.radio-card input {
  width: 18px;
  height: 18px;
  accent-color: #0f4fb8;
}

.radio-card strong,
.radio-card small {
  display: block;
}

.radio-card small {
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
}

.toggle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0;
}

.toggle-grid label {
  border-radius: 12px;
  background: #f7faff;
  padding: 11px;
  color: #475569;
}

.toggle-grid input {
  margin-right: 6px;
  accent-color: #0f4fb8;
}

.compact-upload {
  min-height: 118px;
}

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

.estimate-result-card {
  margin-top: 12px;
}

.calculator-total {
  margin-top: 12px;
}

.sticky-actions {
  margin-bottom: 10px;
}

@media (max-width: 374px) {
  .mobile-screen {
    padding-left: 12px;
    padding-right: 12px;
  }

  .service-entry {
    grid-template-columns: 30px minmax(0, 1fr) 10px;
    padding: 10px 8px;
  }

  .service-entry strong {
    font-size: 13px;
  }

  .stats-grid {
    gap: 6px;
  }
}

/* H5 home app-quality pass */
.mobile-screen {
  padding: 0 14px 108px;
  background: var(--color-page-bg);
}

.page-hero {
  margin: 0 -14px 0;
  min-height: 248px;
  padding: 12px 16px 44px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.16), transparent 28%),
    linear-gradient(155deg, var(--color-primary-dark) 0%, var(--color-primary) 58%, #3b7cff 100%);
  border-bottom-left-radius: 28px;
  border-bottom-right-radius: 28px;
  box-shadow: 0 18px 36px rgba(30, 91, 255, 0.2);
}

.mock-status-bar,
.page-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mock-status-bar {
  min-height: 24px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  font-weight: 700;
}

.page-hero-top {
  margin-top: 12px;
  gap: 14px;
}

.page-hero h1 {
  margin: 4px 0 0;
  color: #fff;
  font-size: 25px;
  line-height: 1.16;
  letter-spacing: 0;
}

.page-hero.compact-hero {
  min-height: 156px;
  margin-bottom: 12px;
  padding-bottom: 26px;
}

.page-hero.compact-hero .page-hero-top {
  align-items: flex-start;
}

.page-hero.compact-hero h1 {
  font-size: 23px;
}

.page-hero.compact-hero p:not(.mobile-eyebrow) {
  max-width: 280px;
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}

.hero-bell {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--h5-radius-button);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.hero-bell .ui-icon {
  width: 19px;
  height: 19px;
}

.hero-bell span {
  position: absolute;
  right: 1px;
  top: 1px;
  min-width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--color-orange);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

.route-pill {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 70px;
  gap: 10px;
  align-items: center;
  margin-top: 20px;
  border-radius: 22px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.route-city {
  display: grid;
  justify-items: center;
  gap: 5px;
}

.route-city strong {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  color: var(--color-primary);
  font-size: 14px;
}

.route-city span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
}

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

.route-line i {
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.route-line em {
  font-style: normal;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.hero-subline {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
}

.mobile-search-card {
  position: relative;
  z-index: 2;
  margin-top: -28px;
  border: 0;
  border-radius: var(--h5-radius-card);
  box-shadow: var(--h5-shadow-float);
}

.segmented-control {
  width: max-content;
  border-radius: 999px;
  background: var(--color-primary-soft);
  padding: 4px;
}

.segmented-control button {
  min-height: 34px;
  border: 0;
  background: transparent;
  padding: 0 14px;
}

.segmented-control .active {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 8px 18px rgba(30, 91, 255, 0.2);
}

.search-card-row {
  grid-template-columns: minmax(0, 1fr) 62px;
}

.search-input-wrap {
  min-width: 0;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  min-height: 46px;
  border: 1px solid var(--color-border);
  border-radius: var(--h5-radius-button);
  background: var(--color-primary-light);
  padding: 0 11px;
}

.search-input-wrap span {
  color: var(--color-muted);
  font-size: 18px;
}

.search-input-wrap input {
  min-height: 42px;
  border: 0;
  background: transparent;
  padding: 0;
}

.search-input-wrap input:focus {
  outline: none;
}

.app-ready-alert {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  border: 1px solid var(--color-orange-border);
  border-radius: var(--h5-radius-card);
  background: linear-gradient(135deg, #fff9ef, var(--color-orange-soft));
  box-shadow: 0 10px 22px rgba(255, 159, 10, 0.1);
}

.ready-alert-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-orange);
  color: #fff;
  font-weight: 900;
}

.app-ready-alert strong {
  font-size: 15px;
}

.app-ready-alert p {
  font-size: 12px;
  line-height: 1.45;
}

.app-service-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.app-service-tile {
  min-height: 112px;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-content: center;
  gap: 7px;
  border: 1px solid var(--color-border);
  border-radius: var(--h5-radius-small);
  background: linear-gradient(180deg, var(--color-card-bg), var(--color-primary-light));
  box-shadow: var(--h5-shadow-card);
  text-align: center;
  padding: 14px 8px;
}

.app-service-tile .service-icon {
  grid-row: auto;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-size: 15px;
}

.app-service-tile .service-icon .ui-icon {
  width: 21px;
  height: 21px;
}

.app-service-tile strong,
.app-service-tile small {
  grid-column: auto;
}

.app-service-tile strong {
  color: var(--color-title);
  font-size: 14px;
}

.app-service-tile small {
  color: var(--color-muted);
  font-size: 11px;
  line-height: 1.3;
  white-space: nowrap;
}

.app-service-tile b {
  display: none;
}

.stats-grid a.is-info {
  background: var(--status-transit-bg);
}

.stats-grid a.is-warning {
  background: var(--status-pending-bg);
}

.stats-grid a.has-value {
  background: var(--color-primary-soft);
}

.package-title-left {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.category-chip {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 7px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-size: 11px;
  font-weight: 800;
}

.package-card {
  border-radius: var(--h5-radius-small);
  padding: 13px;
}

.package-actions a.package-action-warning {
  background: var(--color-orange);
  color: #fff;
  box-shadow: 0 7px 16px rgba(255, 159, 10, 0.18);
}

.package-actions a.package-action-info {
  background: var(--color-primary-soft);
  color: var(--color-primary);
  border: 1px solid rgba(30, 91, 255, 0.12);
}

.bottom-tabbar {
  border-top-color: var(--color-border);
  background: rgba(255, 255, 255, 0.96);
  padding: 7px 8px 9px;
  box-shadow: 0 -10px 26px rgba(15, 35, 70, 0.07);
  backdrop-filter: blur(14px);
}

.bottom-tabbar a {
  gap: 3px;
}

.tab-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 22px;
  border-radius: 10px;
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 900;
}

.tab-icon .ui-icon {
  width: 18px;
  height: 18px;
}

.bottom-tabbar a.active .tab-icon {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.ui-icon {
  width: 1em;
  height: 1em;
  display: block;
}

.upload-placeholder .ui-icon {
  width: 28px;
  height: 28px;
  color: #1557c8;
}

/* H5 final visual consistency pass */
.mobile-screen {
  padding-bottom: 68px;
}

.mobile-page-shell {
  padding-bottom: 0;
}

.page-bottom-action,
.sticky-actions {
  margin-bottom: 6px;
}

/* H5 home information hierarchy pass */
.page-hero.home-compact-hero {
  min-height: 130px;
  padding: 14px 16px 21px;
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
}

.home-compact-hero .page-hero-top {
  margin-top: 0;
  align-items: flex-start;
}

.home-compact-hero .mobile-eyebrow {
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
}

.home-compact-hero h1 {
  margin-top: 0;
  font-size: 23px;
}

.home-compact-hero .page-hero-top p:not(.mobile-eyebrow) {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
}

.home-compact-hero .hero-bell {
  width: 38px;
  height: 38px;
  margin-top: 2px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.home-compact-hero .compact-route {
  grid-template-columns: 70px minmax(0, 1fr) 70px;
  gap: 6px;
  margin-top: 7px;
  padding: 3px 8px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
}

.home-compact-hero .compact-route .route-city {
  gap: 5px;
  font-size: 10px;
}

.home-compact-hero .compact-route .route-city strong {
  width: 24px;
  height: 24px;
  font-size: 12px;
}

.home-compact-hero .compact-route .route-line {
  gap: 5px;
  font-size: 9.5px;
}

.home-compact-hero .compact-route .route-line em {
  padding: 2px 7px;
  background: rgba(255, 255, 255, 0.11);
  font-weight: 750;
}

.home-compact-hero .compact-route .route-line i {
  height: 1px;
  opacity: 0.42;
}

.home-compact-hero .hero-subline {
  display: none;
}

.home-compact-hero + .mobile-search-card {
  margin-top: -12px;
  margin-bottom: 10px;
}

.mobile-search-card {
  border-color: rgba(221, 229, 240, 0.88);
  box-shadow: var(--h5-shadow-float);
}

.segmented-control {
  background: var(--color-surface-soft);
}

.segmented-control button {
  color: var(--color-muted);
}

.segmented-control button.active {
  background: var(--color-card-bg);
  color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(30, 60, 114, 0.08);
}

.search-input-wrap {
  border-color: rgba(221, 229, 240, 0.9);
  background: var(--color-surface-soft);
}

.search-input-wrap input::placeholder {
  color: var(--color-placeholder);
}

.home .search-notice {
  margin-bottom: 10px;
}

.home .app-ready-alert {
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 9px;
  min-height: 68px;
  padding: 11px 12px;
  margin-bottom: 10px;
  box-shadow: var(--h5-shadow-card);
}

.home .app-ready-alert strong {
  font-size: 15px;
  line-height: 1.2;
}

.home .app-ready-alert p {
  margin-top: 3px;
  font-size: 11.5px;
}

.home .app-ready-alert .ready-alert-button {
  padding: 8px 10px;
  white-space: nowrap;
}

.home-alert-delivery.app-ready-alert,
.home-alert-pending.app-ready-alert {
  border-color: var(--color-orange-border);
  background: linear-gradient(135deg, var(--color-orange-soft), #fffaf2);
}

.home-alert-delivery .ready-alert-icon,
.home-alert-pending .ready-alert-icon {
  background: var(--color-orange);
}

.home-alert-delivery .ready-alert-cta,
.home-alert-pending .ready-alert-cta {
  background: var(--color-orange);
  color: #fff;
}

.home-status-card {
  margin-bottom: 10px;
}

.home-status-card .stats-grid {
  margin-top: 10px;
  gap: 6px;
}

.home-status-card .stats-grid a {
  min-height: 54px;
  padding: 7px 2px;
  border-color: rgba(221, 229, 240, 0.72);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, var(--color-surface-soft));
}

.home-status-card .stats-grid strong {
  font-size: 18px;
  color: var(--color-primary);
}

.home-status-card .stats-grid span {
  font-size: 10px;
  line-height: 1.15;
  white-space: nowrap;
  color: var(--color-muted);
}

.recent-packages-card {
  margin-bottom: 10px;
}

.recent-packages-card .card-list {
  gap: 9px;
}

.recent-packages-card .package-card.compact {
  padding: 10px;
  gap: 5px;
  border-radius: var(--h5-radius-small);
  box-shadow: var(--h5-shadow-card);
  border-color: rgba(221, 229, 240, 0.82);
}

.recent-packages-card .package-card.compact .package-meta {
  margin-top: 5px;
  gap: 4px;
}

.recent-packages-card .package-card.compact .package-meta span {
  padding: 3px 6px;
}

.recent-packages-card .package-card.compact .package-actions {
  gap: 8px;
  margin-top: 1px;
}

.recent-packages-card .package-card.compact .package-actions span {
  font-size: 11.5px;
  color: var(--color-muted);
}

.recent-packages-card .package-card.compact .package-actions a {
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 900;
}

.compact-service-section {
  padding: 11px 12px;
  margin-bottom: 8px;
  border-radius: var(--h5-radius-card);
  box-shadow: var(--h5-shadow-card);
}

.compact-service-section .mobile-card-head {
  margin-bottom: 8px;
}

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

.compact-service-tile {
  min-height: 66px;
  padding: 7px 4px 6px;
  border-radius: 14px;
  gap: 4px;
  border: 1px solid rgba(221, 229, 240, 0.78);
  background: linear-gradient(180deg, #fff, #f9fbff);
  box-shadow: 0 5px 14px rgba(30, 60, 114, 0.04);
}

.compact-service-tile .service-icon {
  width: 28px;
  height: 28px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  box-shadow: inset 0 0 0 1px rgba(30, 91, 255, 0.08);
}

.compact-service-tile .service-icon .ui-icon {
  width: 16px;
  height: 16px;
}

.compact-service-tile strong {
  max-width: 100%;
  font-size: 11.5px;
  line-height: 1.15;
  white-space: nowrap;
  color: var(--color-title);
}

.compact-service-tile .service-tag {
  display: none;
  align-items: center;
  justify-content: center;
  margin-top: -2px;
  border-radius: 999px;
  padding: 1px 5px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-style: normal;
  font-size: 9.5px;
  font-weight: 900;
  line-height: 1.2;
}

.compact-service-tile small {
  display: block;
  max-width: 100%;
  color: var(--color-muted);
  font-size: 9.5px;
  line-height: 1.1;
  white-space: nowrap;
}

.compact-service-tile b {
  display: none;
}

.home-footer-note {
  display: grid;
  gap: 3px;
  margin: 0 0 6px;
  padding: 8px 10px;
  border: 1px solid rgba(221, 229, 240, 0.72);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.56);
  color: var(--color-muted);
  font-size: 11.5px;
  line-height: 1.4;
}

.home-footer-note strong {
  color: var(--color-title);
  font-size: 12px;
}

.home-status-empty-note {
  margin: 8px 0 0;
  padding: 7px 9px;
  border-radius: 12px;
  background: var(--color-primary-light);
  color: var(--color-muted);
  font-size: 11.5px;
  line-height: 1.45;
}

.new-member-start-card {
  padding: 10px 12px;
  margin-bottom: 10px;
}

.new-member-start-card .mobile-card-head {
  margin-bottom: 8px;
}

.compact-start-steps {
  margin-top: 0;
}

.new-first-order-card {
  background: linear-gradient(180deg, var(--color-card-bg), var(--color-primary-light));
  border-color: rgba(221, 229, 240, 0.86);
  box-shadow: var(--h5-shadow-card);
}

.new-first-order-card .mobile-card-head {
  margin-bottom: 6px;
}

.first-order-copy {
  margin: 0 0 6px;
  color: var(--color-text);
  font-size: 12px;
  line-height: 1.34;
}

.first-order-steps {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 0;
}

.first-order-steps span,
.first-order-steps span:nth-child(3) {
  grid-column: auto;
}

.first-order-steps span {
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 40px;
  gap: 3px;
  padding: 6px 4px;
  text-align: center;
  font-size: 11px;
  border: 1px solid rgba(221, 229, 240, 0.72);
  background: rgba(255, 255, 255, 0.72);
  color: var(--color-text);
}

.first-order-steps b {
  background: var(--color-primary);
  box-shadow: 0 5px 12px rgba(30, 91, 255, 0.16);
}

.new-first-order-card .starter-actions {
  gap: 8px;
  margin-top: 7px;
}

.new-first-order-card .starter-actions .mobile-primary-button,
.new-first-order-card .starter-actions .mobile-secondary-button {
  min-height: 36px;
  border-radius: 13px;
}

/* H5 stateful home: new member guidance */
.starter-card {
  position: relative;
  z-index: 2;
  margin-top: -18px;
  padding: 12px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.starter-head span {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 8px;
  background: #e8f1ff;
  color: #1557c8;
  font-size: 11px;
  font-weight: 800;
}

.starter-head h2 {
  margin: 7px 0 4px;
  font-size: 17px;
}

.starter-head p,
.home-empty-packages p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

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

.starter-steps span:nth-child(3) {
  grid-column: 1 / -1;
}

.starter-steps span {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  border-radius: 12px;
  background: var(--color-surface-soft);
  color: var(--color-text);
  padding: 6px;
  font-size: 11.5px;
  line-height: 1.25;
}

.starter-steps b {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 11px;
}

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

.starter-actions .mobile-primary-button,
.starter-actions .mobile-secondary-button {
  min-height: 38px;
  padding: 10px 12px;
  font-size: 13px;
}

.warehouse-quick-card {
  padding: 12px;
  margin-bottom: 10px;
}

.warehouse-quick-card .mobile-card-head {
  margin-bottom: 6px;
}

.warehouse-brief {
  display: grid;
  gap: 5px;
  margin-top: 8px;
}

.warehouse-brief span {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 8px;
  color: #64748b;
  font-size: 11.5px;
  line-height: 1.35;
}

.warehouse-brief strong {
  min-width: 0;
  color: #172033;
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.inline-copy-code {
  margin-left: 6px;
  border: 0;
  border-radius: 999px;
  background: #e8f1ff;
  color: #1557c8;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 800;
  vertical-align: 1px;
}

.customer-code-warning {
  margin-top: 9px;
  padding: 8px 9px;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 11.5px;
  line-height: 1.45;
}

.customer-code-warning strong {
  color: #c2410c;
}

.copy-mini-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 10px;
}

.copy-mini-actions button {
  min-height: 36px;
  border: 0;
  border-radius: 12px;
  background: #e8f1ff;
  color: #1557c8;
  font-weight: 800;
}

.warehouse-identity-card {
  display: grid;
  gap: 7px;
  padding: 12px;
}

.warehouse-identity-card span {
  display: block;
  color: #64748b;
  font-size: 11.5px;
  font-weight: 700;
}

.warehouse-identity-card strong {
  display: block;
  margin-top: 2px;
  color: #172033;
  font-size: 15px;
}

.warehouse-identity-card p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

.warehouse-identity-card b {
  color: #1557c8;
}

.transport-switch-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px;
}

.transport-switch-card > span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.transport-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: #edf4ff;
}

.transport-toggle a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 32px;
  border-radius: 999px;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.transport-toggle a.active {
  background: #1557c8;
  color: #fff;
  box-shadow: 0 8px 18px rgba(21, 87, 200, 0.2);
}

.new-member-services {
  margin-bottom: 10px;
}

.new-member-services .mobile-card-head {
  margin-bottom: 6px;
}

.new-member-quick-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.optional-prealert-card,
.optional-prealert-notice {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: #f8fbff;
}

.optional-prealert-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.optional-prealert-card strong,
.optional-prealert-notice strong {
  color: #172033;
  font-size: 12.5px;
}

.optional-prealert-card p,
.optional-prealert-notice p {
  margin: 3px 0 0;
  color: #64748b;
  font-size: 11.5px;
  line-height: 1.45;
}

.optional-prealert-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border-radius: 999px;
  padding: 0 12px;
  background: #e8f1ff;
  color: #1557c8;
  font-size: 12px;
  font-weight: 900;
}

.home-empty-packages {
  padding: 12px;
}

.home-empty-packages .starter-actions {
  grid-template-columns: 1fr 1fr;
}

.home-rules-card {
  display: grid;
  gap: 5px;
  margin-bottom: 10px;
  padding: 11px 12px;
  border: 1px solid #ffd89d;
  border-radius: 14px;
  background: #fff8eb;
  color: #805400;
  font-size: 11.5px;
  line-height: 1.5;
}

.home-rules-card strong {
  color: #9a5b00;
  font-size: 12px;
}

.home-empty-packages h2 {
  margin: 0 0 6px;
  font-size: 17px;
}

.home-alert-new .ready-alert-icon {
  background: var(--color-primary);
}

.home-alert-new.app-ready-alert {
  border-color: #cbdcff;
  background: linear-gradient(135deg, var(--color-primary-soft), var(--color-primary-light));
  box-shadow: 0 10px 22px rgba(30, 91, 255, 0.1);
}

.home-alert-new.app-ready-alert strong {
  color: var(--color-primary-dark);
}

.home-alert-new.app-ready-alert p {
  color: var(--color-text);
}

.home-alert-new .ready-alert-cta {
  border: 0;
  background: var(--color-primary);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
}

.new-member-search .mobile-search-card {
  padding: 10px;
  margin-bottom: 10px;
}

.new-member-search .segmented-control {
  padding: 3px;
}

.new-member-search .segmented-control button {
  min-height: 30px;
  font-size: 12px;
}

.new-member-search .search-card-row {
  gap: 8px;
}

.new-member-search .search-input-wrap,
.new-member-search .mobile-primary-button {
  min-height: 40px;
}

.new-member-search .micro-copy {
  margin-top: 6px;
  font-size: 11px;
}

.home-alert-bill .ready-alert-icon {
  background: #16a34a;
}

.new-first-order-card .first-order-steps b {
  background: var(--color-primary);
  box-shadow: 0 5px 12px rgba(30, 91, 255, 0.16);
}

.new-first-order-card .mobile-card-head a,
.compact-service-section .mobile-card-head a,
.recent-packages-card .mobile-card-head a,
.home-status-card .mobile-card-head a {
  color: var(--color-primary);
  font-weight: 850;
}

/* H5 packages and package detail visual sync */
.packages-page,
.package-detail-page {
  display: grid;
  gap: 10px;
}

.packages-hero,
.package-detail-hero {
  min-height: 154px;
  margin-bottom: 2px;
}

.packages-hero .page-hero-top,
.package-detail-hero .page-hero-top {
  align-items: flex-start;
}

.package-filter-card {
  padding: 12px;
  margin-top: -10px;
  margin-bottom: 0;
  box-shadow: var(--h5-shadow-card);
}

.package-search-row {
  align-items: center;
  gap: 8px;
}

.package-search-input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 42px;
}

.package-search-row .mobile-primary-button {
  flex: 0 0 72px;
  min-height: 42px;
  border-radius: var(--h5-radius-button);
}

.package-filter-tabs {
  display: flex;
  gap: 7px;
  margin-top: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.package-filter-tabs::-webkit-scrollbar {
  display: none;
}

.package-filter-tabs a {
  flex: 0 0 auto;
  border: 1px solid rgba(221, 229, 240, 0.92);
  border-radius: 999px;
  padding: 7px 10px;
  background: var(--color-card-bg);
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.package-filter-tabs a.active {
  border-color: rgba(30, 91, 255, 0.2);
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 7px 16px rgba(30, 91, 255, 0.14);
}

.package-list {
  gap: 10px;
  margin-top: 0;
}

.package-list .package-card {
  padding: 11px;
  border-radius: var(--h5-radius-card);
  box-shadow: var(--h5-shadow-card);
}

.package-title-row {
  align-items: flex-start;
  gap: 8px;
}

.package-title-left {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.package-title-left h3 {
  min-width: 0;
}

.category-chip {
  flex: 0 0 auto;
  border: 1px solid rgba(30, 91, 255, 0.1);
  border-radius: 999px;
  padding: 4px 7px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 10.5px;
  font-weight: 900;
  line-height: 1;
}

.package-sub {
  color: var(--color-muted);
  font-size: 12px;
}

.package-quick-actions {
  margin-top: 0;
}

.package-quick-actions a {
  border: 1px solid rgba(221, 229, 240, 0.82);
  background: var(--color-card-bg);
  color: var(--color-primary);
}

.no-more-state {
  margin: 1px 0 0;
  color: var(--color-muted);
  font-size: 11.5px;
}

.detail-hero-action {
  display: grid;
  justify-items: end;
  gap: 7px;
}

.detail-hero-action .mobile-plain-link {
  color: rgba(255, 255, 255, 0.9);
}

.package-detail-hero .status-badge {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.detail-status-card {
  display: grid;
  gap: 7px;
  padding: 13px 14px;
  margin-bottom: 0;
  border-radius: var(--h5-radius-card);
  box-shadow: var(--h5-shadow-card);
}

.detail-status-card span {
  width: fit-content;
  min-height: 24px;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.detail-status-card strong {
  margin-top: 0;
  color: var(--color-title);
  font-size: 16px;
}

.detail-status-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 12px;
  line-height: 1.45;
}

.detail-status-card.warning {
  border-color: var(--color-orange-border);
  background: linear-gradient(135deg, #fff, var(--color-orange-soft));
}

.detail-status-card.info,
.detail-status-card.indigo {
  border-color: rgba(30, 91, 255, 0.13);
  background: linear-gradient(135deg, #fff, var(--color-primary-light));
}

.info-grid {
  gap: 8px;
}

.info-row {
  border: 1px solid rgba(221, 229, 240, 0.75);
  border-radius: 14px;
  background: var(--color-surface-soft);
  padding: 9px 10px;
}

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

.info-row strong {
  margin-top: 3px;
  color: var(--color-title);
  font-size: 13px;
  line-height: 1.25;
}

.detail-timeline-card {
  padding: 13px 14px;
}

.mobile-timeline {
  gap: 12px;
  margin-top: 10px;
}

.mobile-timeline li {
  grid-template-columns: 20px 1fr;
  gap: 9px;
}

.timeline-node {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border: 2px solid var(--color-card-bg);
  background: var(--color-border);
  box-shadow: 0 0 0 3px var(--color-surface-soft);
}

.mobile-timeline li.latest .timeline-node {
  background: var(--color-primary);
  box-shadow: 0 0 0 5px rgba(30, 91, 255, 0.12);
}

.mobile-timeline li:not(:last-child)::before {
  left: 5px;
  background: rgba(221, 229, 240, 0.9);
}

.mobile-timeline time {
  color: var(--color-muted);
  font-size: 11.5px;
}

.mobile-timeline h3 {
  color: var(--color-title);
  font-size: 14px;
  line-height: 1.3;
}

.mobile-timeline li.latest h3 {
  color: var(--color-primary);
}

.mobile-timeline p,
.mobile-timeline small {
  color: var(--color-muted);
  font-size: 12px;
}

.price-summary {
  box-shadow: var(--h5-shadow-card);
}

.price-row,
.price-total {
  border-radius: 14px;
}

.sticky-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.sticky-actions .mobile-primary-button,
.sticky-actions .mobile-secondary-button {
  min-height: 42px;
}

/* H5 commercial polish pass: unified visual tokens and surface quality */
:root {
  --brand-blue: #2364f4;
  --brand-blue-deep: #1647c7;
  --brand-blue-soft: #edf4ff;
  --brand-blue-pale: #f7faff;
  --page-bg: #edf3fb;
  --section-bg: #f6f9fe;
  --card-bg: #ffffff;
  --text-primary: #13223a;
  --text-secondary: #4f5f74;
  --text-tertiary: #8491a5;
  --border-light: #e1e9f4;
  --border-strong: #cad7e8;
  --shadow-card-soft: 0 8px 24px rgba(35, 70, 125, 0.055);
  --shadow-card-lift: 0 14px 34px rgba(35, 70, 125, 0.11);
  --radius-hero: 26px;
  --radius-card-lg: 20px;
  --radius-card-md: 16px;
  --radius-control: 14px;
  --radius-pill: 999px;
  --color-primary: var(--brand-blue);
  --color-primary-dark: var(--brand-blue-deep);
  --color-primary-soft: var(--brand-blue-soft);
  --color-primary-light: var(--brand-blue-pale);
  --color-page-bg: var(--page-bg);
  --color-card-bg: var(--card-bg);
  --color-surface-soft: var(--section-bg);
  --color-border: var(--border-light);
  --color-title: var(--text-primary);
  --color-text: var(--text-secondary);
  --color-muted: var(--text-tertiary);
  --h5-shadow-card: var(--shadow-card-soft);
  --h5-shadow-float: var(--shadow-card-lift);
  --h5-radius-card: var(--radius-card-lg);
  --h5-radius-small: var(--radius-card-md);
  --h5-radius-button: var(--radius-control);
}

.mobile-page-shell,
.login-h5-shell {
  background:
    radial-gradient(circle at 50% -120px, rgba(35, 100, 244, 0.16), transparent 330px),
    var(--color-page-bg);
}

.mobile-screen {
  background:
    linear-gradient(180deg, rgba(35, 100, 244, 0.04), transparent 210px),
    var(--color-page-bg);
}

.mobile-card,
.mobile-search-card,
.ready-alert,
.route-card,
.detail-status-card,
.success-panel,
.package-card,
.bill-card {
  border-color: rgba(225, 233, 244, 0.92);
  border-radius: var(--h5-radius-card);
  background: var(--color-card-bg);
  box-shadow: var(--h5-shadow-card);
}

.mobile-card-head h2,
.mobile-card h2 {
  color: var(--color-title);
  font-weight: 850;
  letter-spacing: 0;
}

.mobile-card-head p,
.micro-copy,
.package-sub {
  color: var(--color-muted);
}

.mobile-primary-button,
.mobile-secondary-button,
.ready-alert-cta,
.package-actions a,
.bill-amount a {
  border-radius: var(--h5-radius-button);
  font-weight: 880;
  letter-spacing: 0;
}

.mobile-primary-button {
  background: linear-gradient(180deg, var(--color-primary), var(--color-primary-dark));
  box-shadow: 0 8px 18px rgba(35, 100, 244, 0.18);
}

.mobile-secondary-button {
  border: 1px solid rgba(35, 100, 244, 0.13);
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.mobile-warning-button,
.package-actions a.package-action-warning {
  background: linear-gradient(180deg, var(--color-orange), var(--color-orange-dark));
  box-shadow: 0 8px 18px rgba(255, 159, 10, 0.18);
}

.page-hero {
  background:
    radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.18), transparent 150px),
    linear-gradient(150deg, #113caa 0%, var(--color-primary-dark) 44%, var(--color-primary) 100%);
  border-bottom-left-radius: var(--radius-hero);
  border-bottom-right-radius: var(--radius-hero);
}

.page-hero h1 {
  font-weight: 900;
  letter-spacing: 0;
}

.page-hero .mobile-eyebrow {
  font-weight: 760;
  letter-spacing: 0;
}

.home-compact-hero .compact-route {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.065);
  box-shadow: none;
}

.home-compact-hero .compact-route .route-city strong {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.home-compact-hero .compact-route .route-line em {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

.mobile-search-card,
.package-filter-card {
  border-color: rgba(225, 233, 244, 0.96);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 34px rgba(35, 70, 125, 0.11);
}

.segmented-control {
  border: 1px solid rgba(225, 233, 244, 0.88);
  background: #f3f7fd;
}

.segmented-control button {
  color: var(--color-muted);
  font-weight: 820;
}

.segmented-control button.active {
  color: var(--color-primary);
  background: #fff;
  box-shadow: 0 5px 14px rgba(35, 70, 125, 0.08);
}

.search-input-wrap {
  border: 1px solid rgba(225, 233, 244, 0.95);
  background: var(--color-surface-soft);
}

.search-input-wrap .ui-icon {
  color: var(--color-muted);
}

.status-badge,
.category-chip {
  min-height: 23px;
  border-radius: var(--radius-pill);
  font-weight: 870;
}

.category-chip {
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-color: rgba(35, 100, 244, 0.12);
}

.home .app-ready-alert {
  border-radius: var(--h5-radius-card);
}

.home-alert-pending.app-ready-alert {
  border-color: rgba(255, 159, 10, 0.28);
  background: linear-gradient(135deg, #fffaf2, var(--color-orange-soft));
}

.home-alert-pending .ready-alert-icon {
  background: var(--color-orange);
  box-shadow: 0 8px 18px rgba(255, 159, 10, 0.2);
}

.home-alert-pending .ready-alert-cta {
  background: linear-gradient(180deg, var(--color-orange), var(--color-orange-dark));
  box-shadow: 0 8px 18px rgba(255, 159, 10, 0.16);
}

.home-status-card .stats-grid a {
  border-color: rgba(225, 233, 244, 0.92);
  background: linear-gradient(180deg, #fff, #f8fbff);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.home-status-card .stats-grid a.is-info {
  border-color: rgba(35, 100, 244, 0.14);
  background: linear-gradient(180deg, #f7fbff, var(--status-transit-bg));
}

.home-status-card .stats-grid a.is-warning {
  border-color: rgba(255, 159, 10, 0.22);
  background: linear-gradient(180deg, #fffaf2, var(--status-pending-bg));
}

.home-status-card .stats-grid strong {
  color: var(--color-title);
  font-weight: 920;
}

.home-status-card .stats-grid a.is-info strong {
  color: var(--status-transit-text);
}

.home-status-card .stats-grid a.is-warning strong {
  color: var(--status-pending-text);
}

.package-card,
.package-list .package-card,
.recent-packages-card .package-card.compact {
  border-color: rgba(225, 233, 244, 0.92);
  background: linear-gradient(180deg, #fff, #fbfdff);
  box-shadow: var(--h5-shadow-card);
}

.package-card h3,
.bill-card h3 {
  color: var(--color-title);
  font-weight: 900;
}

.package-meta span {
  border-color: rgba(225, 233, 244, 0.88);
  background: #f7f9fd;
  color: var(--color-text);
}

.package-actions span {
  color: var(--color-muted);
}

.package-actions a.package-action-info {
  border-color: rgba(35, 100, 244, 0.13);
  background: var(--color-primary-light);
}

.compact-service-section {
  background: rgba(255, 255, 255, 0.96);
}

.compact-service-tile {
  border-color: rgba(225, 233, 244, 0.9);
  background: linear-gradient(180deg, #fff, #f9fbff);
  box-shadow: 0 6px 18px rgba(35, 70, 125, 0.045);
}

.compact-service-tile .service-icon {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.compact-service-tile strong {
  color: var(--color-title);
  font-weight: 880;
}

.compact-service-tile small {
  color: var(--color-muted);
}

.home-footer-note {
  border-color: rgba(225, 233, 244, 0.82);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: none;
}

.new-first-order-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(35, 100, 244, 0.08), transparent 150px),
    linear-gradient(180deg, #fff, var(--color-primary-light));
}

.first-order-steps span {
  border-color: rgba(225, 233, 244, 0.9);
  background: rgba(255, 255, 255, 0.78);
}

.first-order-steps b {
  background: linear-gradient(180deg, var(--color-primary), var(--color-primary-dark));
}

.packages-hero,
.package-detail-hero {
  border-bottom-left-radius: var(--radius-hero);
  border-bottom-right-radius: var(--radius-hero);
}

.package-filter-tabs a {
  border-color: rgba(225, 233, 244, 0.95);
  background: #fff;
}

.package-filter-tabs a.active {
  background: linear-gradient(180deg, var(--color-primary), var(--color-primary-dark));
  box-shadow: 0 8px 18px rgba(35, 100, 244, 0.14);
}

.detail-status-card,
.detail-timeline-card,
.price-summary {
  border-color: rgba(225, 233, 244, 0.92);
  box-shadow: var(--h5-shadow-card);
}

.detail-status-card.warning {
  border-color: rgba(255, 159, 10, 0.25);
}

.info-row {
  border-color: rgba(225, 233, 244, 0.86);
  background: #f8fbff;
}

.timeline-node {
  box-shadow: 0 0 0 3px #f3f7fd;
}

.mobile-timeline li.latest .timeline-node {
  background: var(--color-primary);
  box-shadow: 0 0 0 5px rgba(35, 100, 244, 0.12);
}

.price-row,
.price-total {
  background: #f8fbff;
}

.bottom-tabbar {
  border-top-color: rgba(225, 233, 244, 0.95);
  box-shadow: 0 -10px 28px rgba(35, 70, 125, 0.07);
}

.bottom-tabbar a.active {
  color: var(--color-primary);
}

.bottom-tabbar a.active .tab-icon {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

/* H5 final micro-polish: lighter, more premium surfaces without structure changes */
:root {
  --brand-blue: #2161e8;
  --brand-blue-deep: #153fae;
  --brand-blue-soft: #eef5ff;
  --brand-blue-pale: #f7faff;
  --page-bg: #eef4fb;
  --section-bg: #f7faff;
  --text-primary: #12213a;
  --text-secondary: #506176;
  --text-tertiary: #8493a8;
  --border-light: #e3ebf5;
  --border-strong: #cbd8e9;
  --shadow-card-soft: 0 7px 22px rgba(32, 67, 121, 0.048);
  --shadow-card-lift: 0 12px 30px rgba(32, 67, 121, 0.09);
}

.page-hero {
  background:
    radial-gradient(circle at 86% 0%, rgba(255, 255, 255, 0.16), transparent 138px),
    linear-gradient(152deg, #123f9e 0%, var(--color-primary-dark) 48%, var(--color-primary) 100%);
}

.page-hero.home-compact-hero {
  min-height: 128px;
  padding: 13px 16px 20px;
}

.home-compact-hero h1 {
  font-size: 22.5px;
  line-height: 1.12;
}

.home-compact-hero .mobile-eyebrow {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 700;
}

.home-compact-hero .page-hero-top p:not(.mobile-eyebrow) {
  color: rgba(255, 255, 255, 0.78);
}

.home-compact-hero .compact-route {
  gap: 5px;
  margin-top: 7px;
  padding: 2px 8px;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.055);
}

.home-compact-hero .compact-route .route-city {
  gap: 4px;
}

.home-compact-hero .compact-route .route-city strong {
  width: 23px;
  height: 23px;
  font-size: 11.5px;
}

.home-compact-hero .compact-route .route-line {
  gap: 4px;
}

.home-compact-hero .compact-route .route-line em {
  padding: 2px 6px;
  font-size: 9.5px;
  background: rgba(255, 255, 255, 0.085);
}

.home-compact-hero .compact-route .route-line i {
  opacity: 0.3;
}

.home-compact-hero + .mobile-search-card {
  margin-top: -9px;
}

.mobile-search-card,
.package-filter-card {
  padding: 11px;
  box-shadow: var(--h5-shadow-float);
}

.segmented-control {
  padding: 3px;
}

.segmented-control button {
  min-height: 30px;
  font-size: 12px;
}

.search-card-row,
.package-search-row {
  gap: 8px;
}

.search-input-wrap,
.mobile-search-row .mobile-primary-button {
  min-height: 40px;
}

.search-input-wrap {
  padding-inline: 10px;
}

.mobile-primary-button,
.mobile-secondary-button {
  min-height: 40px;
}

.home .app-ready-alert {
  min-height: 66px;
  padding: 10px 11px;
  box-shadow: var(--h5-shadow-card);
}

.home .app-ready-alert .ready-alert-icon {
  width: 30px;
  height: 30px;
  font-weight: 850;
}

.home .app-ready-alert strong {
  font-size: 14.5px;
}

.home .app-ready-alert p {
  color: var(--color-text);
}

.home .app-ready-alert .ready-alert-button,
.home .app-ready-alert .ready-alert-cta {
  min-height: 32px;
  border-radius: 12px;
}

.home-status-card {
  padding: 12px;
}

.home-status-card .stats-grid {
  gap: 7px;
}

.home-status-card .stats-grid a {
  min-height: 52px;
  border-radius: 15px;
}

.home-status-card .stats-grid strong {
  font-size: 18.5px;
}

.home-status-card .stats-grid span {
  color: var(--color-muted);
}

.recent-packages-card,
.compact-service-section {
  padding: 12px;
}

.recent-packages-card .package-card.compact,
.package-list .package-card {
  padding: 10px;
  border-radius: var(--h5-radius-card);
}

.package-title-left {
  gap: 6px;
}

.package-card h3,
.bill-card h3 {
  font-size: 15.2px;
}

.package-sub {
  margin-top: 5px;
  font-size: 11.8px;
}

.package-meta {
  margin-top: 7px;
  gap: 5px;
}

.package-meta span {
  padding: 3px 7px;
  font-size: 10.8px;
}

.package-actions {
  gap: 8px;
}

.package-actions span {
  font-size: 11.5px;
}

.package-actions a {
  min-height: 31px;
  padding: 6px 10px;
}

.compact-service-grid {
  gap: 7px;
}

.compact-service-tile {
  min-height: 64px;
  padding: 7px 4px 6px;
  border-radius: 15px;
  box-shadow: 0 5px 16px rgba(32, 67, 121, 0.04);
}

.compact-service-tile .service-icon {
  width: 27px;
  height: 27px;
}

.compact-service-tile .service-icon .ui-icon {
  width: 15.5px;
  height: 15.5px;
}

.compact-service-tile strong {
  font-size: 11.3px;
}

.compact-service-tile small {
  font-size: 9.4px;
}

.home-footer-note {
  padding: 8px 10px;
  margin-bottom: 4px;
  background: rgba(255, 255, 255, 0.54);
  color: var(--color-muted);
}

.home-footer-note strong {
  font-size: 11.8px;
}

.home-footer-note span {
  font-size: 11.3px;
}

.new-member-start-card {
  padding: 10px 11px;
}

.new-first-order-card .mobile-card-head {
  margin-bottom: 5px;
}

.first-order-copy {
  margin-bottom: 6px;
  line-height: 1.32;
}

.first-order-steps {
  gap: 7px;
}

.first-order-steps span {
  min-height: 38px;
  border-radius: 14px;
}

.first-order-steps b {
  width: 18px;
  height: 18px;
  font-size: 10.5px;
}

.new-first-order-card .starter-actions {
  margin-top: 7px;
}

.new-first-order-card .starter-actions .mobile-primary-button,
.new-first-order-card .starter-actions .mobile-secondary-button {
  min-height: 35px;
}

.home-status-empty-note {
  padding: 7px 9px;
  font-size: 11.3px;
}

.packages-hero,
.package-detail-hero {
  min-height: 150px;
}

.package-filter-card {
  margin-top: -8px;
  padding: 11px;
}

.package-filter-tabs {
  gap: 6px;
  margin-top: 9px;
}

.package-filter-tabs a {
  padding: 6px 10px;
  font-size: 11.8px;
}

.no-more-state {
  margin-top: 0;
  opacity: 0.78;
}

.detail-status-card {
  padding: 12px 13px;
}

.detail-status-card strong {
  font-size: 15.5px;
}

.info-row {
  padding: 8px 9px;
  border-radius: 13px;
}

.detail-timeline-card {
  padding: 12px 13px;
}

.mobile-timeline {
  gap: 11px;
}

.mobile-timeline h3 {
  margin: 2px 0;
}

.price-summary {
  gap: 9px;
}

.price-row,
.price-total {
  padding: 10px 11px;
}

.mobile-screen {
  padding-bottom: 66px;
}

@media (max-width: 380px) {
  .page-hero.home-compact-hero {
    min-height: 136px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .home-compact-hero h1 {
    font-size: 22px;
  }

  .home-compact-hero .compact-route {
    grid-template-columns: 62px minmax(0, 1fr) 62px;
  }

  .home .app-ready-alert {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .home .app-ready-alert .ready-alert-button {
    grid-column: 2;
    justify-self: start;
    margin-top: 4px;
  }
}

/* H5 home structure pass: fix hero overlap, prioritize new-member first action, and lighten secondary layers. */
.page-hero.home-compact-hero {
  padding-bottom: 15px;
}

.home-compact-hero + .mobile-search-card,
.home-compact-hero + .new-member-start-card {
  margin-top: 8px;
}

.home-compact-hero .compact-route {
  min-height: 34px;
  padding: 6px 8px;
}

.home-compact-hero .route-node {
  gap: 2px;
}

.home-compact-hero .route-node strong {
  font-size: 12px;
}

.home-compact-hero .route-node small {
  font-size: 9.8px;
}

.home-compact-hero .route-line span {
  height: 24px;
  padding: 0 9px;
  font-size: 10.5px;
}

.new-first-order-card {
  margin-bottom: 10px;
  border-color: rgba(35, 100, 244, 0.14);
  background:
    radial-gradient(circle at 16% 8%, rgba(35, 100, 244, 0.12), transparent 38%),
    linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  box-shadow: 0 10px 26px rgba(30, 71, 140, 0.065);
}

.new-first-order-card .mobile-card-head h2 {
  letter-spacing: 0;
}

.first-order-copy {
  color: var(--color-text);
}

.first-order-steps span {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(35, 100, 244, 0.12);
}

.new-first-order-card .starter-actions .mobile-secondary-button {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(35, 100, 244, 0.14);
}

.new-member-lite-search {
  margin-bottom: 8px;
  padding: 10px 11px;
  border-color: rgba(218, 228, 241, 0.86);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
}

.new-member-lite-search .mobile-card-head {
  margin-bottom: 8px;
}

.new-member-lite-search .mobile-card-head h2 {
  font-size: 15px;
}

.new-member-lite-search .mobile-card-head p {
  font-size: 11.5px;
}

.new-member-lite-search .mobile-search-card {
  margin: 0;
  padding: 9px;
  border-radius: var(--h5-radius-small);
  border-color: rgba(221, 231, 244, 0.92);
  background: rgba(246, 249, 253, 0.84);
  box-shadow: none;
}

.new-member-lite-search .segmented-control {
  display: none;
}

.new-member-lite-search .search-row {
  gap: 7px;
}

.new-member-lite-search .search-input-wrap,
.new-member-lite-search .mobile-primary-button {
  min-height: 38px;
}

.new-member-lite-search .micro-copy {
  display: none;
}

.home-status-card {
  margin-bottom: 10px;
}

.home-status-empty-note {
  background: rgba(246, 249, 253, 0.74);
}

.compact-service-section {
  margin-bottom: 8px;
}

.compact-service-tile {
  border-color: rgba(221, 231, 244, 0.86);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 4px 14px rgba(32, 67, 121, 0.035);
}

.compact-service-tile small {
  color: var(--color-muted);
}

.home-footer-note {
  margin-top: 2px;
  margin-bottom: 0;
  border-color: rgba(221, 231, 244, 0.72);
  background: rgba(255, 255, 255, 0.48);
  box-shadow: none;
}

.app-ready-alert {
  box-shadow: 0 8px 22px rgba(218, 122, 0, 0.07);
}

.recent-packages-card .package-card.compact,
.package-list .package-card {
  box-shadow: 0 7px 20px rgba(30, 71, 140, 0.045);
}

.mobile-screen {
  padding-bottom: 58px;
}

@media (max-width: 380px) {
  .page-hero.home-compact-hero {
    min-height: 140px;
  }

  .home-compact-hero + .mobile-search-card,
  .home-compact-hero + .new-member-start-card {
    margin-top: 8px;
  }

  .home-compact-hero .compact-route {
    grid-template-columns: 60px minmax(0, 1fr) 60px;
  }
}

/* H5 home final polish: keep structure, refine hierarchy and remove compressed hero/search feel. */
:root {
  --color-primary: #2063e8;
  --color-primary-dark: #1747b7;
  --color-primary-soft: #edf5ff;
  --color-primary-light: #f6f9ff;
  --color-page-bg: #eef4fb;
  --color-card-bg: #ffffff;
  --color-surface-soft: #f7faff;
  --color-border: #e1eaf5;
  --color-title: #12213a;
  --color-text: #4f6077;
  --color-muted: #8493a8;
  --color-placeholder: #a6b3c5;
  --color-orange: #ff9b0a;
  --color-orange-dark: #ed8500;
  --color-orange-soft: #fff6e8;
  --color-orange-border: #ffd9a6;
  --h5-radius-hero: 26px;
  --h5-radius-card: 18px;
  --h5-radius-small: 15px;
  --h5-radius-button: 13px;
  --h5-shadow-card: 0 7px 22px rgba(28, 62, 116, 0.048);
  --h5-shadow-float: 0 12px 32px rgba(28, 62, 116, 0.075);
}

.mobile-page-shell {
  background: var(--color-page-bg);
}

.mobile-screen {
  padding-bottom: 54px;
  background:
    linear-gradient(180deg, #edf5ff 0, #f4f7fc 170px, #f4f7fc 100%);
}

.page-hero {
  background:
    radial-gradient(circle at 86% 0%, rgba(255, 255, 255, 0.17), transparent 122px),
    linear-gradient(148deg, #123d9c 0%, var(--color-primary-dark) 46%, var(--color-primary) 100%);
  border-bottom-left-radius: var(--h5-radius-hero);
  border-bottom-right-radius: var(--h5-radius-hero);
  box-shadow: 0 15px 30px rgba(31, 84, 185, 0.145);
}

.page-hero.home-compact-hero {
  min-height: auto;
  padding: 13px 16px 17px;
}

.home-compact-hero .page-hero-top {
  gap: 12px;
}

.home-compact-hero .mobile-eyebrow {
  margin-bottom: 3px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 10.8px;
  font-weight: 650;
}

.home-compact-hero h1 {
  font-size: 22px;
  letter-spacing: 0;
}

.home-compact-hero .page-hero-top p:not(.mobile-eyebrow) {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 11.8px;
}

.home-compact-hero .hero-bell {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
}

.home-compact-hero .compact-route {
  min-height: 31px;
  margin-top: 8px;
  padding: 4px 7px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.home-compact-hero .compact-route .route-city {
  gap: 3px;
}

.home-compact-hero .compact-route .route-city strong {
  width: 22px;
  height: 22px;
  background: rgba(255, 255, 255, 0.94);
  font-size: 11px;
}

.home-compact-hero .compact-route .route-city span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 10.4px;
}

.home-compact-hero .compact-route .route-line {
  gap: 5px;
}

.home-compact-hero .compact-route .route-line i {
  height: 1px;
  opacity: 0.32;
}

.home-compact-hero .compact-route .route-line em {
  padding: 2px 7px;
  background: rgba(255, 255, 255, 0.09);
  font-size: 9.6px;
  font-weight: 720;
}

.home-compact-hero + .mobile-search-card,
.home-compact-hero + .new-member-start-card {
  margin-top: 10px;
}

.mobile-card,
.mobile-search-card,
.ready-alert,
.detail-status-card,
.success-panel {
  border-color: rgba(225, 234, 245, 0.9);
  border-radius: var(--h5-radius-card);
  box-shadow: var(--h5-shadow-card);
}

.mobile-card-head h2,
.mobile-card h2 {
  color: var(--color-title);
  font-weight: 820;
}

.mobile-card-head p,
.micro-copy,
.package-sub {
  color: var(--color-muted);
}

.mobile-search-card {
  padding: 10px;
  box-shadow: var(--h5-shadow-float);
}

.segmented-control {
  padding: 2px;
  background: #f3f7fc;
}

.segmented-control button {
  min-height: 29px;
  border-radius: 11px;
  color: var(--color-muted);
}

.segmented-control button.active {
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 5px 14px rgba(32, 99, 232, 0.08);
}

.search-input-wrap {
  min-height: 39px;
  background: #f6f9fd;
  border-color: rgba(221, 231, 244, 0.92);
}

.search-input-wrap input::placeholder {
  color: var(--color-placeholder);
}

.mobile-primary-button,
.mobile-secondary-button {
  min-height: 39px;
  border-radius: var(--h5-radius-button);
}

.mobile-primary-button {
  background: linear-gradient(180deg, var(--color-primary), #1a55d7);
  box-shadow: 0 8px 18px rgba(32, 99, 232, 0.16);
}

.mobile-secondary-button {
  color: var(--color-primary);
}

.new-first-order-card {
  padding: 12px;
  border-color: rgba(32, 99, 232, 0.16);
  background:
    radial-gradient(circle at 14% 0%, rgba(32, 99, 232, 0.13), transparent 42%),
    linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
  box-shadow: 0 13px 32px rgba(32, 76, 145, 0.078);
}

.new-first-order-card .mobile-card-head {
  margin-bottom: 6px;
}

.new-first-order-card .mobile-card-head a {
  color: var(--color-primary);
  font-size: 11.5px;
  font-weight: 760;
}

.first-order-copy {
  margin-bottom: 8px;
  color: var(--color-text);
  font-size: 12.2px;
  line-height: 1.42;
}

.first-order-steps {
  gap: 8px;
}

.first-order-steps span {
  min-height: 40px;
  border-radius: var(--h5-radius-small);
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(32, 99, 232, 0.12);
  color: var(--color-title);
}

.first-order-steps b {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.new-first-order-card .starter-actions {
  margin-top: 8px;
  gap: 8px;
}

.new-first-order-card .starter-actions .mobile-primary-button,
.new-first-order-card .starter-actions .mobile-secondary-button {
  min-height: 37px;
}

.new-first-order-card .starter-actions .mobile-secondary-button {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
}

.home .app-ready-alert {
  border-color: rgba(255, 217, 166, 0.82);
  background: linear-gradient(180deg, #fffaf2 0%, var(--color-orange-soft) 100%);
  box-shadow: 0 8px 22px rgba(224, 128, 0, 0.064);
}

.home .app-ready-alert .ready-alert-icon {
  background: rgba(255, 155, 10, 0.12);
  color: var(--color-orange-dark);
}

.home .app-ready-alert .ready-alert-button,
.home .app-ready-alert .ready-alert-cta {
  background: linear-gradient(180deg, var(--color-orange), var(--color-orange-dark));
  box-shadow: 0 7px 16px rgba(255, 155, 10, 0.16);
}

.home-status-card {
  padding: 11px;
}

.home-status-card .stats-grid {
  gap: 7px;
}

.home-status-card .stats-grid a {
  min-height: 50px;
  border-radius: var(--h5-radius-small);
  background: linear-gradient(180deg, #fff, #f8fbff);
  box-shadow: none;
}

.home-status-card .stats-grid a:not(.is-info):not(.is-warning):not(.has-value) {
  background: #f7faff;
}

.home-status-card .stats-grid strong {
  font-size: 18px;
  color: var(--color-title);
}

.home-status-card .stats-grid span {
  color: var(--color-muted);
  font-size: 10.5px;
}

.home-status-card .stats-grid a.is-info {
  background: linear-gradient(180deg, #f8fbff, var(--status-transit-bg));
}

.home-status-card .stats-grid a.is-warning {
  background: linear-gradient(180deg, #fffaf3, var(--status-pending-bg));
}

.home-status-empty-note {
  margin-top: 8px;
  padding: 7px 9px;
  border-radius: 13px;
  color: var(--color-muted);
}

.recent-packages-card,
.compact-service-section {
  padding: 11px;
}

.recent-packages-card .package-card.compact,
.package-list .package-card {
  padding: 10px;
  border-color: rgba(225, 234, 245, 0.92);
  background: linear-gradient(180deg, #fff, #fbfdff);
  box-shadow: 0 7px 20px rgba(28, 62, 116, 0.045);
}

.package-card h3,
.bill-card h3 {
  color: var(--color-title);
  font-size: 15px;
  font-weight: 830;
}

.category-chip {
  background: #eef5ff;
  color: var(--color-primary);
}

.package-meta span {
  background: #f7faff;
  border-color: rgba(225, 234, 245, 0.9);
  color: var(--color-text);
}

.package-actions span {
  color: var(--color-muted);
}

.package-actions a {
  border-radius: 12px;
  font-weight: 780;
}

.compact-service-grid {
  gap: 8px;
}

.compact-service-tile {
  min-height: 62px;
  padding: 7px 4px 6px;
  border-color: rgba(225, 234, 245, 0.88);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 4px 14px rgba(28, 62, 116, 0.032);
}

.compact-service-tile .service-icon {
  width: 27px;
  height: 27px;
  border-radius: 12px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.compact-service-tile strong {
  color: var(--color-title);
  font-weight: 780;
}

.compact-service-tile small {
  color: var(--color-muted);
  font-weight: 520;
}

.new-member-lite-search {
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.58);
  border-color: rgba(225, 234, 245, 0.74);
}

.new-member-lite-search .mobile-card-head {
  margin-bottom: 7px;
}

.new-member-lite-search .mobile-search-card {
  padding: 8px;
  background: rgba(247, 250, 255, 0.72);
}

.new-member-lite-search .search-input-wrap,
.new-member-lite-search .mobile-primary-button {
  min-height: 36px;
}

.home-footer-note {
  padding: 8px 10px;
  border-radius: var(--h5-radius-small);
  background: rgba(255, 255, 255, 0.42);
  border-color: rgba(225, 234, 245, 0.68);
  box-shadow: none;
}

.home-footer-note strong {
  color: var(--color-title);
  font-weight: 760;
}

.home-footer-note span {
  color: var(--color-muted);
}

.packages-hero,
.package-detail-hero {
  min-height: 146px;
  box-shadow: 0 13px 28px rgba(31, 84, 185, 0.13);
}

.package-filter-card {
  margin-top: 10px;
  box-shadow: var(--h5-shadow-card);
}

.detail-status-card,
.detail-timeline-card,
.price-summary {
  box-shadow: var(--h5-shadow-card);
}

@media (max-width: 380px) {
  .page-hero.home-compact-hero {
    padding-left: 15px;
    padding-right: 15px;
  }

  .home-compact-hero .compact-route {
    grid-template-columns: 58px minmax(0, 1fr) 58px;
  }

  .home-compact-hero .compact-route .route-city span {
    font-size: 10px;
  }

  .first-order-copy {
    font-size: 12px;
  }

  .new-first-order-card .starter-actions {
    gap: 7px;
  }
}

/* H5 home closing polish: premium rhythm, same structure and business logic. */
:root {
  --color-primary: #1f5fe5;
  --color-primary-dark: #153f9f;
  --color-primary-soft: #eef5ff;
  --color-primary-light: #f7faff;
  --color-page-bg: #f0f5fb;
  --color-card-bg: #ffffff;
  --color-border: #e4edf7;
  --color-title: #11223d;
  --color-text: #52637a;
  --color-muted: #8796aa;
  --color-placeholder: #aab6c7;
  --color-orange: #ff9808;
  --color-orange-dark: #e98100;
  --color-orange-soft: #fff7eb;
  --color-orange-border: #ffdda9;
  --h5-radius-hero: 27px;
  --h5-radius-card: 19px;
  --h5-radius-small: 15px;
  --h5-radius-button: 13px;
  --h5-shadow-card: 0 8px 24px rgba(27, 58, 108, 0.045);
  --h5-shadow-float: 0 14px 34px rgba(27, 58, 108, 0.075);
}

.mobile-screen {
  padding-bottom: 52px;
  background:
    linear-gradient(180deg, #eef5ff 0, #f4f7fc 154px, #f4f7fc 100%);
}

.page-hero.home-compact-hero {
  padding: 12px 16px 16px;
  border-bottom-left-radius: var(--h5-radius-hero);
  border-bottom-right-radius: var(--h5-radius-hero);
  background:
    linear-gradient(146deg, #123b95 0%, var(--color-primary-dark) 45%, var(--color-primary) 100%);
  box-shadow: 0 13px 26px rgba(31, 85, 185, 0.13);
}

.home-compact-hero .mobile-eyebrow {
  color: rgba(255, 255, 255, 0.62);
  font-size: 10.6px;
  letter-spacing: 0;
}

.home-compact-hero h1 {
  font-size: 21.8px;
  font-weight: 860;
}

.home-compact-hero .page-hero-top p:not(.mobile-eyebrow) {
  color: rgba(255, 255, 255, 0.76);
  font-size: 11.6px;
}

.home-compact-hero .hero-bell {
  width: 35px;
  height: 35px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.105);
}

.home-compact-hero .compact-route {
  min-height: 30px;
  margin-top: 7px;
  padding: 4px 7px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.052);
}

.home-compact-hero .compact-route .route-city strong {
  width: 21px;
  height: 21px;
  color: var(--color-primary-dark);
}

.home-compact-hero .compact-route .route-city span {
  font-size: 10.2px;
}

.home-compact-hero .compact-route .route-line em {
  padding: 2px 7px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.07);
}

.home-compact-hero .compact-route .route-line i {
  background: rgba(255, 255, 255, 0.62);
  opacity: 0.28;
}

.home-compact-hero + .mobile-search-card,
.home-compact-hero + .new-member-start-card {
  margin-top: 11px;
}

.mobile-card,
.mobile-search-card,
.ready-alert,
.detail-status-card,
.success-panel,
.price-summary {
  border-color: rgba(228, 237, 247, 0.92);
  box-shadow: var(--h5-shadow-card);
}

.mobile-search-card {
  padding: 9px;
  border-radius: 18px;
  box-shadow: 0 11px 28px rgba(27, 58, 108, 0.068);
}

.segmented-control {
  padding: 2px;
  border-radius: 13px;
}

.segmented-control button {
  min-height: 28px;
  font-size: 11.8px;
}

.search-card-row,
.package-search-row {
  gap: 7px;
}

.search-input-wrap,
.mobile-search-row .mobile-primary-button {
  min-height: 38px;
}

.new-first-order-card {
  position: relative;
  overflow: hidden;
  padding: 12px;
  border-color: rgba(31, 95, 229, 0.17);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.96));
  box-shadow: 0 14px 34px rgba(31, 73, 140, 0.08);
}

.new-first-order-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, rgba(31, 95, 229, 0), rgba(31, 95, 229, 0.55), rgba(31, 95, 229, 0));
  pointer-events: none;
}

.new-first-order-card .mobile-card-head h2 {
  font-size: 16.5px;
}

.first-order-copy {
  margin-bottom: 7px;
  font-size: 12px;
  line-height: 1.38;
  text-wrap: pretty;
}

.first-order-steps span {
  min-height: 38px;
  gap: 6px;
  color: var(--color-title);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.first-order-steps b {
  width: 18px;
  height: 18px;
  font-size: 10px;
}

.new-first-order-card .starter-actions .mobile-primary-button {
  box-shadow: 0 9px 20px rgba(31, 95, 229, 0.18);
}

.new-first-order-card .starter-actions .mobile-secondary-button {
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.7);
}

.home .app-ready-alert {
  min-height: 64px;
  border-color: rgba(255, 221, 169, 0.82);
  background: linear-gradient(180deg, #fffaf4 0%, #fff5e8 100%);
  box-shadow: 0 8px 22px rgba(225, 128, 0, 0.058);
}

.home .app-ready-alert strong {
  color: #5d3700;
}

.home .app-ready-alert p {
  color: #7a5a2e;
}

.home-status-card {
  padding: 10px;
}

.home-status-card .stats-grid {
  gap: 6px;
}

.home-status-card .stats-grid a {
  min-height: 49px;
  border-radius: 14px;
  border-color: rgba(228, 237, 247, 0.86);
}

.home-status-card .stats-grid strong {
  font-size: 18.2px;
  letter-spacing: -0.01em;
}

.home-status-card .stats-grid span {
  font-size: 10.4px;
}

.home-status-card .stats-grid a.is-info,
.home-status-card .stats-grid a.is-warning {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.recent-packages-card .mobile-card-head,
.compact-service-section .mobile-card-head,
.home-status-card .mobile-card-head {
  margin-bottom: 8px;
}

.recent-packages-card .package-card.compact,
.package-list .package-card {
  padding: 9px 10px;
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(27, 58, 108, 0.043);
}

.package-title-row {
  align-items: flex-start;
}

.package-title-left {
  row-gap: 5px;
}

.package-card h3 {
  line-height: 1.22;
}

.category-chip,
.status-badge {
  border-radius: 999px;
}

.package-sub {
  margin-top: 4px;
}

.package-meta {
  margin-top: 6px;
}

.package-actions {
  margin-top: 8px;
}

.package-actions a {
  min-height: 30px;
  padding: 6px 10px;
}

.package-actions a.package-action-warning {
  box-shadow: 0 7px 16px rgba(255, 152, 8, 0.16);
}

.package-actions a.package-action-info {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.compact-service-section {
  padding: 10px;
}

.compact-service-tile {
  min-height: 61px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 4px 14px rgba(27, 58, 108, 0.026);
}

.compact-service-tile .service-icon {
  width: 26px;
  height: 26px;
}

.compact-service-tile strong {
  font-size: 11.2px;
}

.compact-service-tile small {
  font-size: 9.2px;
}

.new-member-lite-search {
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.46);
}

.new-member-lite-search .mobile-card-head h2 {
  font-size: 14.8px;
}

.new-member-lite-search .mobile-card-head p {
  font-size: 11.2px;
}

.new-member-lite-search .mobile-search-card {
  padding: 7px;
}

.new-member-lite-search .search-input-wrap,
.new-member-lite-search .mobile-primary-button {
  min-height: 35px;
}

.home-footer-note {
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.38);
}

.home-footer-note strong {
  font-size: 11.5px;
}

.home-footer-note span {
  font-size: 11px;
}

.package-filter-card {
  padding: 10px;
  border-radius: 18px;
}

.package-filter-tabs a {
  border-radius: 999px;
}

.detail-status-card {
  border-radius: 18px;
}

.detail-timeline-card,
.price-summary {
  border-radius: 18px;
}

@media (max-width: 380px) {
  .home-compact-hero h1 {
    font-size: 21.2px;
  }

  .home-compact-hero .compact-route {
    grid-template-columns: 56px minmax(0, 1fr) 56px;
    gap: 4px;
  }

  .home-compact-hero .compact-route .route-line em {
    padding-inline: 6px;
    font-size: 9.2px;
  }

  .compact-service-tile {
    min-height: 60px;
  }
}

/* H5 home final closing pass: tighter bottom rhythm and clearer premium task hierarchy. */
.mobile-screen {
  padding-bottom: 48px;
}

.page-hero.home-compact-hero {
  padding-bottom: 15px;
}

.home-compact-hero .compact-route {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.075);
}

.home-compact-hero .compact-route .route-city strong {
  background: #ffffff;
  color: #1747b7;
  box-shadow: 0 2px 8px rgba(10, 31, 80, 0.08);
}

.home-compact-hero .compact-route .route-city span {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 650;
}

.home-compact-hero .compact-route .route-line i {
  opacity: 0.46;
}

.home-compact-hero .compact-route .route-line em {
  color: rgba(255, 255, 255, 0.94);
  background: rgba(255, 255, 255, 0.115);
}

.new-first-order-card {
  background:
    radial-gradient(circle at 13% 0%, rgba(31, 95, 229, 0.16), transparent 42%),
    linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
  box-shadow: 0 15px 34px rgba(31, 73, 140, 0.088);
}

.new-first-order-card .mobile-card-head h2 {
  color: #0f2a58;
}

.first-order-steps span {
  min-height: 37px;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
}

.new-first-order-card .mobile-primary-button {
  background: linear-gradient(180deg, #2468f0, #1b56d9);
}

.new-first-order-card .mobile-secondary-button {
  border-color: rgba(31, 95, 229, 0.12);
}

.recent-packages-card .package-card.compact,
.package-list .package-card {
  min-height: 118px;
  border-color: rgba(225, 234, 245, 0.96);
  box-shadow: 0 8px 22px rgba(27, 58, 108, 0.048);
}

.package-title-row {
  gap: 8px;
}

.package-title-left {
  min-width: 0;
}

.package-title-left h3 {
  min-width: 0;
}

.category-chip,
.status-badge {
  padding: 3px 7px;
  font-size: 10.6px;
  line-height: 1.15;
}

.package-sub {
  color: var(--color-text);
}

.package-meta {
  row-gap: 5px;
}

.package-actions {
  align-items: center;
}

.package-actions span {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
}

.package-actions a {
  min-width: 70px;
  text-align: center;
}

.compact-service-grid {
  align-items: stretch;
}

.compact-service-tile {
  min-height: 63px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 3px;
}

.compact-service-tile .service-icon {
  margin-bottom: 1px;
  box-shadow: inset 0 0 0 1px rgba(31, 95, 229, 0.07);
}

.compact-service-tile strong,
.compact-service-tile small {
  width: 100%;
  text-align: center;
  white-space: nowrap;
}

.home-footer-note {
  margin-bottom: -2px;
  padding: 7px 9px;
}

.home-footer-note span {
  line-height: 1.45;
}

@media (max-width: 380px) {
  .mobile-screen {
    padding-bottom: 46px;
  }

  .recent-packages-card .package-card.compact,
  .package-list .package-card {
    min-height: 116px;
  }

  .package-actions a {
    min-width: 66px;
    padding-left: 8px;
    padding-right: 8px;
  }
}

/* H5 home sign-off pass: content rhythm, crisp route, refined cards. */
.mobile-screen {
  min-height: auto;
  padding-bottom: 44px;
}

.page-hero.home-compact-hero {
  padding-top: 11px;
  padding-bottom: 14px;
  box-shadow: 0 12px 25px rgba(31, 85, 185, 0.12);
}

.home-compact-hero .compact-route {
  min-height: 29px;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.085);
}

.home-compact-hero .compact-route .route-city strong {
  width: 22px;
  height: 22px;
  color: #1544aa;
}

.home-compact-hero .compact-route .route-line i {
  opacity: 0.54;
}

.home-compact-hero .compact-route .route-line em {
  padding: 2px 8px;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.13);
}

.mobile-search-card {
  padding: 8px;
  border-radius: 17px;
}

.segmented-control button {
  min-height: 27px;
}

.search-input-wrap,
.mobile-search-row .mobile-primary-button {
  min-height: 37px;
}

.new-first-order-card {
  border-color: rgba(31, 95, 229, 0.2);
  background:
    radial-gradient(circle at 11% 0%, rgba(31, 95, 229, 0.18), transparent 40%),
    linear-gradient(180deg, #ffffff 0%, #f2f7ff 100%);
  box-shadow: 0 15px 34px rgba(31, 73, 140, 0.095);
}

.new-first-order-card .mobile-card-head {
  margin-bottom: 5px;
}

.first-order-copy {
  margin-bottom: 7px;
  color: #435872;
  font-size: 11.9px;
  line-height: 1.36;
}

.first-order-steps {
  gap: 7px;
}

.first-order-steps span {
  min-height: 36px;
  padding: 6px 8px;
}

.new-first-order-card .starter-actions {
  margin-top: 7px;
}

.new-first-order-card .starter-actions .mobile-primary-button,
.new-first-order-card .starter-actions .mobile-secondary-button {
  min-height: 36px;
}

.home-status-card .stats-grid a {
  min-height: 48px;
  background: linear-gradient(180deg, #fff, #f8fbff);
}

.home-status-card .stats-grid a:not(.is-info):not(.is-warning):not(.has-value) {
  color: var(--color-muted);
  background: #f8fbff;
}

.home-status-card .stats-grid a:not(.is-info):not(.is-warning):not(.has-value) strong {
  color: #6f7f92;
}

.recent-packages-card .package-card.compact,
.package-list .package-card {
  min-height: 116px;
  padding: 9px 10px;
  border-radius: 18px;
}

.package-title-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.package-title-left h3 {
  font-size: 15px;
}

.category-chip,
.status-badge {
  min-height: 20px;
  display: inline-flex;
  align-items: center;
}

.package-meta {
  gap: 5px;
}

.package-meta span {
  padding: 3px 7px;
}

.package-actions a {
  min-height: 29px;
  min-width: 72px;
}

.compact-service-grid {
  gap: 7px;
}

.compact-service-tile {
  min-height: 62px;
  padding: 7px 4px 6px;
  border-color: rgba(228, 237, 247, 0.92);
}

.compact-service-tile .service-icon {
  width: 26px;
  height: 26px;
}

.compact-service-tile small {
  color: #8a98aa;
}

.new-member-lite-search {
  margin-bottom: 7px;
}

.new-member-lite-search .mobile-card-head p {
  color: var(--color-muted);
}

.home-footer-note {
  margin-top: 0;
  margin-bottom: -4px;
}

@media (max-width: 380px) {
  .mobile-screen {
    padding-bottom: 42px;
  }

  .home-compact-hero .compact-route {
    grid-template-columns: 57px minmax(0, 1fr) 57px;
  }

  .first-order-copy {
    font-size: 11.7px;
  }

  .package-actions a {
    min-width: 68px;
  }
}

/* H5 home final text and space polish */
.mobile-screen {
  padding-bottom: 46px;
}

.page-hero.home-compact-hero {
  padding-top: 10px;
  padding-bottom: 13px;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 255, 255, 0.16), transparent 28%),
    linear-gradient(142deg, #255ff0 0%, var(--color-primary) 48%, #1844bc 100%);
}

.home-compact-hero .mobile-brand {
  opacity: 0.84;
  letter-spacing: 0.01em;
}

.home-compact-hero h1 {
  font-size: 21.5px;
  line-height: 1.16;
}

.home-compact-hero .hero-subtitle {
  opacity: 0.86;
}

.home-compact-hero .compact-route {
  min-height: 27px;
  margin-top: 6px;
  padding: 5px 8px;
  border-color: rgba(255, 255, 255, 0.20);
  background: rgba(255, 255, 255, 0.095);
}

.home-compact-hero .compact-route .route-city strong {
  width: 21px;
  height: 21px;
}

.home-compact-hero .compact-route .route-line i {
  height: 1px;
  opacity: 0.7;
}

.home-compact-hero .compact-route .route-line em {
  min-height: 20px;
  padding: 1px 9px;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.14);
  font-weight: 700;
}

.mobile-search-card {
  box-shadow: var(--shadow-card-soft);
}

.segmented-control {
  padding: 2px;
}

.mobile-search-row {
  gap: 7px;
  margin-top: 7px;
}

.search-input-wrap {
  padding-inline: 10px;
}

.search-input-wrap input::placeholder {
  color: var(--color-placeholder);
}

.app-ready-alert {
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 62px;
  padding: 9px 10px;
  gap: 9px;
}

.ready-alert-icon {
  width: 28px;
  height: 28px;
}

.ready-alert strong {
  font-size: 14.3px;
}

.ready-alert p {
  font-size: 11.6px;
  line-height: 1.35;
}

.ready-alert-cta {
  min-height: 30px;
  padding-inline: 10px;
  border-radius: 12px;
  font-size: 11.2px;
}

.home-status-card .stats-grid a {
  min-height: 47px;
  padding: 7px 4px;
}

.home-status-card .stats-grid strong {
  font-size: 17.8px;
}

.home-status-card .stats-grid span {
  font-size: 10px;
}

.recent-packages-card .package-card.compact,
.package-list .package-card {
  min-height: 114px;
  border-color: rgba(215, 225, 239, 0.92);
  box-shadow: var(--shadow-card-soft);
}

.package-title-row {
  gap: 6px;
}

.package-title-left h3 {
  letter-spacing: 0;
}

.package-meta span {
  font-size: 10.6px;
  line-height: 1.35;
}

.package-actions a {
  min-height: 28px;
  padding-inline: 10px;
  border-radius: 11px;
  font-weight: 800;
}

.home-quick-services .compact-service-tile {
  min-height: 60px;
  padding: 7px 5px;
  border-color: rgba(219, 228, 242, 0.95);
  box-shadow: 0 5px 14px rgba(30, 72, 145, 0.045);
}

.compact-service-tile .service-icon {
  width: 25px;
  height: 25px;
  border-radius: 11px;
}

.compact-service-tile .service-icon svg {
  width: 14px;
  height: 14px;
}

.compact-service-tile strong {
  font-size: 11.1px;
  line-height: 1.1;
}

.compact-service-tile small {
  margin-top: 3px;
  color: var(--color-muted);
  font-size: 9.2px;
}

.new-first-order-card {
  padding: 11px;
  background:
    radial-gradient(circle at 12% 0%, rgba(31, 95, 229, 0.15), transparent 38%),
    linear-gradient(145deg, rgba(245, 249, 255, 0.98), rgba(255, 255, 255, 0.98));
  border-color: rgba(194, 212, 246, 0.92);
}

.new-first-order-card .mobile-card-head {
  margin-bottom: 5px;
}

.first-order-copy {
  margin: 0 0 8px;
  color: var(--color-text);
  font-size: 11.7px;
  line-height: 1.45;
}

.first-order-steps {
  gap: 7px;
  margin-bottom: 8px;
}

.first-order-steps span {
  min-height: 42px;
  padding: 7px 8px;
  border-radius: 14px;
}

.starter-actions {
  gap: 7px;
}

.new-member-lite-search {
  padding: 8px 9px;
  box-shadow: var(--shadow-card-soft);
}

.new-member-lite-search .mobile-card-head {
  margin-bottom: 6px;
}

.new-member-lite-search .mobile-card-title p {
  margin-top: 1px;
  font-size: 11.2px;
}

.home-footer-note {
  margin-top: 8px;
  padding: 6px 9px;
  border-color: rgba(218, 226, 239, 0.72);
  background: rgba(255, 255, 255, 0.60);
  box-shadow: none;
}

.home-footer-note strong {
  font-size: 11.3px;
}

.home-footer-note span {
  font-size: 10.6px;
  line-height: 1.35;
}

@media (max-width: 380px) {
  .mobile-screen {
    padding-bottom: 44px;
  }

  .home-compact-hero h1 {
    font-size: 20.5px;
  }

  .home-compact-hero .compact-route {
    grid-template-columns: 57px minmax(0, 1fr) 57px;
    padding-inline: 7px;
  }

  .home-compact-hero .compact-route .route-line em {
    padding-inline: 7px;
  }

  .app-ready-alert {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .app-ready-alert .ready-alert-cta {
    grid-column: 2;
    width: fit-content;
    margin-top: 2px;
  }

  .package-actions a {
    padding-inline: 9px;
  }
}

/* H5 homepage closing polish: lighter hero, tighter rhythm, mature cards. */
.page-hero.home-compact-hero {
  padding-top: 8px;
  padding-bottom: 11px;
  border-bottom-left-radius: 22px;
  border-bottom-right-radius: 22px;
  box-shadow: 0 10px 22px rgba(25, 74, 165, 0.105);
}

.home-compact-hero .mobile-brand {
  margin-bottom: 4px;
  font-size: 10.5px;
}

.home-compact-hero h1 {
  font-size: 20.8px;
  letter-spacing: 0;
}

.home-compact-hero .hero-subtitle {
  margin-top: 3px;
  font-size: 11.2px;
}

.home-compact-hero .compact-route {
  min-height: 25px;
  margin-top: 5px;
  padding: 4px 8px;
  border-radius: 14px;
}

.home-compact-hero .compact-route .route-city strong {
  width: 20px;
  height: 20px;
  font-size: 10px;
}

.home-compact-hero .compact-route .route-city span {
  font-size: 10px;
}

.home-compact-hero .compact-route .route-line em {
  min-height: 18px;
  padding: 0 8px;
  font-size: 10px;
}

.mobile-search-card {
  padding: 7px;
}

.segmented-control button {
  min-height: 25px;
  font-size: 11.4px;
}

.search-input-wrap,
.mobile-search-row .mobile-primary-button {
  min-height: 35px;
}

.mobile-search-help {
  margin-top: 5px;
  color: var(--color-muted);
  font-size: 10.5px;
}

.app-ready-alert {
  min-height: 60px;
  padding: 8px 10px;
  border-color: rgba(255, 204, 133, 0.68);
  background: linear-gradient(180deg, #fff9ef, #fff4e3);
}

.ready-alert-icon {
  width: 26px;
  height: 26px;
  font-size: 12px;
}

.ready-alert strong {
  font-size: 14px;
}

.ready-alert p {
  margin-top: 2px;
  color: #8b5a17;
}

.ready-alert-cta {
  min-height: 29px;
  box-shadow: 0 6px 12px rgba(255, 143, 0, 0.15);
}

.home-status-card .stats-grid {
  gap: 6px;
}

.home-status-card .stats-grid a {
  min-height: 45px;
  border-radius: 14px;
}

.home-status-card .stats-grid strong {
  font-size: 17.2px;
}

.recent-packages-card .package-card.compact,
.package-list .package-card {
  min-height: 110px;
  padding: 8px 10px;
}

.package-title-left h3 {
  font-size: 14.6px;
}

.category-chip,
.status-badge {
  min-height: 19px;
  padding: 2px 7px;
  font-size: 10px;
}

.package-meta span {
  padding: 2px 6px;
}

.package-actions {
  margin-top: 7px;
}

.package-actions a {
  min-height: 27px;
}

.new-first-order-card {
  position: relative;
  overflow: hidden;
  padding: 10px 11px;
  box-shadow: 0 13px 27px rgba(31, 73, 140, 0.085);
}

.new-first-order-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), rgba(30, 91, 255, 0.18));
}

.new-first-order-card .mobile-card-title h2 {
  font-size: 15.5px;
}

.first-order-copy {
  margin-bottom: 7px;
  font-size: 11.45px;
}

.first-order-steps span {
  min-height: 38px;
  background: rgba(255, 255, 255, 0.72);
}

.first-order-steps b {
  width: 19px;
  height: 19px;
  font-size: 10px;
}

.new-first-order-card .starter-actions .mobile-primary-button,
.new-first-order-card .starter-actions .mobile-secondary-button {
  min-height: 34px;
  border-radius: 12px;
}

.home-quick-services .compact-service-tile {
  min-height: 58px;
  border-radius: 15px;
}

.compact-service-tile .service-icon {
  width: 24px;
  height: 24px;
}

.compact-service-tile strong {
  font-size: 10.9px;
}

.compact-service-tile small {
  font-size: 9px;
}

.new-member-lite-search {
  padding: 7px 8px;
}

.new-member-lite-search .mobile-search-card {
  box-shadow: none;
}

.home-footer-note {
  margin-top: 7px;
  padding: 5px 9px;
}

.home-footer-note strong {
  font-size: 11px;
}

.home-footer-note span {
  font-size: 10.4px;
}

.mobile-screen {
  padding-bottom: 42px;
}

@media (max-width: 380px) {
  .page-hero.home-compact-hero {
    padding-top: 8px;
    padding-bottom: 10px;
  }

  .home-compact-hero h1 {
    font-size: 20px;
  }

  .home-compact-hero .compact-route {
    min-height: 24px;
  }

  .recent-packages-card .package-card.compact,
  .package-list .package-card {
    min-height: 108px;
  }

  .mobile-screen {
    padding-bottom: 40px;
  }
}

/* H5 home final query simplification and package rhythm. */
.single-search-card {
  padding: 9px;
}

.single-search-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}

.single-search-head strong {
  color: var(--color-title);
  font-size: 14.6px;
  font-weight: 850;
  line-height: 1.15;
  white-space: nowrap;
}

.single-search-head span {
  min-width: 0;
  color: var(--color-muted);
  font-size: 10.7px;
  line-height: 1.25;
  text-align: right;
}

.single-search-card .mobile-search-row {
  margin-top: 0;
}

.compact-search-card {
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.compact-search-card .mobile-search-row {
  gap: 6px;
}

.compact-search-card .search-input-wrap,
.compact-search-card .mobile-primary-button {
  min-height: 33px;
}

.compact-search-card .mobile-primary-button {
  padding-inline: 11px;
}

.new-member-lite-search {
  padding: 8px;
}

.new-member-lite-search .mobile-card-head {
  margin-bottom: 7px;
}

.new-member-lite-search .mobile-card-title h2 {
  font-size: 14px;
}

.new-member-lite-search .mobile-card-title p {
  font-size: 10.8px;
}

.app-ready-alert {
  min-height: 58px;
}

.home-status-card .stats-grid a.has-value.is-info {
  border-color: rgba(81, 128, 238, 0.18);
  background: linear-gradient(180deg, #f2f7ff, #eaf2ff);
}

.home-status-card .stats-grid a.has-value.is-warning {
  border-color: rgba(255, 180, 82, 0.28);
  background: linear-gradient(180deg, #fff9ef, #fff0dc);
}

.recent-packages-card .card-list {
  gap: 8px;
}

.recent-packages-card .package-card.compact,
.package-list .package-card {
  min-height: 106px;
  padding: 8px 9px;
}

.package-card-copy {
  gap: 5px;
}

.package-sub {
  margin-top: 2px;
  font-size: 11px;
}

.package-meta {
  margin-top: 3px;
}

.package-meta span {
  min-height: 20px;
  border-color: rgba(221, 230, 243, 0.88);
  background: rgba(247, 250, 254, 0.86);
}

.package-actions {
  align-items: center;
  margin-top: 6px;
}

.package-actions span {
  color: var(--color-muted);
  font-size: 10.7px;
  line-height: 1.25;
}

.package-actions a {
  min-width: 70px;
  min-height: 27px;
}

.home-quick-services .compact-service-tile {
  min-height: 56px;
}

.compact-service-tile small {
  letter-spacing: 0;
}

.home-footer-note {
  margin-top: 6px;
}

@media (max-width: 380px) {
  .single-search-head {
    display: block;
  }

  .single-search-head span {
    display: block;
    margin-top: 2px;
    text-align: left;
  }

  .recent-packages-card .package-card.compact,
  .package-list .package-card {
    min-height: 105px;
  }
}

/* H5 home sign-off: single quick query, lighter hero, final rhythm. */
.page-hero.home-compact-hero {
  padding-top: 7px;
  padding-bottom: 10px;
}

.home-compact-hero .mobile-brand {
  margin-bottom: 3px;
}

.home-compact-hero h1 {
  font-size: 20.4px;
}

.home-compact-hero .hero-subtitle {
  margin-top: 2px;
}

.home-compact-hero .compact-route {
  min-height: 23px;
  margin-top: 5px;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.078);
}

.home-compact-hero .compact-route .route-city strong {
  width: 19px;
  height: 19px;
}

.home-compact-hero .compact-route .route-line i {
  opacity: 0.58;
}

.home-compact-hero .compact-route .route-line em {
  min-height: 17px;
  padding: 0 8px;
  background: rgba(255, 255, 255, 0.11);
  font-size: 9.8px;
}

.single-search-card {
  padding: 8px;
}

.single-search-head {
  display: block;
  margin-bottom: 6px;
}

.single-search-head strong {
  display: block;
  font-size: 14.3px;
}

.single-search-head span {
  display: block;
  margin-top: 2px;
  color: var(--color-muted);
  font-size: 10.5px;
  line-height: 1.3;
  text-align: left;
}

.single-search-card .search-input-wrap,
.single-search-card .mobile-primary-button {
  min-height: 34px;
}

.single-search-card .mobile-primary-button {
  min-width: 58px;
}

.new-member-lite-search .single-search-head {
  display: none;
}

.new-member-lite-search .mobile-card-head {
  margin-bottom: 5px;
}

.new-member-lite-search .compact-search-card .search-input-wrap,
.new-member-lite-search .compact-search-card .mobile-primary-button {
  min-height: 32px;
}

.app-ready-alert {
  min-height: 56px;
  padding: 8px 9px;
}

.ready-alert-icon {
  width: 25px;
  height: 25px;
}

.ready-alert strong {
  font-size: 13.8px;
}

.ready-alert p {
  font-size: 11.3px;
}

.home-status-card .stats-grid a {
  min-height: 44px;
}

.home-status-card .stats-grid strong {
  font-size: 16.9px;
}

.recent-packages-card .package-card.compact,
.package-list .package-card {
  min-height: 104px;
  border-radius: 17px;
}

.package-title-left h3 {
  font-size: 14.4px;
}

.package-meta span {
  min-height: 19px;
  font-size: 10.4px;
}

.package-actions span {
  font-size: 10.5px;
}

.package-actions a {
  min-height: 26px;
  min-width: 68px;
  font-size: 10.9px;
}

.home-quick-services .compact-service-tile {
  min-height: 55px;
  padding: 6px 4px;
}

.compact-service-tile .service-icon {
  width: 23px;
  height: 23px;
}

.compact-service-tile strong {
  font-size: 10.7px;
}

.compact-service-tile small {
  font-size: 8.9px;
}

.new-first-order-card {
  padding: 10px;
}

.new-first-order-card .mobile-card-title h2 {
  font-size: 15.2px;
}

.first-order-copy {
  margin-bottom: 6px;
  font-size: 11.25px;
  line-height: 1.42;
}

.first-order-steps {
  margin-bottom: 7px;
}

.first-order-steps span {
  min-height: 36px;
  padding: 6px 8px;
}

.home-footer-note {
  margin-top: 5px;
  padding: 5px 8px;
}

.mobile-screen {
  padding-bottom: 38px;
}

@media (max-width: 380px) {
  .page-hero.home-compact-hero {
    padding-bottom: 9px;
  }

  .home-compact-hero h1 {
    font-size: 19.8px;
  }

  .home-compact-hero .compact-route {
    min-height: 23px;
  }

  .single-search-card .search-input-wrap,
  .single-search-card .mobile-primary-button {
    min-height: 33px;
  }

  .mobile-screen {
    padding-bottom: 38px;
  }
}

/* H5 homepage final lock: concise copy, lighter route, cleaner ending. */
.page-hero.home-compact-hero {
  padding-top: 6px;
  padding-bottom: 9px;
}

.home-compact-hero h1 {
  font-size: 20px;
}

.home-compact-hero .compact-route {
  min-height: 22px;
  margin-top: 4px;
  padding-block: 3px;
}

.home-compact-hero .compact-route .route-city strong {
  width: 18px;
  height: 18px;
  font-size: 9.5px;
}

.home-compact-hero .compact-route .route-city span {
  font-size: 9.5px;
}

.home-compact-hero .compact-route .route-line em {
  min-height: 16px;
  padding-inline: 7px;
  font-size: 9.5px;
}

.single-search-card {
  padding: 7px 8px;
}

.single-search-head {
  margin-bottom: 5px;
}

.single-search-head strong {
  font-size: 14px;
}

.single-search-head span {
  color: #8a98aa;
  font-size: 10.2px;
}

.single-search-card .search-input-wrap,
.single-search-card .mobile-primary-button {
  min-height: 33px;
}

.app-ready-alert {
  min-height: 52px;
  padding: 7px 9px;
}

.ready-alert-icon {
  width: 23px;
  height: 23px;
}

.ready-alert strong {
  font-size: 13.6px;
}

.ready-alert p {
  font-size: 11px;
}

.ready-alert-cta {
  min-height: 28px;
}

.home-status-card .stats-grid a {
  min-height: 43px;
}

.recent-packages-card .package-card.compact,
.package-list .package-card {
  min-height: 102px;
  padding: 8px;
}

.package-card-copy {
  gap: 4px;
}

.package-meta {
  gap: 4px;
}

.package-actions {
  margin-top: 5px;
}

.first-order-copy {
  font-size: 11.15px;
}

.first-order-steps span {
  min-height: 34px;
  font-size: 11.2px;
}

.first-order-steps b {
  width: 18px;
  height: 18px;
}

.home-quick-services .compact-service-tile {
  min-height: 54px;
}

.compact-service-tile small {
  color: #96a1b1;
}

.home-footer-note {
  margin-top: 4px;
  padding-block: 5px;
}

.mobile-screen {
  padding-bottom: 40px;
}

@media (max-width: 380px) {
  .page-hero.home-compact-hero {
    padding-bottom: 8px;
  }

  .home-compact-hero h1 {
    font-size: 19.5px;
  }

  .single-search-card .search-input-wrap,
  .single-search-card .mobile-primary-button {
    min-height: 32px;
  }

  .first-order-steps span {
    font-size: 10.9px;
  }
}

.warehouse-mark {
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
  font-weight: 800;
}

.first-order-copy .warehouse-mark {
  color: var(--color-primary-dark);
}

.warehouse-example-card .warehouse-mark {
  color: var(--color-primary);
}

.home-compact-hero .page-hero-top p:not(.mobile-eyebrow),
.nowrap-value {
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
}

.hero-profile small {
  display: block;
  margin-top: 3px;
  color: var(--color-muted);
  font-size: 11.5px;
  line-height: 1.35;
}

/* H5 home package ETA and first-order flow finalization. */
.new-first-order-card {
  background:
    radial-gradient(circle at 12% 0%, rgba(30, 91, 255, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(244, 248, 255, 0.98), rgba(255, 255, 255, 0.99));
}

.first-order-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 8px;
}

.first-order-steps::before {
  content: "";
  position: absolute;
  top: 16px;
  left: calc(25% + 15px);
  right: calc(25% + 15px);
  height: 1px;
  background: linear-gradient(90deg, rgba(30, 91, 255, 0.14), rgba(30, 91, 255, 0.34), rgba(30, 91, 255, 0.14));
  pointer-events: none;
}

.first-order-steps span {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px 2px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--color-text);
  font-size: 11px;
  font-weight: 720;
  text-align: center;
}

.first-order-steps b {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(30, 91, 255, 0.18);
  background: #fff;
  box-shadow: 0 4px 10px rgba(30, 91, 255, 0.1);
  color: var(--color-primary);
}

.package-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.package-title-row,
.package-meta,
.package-actions {
  min-width: 0;
}

.package-meta {
  align-items: center;
  flex-wrap: wrap;
}

.package-meta span {
  white-space: nowrap;
}

.package-actions span {
  min-width: 0;
  color: var(--color-text);
  font-weight: 720;
}

.package-actions a {
  flex: 0 0 auto;
  white-space: nowrap;
}

@media (max-width: 380px) {
  .first-order-steps {
    gap: 10px;
  }

  .first-order-steps::before {
    left: calc(25% + 12px);
    right: calc(25% + 12px);
  }

  .first-order-steps span {
    font-size: 10.7px;
  }

  .package-meta span {
    padding-inline: 5px;
    font-size: 10px;
  }
}

/* H5 core-page sync: keep inner pages aligned with finalized home system. */
.package-quick-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.package-quick-actions a {
  min-height: 52px;
  display: grid;
  gap: 3px;
  place-items: center;
  border-radius: var(--h5-radius-small);
  box-shadow: 0 5px 14px rgba(27, 58, 108, 0.032);
}

.package-quick-actions strong {
  color: var(--color-title);
  font-size: 12px;
  line-height: 1.15;
}

.package-quick-actions small {
  color: var(--color-muted);
  font-size: 10px;
  line-height: 1.15;
}

.package-meta span:last-child {
  color: var(--color-primary-dark);
  font-weight: 800;
  white-space: nowrap;
}

.package-select-box {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.card-list .package-card:has(.package-select-box:checked) {
  border-color: rgba(31, 95, 229, 0.28);
  background: linear-gradient(180deg, #fff, #f6faff);
}

/* H5 home order and interaction lock: pending-first, clickable identity/stat/package, safe bottom. */
.mobile-screen {
  padding-bottom: calc(80px + env(safe-area-inset-bottom));
}

.mobile-loading {
  margin: 12px 0;
  min-height: 94px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(225, 233, 244, 0.9);
  border-radius: var(--h5-radius-card);
  background:
    linear-gradient(90deg, rgba(255,255,255,0.88), rgba(245,248,255,0.88), rgba(255,255,255,0.88));
  color: var(--color-muted);
  font-size: 12px;
  box-shadow: var(--h5-shadow-card);
}

.hero-id-copy {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
  border: 0;
  padding: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.86);
  font: inherit;
  cursor: pointer;
}

.hero-id-copy .warehouse-mark {
  color: #fff;
  font-weight: 850;
}

.starter-flow-card {
  padding: 10px 11px;
}

.starter-flow-card .mobile-card-head {
  margin-bottom: 7px;
}

.starter-flow-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.starter-flow-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  color: var(--color-text);
  font-size: 12px;
}

.starter-flow-list b {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 11px;
}

.package-card[data-package-href] {
  cursor: pointer;
}

.package-card[data-package-href]:focus-visible {
  outline: 2px solid rgba(30, 91, 255, 0.35);
  outline-offset: 2px;
}

.home-status-card .stats-grid a {
  cursor: pointer;
}

.home-status-card .stats-grid a:not(.has-value):not(.is-info):not(.is-warning) {
  opacity: 0.72;
}

.home-status-card .stats-grid a:not(.has-value):not(.is-info):not(.is-warning):active,
.home-status-card .stats-grid a:not(.has-value):not(.is-info):not(.is-warning):focus-visible {
  opacity: 1;
}

.app-ready-alert.home-alert-pending {
  margin-top: 0;
}

/* H5 home layout lock: keep homepage cards in normal document flow. */
.mobile-screen {
  padding-bottom: calc(80px + env(safe-area-inset-bottom));
}

.mobile-screen:has(.home-compact-hero) {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-screen:has(.home-compact-hero) > * {
  position: relative;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.mobile-screen:has(.home-compact-hero) .home-compact-hero + .mobile-search-card,
.mobile-screen:has(.home-compact-hero) .home-compact-hero + .app-ready-alert,
.mobile-screen:has(.home-compact-hero) .home-compact-hero + .new-member-start-card,
.mobile-screen:has(.home-compact-hero) .mobile-search-card {
  margin-top: 0 !important;
}

.mobile-screen:has(.home-compact-hero) .app-ready-alert {
  height: auto;
  min-height: 58px;
  overflow: visible;
}

.mobile-screen:has(.home-compact-hero) .home-alert-pending.app-ready-alert {
  align-items: center;
}

@media (max-width: 380px) {
  .mobile-screen:has(.home-compact-hero) {
    gap: 10px;
  }
}

.home-alert-pending .ready-alert-cta {
  background: linear-gradient(180deg, var(--color-orange), var(--color-orange-dark));
}

.home-alert-dispatching.app-ready-alert {
  border-color: rgba(64, 135, 255, 0.22);
  background: linear-gradient(180deg, #f5f9ff, #eef6ff);
  box-shadow: 0 8px 22px rgba(30, 91, 255, 0.06);
}

.home-alert-dispatching .ready-alert-icon {
  background: rgba(30, 91, 255, 0.11);
  color: var(--color-primary);
}

.home-alert-dispatching .ready-alert-cta {
  background: linear-gradient(180deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  box-shadow: 0 6px 14px rgba(30, 91, 255, 0.14);
}

.compact-service-tile small,
.package-quick-actions small {
  color: var(--color-muted);
}

.mobile-toast {
  position: fixed;
  left: 50%;
  bottom: calc(82px + env(safe-area-inset-bottom));
  z-index: 80;
  transform: translate(-50%, 8px);
  opacity: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(20, 32, 51, 0.92);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(15, 35, 70, 0.18);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

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

.copy-actions-card {
  display: grid;
  gap: 9px;
}

.copy-actions-card .mobile-primary-button,
.copy-actions-card .mobile-secondary-button,
.page-bottom-action {
  min-height: 40px;
}

.payment-summary-card .price-row:first-of-type {
  border-color: rgba(31, 95, 229, 0.1);
}

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

.notice-soft {
  border: 1px solid rgba(228, 237, 247, 0.9);
  border-radius: var(--h5-radius-small);
  background: rgba(255, 255, 255, 0.66);
  box-shadow: none;
  color: var(--color-muted);
  font-size: 11.5px;
}

.mobile-list-footer {
  color: var(--color-muted);
  font-size: 11px;
}

@media (max-width: 380px) {
  .package-quick-actions a {
    min-height: 50px;
  }

  .package-quick-actions strong {
    font-size: 11.5px;
  }
}

/* H5 route safety and final consistency fixes */
.no-tabbar-shell {
  padding-bottom: 0;
}

.no-tabbar-shell .mobile-screen {
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
}

.no-tabbar-shell .mobile-toast {
  bottom: calc(22px + env(safe-area-inset-bottom));
}

.mobile-page-shell:not(.no-tabbar-shell) .mobile-screen {
  padding-bottom: calc(120px + env(safe-area-inset-bottom));
}

.page-hero-top.has-hero-back {
  align-items: flex-start;
  gap: 8px;
}

.page-hero-title-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.hero-back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin: -10px 0 0 -12px;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.hero-back-button:active {
  background: rgba(255, 255, 255, 0.12);
}

.compact-hero .page-hero-top.has-hero-back h1 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.login-h5-shell {
  place-items: start center;
  padding-top: 14px;
  padding-bottom: 18px;
}

.login-card-h5 {
  background: linear-gradient(180deg, #0f4fb8 0, #0c3f93 56%, #fff 56%, #fff 100%);
  padding-top: 24px;
}

.login-feature-grid {
  margin-bottom: 24px;
}

.mobile-primary-button:disabled,
.mobile-secondary-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  box-shadow: none;
}

.info-row-wide {
  grid-column: 1 / -1;
}

.info-row-wide strong {
  line-height: 1.45;
  word-break: break-word;
}

.package-filter-card {
  position: relative;
}

.package-filter-card::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 28px;
  height: 34px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,0), #fff 72%);
  border-radius: 999px;
}

.package-filter-tabs {
  padding-right: 24px;
}

/* Final H5 interaction polish */
.page-hero .mobile-plain-link,
.compact-hero .mobile-plain-link,
.detail-hero-action .mobile-plain-link {
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 700;
}

.login-card-h5 .mobile-primary-button {
  color: #fff;
  font-weight: 600;
}

.login-feature-grid span {
  color: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: none;
  font-weight: 600;
  pointer-events: none;
}

.help-page {
  padding-bottom: calc(120px + env(safe-area-inset-bottom));
}

.package-filter-tabs,
.bill-filter-tabs {
  flex-wrap: wrap;
  overflow: visible;
  padding-right: 0;
}

.package-filter-card::after {
  display: none;
}

.filter-scroll.bill-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.delivery-method-card > div:last-child {
  flex: 0 0 auto;
  min-width: max-content;
  text-align: right;
}

.delivery-method-card span {
  white-space: nowrap;
}

.checkout-steps {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: -2px 2px 10px;
  padding: 8px;
  border: 1px solid rgba(221, 229, 240, 0.82);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 8px 18px rgba(30, 60, 114, 0.04);
}

.checkout-step {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  border-radius: 999px;
  padding: 7px 6px;
  color: var(--color-muted);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}

.checkout-step.active {
  color: #fff;
  background: var(--color-primary);
  box-shadow: 0 8px 18px rgba(30, 91, 255, 0.14);
}

.checkout-step.done {
  color: var(--color-primary);
  background: var(--color-primary-soft);
}

.checkout-steps-success .checkout-step:last-child {
  flex: 1.8 1 0;
}

.payment-summary-card .micro-copy {
  line-height: 1.6;
}

.detail-status-actions {
  margin-top: 10px;
}

.profile-id-copy {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--color-muted);
  font: inherit;
  cursor: pointer;
}

.profile-id-copy .warehouse-mark {
  color: var(--color-primary-dark);
  font-weight: 850;
}

.upload-status {
  margin-top: 10px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 10px;
  align-items: center;
  border: 1px solid rgba(221, 229, 240, 0.95);
  border-radius: 14px;
  padding: 9px 10px;
  background: #f8fbff;
}

.upload-status[hidden] {
  display: none;
}

.upload-status img {
  grid-row: span 2;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(221, 229, 240, 0.95);
}

.upload-status span {
  color: var(--color-muted);
  font-size: 12px;
}

.upload-status strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--color-title);
  font-size: 13px;
}

.qr-placeholder.formal-qr span {
  color: var(--color-title);
  font-weight: 800;
}

.page-bottom-action {
  margin-bottom: max(10px, env(safe-area-inset-bottom));
}

/* ACES H5 package/status polish */
.package-card {
  border: 1px solid rgba(221, 229, 240, 0.92);
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(30, 60, 114, 0.055);
}

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

.package-title-left {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.package-title-left h3 {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.package-title-left .category-chip {
  flex: 0 0 auto;
  max-width: 94px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
  border-color: rgba(30, 91, 255, 0.12);
}

.package-category-line {
  margin: 6px 0 0;
  color: var(--color-text);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.35;
}

.package-title-row .status-badge {
  justify-self: end;
  white-space: nowrap;
}

.package-sub {
  margin-top: 7px;
  color: var(--color-muted);
  font-size: 12px;
}

.package-meta {
  margin-top: 7px;
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  overflow: hidden;
}

.package-meta span {
  flex: 0 1 auto;
  min-width: 0;
  white-space: nowrap;
  border: 1px solid rgba(221, 229, 240, 0.86);
  border-radius: 999px;
  padding: 4px 7px;
  color: var(--color-text);
  background: #f8fbff;
  font-size: 11.5px;
  line-height: 1.2;
}

.package-meta span:last-child {
  flex: 0 0 auto;
}

.package-actions {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.package-actions span {
  min-width: 0;
  color: var(--color-text);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.35;
}

.package-actions a {
  flex: 0 0 auto;
  min-width: 82px;
  text-align: center;
}

.card-list .package-card + .package-card {
  margin-top: 10px;
}

.pending-filter-hint {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.pending-filter-hint p,
.package-help-card p {
  margin: 3px 0 0;
  color: var(--color-muted);
  font-size: 12px;
  line-height: 1.45;
}

.package-prealert-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--color-muted);
  font-size: 12px;
}

.stage-progress-card {
  overflow: hidden;
}

.current-progress-card {
  display: grid;
  gap: 8px;
  padding: 15px 16px;
  overflow: hidden;
  border-radius: var(--h5-radius-card);
  box-shadow: 0 8px 24px rgba(35, 70, 125, 0.045);
}

.current-progress-card.info,
.current-progress-card.indigo {
  border-color: rgba(30, 91, 255, 0.1);
  background: linear-gradient(135deg, #fff, rgba(245, 248, 255, 0.8));
}

.current-progress-card.warning {
  border-color: rgba(255, 213, 154, 0.78);
  background: linear-gradient(135deg, #fff, rgba(255, 244, 229, 0.74));
}

.current-progress-head {
  align-items: flex-start;
  gap: 10px;
}

.current-progress-head h2 {
  margin-bottom: 4px;
}

.current-progress-head p {
  margin: 0;
  color: var(--color-muted);
  font-size: 12px;
  line-height: 1.5;
}

.package-detail-hero {
  min-height: 108px;
  padding-bottom: 14px;
}

.package-detail-hero h1 {
  font-size: 22px;
  line-height: 1.14;
}

.package-detail-hero p {
  margin-top: 4px;
}

.current-progress-status strong {
  color: var(--color-title);
  font-size: 16px;
  font-weight: 900;
}

.current-progress-card .detail-key-fields {
  margin-top: 0;
}

.stage-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  padding-top: 8px;
}

.detail-stage-track {
  margin-top: 2px;
  padding-top: 7px;
}

.stage-track::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 9%;
  right: 9%;
  height: 2px;
  border-radius: 999px;
  background: rgba(30, 91, 255, 0.11);
}

.stage-item {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 6px;
  color: var(--color-muted);
  font-size: 11px;
  text-align: center;
}

.stage-dot {
  width: 15px;
  height: 15px;
  border-radius: 999px;
  border: 3px solid #fff;
  background: #d9e3f2;
  box-shadow: 0 0 0 1px rgba(221, 229, 240, 0.95);
}

.stage-item.done .stage-dot,
.stage-item.active .stage-dot {
  background: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(30, 91, 255, 0.22);
}

.stage-item.active {
  color: var(--color-primary-dark);
  font-weight: 800;
}

.stage-item.active .stage-dot {
  animation: stagePulse 1.8s ease-in-out infinite;
}

@keyframes stagePulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(30, 91, 255, 0.22), 0 0 0 0 rgba(30, 91, 255, 0.24); }
  50% { box-shadow: 0 0 0 1px rgba(30, 91, 255, 0.22), 0 0 0 7px rgba(30, 91, 255, 0); }
}

.detail-arrival-chip {
  display: inline-flex;
  width: fit-content;
  margin-top: 6px;
  border: 1px solid rgba(221, 229, 240, 0.88);
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--color-text);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.detail-key-fields {
  display: grid;
  gap: 5px;
  margin-top: 9px;
}

.detail-key-fields span {
  color: var(--color-muted);
  font-size: 12.5px;
}

.detail-key-fields b {
  color: var(--color-title);
  font-weight: 850;
}

.detail-status-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.detail-status-main strong {
  min-width: 0;
}

.detail-status-main .detail-arrival-chip {
  flex: 0 0 auto;
  margin-top: 0;
  white-space: nowrap;
}

.detail-price-neutral .price-row strong,
.detail-price-neutral .price-total strong {
  color: var(--color-primary-dark);
}

.detail-price-neutral .price-total {
  background: var(--color-primary-light);
}

.trace-expand {
  margin-top: 10px;
}

.trace-expand summary,
.detail-more-card summary {
  cursor: pointer;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 850;
  list-style: none;
}

.trace-expand summary::-webkit-details-marker,
.detail-more-card summary::-webkit-details-marker {
  display: none;
}

.trace-expand summary::after,
.detail-more-card summary::after {
  content: "›";
  display: inline-block;
  margin-left: 6px;
  transform: rotate(90deg);
}

.trace-expand[open] summary::after,
.detail-more-card[open] summary::after {
  transform: rotate(-90deg);
}

.compact-trace-list {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.compact-trace-list li {
  display: grid;
  gap: 2px;
  border-top: 1px solid rgba(221, 229, 240, 0.68);
  padding-top: 8px;
}

.compact-trace-list time {
  color: var(--color-muted);
  font-size: 11.5px;
}

.compact-trace-list p {
  margin: 0;
  color: var(--color-title);
  font-size: 12.5px;
  line-height: 1.35;
}

.compact-trace-list span {
  color: var(--color-muted);
  font-weight: 500;
}

.detail-more-card .info-grid {
  margin-top: 10px;
}

.detail-info-card {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
}

.package-detail-hero {
  min-height: 108px;
}

.detail-more-inline {
  border-top: 1px solid rgba(221, 229, 240, 0.72);
  padding-top: 10px;
}

.detail-overview-list {
  display: grid;
  gap: 0;
}

.detail-overview-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 38px;
  border-top: 1px solid rgba(221, 229, 240, 0.62);
}

.detail-overview-row:first-child {
  border-top: 0;
}

.detail-overview-row span {
  color: var(--color-muted);
  font-size: 12px;
}

.detail-overview-row strong {
  min-width: 0;
  color: var(--color-title);
  font-size: 13px;
  font-weight: 850;
  text-align: right;
}

.detail-overview-list.compact {
  margin-top: 6px;
}

.detail-fee-status-card {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  box-shadow: 0 8px 24px rgba(35, 70, 125, 0.04);
}

.fee-status-list {
  display: grid;
  gap: 0;
}

.fee-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
  border-top: 1px solid rgba(221, 229, 240, 0.62);
  padding: 7px 0;
}

.fee-status-row:first-child {
  border-top: 0;
}

.fee-status-row span {
  color: var(--color-muted);
  font-size: 12px;
}

.fee-status-row strong {
  color: var(--color-title);
  font-size: 13px;
  font-weight: 850;
  text-align: right;
}

.success-summary {
  grid-template-columns: 1fr;
}

.success-summary span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
}

.payment-contact-button {
  margin-top: 10px;
}

.profile-todo-card .profile-todos {
  grid-template-columns: repeat(3, 1fr);
}

.profile-todos a {
  border-radius: 16px;
  background: var(--color-surface-soft);
}

.warehouse-copy-card {
  display: grid;
  gap: 12px;
}

.warehouse-mark-panel {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(30, 91, 255, 0.12);
  border-radius: 16px;
  padding: 10px 12px;
  background: var(--color-primary-light);
}

.warehouse-mark-panel span {
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 700;
}

.warehouse-mark-panel strong {
  min-width: 0;
}

.warehouse-fill-info {
  border: 1px solid rgba(221, 229, 240, 0.9);
  border-radius: 16px;
  padding: 12px;
  background: #fff;
}

.warehouse-fill-info h2 {
  margin: 0 0 10px;
  color: var(--color-title);
  font-size: 15px;
}

.warehouse-fill-info dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.warehouse-fill-info dl div {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.warehouse-fill-info dt {
  color: var(--color-muted);
  font-size: 12px;
}

.warehouse-fill-info dd {
  margin: 0;
  min-width: 0;
  color: var(--color-title);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.warehouse-fill-info .wide dd {
  word-break: break-word;
}

.warehouse-mark {
  white-space: nowrap;
}

@media (max-width: 380px) {
  .package-actions a {
    min-width: 74px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .package-title-left .category-chip {
    max-width: 82px;
  }

  .stage-item small {
    font-size: 10px;
  }
}

/* ACES H5 home final package/service polish */
.package-card {
  gap: 9px;
}

.package-card-copy {
  display: grid;
  gap: 5px;
}

.package-title-row {
  align-items: center;
}

.package-title-row .status-badge {
  align-self: center;
  min-height: 22px;
  padding: 4px 8px;
  font-size: 10.8px;
  line-height: 1.15;
}

.package-category-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 1px;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  max-width: 108px;
  border: 1px solid rgba(221, 229, 240, 0.88);
  border-radius: 999px;
  padding: 3px 7px;
  color: var(--color-primary-dark);
  background: var(--color-primary-soft);
  font-size: 10.8px;
  font-weight: 820;
  line-height: 1.1;
  white-space: nowrap;
}

.category-chip-cosmetic {
  color: #5c4bb1;
  background: #f1efff;
  border-color: rgba(116, 94, 214, 0.16);
}

.category-chip-sensitive {
  color: #5147a6;
  background: #f1efff;
  border-color: rgba(81, 71, 166, 0.16);
}

.category-chip-brand {
  color: #8a5a00;
  background: #fff7df;
  border-color: rgba(212, 151, 31, 0.2);
}

.category-chip-normal {
  color: #3f5f8f;
  background: #f0f5fb;
  border-color: rgba(63, 95, 143, 0.14);
}

.package-sub {
  margin-top: 1px;
  font-size: 12.2px;
}

.package-meta {
  margin-top: 2px;
}

.package-meta span {
  min-height: 21px;
  padding: 4px 7px;
}

.package-actions {
  margin-top: 4px;
  padding-top: 2px;
}

.package-actions span {
  color: var(--color-text);
  font-size: 12px;
  font-weight: 780;
}

.recent-packages-card .package-card.compact,
.package-list .package-card {
  min-height: 118px;
  padding: 10px;
}

.recent-packages-card .package-card.compact .package-category-chips,
.package-list .package-card .package-category-chips {
  margin-top: 0;
}

.stats-grid a {
  border: 1px solid rgba(221, 229, 240, 0.78);
}

.stats-grid a.is-info {
  border-color: rgba(30, 91, 255, 0.18);
  background: linear-gradient(180deg, #eef5ff, #f8fbff);
}

.stats-grid a.is-warning {
  border-color: rgba(255, 159, 10, 0.26);
  background: linear-gradient(180deg, #fff5e6, #fffaf2);
}

.stats-grid a:not(.is-info):not(.is-warning):not(.has-value) {
  color: #8995a6;
  background: rgba(248, 251, 255, 0.72);
}

.stats-grid a strong {
  font-weight: 900;
}

.compact-service-tile {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.96));
  border-color: rgba(221, 229, 240, 0.86);
}

.app-service-tile .service-icon,
.compact-service-tile .service-icon {
  position: relative;
  overflow: visible;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(30, 91, 255, 0.12);
  border-radius: 14px;
  color: #1e5bff;
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.28) 32%, transparent 34%),
    linear-gradient(145deg, #ffffff 0%, #eaf3ff 50%, #dceaff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(30, 91, 255, 0.08),
    0 8px 14px rgba(30, 91, 255, 0.12);
}

.app-service-tile .service-icon::after,
.compact-service-tile .service-icon::after {
  content: "";
  position: absolute;
  left: 7px;
  right: 7px;
  bottom: -4px;
  height: 5px;
  border-radius: 999px;
  background: rgba(30, 91, 255, 0.1);
  filter: blur(2px);
}

.app-service-tile .service-icon .ui-icon,
.compact-service-tile .service-icon .ui-icon {
  position: relative;
  z-index: 1;
  width: 17px;
  height: 17px;
  stroke-width: 1.8;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.8));
}

.compact-service-tile .service-icon-warehouse {
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.28) 32%, transparent 34%),
    linear-gradient(145deg, #ffffff 0%, #e8f4ff 48%, #d9ecff 100%);
}

.compact-service-tile .service-icon-calculator {
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.28) 32%, transparent 34%),
    linear-gradient(145deg, #ffffff 0%, #eef6ff 48%, #dbe9ff 100%);
}

.compact-service-tile .service-icon-service {
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.28) 32%, transparent 34%),
    linear-gradient(145deg, #ffffff 0%, #eef8ff 48%, #dceeff 100%);
}

.compact-service-tile .service-icon-prealert {
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.28) 32%, transparent 34%),
    linear-gradient(145deg, #ffffff 0%, #edf3ff 48%, #dde8ff 100%);
}

.compact-service-tile strong {
  margin-top: 2px;
}

.compact-service-tile small {
  color: #8190a5;
}

.first-order-steps {
  margin: 2px 0 10px;
  gap: 16px;
}

.first-order-steps::before {
  top: 16px;
  background: linear-gradient(90deg, rgba(30, 91, 255, 0.1), rgba(30, 91, 255, 0.28), rgba(30, 91, 255, 0.1));
}

.first-order-steps span {
  min-height: 34px;
  padding: 2px 0;
  color: var(--color-text);
  background: transparent;
  cursor: default;
}

.first-order-steps b {
  width: 19px;
  height: 19px;
  border-color: rgba(30, 91, 255, 0.18);
  background: linear-gradient(180deg, #fff, #f3f8ff);
  color: var(--color-primary);
}

/* H5 home recent-package header lock + premium quick service icons */
.recent-packages-card .package-card.compact {
  min-height: 132px;
  padding: 12px;
  gap: 8px;
  border-radius: 18px;
}

.recent-packages-card .package-card.compact .package-card-copy {
  gap: 6px;
}

.recent-packages-card .package-card.compact .package-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  column-gap: 10px;
  width: 100%;
}

.recent-packages-card .package-card.compact .package-title-left {
  min-width: 0;
  display: block;
}

.recent-packages-card .package-card.compact .package-title-left h3 {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  line-height: 1.25;
}

.recent-packages-card .package-card.compact .package-title-row .status-badge {
  justify-self: end;
  align-self: center;
  flex: 0 0 auto;
  max-width: 112px;
  min-height: 23px;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  font-size: 10.8px;
  font-weight: 900;
  white-space: nowrap;
}

.recent-packages-card .package-card.compact .package-category-chips {
  width: 100%;
  margin: -1px 0 0;
  justify-content: flex-start;
}

.recent-packages-card .package-card.compact .category-chip {
  max-width: 94px;
  min-height: 21px;
  padding: 3px 8px;
  font-size: 10.7px;
  letter-spacing: 0;
}

.recent-packages-card .package-card.compact .package-sub {
  margin: 0;
  color: #5f6f86;
  font-size: 12px;
  font-weight: 680;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-packages-card .package-card.compact .package-meta {
  margin: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
}

.recent-packages-card .package-card.compact .package-meta span {
  min-height: 22px;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  font-size: 10.8px;
  font-weight: 760;
  white-space: nowrap;
}

.recent-packages-card .package-card.compact .package-meta span:last-child {
  color: var(--color-primary-dark);
  background: #eef5ff;
  border-color: rgba(30, 91, 255, 0.13);
}

.recent-packages-card .package-card.compact .package-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  gap: 10px;
  margin-top: 1px;
  padding-top: 0;
}

.recent-packages-card .package-card.compact .package-actions span {
  min-width: 0;
  color: #4d5f76;
  font-size: 12px;
  font-weight: 780;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-packages-card .package-card.compact .package-actions a {
  justify-self: end;
  min-width: 82px;
  min-height: 32px;
  padding: 7px 11px;
  border-radius: 13px;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.recent-packages-card .package-card.compact .package-action-info {
  border: 1px solid rgba(30, 91, 255, 0.13);
}

.home-quick-services {
  gap: 9px;
}

.home-quick-services .compact-service-tile {
  min-height: 86px;
  padding: 10px 6px 9px;
  gap: 5px;
  border: 1px solid rgba(217, 228, 243, 0.9);
  border-radius: 17px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.96)),
    radial-gradient(circle at 50% 0%, rgba(30, 91, 255, 0.08), transparent 46%);
  box-shadow:
    0 7px 18px rgba(30, 60, 114, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.home-quick-services .compact-service-tile .service-icon {
  width: 36px;
  height: 36px;
  border-radius: 15px;
  border-color: rgba(30, 91, 255, 0.14);
  color: #1d5fd6;
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.34) 30%, transparent 33%),
    radial-gradient(circle at 78% 82%, rgba(30, 91, 255, 0.13), transparent 42%),
    linear-gradient(145deg, #ffffff 0%, #edf6ff 46%, #d9eaff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -1px 0 rgba(30, 91, 255, 0.08),
    0 9px 15px rgba(30, 91, 255, 0.13);
}

.home-quick-services .compact-service-tile .service-icon::before {
  content: "";
  position: absolute;
  inset: 5px 6px auto auto;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  filter: blur(0.2px);
}

.home-quick-services .compact-service-tile .service-icon::after {
  left: 8px;
  right: 8px;
  bottom: -4px;
  height: 5px;
  background: rgba(30, 91, 255, 0.12);
}

.home-quick-services .compact-service-tile .service-icon .ui-icon {
  width: 17.5px;
  height: 17.5px;
  stroke-width: 2;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.78));
}

.home-quick-services .compact-service-tile .service-icon-warehouse {
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.34) 30%, transparent 33%),
    radial-gradient(circle at 78% 82%, rgba(26, 120, 214, 0.14), transparent 42%),
    linear-gradient(145deg, #ffffff 0%, #eaf7ff 48%, #d6ebff 100%);
}

.home-quick-services .compact-service-tile .service-icon-calculator {
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.34) 30%, transparent 33%),
    radial-gradient(circle at 78% 82%, rgba(30, 91, 255, 0.14), transparent 42%),
    linear-gradient(145deg, #ffffff 0%, #edf4ff 48%, #dce8ff 100%);
}

.home-quick-services .compact-service-tile .service-icon-service {
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.34) 30%, transparent 33%),
    radial-gradient(circle at 78% 82%, rgba(35, 132, 205, 0.14), transparent 42%),
    linear-gradient(145deg, #ffffff 0%, #ecf8ff 48%, #d9eeff 100%);
}

.home-quick-services .compact-service-tile .service-icon-prealert {
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.34) 30%, transparent 33%),
    radial-gradient(circle at 78% 82%, rgba(85, 108, 220, 0.13), transparent 42%),
    linear-gradient(145deg, #ffffff 0%, #f0f5ff 48%, #dfe8ff 100%);
}

.home-quick-services .compact-service-tile strong {
  margin-top: 3px;
  color: #142033;
  font-size: 11.2px;
  font-weight: 900;
  letter-spacing: 0;
}

.home-quick-services .compact-service-tile small {
  color: #7f8fa4;
  font-size: 9.4px;
  font-weight: 720;
  line-height: 1.15;
}

@media (max-width: 380px) {
  .recent-packages-card .package-card.compact {
    padding: 11px;
  }

  .recent-packages-card .package-card.compact .package-title-row .status-badge {
    max-width: 96px;
    padding-left: 7px;
    padding-right: 7px;
    font-size: 10.2px;
  }

  .recent-packages-card .package-card.compact .package-actions a {
    min-width: 76px;
    padding-left: 9px;
    padding-right: 9px;
  }

  .home-quick-services .compact-service-tile {
    min-height: 82px;
    padding-left: 4px;
    padding-right: 4px;
  }
}

/* H5 home recent package compact header: product + category inline, status fixed right */
.recent-packages-card .package-card.compact {
  min-height: 112px;
  padding: 10px 11px;
  gap: 6px;
}

.recent-packages-card .package-card.compact .package-card-copy {
  gap: 4px;
}

.recent-packages-card .package-card.compact .package-title-row {
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  gap: 8px;
}

.recent-packages-card .package-card.compact .package-title-left {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.recent-packages-card .package-card.compact .package-title-left h3 {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 138px;
  font-size: 14.6px;
  line-height: 1.2;
}

.recent-packages-card .package-card.compact .package-title-left .package-category-chips {
  flex: 0 0 auto;
  width: auto;
  margin: 0;
}

.recent-packages-card .package-card.compact .package-title-left .category-chip {
  max-width: 66px;
  min-height: 20px;
  padding: 3px 7px;
  font-size: 10.2px;
}

.recent-packages-card .package-card.compact .package-title-row .status-badge {
  align-self: center;
  justify-self: end;
  min-height: 22px;
  max-width: 104px;
  padding: 4px 8px;
  font-size: 10.5px;
}

.recent-packages-card .package-card.compact > .package-card-main {
  gap: 0;
}

.recent-packages-card .package-card.compact .package-sub {
  margin-top: 0;
  font-size: 11.8px;
  line-height: 1.25;
}

.recent-packages-card .package-card.compact .package-meta {
  margin-top: 1px;
  gap: 5px;
}

.recent-packages-card .package-card.compact .package-meta span {
  min-height: 20px;
  padding: 3px 7px;
  font-size: 10.5px;
}

.recent-packages-card .package-card.compact .package-actions {
  margin-top: 0;
  gap: 8px;
}

.recent-packages-card .package-card.compact .package-actions span {
  font-size: 11.8px;
  line-height: 1.25;
}

.recent-packages-card .package-card.compact .package-actions a {
  min-width: 78px;
  min-height: 30px;
  padding: 6px 10px;
  font-size: 11.6px;
}

@media (min-width: 400px) {
  .recent-packages-card .package-card.compact .package-title-left h3 {
    max-width: 172px;
  }
}

@media (max-width: 380px) {
  .recent-packages-card .package-card.compact {
    min-height: 112px;
    padding: 10px;
  }

  .recent-packages-card .package-card.compact .package-title-left {
    gap: 5px;
  }

  .recent-packages-card .package-card.compact .package-title-left h3 {
    max-width: 118px;
    font-size: 14.2px;
  }

  .recent-packages-card .package-card.compact .package-title-left .category-chip {
    max-width: 60px;
    padding-left: 6px;
    padding-right: 6px;
    font-size: 9.8px;
  }

  .recent-packages-card .package-card.compact .package-title-row .status-badge {
    max-width: 94px;
    font-size: 10px;
  }
}

/* H5 home recent package final header balance: right-top status anchor */
.recent-packages-card .package-card.compact {
  min-height: 108px;
  padding: 10px 11px;
}

.recent-packages-card .package-card.compact .package-title-row {
  position: relative;
  display: block;
  min-height: 23px;
  padding-right: 112px;
}

.recent-packages-card .package-card.compact .package-title-left {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.recent-packages-card .package-card.compact .package-title-left h3 {
  flex: 1 1 auto;
  max-width: none;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-packages-card .package-card.compact .package-title-left .package-category-chips {
  flex: 0 0 auto;
}

.recent-packages-card .package-card.compact .package-title-row .status-badge {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 108px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-packages-card .package-card.compact .package-card-copy {
  gap: 3px;
}

.recent-packages-card .package-card.compact .package-sub {
  margin-top: 1px;
}

.recent-packages-card .package-card.compact .package-meta {
  margin-top: 1px;
}

.recent-packages-card .package-card.compact .package-actions {
  margin-top: 1px;
}

@media (max-width: 380px) {
  .recent-packages-card .package-card.compact .package-title-row {
    padding-right: 98px;
  }

  .recent-packages-card .package-card.compact .package-title-row .status-badge {
    max-width: 94px;
  }

  .recent-packages-card .package-card.compact .package-title-left {
    gap: 5px;
  }
}

/* H5 home recent package sign-off: compact four-layer logistics card */
.recent-packages-card .package-card.compact {
  min-height: 102px;
  padding: 9px 10px;
  gap: 5px;
}

.recent-packages-card .package-card.compact .package-card-copy {
  gap: 2px;
}

.recent-packages-card .package-card.compact .package-title-row {
  min-height: 22px;
  padding-right: 106px;
}

.recent-packages-card .package-card.compact .package-title-left {
  gap: 5px;
  padding-top: 1px;
}

.recent-packages-card .package-card.compact .package-title-left h3 {
  font-size: 14.3px;
  line-height: 1.18;
  font-weight: 900;
}

.recent-packages-card .package-card.compact .package-title-left .category-chip {
  min-height: 19px;
  max-width: 62px;
  padding: 3px 6px;
  font-size: 9.9px;
  line-height: 1;
  font-weight: 880;
}

.recent-packages-card .package-card.compact .package-title-row .status-badge {
  top: 0;
  max-width: 102px;
  min-height: 21px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10.2px;
  line-height: 1.1;
}

.recent-packages-card .package-card.compact .package-sub {
  margin-top: 0;
  font-size: 11.6px;
  line-height: 1.22;
  font-weight: 650;
}

.recent-packages-card .package-card.compact .package-meta {
  margin-top: 0;
  gap: 5px;
}

.recent-packages-card .package-card.compact .package-meta span {
  min-height: 19px;
  padding: 3px 7px;
  font-size: 10.4px;
  line-height: 1;
}

.recent-packages-card .package-card.compact .package-actions {
  margin-top: 0;
  gap: 8px;
}

.recent-packages-card .package-card.compact .package-actions span {
  font-size: 11.5px;
  line-height: 1.2;
}

.recent-packages-card .package-card.compact .package-actions a {
  min-width: 76px;
  min-height: 29px;
  padding: 6px 10px;
  border-radius: 12px;
  font-size: 11.5px;
  line-height: 1;
}

@media (min-width: 400px) {
  .recent-packages-card .package-card.compact {
    min-height: 104px;
  }

  .recent-packages-card .package-card.compact .package-title-row {
    padding-right: 112px;
  }

  .recent-packages-card .package-card.compact .package-title-row .status-badge {
    max-width: 108px;
  }
}

@media (max-width: 380px) {
  .recent-packages-card .package-card.compact {
    min-height: 104px;
    padding: 9px;
  }

  .recent-packages-card .package-card.compact .package-title-row {
    padding-right: 94px;
  }

  .recent-packages-card .package-card.compact .package-title-left h3 {
    font-size: 14px;
  }

  .recent-packages-card .package-card.compact .package-title-left .category-chip {
    max-width: 56px;
    font-size: 9.6px;
  }

  .recent-packages-card .package-card.compact .package-title-row .status-badge {
    max-width: 90px;
    padding-left: 7px;
    padding-right: 7px;
    font-size: 9.8px;
  }
}

/* H5 home recent package true two-side header + denser app-order card */
.recent-packages-card .home-package-card.compact {
  min-height: 100px;
  padding: 9px 10px;
  gap: 5px;
  border-radius: 17px;
}

.recent-packages-card .home-package-card .package-card-copy {
  gap: 3px;
}

.recent-packages-card .home-package-card .package-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  min-height: 22px;
}

.recent-packages-card .home-package-card .package-title-side {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  flex: 1 1 auto;
  padding-top: 1px;
}

.recent-packages-card .home-package-card .package-name {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 112px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14.2px;
  line-height: 1.18;
  font-weight: 900;
}

.recent-packages-card .home-package-card .package-title-side .package-category-chips {
  flex: 0 0 auto;
  width: auto;
  margin: 0;
}

.recent-packages-card .home-package-card .package-title-side .category-chip {
  min-height: 18px;
  max-width: 58px;
  padding: 3px 6px;
  font-size: 9.6px;
  font-weight: 850;
  line-height: 1;
}

.recent-packages-card .home-package-card .package-card-head > .status-badge {
  position: static;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  max-width: 98px;
  min-height: 21px;
  margin-left: auto;
  padding: 3px 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.1;
}

.recent-packages-card .home-package-card .package-sub {
  margin-top: 0;
  color: #617087;
  font-size: 11.5px;
  line-height: 1.22;
  font-weight: 650;
}

.recent-packages-card .home-package-card .package-meta {
  margin-top: 0;
  gap: 5px;
}

.recent-packages-card .home-package-card .package-meta span {
  min-height: 19px;
  padding: 3px 7px;
  font-size: 10.2px;
  line-height: 1;
}

.recent-packages-card .home-package-card .package-actions {
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.recent-packages-card .home-package-card .package-actions span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11.4px;
  line-height: 1.2;
}

.recent-packages-card .home-package-card .package-actions a {
  flex: 0 0 auto;
  min-width: 74px;
  min-height: 29px;
  padding: 6px 10px;
  border-radius: 12px;
  font-size: 11.4px;
  line-height: 1;
}

.home-quick-services .compact-service-tile {
  position: relative;
  overflow: hidden;
  min-height: 84px;
  padding: 10px 6px 8px;
  background:
    radial-gradient(circle at 50% -16px, rgba(30, 91, 255, 0.13), transparent 45%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(246, 250, 255, 0.97));
}

.home-quick-services .compact-service-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.78), transparent 42%);
  pointer-events: none;
}

.home-quick-services .compact-service-tile .service-icon {
  isolation: isolate;
  width: 38px;
  height: 38px;
  margin-bottom: 1px;
  border-radius: 15px;
  background:
    radial-gradient(circle at 28% 18%, #fff 0 13%, rgba(255, 255, 255, 0.42) 26%, transparent 30%),
    linear-gradient(145deg, #fbfdff 0%, #eaf5ff 48%, #d5e8ff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 0 -1px 0 rgba(24, 82, 202, 0.1),
    0 8px 12px rgba(30, 91, 255, 0.12),
    0 2px 0 rgba(255, 255, 255, 0.86);
}

.home-quick-services .compact-service-tile .service-icon::before {
  inset: auto 6px 5px auto;
  width: 10px;
  height: 10px;
  background: linear-gradient(145deg, rgba(30, 91, 255, 0.18), rgba(30, 91, 255, 0.04));
}

.home-quick-services .compact-service-tile .service-icon .ui-icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.15;
  filter:
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.95))
    drop-shadow(0 2px 2px rgba(30, 91, 255, 0.13));
}

.home-quick-services .compact-service-tile strong,
.home-quick-services .compact-service-tile small {
  position: relative;
  z-index: 1;
}

@media (min-width: 400px) {
  .recent-packages-card .home-package-card .package-name {
    max-width: 146px;
  }

  .recent-packages-card .home-package-card .package-card-head > .status-badge {
    max-width: 106px;
  }
}

@media (max-width: 380px) {
  .recent-packages-card .home-package-card.compact {
    min-height: 101px;
    padding: 9px;
  }

  .recent-packages-card .home-package-card .package-card-head {
    gap: 6px;
  }

  .recent-packages-card .home-package-card .package-name {
    max-width: 92px;
    font-size: 13.8px;
  }

  .recent-packages-card .home-package-card .package-title-side {
    gap: 4px;
  }

  .recent-packages-card .home-package-card .package-title-side .category-chip {
    max-width: 52px;
    padding-left: 5px;
    padding-right: 5px;
    font-size: 9.4px;
  }

  .recent-packages-card .home-package-card .package-card-head > .status-badge {
    max-width: 88px;
    padding-left: 7px;
    padding-right: 7px;
    font-size: 9.6px;
  }

  .home-quick-services .compact-service-tile .service-icon {
    width: 35px;
    height: 35px;
  }
}

/* Final home recent packages: clean list rows inside one card */
.recent-package-list {
  display: grid;
  margin-top: -2px;
}

.recent-package-row {
  position: relative;
  display: grid;
  row-gap: 5px;
  padding: 13px 0;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.recent-package-row + .recent-package-row {
  border-top: 1px solid rgba(130, 155, 190, 0.12);
}

.recent-package-row:last-child {
  padding-bottom: 2px;
}

.recent-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.recent-row-title-side {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}

.recent-row-title {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 140px;
  margin: 0;
  overflow: hidden;
  color: #0f2748;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-row-level {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
  padding: 2px 7px 2px;
  border-radius: 9px;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: 0;
}

.recent-row-level-normal {
  background: rgba(74, 101, 134, 0.09);
  color: #5f7188;
}

.recent-row-level-sensitive {
  background: rgba(121, 105, 178, 0.1);
  color: #6d6699;
}

.recent-row-level-brand {
  background: rgba(190, 150, 82, 0.12);
  color: #7d6332;
}

.recent-row-status {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.recent-row-status-warning {
  background: rgba(255, 159, 10, 0.13);
  color: #d77900;
}

.recent-row-status-info {
  background: rgba(30, 91, 255, 0.09);
  color: #2f61d6;
}

.recent-row-status-indigo {
  background: rgba(99, 102, 241, 0.1);
  color: #4f46e5;
}

.recent-row-status-success {
  background: rgba(17, 185, 129, 0.1);
  color: #138b63;
}

.recent-row-category,
.recent-row-number {
  margin: 0;
  line-height: 1.28;
}

.recent-row-category {
  color: #75869a;
  font-size: 12px;
  font-weight: 600;
}

.recent-row-number {
  color: #415872;
  font-size: 12px;
  font-weight: 600;
}

.recent-row-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.recent-row-meta {
  min-width: 0;
  overflow: hidden;
  color: #75869a;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-row-action {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 18px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.recent-row-action-warning {
  background: linear-gradient(180deg, #ffb23e, #ff980f);
  color: #fff;
  box-shadow: 0 6px 14px rgba(255, 148, 10, 0.14);
}

.recent-row-action-info {
  border: 1px solid rgba(30, 91, 255, 0.16);
  background: rgba(30, 91, 255, 0.055);
  color: #245de0;
}

@media (max-width: 380px) {
  .recent-package-row {
    row-gap: 3px;
    padding: 11px 0;
  }

  .recent-row-head {
    gap: 8px;
  }

  .recent-row-title {
    max-width: 116px;
    font-size: 14.5px;
  }

  .recent-row-title-side {
    gap: 5px;
  }

  .recent-row-level {
    min-height: 17px;
    padding-left: 6px;
    padding-right: 6px;
    font-size: 10px;
  }

  .recent-row-status {
    padding-left: 8px;
    padding-right: 8px;
    font-size: 10.5px;
  }

  .recent-row-action {
    min-height: 30px;
    padding-left: 11px;
    padding-right: 11px;
    font-size: 12.5px;
  }
}

/* Home services final: priority rows + secondary tools */
.compact-service-section {
  padding: 14px 16px;
  border-radius: 18px;
  background: #fff;
}

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

.service-primary-list {
  display: grid;
}

.service-primary-row {
  display: flex;
  align-items: center;
  min-height: 56px;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.service-primary-row + .service-primary-row {
  border-top: 1px solid rgba(130, 155, 190, 0.18);
}

.service-entry-icon,
.service-primary-icon,
.service-secondary-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: #eef5ff;
  color: #1e5bff;
}

.service-entry-icon .ui-icon,
.service-primary-icon .ui-icon,
.service-secondary-icon .ui-icon {
  width: 16px;
  height: 16px;
  stroke-width: 2.05;
}

.service-primary-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}

.service-primary-copy strong,
.service-secondary-card strong {
  color: #0f2748;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
}

.service-primary-copy small,
.service-secondary-card small {
  min-width: 0;
  overflow: hidden;
  color: #6b7f99;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-primary-arrow {
  flex: 0 0 auto;
  color: #9aacc4;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
}

.service-secondary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.service-secondary-card {
  display: flex;
  align-items: center;
  min-height: 52px;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(130, 155, 190, 0.16);
  border-radius: 14px;
  background: #f8fbff;
  color: inherit;
  text-align: left;
  text-decoration: none;
}

.service-secondary-card strong {
  font-size: 13px;
  font-weight: 650;
}

.service-secondary-icon {
  background: #eef5ff;
}

.service-secondary-card span:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.home-status-card .stats-grid a.is-info-soft {
  border-color: rgba(35, 100, 244, 0.08);
  background: linear-gradient(180deg, #fff, rgba(234, 242, 255, 0.5));
}

.home-status-card .stats-grid a.is-info-soft strong {
  color: var(--status-transit-text);
}

.home-status-card .stats-grid a.is-info-soft span {
  color: #7b8798;
}

@media (max-width: 380px) {
  .compact-service-section {
    padding: 13px 14px;
  }

  .service-primary-row {
    min-height: 54px;
  }

  .service-primary-copy strong,
  .service-secondary-card strong {
    font-size: 13.5px;
  }

  .service-primary-copy small,
  .service-secondary-card small {
    font-size: 11.4px;
  }

  .service-secondary-card {
    min-height: 52px;
    padding: 9px 10px;
  }

  .service-entry-icon,
  .service-primary-icon,
  .service-secondary-icon {
    width: 28px;
    height: 28px;
  }
}

/* Home service icon final alignment, placed last to override older icon rules. */
.home-service-panel .service-entry-icon {
  width: 28px !important;
  height: 28px !important;
  border-radius: 10px !important;
  background: #eef5ff !important;
  color: #2b6eea !important;
  box-shadow: none !important;
}

.home-service-panel .service-primary-icon-warehouse {
  background: #eaf7f4 !important;
  color: #1f8a7a !important;
}

.home-service-panel .service-primary-icon-service {
  background: #fff3e6 !important;
  color: #d77810 !important;
}

.home-service-panel .service-secondary-icon-calculator {
  background: #eef5ff !important;
  color: #2b6eea !important;
}

.home-service-panel .service-secondary-icon-prealert {
  background: #f2efff !important;
  color: #7563d7 !important;
}

.home-service-panel .service-entry-icon::before,
.home-service-panel .service-entry-icon::after {
  display: none !important;
}

.home-service-panel .service-entry-icon .ui-icon {
  width: 16px !important;
  height: 16px !important;
  filter: none !important;
}

.recent-row-level {
  color: #5f7188;
  background: rgba(74, 101, 134, 0.09);
}

.recent-row-level-sensitive {
  color: #6d6699;
  background: rgba(121, 105, 178, 0.1);
}

.recent-row-level-brand {
  color: #7d6332;
  background: rgba(190, 150, 82, 0.12);
}

.recent-row-foot {
  align-items: center;
}

/* Package detail final polish: compact hero, refined progress, iOS-like overview. */
.package-detail-hero.compact-hero {
  min-height: 94px;
  margin-bottom: 10px;
  padding: 13px 16px 17px;
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
  box-shadow: 0 11px 24px rgba(31, 84, 185, 0.12);
}

.package-detail-hero.detail-compact-hero {
  min-height: 88px;
  padding: 8px 16px 15px;
}

.detail-hero-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.detail-title-side {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
}

.detail-back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin-left: -12px;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.detail-back-button:active {
  background: rgba(255, 255, 255, 0.1);
}

.detail-title-side h1 {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.package-detail-hero .detail-hero-subtitle {
  max-width: none;
  margin: 0 0 0 36px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  line-height: 1.25;
}

.package-detail-hero .page-hero-top {
  margin-top: 0;
  align-items: flex-start;
}

.package-detail-hero h1 {
  margin-top: 0;
  font-size: 21px;
  line-height: 1.12;
}

.package-detail-hero p:not(.mobile-eyebrow) {
  max-width: 238px;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.82);
}

.detail-hero-action {
  gap: 5px;
}

.package-detail-hero .status-badge {
  min-height: 22px;
  padding: 3px 8px;
  font-size: 11px;
}

.current-progress-card {
  gap: 10px;
  padding: 16px;
  border-color: rgba(210, 222, 240, 0.78);
  background:
    radial-gradient(circle at 90% 0%, rgba(30, 91, 255, 0.07), transparent 116px),
    #fff;
  box-shadow: 0 8px 24px rgba(35, 70, 125, 0.038);
}

.current-progress-card.warning {
  background:
    radial-gradient(circle at 90% 0%, rgba(255, 159, 10, 0.11), transparent 116px),
    #fff;
}

.current-progress-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.current-progress-head > div {
  min-width: 0;
}

.current-progress-head h2 {
  margin-bottom: 5px;
  font-size: 16px;
  letter-spacing: 0;
}

.current-progress-head p {
  max-width: 100%;
  font-size: 12.5px;
}

.current-stage-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  border: 1px solid rgba(30, 91, 255, 0.1);
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(237, 244, 255, 0.92);
  color: var(--color-primary-dark);
  font-size: 11.5px;
  font-weight: 850;
  white-space: nowrap;
}

.current-progress-card.warning .current-stage-pill {
  border-color: rgba(255, 213, 154, 0.74);
  background: rgba(255, 244, 229, 0.88);
  color: var(--color-orange-dark);
}

.current-stage-pill i {
  position: relative;
  width: 16px;
  height: 12px;
  color: currentColor;
}

.current-stage-pill.land i::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 3px;
  width: 12px;
  height: 6px;
  border-radius: 3px 4px 2px 2px;
  background: currentColor;
  box-shadow: 3px -2px 0 -1px currentColor;
}

.current-stage-pill.land i::after {
  content: "";
  position: absolute;
  left: 3px;
  bottom: 1px;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 7px 0 0 #fff;
}

.current-stage-pill.sea i::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 5px;
  width: 14px;
  height: 6px;
  border-radius: 1px 1px 8px 8px;
  background: currentColor;
  transform: skewX(-12deg);
}

.current-stage-pill.sea i::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 0;
  width: 1.5px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 3px 2px 0 -0.5px currentColor;
}

.detail-stage-track {
  isolation: isolate;
  margin-top: 0;
  padding-top: 8px;
}

.detail-stage-track::before {
  top: 18px;
  height: 1.5px;
  background: rgba(30, 91, 255, 0.13);
}

.detail-stage-track::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 18px;
  left: 9%;
  right: 9%;
  height: 1.5px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent 0%, rgba(30, 91, 255, 0.42) 45%, transparent 70%);
  background-size: 72px 100%;
  opacity: 0.56;
  animation: stageFlow 2.8s linear infinite;
}

.detail-stage-track .stage-dot {
  position: relative;
  width: 14px;
  height: 14px;
  border-width: 3px;
}

.detail-stage-track .stage-item {
  gap: 5px;
}

.detail-stage-track .stage-item.active .stage-dot {
  animation: stagePulse 1.9s ease-in-out infinite, stageNudge 2.4s ease-in-out infinite;
}

@keyframes stageFlow {
  from { background-position: -72px 0; }
  to { background-position: 72px 0; }
}

@keyframes stageNudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(1.5px); }
}

@media (prefers-reduced-motion: reduce) {
  .detail-stage-track::after,
  .detail-stage-track .stage-item.active .stage-dot {
    animation: none;
  }
}

.detail-info-card {
  gap: 10px;
  padding: 15px 16px;
}

.detail-latest-timeline h3 {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--color-title);
  font-size: 14px;
  font-weight: 780;
}

.detail-latest-timeline h3 span {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  border-radius: 999px;
  padding: 0 7px;
  background: rgba(30, 91, 255, 0.08);
  color: var(--color-primary);
  font-size: 10px;
  font-weight: 800;
}

.detail-latest-timeline small,
.compact-trace-list h3 {
  color: var(--color-muted);
}

.compact-trace-list h3 {
  font-size: 12.5px;
  font-weight: 650;
}

.detail-info-card .mobile-card-head {
  margin-bottom: 0;
}

.detail-overview-list {
  overflow: hidden;
  border: 1px solid rgba(221, 229, 240, 0.76);
  border-radius: 16px;
  background: rgba(248, 251, 255, 0.86);
}

.detail-overview-row {
  min-height: 36px;
  padding: 0 12px;
  border-top-color: rgba(221, 229, 240, 0.66);
}

.detail-overview-row span {
  font-size: 12px;
}

.detail-overview-row strong {
  font-size: 13px;
}

.detail-more-inline {
  border-top: 0;
  padding-top: 0;
}

.detail-more-inline summary {
  display: flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid rgba(221, 229, 240, 0.72);
  border-radius: 15px;
  padding: 0 12px;
  background: #fff;
}

.detail-more-inline[open] summary {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.detail-more-inline .detail-overview-list.compact {
  margin-top: 0;
  border-top: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  background: #fff;
}

.detail-fee-status-card {
  padding: 15px 16px;
  box-shadow: 0 8px 24px rgba(35, 70, 125, 0.032);
}

.fee-status-row {
  min-height: 33px;
}

.detail-stage-track.six-stage {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.detail-stage-track.six-stage::before,
.detail-stage-track.six-stage::after {
  left: 7%;
  right: 7%;
}

.detail-stage-track.six-stage .stage-item small {
  font-size: 9.6px;
}

.delivery-info-card {
  display: grid;
  gap: 10px;
  padding: 15px 16px;
}

.delivery-info-card .mobile-card-head p {
  margin: 3px 0 0;
  color: var(--color-muted);
  font-size: 12px;
}

.delivery-overview-list {
  background: rgba(248, 251, 255, 0.9);
}

.delivery-info-actions {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.thai-address-search-card,
.thai-address-result-card,
.thai-address-manual-card {
  display: grid;
  gap: 12px;
}

.thai-place-search {
  min-height: 42px;
  border-radius: 15px;
  background: rgba(248, 251, 255, 0.95);
}

.place-suggestion-list {
  display: grid;
  gap: 8px;
}

.place-suggestion-list button {
  display: grid;
  gap: 3px;
  width: 100%;
  border: 1px solid rgba(221, 229, 240, 0.78);
  border-radius: 15px;
  padding: 10px 12px;
  background: #fff;
  color: var(--color-title);
  text-align: left;
  box-shadow: 0 6px 18px rgba(35, 70, 125, 0.035);
}

.place-suggestion-list button.active {
  border-color: rgba(30, 91, 255, 0.22);
  background: var(--color-primary-light);
}

.place-suggestion-list strong {
  font-size: 13px;
}

.place-suggestion-list span {
  color: var(--color-muted);
  font-size: 11.5px;
  line-height: 1.35;
}

.thai-address-result-card .detail-overview-row {
  align-items: flex-start;
  min-height: 38px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.thai-address-result-card .detail-overview-row strong {
  max-width: 64%;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.mobile-field textarea,
.thai-address-manual-card textarea {
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  line-height: 1.45;
}

/* Final launch consistency overrides */
.mobile-page-shell:not(.no-tabbar-shell) .mobile-screen {
  padding-bottom: calc(120px + env(safe-area-inset-bottom));
}

.no-tabbar-shell .mobile-screen {
  padding-bottom: calc(28px + env(safe-area-inset-bottom));
}

.compact-hero .page-hero-top.has-hero-back {
  align-items: flex-start;
  gap: 8px;
}

.compact-hero .hero-back-button {
  color: rgba(255, 255, 255, 0.94);
  min-width: 44px;
  min-height: 44px;
}

.mobile-screen:has(.packages-page) .packages-hero,
.mobile-screen:has(.help-page) .compact-hero {
  min-height: 128px;
  padding-bottom: 18px;
  margin-bottom: 10px;
}

.help-page {
  gap: 8px;
  padding-bottom: calc(120px + env(safe-area-inset-bottom));
}

.help-page .rule-list {
  gap: 8px;
}

.help-page .rule-card {
  padding: 12px 14px;
  border-radius: 16px;
}

.help-page .rule-card h3 {
  margin-bottom: 4px;
  font-size: 14px;
}

.help-page .rule-card p {
  line-height: 1.42;
}

.package-list .package-card {
  padding: 12px;
  gap: 8px;
  min-height: 0;
}

.package-list .package-card-copy,
.package-list .package-card-main {
  gap: 7px;
}

.package-list .package-title-row,
.package-list .package-card-head {
  margin-bottom: 4px;
}

.package-list .package-meta {
  margin-top: 6px;
}

.package-list .package-actions {
  margin-top: 4px;
}

.help-page .contact-card {
  padding: 12px 14px;
  gap: 8px;
}

.help-page .contact-card h2 {
  font-size: 15px;
}

.help-page .contact-card p {
  margin: 4px 0 8px;
  line-height: 1.36;
}

.help-page .contact-card .mobile-primary-button {
  min-height: 38px;
}

/* Profile and help launch polish. */
.mobile-screen:has(.profile-member-card),
.mobile-screen:has(.help-page) {
  padding-bottom: calc(120px + env(safe-area-inset-bottom));
}

.mobile-screen:has(.profile-member-card) .compact-hero,
.mobile-screen:has(.help-page) .compact-hero {
  min-height: 136px;
  padding: 18px 16px 22px;
  margin-bottom: 12px;
}

.mobile-screen:has(.profile-member-card) .compact-hero h1,
.mobile-screen:has(.help-page) .compact-hero h1 {
  font-size: 24px;
  letter-spacing: 0;
}

.mobile-screen:has(.profile-member-card) .compact-hero p,
.mobile-screen:has(.help-page) .compact-hero p {
  max-width: 300px;
  color: rgba(255, 255, 255, 0.78);
}

.profile-member-card,
.profile-todo-card,
.profile-menu,
.help-rule-item,
.help-contact-card {
  border: 1px solid rgba(218, 227, 240, 0.72);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(28, 72, 132, 0.045);
}

.profile-member-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px;
}

.profile-avatar {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.92), transparent 38%),
    linear-gradient(145deg, #eaf3ff 0%, #cfdfff 100%);
  color: var(--color-primary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 10px 22px rgba(30, 91, 255, 0.12);
  font-size: 21px;
  font-weight: 850;
}

.profile-member-copy {
  min-width: 0;
}

.profile-member-copy h2 {
  margin: 0 0 4px;
  color: var(--color-title);
  font-size: 18px;
  font-weight: 850;
}

.profile-member-copy p {
  margin: 0;
}

.profile-id-copy {
  max-width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 700;
  text-align: left;
}

.profile-id-copy .warehouse-mark {
  color: var(--color-primary);
  font-weight: 850;
}

.profile-member-copy small {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 650;
}

.profile-enabled-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #25b36a;
  box-shadow: 0 0 0 3px rgba(37, 179, 106, 0.12);
}

.profile-todo-card {
  padding: 16px;
}

.profile-todo-card .compact-head {
  margin-bottom: 12px;
}

.profile-todo-card .compact-head h2 {
  font-size: 17px;
  font-weight: 850;
}

.profile-todo-card .compact-head p {
  margin-top: 3px;
  color: var(--color-muted);
  font-size: 12px;
}

.profile-todo-card .profile-todos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.profile-todos a {
  min-height: 68px;
  border: 1px solid rgba(214, 225, 242, 0.72);
  border-radius: 16px;
  padding: 10px 8px;
  background: linear-gradient(180deg, #f7fbff 0%, #f1f6ff 100%);
  color: var(--color-title);
  text-align: center;
  text-decoration: none;
}

.profile-todos a:nth-child(1),
.profile-todos a:nth-child(2) {
  border-color: rgba(30, 91, 255, 0.12);
  background: linear-gradient(180deg, #f4f8ff 0%, #eaf3ff 100%);
}

.profile-todos a.is-muted {
  background: #f8fafd;
}

.profile-todos strong {
  display: block;
  color: var(--color-primary);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.profile-todos a.is-muted strong {
  color: #a3afc0;
}

.profile-todos span {
  display: block;
  margin-top: 7px;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 750;
}

.profile-menu {
  display: grid;
  gap: 0;
  padding: 4px 14px;
  overflow: hidden;
}

.profile-menu-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 11px;
  min-height: 62px;
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(218, 227, 240, 0.68);
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  text-decoration: none;
}

.profile-menu-row:last-child {
  border-bottom: 0;
}

.profile-menu-icon,
.help-rule-icon {
  width: 30px;
  height: 30px;
  border-radius: 11px;
  background:
    linear-gradient(145deg, rgba(241, 247, 255, 0.95), rgba(224, 236, 255, 0.95));
  color: var(--color-primary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.profile-menu-icon .ui-icon,
.help-rule-icon .ui-icon {
  width: 16px;
  height: 16px;
}

.profile-menu-copy {
  min-width: 0;
}

.profile-menu-copy strong {
  display: block;
  overflow: hidden;
  color: var(--color-title);
  font-size: 14px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-menu-copy small {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-menu-row b {
  display: grid;
  place-items: center;
  color: #9aacc4;
}

.profile-menu-row b .ui-icon {
  width: 16px;
  height: 16px;
}

.profile-logout-row {
  cursor: pointer;
}

.help-page {
  display: grid;
  gap: 12px;
  padding-bottom: calc(120px + env(safe-area-inset-bottom));
}

.help-rule-list {
  display: grid;
  gap: 10px;
}

.help-rule-item {
  padding: 0;
  overflow: hidden;
}

.help-rule-toggle {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 11px;
  width: 100%;
  border: 0;
  padding: 14px;
  background: transparent;
  text-align: left;
}

.help-rule-copy {
  min-width: 0;
}

.help-rule-copy strong {
  display: block;
  color: var(--color-title);
  font-size: 14px;
  font-weight: 820;
  line-height: 1.24;
}

.help-rule-copy small {
  display: block;
  margin-top: 5px;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 560;
  line-height: 1.42;
}

.help-rule-chevron {
  display: grid;
  place-items: center;
  color: #9aacc4;
  transition: transform 0.18s ease;
}

.help-rule-chevron .ui-icon {
  width: 16px;
  height: 16px;
}

.help-rule-item.is-open .help-rule-chevron {
  transform: rotate(90deg);
}

.help-rule-detail {
  display: none;
  margin: -2px 14px 14px 59px;
  border-top: 1px solid rgba(218, 227, 240, 0.68);
  padding-top: 10px;
  color: var(--color-text);
  font-size: 12px;
  line-height: 1.55;
}

.help-rule-item.is-open .help-rule-detail {
  display: block;
}

.help-contact-card {
  padding: 16px;
}

.help-contact-card h2 {
  margin: 0;
  color: var(--color-title);
  font-size: 17px;
  font-weight: 850;
}

.help-contact-card p {
  margin: 7px 0 12px;
  color: var(--color-muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.help-contact-card .mobile-primary-button {
  min-height: 42px;
}

.mobile-confirm-mask {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: end center;
  padding: 18px;
  background: rgba(15, 31, 55, 0.28);
  backdrop-filter: blur(10px);
}

.mobile-confirm-dialog {
  width: min(100%, 390px);
  border: 1px solid rgba(218, 227, 240, 0.8);
  border-radius: 22px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(21, 46, 84, 0.18);
}

.mobile-confirm-dialog h2 {
  margin: 0;
  color: var(--color-title);
  font-size: 18px;
  font-weight: 850;
}

.mobile-confirm-dialog p {
  margin: 7px 0 16px;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.45;
}

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

.mobile-primary-button.danger {
  background: linear-gradient(180deg, #2d6bff 0%, #1e5bff 100%);
}

/* Packages support card and payment page final polish. */
.refined-help-card {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(218, 227, 240, 0.74);
  border-radius: 20px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(28, 72, 132, 0.045);
}

.package-help-copy {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
}

.package-help-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: linear-gradient(145deg, #f1f7ff, #e1edff);
  color: var(--color-primary);
}

.package-help-icon .ui-icon {
  width: 16px;
  height: 16px;
}

.package-help-copy h2 {
  margin: 0;
  color: var(--color-title);
  font-size: 16px;
  font-weight: 850;
}

.package-help-copy p {
  margin: 5px 0 0;
  color: var(--color-muted);
  font-size: 12.5px;
  line-height: 1.45;
}

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

.package-help-actions .mobile-secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  border-radius: 14px;
  background: #f8fbff;
}

.package-help-actions .ui-icon {
  width: 15px;
  height: 15px;
}

.payment-page {
  display: grid;
  gap: 12px;
  padding-bottom: calc(40px + env(safe-area-inset-bottom));
}

.payment-page .compact-hero {
  min-height: 126px;
  padding-bottom: 18px;
  margin-bottom: 0;
}

.refined-payment-summary {
  padding: 16px;
}

.refined-payment-summary .compact-head {
  margin-bottom: 12px;
}

.refined-payment-summary .compact-head h2,
.payment-method-card .mobile-card-head h2,
.payment-receive-card h2,
.payment-upload-card h2 {
  font-size: 17px;
  font-weight: 850;
}

.payment-fee-group {
  display: grid;
  gap: 8px;
  border-top: 1px solid rgba(218, 227, 240, 0.7);
  padding-top: 12px;
  margin-top: 10px;
}

.payment-fee-group:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

.payment-fee-group h3 {
  margin: 0;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 800;
}

.payment-fee-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 26px;
}

.payment-fee-row span {
  min-width: 0;
  color: var(--color-text);
  font-size: 13px;
  font-weight: 650;
}

.payment-fee-row strong {
  flex: 0 0 auto;
  color: var(--color-title);
  font-size: 13px;
  font-weight: 850;
}

.payment-fee-note,
.payment-summary-note {
  margin: 0;
  color: var(--color-muted);
  font-size: 12px;
  line-height: 1.45;
}

.payment-reference-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 12px;
}

.payment-reference-grid div {
  border: 1px solid rgba(218, 227, 240, 0.72);
  border-radius: 14px;
  padding: 10px;
  background: #f8fbff;
}

.payment-reference-grid span,
.payment-total-panel span {
  display: block;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 700;
}

.payment-reference-grid strong {
  display: block;
  margin-top: 5px;
  color: var(--color-text);
  font-size: 13px;
  font-weight: 850;
}

.payment-total-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  border: 1px solid rgba(30, 91, 255, 0.13);
  border-radius: 18px;
  padding: 13px 14px;
  background: linear-gradient(180deg, #f5f9ff 0%, #edf4ff 100%);
}

.payment-total-panel strong {
  color: var(--color-primary);
  font-size: 24px;
  font-weight: 950;
  letter-spacing: 0;
}

.payment-summary-note {
  margin-top: 10px;
}

.payment-method-card,
.payment-receive-card,
.payment-upload-card {
  padding: 16px;
}

.payment-method-card .payment-methods {
  margin-top: 0;
}

.payment-page .payment-methods button {
  min-height: 62px;
  border-color: rgba(218, 227, 240, 0.82);
  border-radius: 16px;
  background: #f8fbff;
  padding: 11px 12px;
}

.payment-page .payment-methods button.active {
  border-color: rgba(30, 91, 255, 0.55);
  background: linear-gradient(180deg, #f4f8ff 0%, #ebf3ff 100%);
  box-shadow: 0 0 0 3px rgba(30, 91, 255, 0.08);
}

.payment-page .payment-method-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: #fff;
  color: var(--color-primary);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 8px 16px rgba(30, 91, 255, 0.08);
}

.payment-page .payment-methods strong {
  color: var(--color-title);
  font-size: 14px;
  font-weight: 850;
}

.payment-page .payment-methods span:not(.payment-method-icon) {
  color: var(--color-muted);
  font-size: 12px;
  line-height: 1.35;
}

.payment-receive-panel {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(218, 227, 240, 0.78);
  border-radius: 18px;
  padding: 13px;
  background: #f8fbff;
}

.payment-receive-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(145deg, #eef5ff, #dfeaff);
  color: var(--color-primary);
  font-size: 16px;
  font-weight: 900;
}

.payment-receive-panel strong {
  display: block;
  color: var(--color-title);
  font-size: 15px;
  font-weight: 850;
}

.payment-receive-panel small {
  display: block;
  margin-top: 3px;
  color: var(--color-muted);
  font-size: 12px;
}

.payment-remark-bar {
  border: 1px solid rgba(218, 227, 240, 0.7);
  border-radius: 16px;
  background: #fff;
}

.payment-remark-bar span strong {
  color: var(--color-title);
  font-weight: 850;
}

.payment-upload-card .upload-placeholder {
  min-height: 118px;
  margin-top: 10px;
  border-color: rgba(30, 91, 255, 0.22);
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbff 0%, #f2f7ff 100%);
}

.payment-upload-card .upload-placeholder .ui-icon {
  width: 22px;
  height: 22px;
  color: var(--color-primary);
}

.payment-submit-hint {
  margin: -2px 2px 0;
  color: var(--color-muted);
  font-size: 12px;
  text-align: center;
}

.payment-submit-hint[hidden] {
  display: none;
}

/* Profile page final visual tightening. */
.mobile-screen:has(.profile-member-card) .compact-hero {
  min-height: 120px;
  padding: 18px 16px 28px;
  margin-bottom: 0;
}

.mobile-screen:has(.profile-member-card) .compact-hero .page-hero-top {
  min-height: 58px;
  align-items: flex-start;
}

.mobile-screen:has(.profile-member-card) .compact-hero h1 {
  font-size: 24px;
  line-height: 1.1;
}

.mobile-screen:has(.profile-member-card) .compact-hero p {
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.35;
}

.profile-member-card {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 20px;
  min-height: 98px;
  margin-top: -24px;
  padding: 18px 16px;
}

.profile-avatar {
  width: 56px;
  height: 56px;
  flex-basis: 56px;
  border-radius: 19px;
  font-size: 22px;
}

.profile-member-copy h2 {
  font-size: 19px;
  font-weight: 900;
  line-height: 1.12;
}

.profile-id-copy {
  margin-top: 5px;
  line-height: 1.35;
}

.profile-id-copy .warehouse-mark {
  display: inline-block;
  white-space: nowrap;
}

.profile-card-chevron {
  align-self: center;
  color: #9aacc4;
}

.profile-card-chevron .ui-icon {
  width: 17px;
  height: 17px;
}

.profile-todo-card {
  padding: 17px 16px 16px;
}

.profile-todo-card .compact-head {
  margin-bottom: 14px;
}

.profile-todo-card .profile-todos {
  gap: 10px;
}

.profile-todos a {
  position: relative;
  display: grid;
  justify-items: start;
  min-height: 82px;
  padding: 11px 10px 10px;
  text-align: left;
  overflow: hidden;
}

.profile-todos a::after {
  content: "";
  position: absolute;
  right: -18px;
  top: -22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(30, 91, 255, 0.06);
}

.profile-todos em {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--color-primary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  font-style: normal;
}

.profile-todos em .ui-icon {
  width: 14px;
  height: 14px;
}

.profile-todos strong {
  margin-top: 7px;
  font-size: 23px;
}

.profile-todos span {
  margin-top: 4px;
}

.profile-todos a.is-muted em {
  color: #95a4b7;
  background: rgba(255, 255, 255, 0.66);
}

.profile-menu {
  border-radius: 20px;
  padding: 3px 14px;
}

.profile-menu .profile-menu-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 18px;
  justify-content: stretch;
  min-height: 66px;
  gap: 12px;
  border-bottom: 0;
  position: relative;
}

.profile-menu .profile-menu-row::after {
  content: "";
  position: absolute;
  left: 44px;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(218, 227, 240, 0.68);
}

.profile-menu .profile-menu-row:last-child::after {
  display: none;
}

.profile-menu-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

.profile-menu-icon .ui-icon {
  width: 15.5px;
  height: 15.5px;
}

.profile-menu .profile-menu-copy {
  min-width: 0;
  text-align: left;
}

.profile-menu .profile-menu-copy strong {
  display: block;
  font-size: 14.2px;
  line-height: 1.2;
  text-align: left;
}

.profile-menu .profile-menu-copy small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.25;
  text-align: left;
}

/* Admin MVP skeleton */
.admin-mvp-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  background: #eef3fa;
  color: #142033;
}

.admin-mvp-sidebar {
  padding: 22px 16px;
  background: linear-gradient(180deg, #103b9f 0%, #0d2d79 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.admin-mvp-brand {
  display: grid;
  gap: 4px;
  padding: 0 4px 12px;
}

.admin-mvp-brand span {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.16);
  font-weight: 800;
}

.admin-mvp-brand strong {
  font-size: 18px;
}

.admin-mvp-brand small {
  color: rgba(255,255,255,.68);
}

.admin-mvp-sidebar nav {
  display: grid;
  gap: 14px;
  overflow-y: auto;
  padding-right: 2px;
}

.admin-mvp-nav-group {
  display: grid;
  gap: 6px;
}

.admin-mvp-nav-group p {
  margin: 0 0 2px;
  padding: 0 8px;
  color: rgba(255,255,255,.45);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
}

.admin-mvp-nav-group div {
  display: grid;
  gap: 4px;
}

.admin-mvp-sidebar a {
  color: rgba(255,255,255,.72);
  text-decoration: none;
  padding: 9px 10px;
  border-radius: 12px;
  font-weight: 650;
  font-size: 13px;
}

.admin-mvp-sidebar a.active,
.admin-mvp-sidebar a:hover {
  color: #fff;
  background: rgba(255,255,255,.14);
}

.admin-mvp-secondary-link {
  margin-top: auto;
  border: 1px solid rgba(255,255,255,.16);
}

.admin-mvp-secondary-link + .admin-mvp-secondary-link {
  margin-top: 0;
}

.admin-mvp-main {
  padding: 24px;
  min-width: 0;
}

.admin-mvp-topbar {
  min-height: 86px;
  padding: 22px 24px;
  border-radius: 22px;
  background: linear-gradient(135deg, #1e5bff 0%, #1749d1 100%);
  color: #fff;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.admin-mvp-topbar p {
  margin: 0 0 4px;
  color: rgba(255,255,255,.72);
  font-size: 12px;
}

.admin-mvp-topbar h1 {
  margin: 0;
  font-size: 24px;
}

.admin-mvp-env {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  color: rgba(255,255,255,.82);
  font-size: 12px;
  white-space: nowrap;
}

.admin-mvp-card {
  background: #fff;
  border: 1px solid rgba(130,155,190,.16);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(30, 60, 114, .06);
  margin-bottom: 14px;
}

.admin-mvp-live-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(36, 101, 244, 0.14);
  border-radius: 14px;
  background: #f6f9ff;
  color: #526982;
  font-size: 12px;
}

.admin-mvp-live-status strong {
  color: #1e5bff;
  font-size: 12px;
}

.admin-mvp-live-status.warning {
  border-color: rgba(233, 151, 54, 0.22);
  background: #fff9ef;
}

.admin-mvp-card-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.admin-mvp-card h2 {
  margin: 0;
  font-size: 17px;
}

.admin-mvp-card p {
  margin: 5px 0 0;
  color: #6b7f99;
  font-size: 13px;
}

.admin-mvp-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.admin-mvp-metric {
  min-height: 92px;
  padding: 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(130,155,190,.16);
  box-shadow: 0 8px 24px rgba(30, 60, 114, .05);
  text-decoration: none;
  color: #142033;
  display: grid;
  align-content: space-between;
}

.admin-mvp-metric span {
  color: #6b7f99;
  font-size: 13px;
}

.admin-mvp-metric strong {
  color: #1e5bff;
  font-size: 28px;
}

.admin-mvp-alert-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 13px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff7eb 0%, #fffdf8 100%);
  border: 1px solid rgba(239, 143, 40, .2);
  color: #9a4f05;
  box-shadow: 0 8px 22px rgba(239, 143, 40, .08);
}

.admin-mvp-alert-strip strong {
  color: #b85d08;
  font-size: 14px;
}

.admin-mvp-alert-strip span {
  color: #7b5b35;
  font-size: 13px;
}

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

.admin-mvp-task-card {
  min-height: 126px;
  padding: 15px;
  border-radius: 18px;
  border: 1px solid rgba(130,155,190,.16);
  background: #f8fbff;
  display: grid;
  align-content: space-between;
  gap: 7px;
  text-decoration: none;
  color: #142033;
}

.admin-mvp-task-card span {
  color: #6b7f99;
  font-size: 13px;
  font-weight: 700;
}

.admin-mvp-task-card strong {
  color: #1e5bff;
  font-size: 32px;
  line-height: 1;
}

.admin-mvp-task-card p {
  margin: 0;
  color: #58708c;
  font-size: 12px;
}

.admin-mvp-task-card em {
  justify-self: flex-start;
  padding: 7px 10px;
  border-radius: 999px;
  background: #edf4ff;
  color: #1e5bff;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}

.admin-mvp-task-card.action {
  background: #fff9ef;
  border-color: rgba(239, 143, 40, .2);
}

.admin-mvp-task-card.action strong,
.admin-mvp-task-card.action em {
  color: #d86f10;
}

.admin-mvp-task-card.action em {
  background: #fff1dd;
}

.admin-mvp-task-card.danger {
  background: #fff5f4;
  border-color: rgba(231, 73, 73, .2);
}

.admin-mvp-task-card.danger strong,
.admin-mvp-task-card.danger em {
  color: #d33c3c;
}

.admin-mvp-task-card.danger em {
  background: #ffe6e4;
}

.admin-mvp-ops-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.admin-mvp-op-item {
  padding: 13px;
  border-radius: 16px;
  background: #f7faff;
  border: 1px solid rgba(130,155,190,.14);
}

.admin-mvp-op-item span {
  display: block;
  color: #6b7f99;
  font-size: 12px;
  font-weight: 700;
}

.admin-mvp-op-item strong {
  display: block;
  margin-top: 7px;
  color: #1e5bff;
  font-size: 22px;
}

.admin-mvp-op-item.success strong {
  color: #158553;
}

.admin-mvp-op-item.progress strong {
  color: #1e5bff;
}

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

.admin-mvp-quick-grid a {
  min-height: 46px;
  padding: 0 12px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #f7faff;
  border: 1px solid rgba(130,155,190,.16);
  color: #142033;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.admin-mvp-quick-grid span {
  color: #8ba0ba;
  font-size: 18px;
}

.admin-mvp-finance-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.admin-mvp-finance-strip div {
  padding: 12px;
  border-radius: 15px;
  background: #f8fbff;
  border: 1px solid rgba(130,155,190,.14);
}

.admin-mvp-finance-strip span {
  display: block;
  color: #6b7f99;
  font-size: 12px;
  font-weight: 700;
}

.admin-mvp-finance-strip strong {
  display: block;
  margin-top: 7px;
  color: #142033;
  font-size: 18px;
}

.admin-mvp-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.admin-mvp-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 800;
  background: #edf4ff;
  color: #1e5bff;
}

.admin-mvp-status.action {
  background: #fff1dd;
  color: #d86f10;
}

.admin-mvp-status.progress {
  background: #edf4ff;
  color: #1e5bff;
}

.admin-mvp-status.success {
  background: #eaf8f1;
  color: #158553;
}

.admin-mvp-status.danger {
  background: #ffe8e6;
  color: #d33c3c;
}

.admin-mvp-status.muted {
  background: #f1f5f9;
  color: #63758b;
}

.admin-mvp-table-wrap {
  overflow-x: auto;
}

.admin-mvp-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-mvp-table th {
  text-align: left;
  color: #6b7f99;
  font-weight: 700;
  padding: 10px;
  border-bottom: 1px solid rgba(130,155,190,.2);
  white-space: nowrap;
}

.admin-mvp-table td {
  padding: 11px 10px;
  border-bottom: 1px solid rgba(130,155,190,.13);
  vertical-align: middle;
}

.admin-mvp-actions {
  white-space: nowrap;
}

.admin-mvp-mini-button,
.admin-mvp-filter button {
  height: 32px;
  border: 0;
  border-radius: 11px;
  padding: 0 12px;
  background: #edf4ff;
  color: #1e5bff;
  font-weight: 700;
  cursor: pointer;
}

.admin-mvp-mini-button[data-write-action="true"] {
  background: #f6f8fb;
  color: #58708c;
}

.admin-mvp-mini-button:disabled {
  cursor: not-allowed;
  opacity: .68;
}

.admin-mvp-action-note {
  margin-left: 5px;
  font-size: 10px;
  font-weight: 600;
  color: #8aa0b9;
}

.admin-mvp-link {
  border: 0;
  background: transparent;
  color: #1e5bff;
  padding: 0;
  font-weight: 700;
  cursor: pointer;
}

.admin-mvp-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.admin-mvp-filter input,
.admin-mvp-filter select,
.admin-mvp-field input,
.admin-mvp-field textarea {
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(130,155,190,.22);
  background: #f7faff;
  padding: 0 12px;
  color: #142033;
}

.admin-mvp-field textarea {
  min-height: 72px;
  padding: 10px 12px;
  resize: vertical;
  font-family: inherit;
}

.admin-mvp-detail-grid,
.admin-mvp-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-mvp-detail-item {
  padding: 12px;
  border-radius: 14px;
  background: #f7faff;
  border: 1px solid rgba(130,155,190,.14);
}

.admin-mvp-detail-item span,
.admin-mvp-field span {
  display: block;
  color: #6b7f99;
  font-size: 12px;
  margin-bottom: 5px;
}

.admin-mvp-detail-item strong {
  display: block;
  font-size: 14px;
}

.admin-mvp-field {
  display: grid;
  gap: 4px;
}

.admin-mvp-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.admin-mvp-review-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, .8fr);
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  background: #f7faff;
  border: 1px solid rgba(130,155,190,.16);
}

.admin-mvp-review-panel h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.admin-mvp-review-panel p {
  margin: 4px 0;
  color: #4a5568;
  font-size: 13px;
}

.admin-mvp-proof-preview {
  min-height: 96px;
  border-radius: 14px;
  border: 1px dashed rgba(30,91,255,.28);
  background: #fff;
  display: grid;
  place-items: center;
  color: #6b7f99;
  font-size: 13px;
}

.admin-mvp-muted {
  color: #6b7f99 !important;
}

.admin-mvp-empty {
  padding: 18px;
  border-radius: 16px;
  background: #f7faff;
  color: #6b7f99;
}

.admin-mvp-empty strong {
  display: block;
  margin-bottom: 6px;
  color: #142033;
}

.admin-mvp-raw-box {
  padding: 14px;
  border-radius: 16px;
  background: #f7faff;
  border: 1px solid rgba(130,155,190,.14);
  color: #526982;
}

.admin-mvp-toast {
  position: fixed;
  top: 18px;
  right: 24px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(20,32,51,.92);
  color: #fff;
  font-size: 13px;
}

@media (max-width: 900px) {
  .admin-mvp-shell {
    grid-template-columns: 1fr;
  }

  .admin-mvp-sidebar {
    position: static;
  }

  .admin-mvp-sidebar nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-mvp-main {
    padding: 14px;
  }

  .admin-mvp-metrics,
  .admin-mvp-task-grid,
  .admin-mvp-ops-grid,
  .admin-mvp-quick-grid,
  .admin-mvp-finance-strip,
  .admin-mvp-split,
  .admin-mvp-detail-grid,
  .admin-mvp-edit-grid,
  .admin-mvp-review-panel {
    grid-template-columns: 1fr;
  }

  .admin-mvp-topbar {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Final H5 header system alignment. Keep page bodies unchanged. */
:root {
  --aces-hero-gradient: radial-gradient(circle at 88% 16%, rgba(255, 255, 255, 0.16), transparent 28%),
    linear-gradient(145deg, #214bb7 0%, #2862e6 58%, #2f72f2 100%);
  --aces-hero-radius: 24px;
  --aces-hero-shadow: 0 12px 28px rgba(28, 72, 132, 0.12);
  --aces-hero-title-size: 24px;
  --aces-hero-subtitle-size: 13px;
}

.page-hero {
  background: var(--aces-hero-gradient);
  border-bottom-left-radius: var(--aces-hero-radius);
  border-bottom-right-radius: var(--aces-hero-radius);
  box-shadow: var(--aces-hero-shadow);
}

.page-hero.compact-hero:not(.home-compact-hero):not(.package-detail-hero) {
  min-height: 126px;
  padding: 18px 16px 22px;
  margin-bottom: 12px;
}

.page-hero.compact-hero:not(.home-compact-hero):not(.package-detail-hero) .page-hero-top {
  min-height: 58px;
  margin-top: 0;
  align-items: flex-start;
}

.page-hero.compact-hero:not(.home-compact-hero):not(.package-detail-hero) h1,
.mobile-screen:has(.profile-member-card) .compact-hero h1,
.mobile-screen:has(.help-page) .compact-hero h1 {
  margin: 0;
  color: #fff;
  font-size: var(--aces-hero-title-size);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0;
}

.page-hero.compact-hero:not(.home-compact-hero):not(.package-detail-hero) p:not(.mobile-eyebrow),
.mobile-screen:has(.profile-member-card) .compact-hero p,
.mobile-screen:has(.help-page) .compact-hero p {
  max-width: 300px;
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--aces-hero-subtitle-size);
  font-weight: 500;
  line-height: 1.38;
}

.page-hero .mobile-eyebrow,
.home-compact-hero .mobile-brand {
  margin: 0 0 4px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.mobile-screen:has(.packages-page) .packages-hero,
.mobile-screen:has(.help-page) .compact-hero,
.mobile-screen:has(.profile-member-card) .compact-hero,
.payment-page .compact-hero {
  min-height: 126px;
  padding: 18px 16px 22px;
  margin-bottom: 12px;
}

.page-hero-top.has-hero-back,
.compact-hero .page-hero-top.has-hero-back {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: flex-start;
  gap: 6px;
}

.page-hero-title-copy {
  min-width: 0;
}

.hero-back-button,
.compact-hero .hero-back-button,
.page-hero .mobile-plain-link {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.hero-back-button:active,
.page-hero .mobile-plain-link:active {
  background: rgba(255, 255, 255, 0.1);
}

.page-hero.home-compact-hero {
  min-height: 156px;
  padding: 14px 16px 10px;
  background: var(--aces-hero-gradient);
  border-bottom-left-radius: var(--aces-hero-radius);
  border-bottom-right-radius: var(--aces-hero-radius);
  box-shadow: var(--aces-hero-shadow);
}

.home-compact-hero .page-hero-top {
  min-height: 58px;
  margin-top: 0;
  align-items: flex-start;
}

.home-compact-hero h1 {
  color: #fff;
  font-size: 23px;
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: 0;
}

.home-compact-hero .hero-subtitle {
  color: rgba(255, 255, 255, 0.86);
  font-size: 12.5px;
  line-height: 1.35;
}

.home-compact-hero .hero-subtitle .warehouse-mark {
  color: #fff;
  font-weight: 800;
}

.home-compact-hero .hero-bell {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.22);
}

.home-compact-hero .hero-bell .ui-icon {
  width: 17px;
  height: 17px;
}

.home-compact-hero .compact-route {
  min-height: 42px;
  margin-top: 9px;
  padding: 6px 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.package-detail-hero.compact-hero {
  min-height: 94px;
  padding: 8px 16px 16px;
  background: var(--aces-hero-gradient);
  border-bottom-left-radius: var(--aces-hero-radius);
  border-bottom-right-radius: var(--aces-hero-radius);
  box-shadow: var(--aces-hero-shadow);
}

.package-detail-hero h1,
.detail-title-side h1 {
  color: #fff;
  font-size: 21px;
  font-weight: 820;
  line-height: 1.12;
  letter-spacing: 0;
}

.package-detail-hero .detail-hero-subtitle {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.28;
}

.detail-back-button {
  color: rgba(255, 255, 255, 0.94);
}

@media (max-width: 374px) {
  .page-hero.compact-hero:not(.home-compact-hero):not(.package-detail-hero),
  .mobile-screen:has(.packages-page) .packages-hero,
  .mobile-screen:has(.help-page) .compact-hero,
  .mobile-screen:has(.profile-member-card) .compact-hero,
  .payment-page .compact-hero {
    min-height: 122px;
    padding: 17px 14px 20px;
  }

  .page-hero.home-compact-hero {
    min-height: 152px;
    padding-left: 14px;
    padding-right: 14px;
  }
}
