.app-shell .home-page > .teach-header { padding-right: max(14px, env(safe-area-inset-right, 0px)); }
.app-shell:has(.home-page.active) > .global-share-button { right: max(108px, calc(env(safe-area-inset-right, 0px) + 94px)); }
.teacher-parent-link { display: inline-flex; align-items: center; gap: 5px; margin-inline-start: auto; min-height: 40px; padding: 0 2px; border-radius: 8px; color: #f2f3f6; font-size: .88rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
.teacher-parent-link:hover { color: #ffdc45; }
.teacher-page-brand .teach-mark { flex: none; }
.detail-sheet .commute-addresses { border-color: #3b404a; }
.detail-sheet .commute-addresses small { color: #aeb8c8; }
.detail-sheet .commute-addresses strong { color: #f3f6fb; overflow-wrap: anywhere; }
.detail-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 0 0 3px; }
.detail-sheet .detail-title-row h2 { margin: 0; }
.detail-sheet .detail-favorite, .detail-sheet .detail-favorite[aria-pressed="true"] {
  display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0;
  border: 0; border-radius: 12px; font-size: 24px; line-height: 1; background: transparent; color: #fff;
  transition: color .17s ease, background .17s ease, transform .17s ease;
}
.detail-sheet .detail-favorite[aria-pressed="true"] { color: #ffda3d; }
.detail-sheet .detail-favorite:hover { background: #30333b; transform: scale(1.08); }
.detail-sheet .detail-favorite:active { transform: scale(.9); }
.detail-publisher { margin: 0 0 8px; color: #b7c2d0; font-size: .83rem; }
.detail-sheet .order-wechat {
  display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 12px;
  background: #22282c; border: 1px solid #38484a; padding: 14px; border-radius: 15px;
}
.order-wechat-heading { display: flex; align-items: center; gap: 10px; min-width: 0; }
.order-wechat-heading small { display: block; margin-top: 3px; color: #b9c5c9; }
.order-wechat-icon { flex: 0 0 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: #8ce6ae; background: #263f36; font-weight: 800; }
.order-wechat .order-wechat-button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 12px; border: 1px solid #4a8b6b; border-radius: 10px; color: #a1f5c2; background: #294139; font-weight: 700; white-space: nowrap; }
.order-wechat .order-wechat-button:hover { background: #355a49; }
.order-wechat-button[aria-expanded="true"] span:last-child { transform: rotate(180deg); }
.order-wechat #orderWechatPanel:not([hidden]) { grid-column: 1 / -1; text-align: center; padding: 12px; border-top: 1px solid #38484a; }
.order-wechat #orderWechatPanel p { margin: 0 0 8px; color: #d5e5e0; }
.order-wechat #orderWechatPanel img { max-width: 100%; height: auto; padding: 6px; border-radius: 10px; background: #fff; }
.order-card.self-operated-order, .home-order-row.self-operated-order, .favorite-row.self-operated-order,
.result-card.self-operated-order, #adminOrderList .admin-order-card.self-operated-order {
  --self-operated-gold: #ffdf7b;
  --ink: var(--self-operated-gold);
  --muted: var(--self-operated-gold);
  --blue: var(--self-operated-gold);
  color: var(--ink);
  border-color: #d9aa45;
}
#adminOrderList .admin-order-card.self-operated-order { --self-operated-gold: #765400; }
.app-shell .self-operated-order[data-teacher-gender], .app-shell .self-operated-order [data-teacher-gender] { --order-font: var(--self-operated-gold); }
.order-card.self-operated-order:is(:hover,.focused), .home-order-row.self-operated-order:hover,
.favorite-row.self-operated-order:hover, .result-card.self-operated-order:hover,
#adminOrderList .admin-order-card.self-operated-order:hover { border-color: #ffdd79; }
.self-operated-order :is(.card-meta,.card-location,.card-location svg,.card-meta svg,.result-location,.result-reasons,.order-number,.card-recommendation,.location-distance,.location-pending),
.self-operated-order .result-reasons, #adminOrderList .self-operated-order :is(.admin-order-main p,.card-side span) { color: var(--muted); }
.self-operated-order :is(.card-location,.result-reasons) { border-color: #ac7c2d60; }
.self-operated-order .card-pay :is(strong,small), #adminOrderList .self-operated-order .card-side strong { color: var(--ink); }
.self-operated-order :is(.tag,.home-order-tags span,.tags span), .self-operated-order .card-recommendation b,
.self-operated-order .card-recommendation.muted b { color: var(--self-operated-gold); }
.self-operated-badge { display: inline-block; margin-left: .45em; padding: .16em .35em; vertical-align: middle; color: var(--self-operated-gold, #ffdf7b); font-size: .7rem; font-weight: 800; white-space: nowrap; }
.favorite-row button:first-child .self-operated-badge { display: inline-block; color: var(--self-operated-gold); }
.parent-inbox [hidden], .parent-review-dialog [hidden] { display: none !important; }
.parent-inbox-tools, .parent-inbox-tools > div, .parent-request-actions, .parent-map-check { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.parent-inbox-tools { justify-content: space-between; }
.side-link #parentRequestBadge:not([hidden]) { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; margin-inline-start: auto; border-radius: 99px; background: #ffdb55; color: #211a08; font-size: 12px; }
.parent-inbox-tools [data-parent-kind] span:not([hidden]) { margin-inline-start: 4px; color: #624900; font-size: .78rem; }
.product-data-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.product-node-panel { margin: 14px 0 18px; }
#productNodes { overflow-x: auto; }
#productNodes .analytics-table { min-width: 620px; }
.inbox-button { border: 1px solid #c5cedc; padding: 9px 13px; border-radius: 9px; background: #fff; color: #243047; font-weight: 700; cursor: pointer; }
.inbox-button:hover { background: #f4f6fa; }
.inbox-button:disabled { opacity: .55; cursor: wait; }
.inbox-button[aria-pressed="true"], .inbox-button.primary { background: #ffda59; color: #251f10; border-color: #eab83b; }
.parent-request-list { display: grid; gap: 12px; margin: 12px 0; }
.parent-request-card { border: 1px solid #dce2eb; border-radius: 14px; padding: 16px; background: #fff; min-width: 0; overflow-wrap: anywhere; }
.parent-request-card header, .parent-review-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.parent-request-card h3, .parent-review-dialog h2 { margin: 0; }
.parent-request-state { padding: 4px 8px; border-radius: 7px; background: #fff3cd; color: #624600; font-size: .85rem; white-space: nowrap; }
.parent-request-details { white-space: pre-line; }
.parent-private-contact { color: #324762; font-weight: 700; }
.parent-request-actions { margin-top: 12px; }
.parent-review-dialog { width: min(650px,calc(100vw - 24px)); max-height: calc(100dvh - 28px); padding: 20px; border: 1px solid #d7dfe9; border-radius: 16px; color: #222c40; background: white; }
.parent-review-dialog::backdrop { background: #101c34a6; }
.parent-review-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 12px 0; }
.parent-review-dialog label { display: grid; gap: 5px; font-weight: 700; min-width: 0; }
.parent-review-dialog input, .parent-review-dialog select, .parent-review-dialog textarea { width: 100%; min-width: 0; padding: 9px 10px; border: 1px solid #c8d1de; border-radius: 8px; color: #222c40; background: #fff; font: inherit; font-weight: 400; }
.parent-review-dialog fieldset { padding: 12px; border: 1px solid #dce2eb; border-radius: 10px; }
.parent-review-wide { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .app-shell .home-page > .teach-header { padding-right: var(--desktop-gutter); }
  .app-shell:has(.home-page.active) > .global-share-button { right: calc(var(--desktop-gutter) + 93px); }
}
@media (max-width: 560px) {
  .parent-review-grid { grid-template-columns: minmax(0,1fr); }
}
@media (prefers-reduced-motion: reduce) { .detail-sheet .detail-favorite { transition: none; } }
