body[data-site-runtime="production"] .qinyi-support-launcher {
  right: auto;
  inset-inline-end: 22px;
}

body[data-site-runtime="production"] .qinyi-support-dialog {
  right: auto;
  inset-inline-end: 22px;
  grid-template-rows: 58px minmax(0, 1fr);
}

body[data-site-runtime="production"] .order-portal-layer[hidden],
body[data-site-runtime="production"] .qinyi-support-layer[hidden] {
  display: none;
}

body[data-site-runtime="production"] .order-portal-dialog {
  top: 5vh;
  right: auto;
  bottom: 5vh;
  left: auto;
  inset-inline-end: 5vw;
  display: grid;
  grid-template-rows: 64px minmax(0, 1fr);
  width: min(760px, 90vw);
  max-height: 90vh;
  border-radius: 6px;
  transform: none;
}

body[data-site-runtime="production"] .order-portal-body {
  overflow: auto;
  padding: 24px;
}

body[data-site-runtime="production"] .order-account-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-height: 36px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: .72rem;
}

body[data-site-runtime="production"] .order-account-bar button {
  border: 0;
  background: transparent;
  color: var(--orange-dark);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

body[data-site-runtime="production"] .order-login-form {
  display: grid;
  gap: 14px;
  max-width: 460px;
  margin: 7vh auto 0;
}

body[data-site-runtime="production"] .order-login-form label {
  display: grid;
  gap: 7px;
  font-size: .78rem;
  font-weight: 800;
}

body[data-site-runtime="production"] .order-login-form input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--surface);
}

body[data-site-runtime="production"] .order-code-fields {
  display: grid;
  gap: 14px;
}

body[data-site-runtime="production"] .order-code-fields[hidden] {
  display: none;
}

body[data-site-runtime="production"] .order-portal-body .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

body[data-site-runtime="production"] .order-portal-body .btn.orange {
  border-color: var(--orange);
  background: var(--orange);
}

body[data-site-runtime="production"] .order-portal-body .btn.outline {
  background: transparent;
  color: var(--ink);
}

body[data-site-runtime="production"] .order-login-status,
body[data-site-runtime="production"] .order-portal-error {
  min-height: 24px;
  color: var(--orange-dark);
  font-size: .78rem;
}

body[data-site-runtime="production"] .order-portal-error {
  overflow-wrap: anywhere;
}

body[data-site-runtime="production"] .order-portal-state {
  padding: 54px 12px;
  color: var(--muted);
  text-align: center;
}

body[data-site-runtime="production"] .order-record {
  padding: 20px 0 28px;
  border-bottom: 1px solid var(--line);
}

body[data-site-runtime="production"] .order-record:first-child {
  padding-top: 0;
}

body[data-site-runtime="production"] .order-record-head,
body[data-site-runtime="production"] .customer-quotation-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

body[data-site-runtime="production"] .order-record-head {
  margin-bottom: 22px;
}

body[data-site-runtime="production"] .order-record-head small,
body[data-site-runtime="production"] .customer-quotation-head small {
  color: var(--muted);
  font-size: .68rem;
}

body[data-site-runtime="production"] .order-record-head h3 {
  margin-top: 5px;
  font-size: 1.15rem;
}

body[data-site-runtime="production"] .order-record-head > span,
body[data-site-runtime="production"] .customer-quotation-head > span {
  padding: 6px 9px;
  background: var(--orange);
  color: #fff;
  font-size: .7rem;
  font-weight: 800;
}

body[data-site-runtime="production"] .order-record h4 {
  margin: 20px 0 10px;
  font-size: .82rem;
}

body[data-site-runtime="production"] .customer-quotation {
  margin: 0 0 24px;
  padding: 16px;
  border: 1px solid var(--ink);
  background: var(--surface);
}

body[data-site-runtime="production"] .customer-quotation-head {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

body[data-site-runtime="production"] .customer-quotation-head small,
body[data-site-runtime="production"] .customer-quotation-head strong {
  display: block;
}

body[data-site-runtime="production"] .customer-quotation-head small {
  margin-bottom: 4px;
}

body[data-site-runtime="production"] .customer-quotation-head > span {
  background: var(--soft-green);
  color: var(--green);
}

body[data-site-runtime="production"] .customer-quotation dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

body[data-site-runtime="production"] .customer-quotation dl > div {
  min-width: 0;
  padding: 9px;
  background: var(--paper);
}

body[data-site-runtime="production"] .customer-quotation dt {
  color: var(--muted);
  font-size: .65rem;
}

body[data-site-runtime="production"] .customer-quotation dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  font-size: .78rem;
  font-weight: 800;
}

body[data-site-runtime="production"] .customer-quotation-table {
  overflow-x: auto;
}

body[data-site-runtime="production"] .customer-quotation table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: .72rem;
}

body[data-site-runtime="production"] .customer-quotation th,
body[data-site-runtime="production"] .customer-quotation td {
  padding: 9px 7px;
  border-bottom: 1px solid var(--line);
  text-align: start;
}

body[data-site-runtime="production"] .customer-quotation-terms {
  display: grid;
  gap: 5px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: .72rem;
  white-space: pre-wrap;
}

body[data-site-runtime="production"] .customer-quotation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}

body[data-site-runtime="production"] .customer-quotation-feedback {
  min-height: 20px;
  margin: 10px 0 0;
  color: var(--orange-dark);
  font-size: .72rem;
}

body[data-site-runtime="production"] .order-stage-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
  list-style: none;
}

body[data-site-runtime="production"] .order-stage-list li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  min-height: 42px;
  padding: 6px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: .7rem;
}

body[data-site-runtime="production"] .order-stage-list li span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid currentColor;
}

body[data-site-runtime="production"] .order-stage-list li.is-complete {
  background: var(--soft-green);
  color: var(--green);
}

body[data-site-runtime="production"] .order-stage-list li.is-current {
  border-color: var(--orange);
  background: var(--soft-orange);
  color: var(--ink);
}

@media (max-width: 1320px) {
  body[data-site-runtime="production"] .language-picker summary,
  body[data-site-runtime="production"] .order-portal-trigger {
    min-width: 44px;
    min-height: 44px;
  }
}

@media (max-width: 700px) {
  html {
    scroll-padding-bottom: calc(84px + env(safe-area-inset-bottom));
  }

  body[data-site-runtime="production"] .nav-shell {
    min-width: 0;
    gap: 8px;
  }

  body[data-site-runtime="production"] .brand {
    flex: 0 1 auto;
    min-width: 0;
  }

  body[data-site-runtime="production"] .brand-copy {
    min-width: 0;
  }

  body[data-site-runtime="production"] .brand-copy strong {
    max-width: 96px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body[data-site-runtime="production"] .brand-copy span {
    display: none;
  }

  body[data-site-runtime="production"] .nav-actions {
    min-width: 0;
    gap: 6px;
    margin-inline-start: auto;
  }

  body[data-site-runtime="production"] .language-picker summary,
  body[data-site-runtime="production"] .order-portal-trigger {
    min-width: 44px;
    min-height: 44px;
  }

  body[data-site-runtime="production"] .order-portal-trigger {
    padding-inline: 4px;
    white-space: nowrap;
  }

  body[data-site-runtime="production"] .menu-toggle {
    flex: 0 0 44px;
    margin: 0;
  }

  body[data-site-runtime="production"].qinyi-mobile-actions-ready {
    padding-bottom: calc(84px + env(safe-area-inset-bottom));
  }

  body[data-site-runtime="production"] .qinyi-mobile-actions {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 170;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 54px;
    align-items: center;
    gap: 8px;
    min-height: calc(70px + env(safe-area-inset-bottom));
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 -8px 24px rgba(24, 32, 28, .16);
  }

  body[data-site-runtime="production"] .qinyi-mobile-actions .mobile-quote {
    position: static;
    inset: auto;
    inset-inline: auto;
    grid-column: 1;
    width: 100%;
    min-height: 54px;
    padding: 12px 16px;
    box-shadow: none;
  }

  body[data-site-runtime="production"] .qinyi-mobile-actions .qinyi-support-launcher {
    position: static;
    inset: auto;
    inset-inline: auto;
    grid-column: 2;
    width: 54px;
    height: 54px;
    margin: 0;
    justify-self: end;
  }

  body[data-site-runtime="production"].menu-open .qinyi-mobile-actions,
  body[data-site-runtime="production"].support-open .qinyi-mobile-actions {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }

  body[data-site-runtime="production"] .qinyi-support-launcher {
    inset-inline-end: 12px;
  }

  body[data-site-runtime="production"] .qinyi-support-dialog,
  body[data-site-runtime="production"] .order-portal-dialog {
    inset: 0;
    width: 100%;
    height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0;
    transform: none;
  }

  body[data-site-runtime="production"] .order-portal-body {
    padding: 18px;
  }

  body[data-site-runtime="production"] .customer-quotation dl {
    grid-template-columns: 1fr;
  }

  body[data-site-runtime="production"] .order-stage-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 360px) {
  body[data-site-runtime="production"] .brand-copy {
    display: none;
  }
}
