.app-shell > .global-share-button {
  position: absolute;
  z-index: 1202;
  top: calc(13px + env(safe-area-inset-top, 0px));
  right: max(14px, env(safe-area-inset-right, 0px));
  min-height: 38px;
}
.bottom-nav .ai-star { transform-box: fill-box; transform-origin: center; }

.app-shell :is(.teach-header, .teach-topbar, .map-header, .profile-heading) {
  padding-right: 90px;
}

@media (min-width: 900px) {
  .app-shell > .global-share-button { right: 24px; top: 17px; }
  .app-shell :is(.teach-header, .teach-topbar, .map-header, .profile-heading) { padding-right: 106px; }
}

.app-shell [data-teacher-gender] { --order-font: #fff; }
.app-shell [data-teacher-gender="male"] { --order-font: #b5dcff; }
.app-shell [data-teacher-gender="female"] { --order-font: #ffc7e2; }
.app-shell [data-teacher-gender]:is(.order-card, .home-order-detail, .result-card),
.app-shell [data-teacher-gender] :is(h3, strong, small, b, .tag, .home-order-tags span, .result-location, .result-reasons,
  .card-pay-inline, .card-location, .location-distance, .location-pending, .card-recommendation span, .order-number) {
  color: var(--order-font);
}

.order-copy-count { color: var(--muted, #627087); font-size: .78rem; margin-inline: .5rem; }
.order-result { content-visibility: auto; contain-intrinsic-block-size: auto 126px; }
.more-orders {
  display: block;
  min-height: 42px;
  width: 100%;
  margin: 8px 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  font-weight: 700;
}
.app-shell .order-wechat-button {
  padding: 8px 14px;
  border-radius: 8px;
  background: #24694a;
  color: #fff;
  font-weight: 700;
}

.order-wechat img, .admin-wechat-preview img {
  display: block;
  margin: 10px 0;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  padding: 5px;
  background: #fff;
  border-radius: 8px;
}

.order-import-source {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.order-import-source select, .collector-city-list select {
  max-width: 100%;
  min-width: 0;
  padding: 6px 9px;
  border: 1px solid #bac4d1;
  border-radius: 7px;
  color: #17253a;
  background: #fff;
  font: inherit;
}

.order-recheck textarea { min-height: 72px; }
.order-recheck .ghost { margin-top: 7px; }
.order-recheck-status { margin: 6px 0 0; }

.order-sender-policy dl { display:grid; gap:12px; margin:0; }
.order-sender-policy dt { font-weight:750; }
.order-sender-policy dd {
  margin:4px 0 0;
  color:var(--muted);
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}
.sender-policy-form:not([hidden]) {
  max-width:44rem;
  display:grid;
  gap:14px;
}
.sender-policy-form label {
  display:grid;
  gap:6px;
  font-weight:700;
}
.sender-policy-form select,
.sender-policy-form textarea {
  width:100%;
  min-width:0;
  padding:9px 12px;
  color:inherit;
  font:inherit;
  font-weight:400;
  border:1px solid #dfe6ef;
  border-radius:10px;
}
.sender-policy-form textarea { resize:vertical; }
.sender-policy-form button { justify-self:start; min-height:40px; padding:0 15px; }
