/* Photography Gallery: scoped to the existing order conversation and its documents. */
html body dialog.pb-order-conversation,
html body dialog.pb-order-chat,
html body dialog.pb-document-detail,
html body dialog.pb-orders-workspace {
  --chat-ink:#1d2933; --chat-muted:#75808b; --chat-green:#004239;
  --chat-line:#e7eaeb; --chat-paper:#ffffff; --chat-pearl:#f7f8f6; --chat-gold:#98621f;
  color:var(--chat-ink); font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;
  font-weight:400; letter-spacing:0; -webkit-text-size-adjust:100%;
}
html body dialog.pb-order-conversation[open] {background:var(--chat-pearl)!important;}
html body .pb-order-conversation>.pb-conversation-header {
  min-height:68px; padding:8px 10px!important; padding-top:max(8px,env(safe-area-inset-top))!important;
  background:#fff!important; gap:4px;
}
html body .pb-order-conversation .pb-conversation-name {grid-template-columns:42px minmax(0,1fr) auto;column-gap:10px;row-gap:2px;}
html body .pb-order-conversation .pb-conversation-name>strong {font-size:16px;font-weight:500;color:var(--chat-ink);line-height:1.4;}
html body .pb-order-conversation .pb-conversation-name>small {font-size:10px;font-weight:400;background:#f1f5f2;color:#526b63;padding:2px 6px;}
html body .pb-order-conversation .pb-conversation-subtitle {font-size:11px;color:var(--chat-muted);font-weight:400;}
html body .pb-order-conversation .pb-conversation-name>.pb-chat-avatar {width:42px;height:42px;}
html body .pb-order-conversation .pb-conversation-header>button {width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;background:transparent!important;}
html body .pb-order-conversation .pb-chat-icon,
html body .pb-document-detail .pb-chat-icon {background:transparent;box-shadow:none;border:0;}
html body .pb-order-conversation>main,
html body .pb-order-conversation>[data-content] {grid-template-rows:auto minmax(0,1fr) auto auto auto!important;padding:0 12px!important;}
html body .pb-order-conversation .pb-chat-pins.pb-order-summary {padding:4px 0 8px;background:transparent!important;border:0;border-radius:0;gap:0;margin:0;}
/* Duplicate shortcuts move into the existing + drawer, with the same handlers. */
html body .pb-gallery-order .pb-chat-pins>.pb-summary-heading,
html body .pb-gallery-order .pb-chat-pins>.pb-document-link:not([data-service-kind=demand]) {display:none!important;}
html body .pb-order-conversation .pb-chat-pins>.pb-document-link[data-service-kind=demand] {
  display:grid!important;grid-template-columns:34px minmax(0,1fr) auto 12px;gap:9px;
  padding:8px 10px!important;min-height:60px!important;border-radius:10px;
  background:#f1f4f1!important;border:0!important;
}
html body .pb-order-conversation .pb-chat-pins .pb-document-icon {width:34px;height:36px;border-radius:8px;background:#e1ebe5;}
html body .pb-order-conversation .pb-chat-pins .pb-document-kind {display:none;}
html body .pb-order-conversation .pb-document-copy strong {font-size:14px;font-weight:500;color:var(--chat-ink);}
html body .pb-order-conversation .pb-document-copy small {font-size:12px;line-height:1.5;color:var(--chat-muted);font-weight:400;}
html body .pb-order-conversation .pb-chat-pins .pb-document-copy strong,
html body .pb-order-conversation .pb-chat-pins .pb-document-copy small {display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
html body .pb-order-conversation .pb-document-action {color:var(--chat-green);font-size:12px;font-weight:400;white-space:nowrap;max-width:none;}
html body .pb-order-conversation .pb-chat-pins .pb-document-link {grid-template-columns:auto minmax(0,1fr) max-content 14px;}
html body .pb-order-conversation .pb-chat-stream {padding:0 2px 28px;scroll-padding:12px;}
html body .pb-order-conversation .pb-chat-stream::before {padding:12px 0 14px;color:#85909a;font-size:11px;}
html body .pb-order-conversation .pb-chat-stream article {font-weight:400;line-height:1.65;box-shadow:none!important;border-color:var(--chat-line)!important;border-radius:13px!important;}
html body .pb-order-conversation .pb-chat-stream article p {font-size:15px;line-height:1.65;font-weight:400;color:inherit;}
html body .pb-order-conversation .pb-chat-stream .pb-chat-other,
html body .pb-order-conversation .pb-chat-stream .pb-chat-mine {max-width:min(calc(100% - 82px),420px);padding:11px 13px!important;margin-top:12px!important;margin-bottom:32px!important;}
html body .pb-order-conversation .pb-chat-stream .pb-chat-other {margin-left:42px!important;background:#fff!important;border-top-left-radius:5px!important;}
html body .pb-order-conversation .pb-chat-stream .pb-chat-mine {margin-right:42px!important;background:#eaf4e9!important;border-color:#eaf4e9!important;border-top-right-radius:5px!important;color:#173c32;}
html body .pb-order-conversation .pb-chat-stream .pb-chat-avatar {width:32px;height:32px;left:-42px;top:0;border-radius:50%;background:#f0f3ef;}
html body .pb-order-conversation .pb-chat-mine .pb-chat-avatar {left:auto;right:-42px;}
html body .pb-order-conversation .pb-chat-stream .pb-chat-other>small,
html body .pb-order-conversation .pb-chat-stream .pb-chat-mine>small {font-size:10px!important;color:#8b949d!important;font-weight:400;padding-top:5px;}
html body .pb-order-conversation .pb-chat-stream .pb-chat-photo-message {padding:0!important;overflow:visible;border:0!important;background:transparent!important;}
html body .pb-order-conversation .pb-chat-photo-message>img:not(.pb-chat-icon) {display:block;width:100%!important;height:auto;max-width:320px!important;max-height:330px!important;object-fit:contain;border-radius:12px!important;background:transparent;}
html body .pb-order-conversation .pb-chat-service:not(.pb-code-card) {max-width:100%;width:auto;margin:0 auto 12px!important;padding:4px 0!important;background:transparent!important;border:0!important;text-align:center;}
html body .pb-order-conversation .pb-chat-service:not(.pb-code-card)>p {font-size:11px!important;color:var(--chat-muted);margin:0!important;}
html body .pb-order-conversation .pb-chat-stream .pb-chat-history {background:#fff!important;border-color:var(--chat-line)!important;color:var(--chat-ink);}
html body .pb-order-conversation .pb-chat-stream .pb-chat-history h3 {font-weight:500;font-size:14px!important;}
html body .pb-order-conversation .pb-chat-stream .pb-service-card,
html body .pb-order-conversation .pb-chat-stream .pb-code-card {background:#faf7ee!important;border-color:#ece6d7!important;}
html body .pb-order-conversation .pb-chat-album .pb-document-link {background:#fff!important;border-color:var(--chat-line)!important;border-radius:12px;grid-template-columns:64px minmax(0,1fr) auto 12px;}
html body .pb-order-conversation .pb-chat-album .pb-document-icon,
html body .pb-order-conversation .pb-chat-album .pb-document-icon>img {width:64px!important;height:76px!important;object-fit:cover;}
html body .pb-order-conversation .pb-chat-stream .pb-chat-album-card {border-radius:12px!important;background:#fff!important;}
html body .pb-order-conversation .pb-chat-album-grid {gap:4px;}
html body .pb-order-conversation .pb-chat-album-grid button {min-height:44px!important;border-radius:7px;}
html body .pb-gallery-order .pb-chat-tool-grid {
  grid-row:5!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
  padding:16px 0 max(14px,env(safe-area-inset-bottom));gap:12px 4px;
  margin:0 -12px;max-height:280px;max-height:min(310px,38dvh);border-radius:16px 16px 0 0;background:#fff;
  overscroll-behavior:contain;scroll-padding:16px;align-items:start;
}
html body .pb-order-conversation .pb-chat-tool-grid[hidden] {display:none!important;}
html body .pb-order-conversation .pb-chat-tool-grid button {
  display:flex!important;flex-direction:column;align-items:center;justify-content:flex-start;grid-row:auto;
  min-height:88px!important;min-width:0;width:100%;gap:8px;margin:0!important;padding:0 2px!important;
  border:0!important;background:transparent!important;color:var(--chat-ink)!important;
  border-radius:12px!important;font-size:13px;font-weight:400;line-height:1.45;word-break:normal;
}
html body .pb-order-conversation .pb-chat-tool-grid button>.pb-chat-icon {order:-1;display:block;width:54px!important;height:54px!important;padding:14px;box-sizing:border-box;border-radius:50%!important;background:#f3f6f3!important;}
html body .pb-order-conversation .pb-chat-tool-grid .pb-tool-label {font-size:13px;line-height:1.4;white-space:pre-line;font-weight:400;}
html body .pb-order-conversation .pb-history-jump {grid-row:auto!important;}
html body .pb-gallery-order .pb-chat-editor:not(:empty) {grid-row:3;max-height:260px;max-height:34dvh;margin-bottom:8px;background:#fff;border:1px solid var(--chat-line);border-radius:12px;padding:12px;}
html body .pb-gallery-order .pb-conversation-composer {grid-row:4!important;gap:4px;min-height:68px;margin:0 -12px;padding:10px 10px max(10px,env(safe-area-inset-bottom));border:0;background:#fff;}
html body .pb-gallery-order.pb-order-chat.pb-order-conversation>[data-content] {grid-template-rows:auto minmax(0,1fr) auto auto auto auto!important;}
html body .pb-gallery-order.pb-order-chat.pb-order-conversation>[data-content]>.pb-chat-tool-grid {grid-row:5!important;}
html body .pb-gallery-order.pb-order-chat.pb-order-conversation>[data-content]>.pb-conversation-composer {grid-row:6!important;}
html body .pb-order-conversation .pb-conversation-composer>button:not(.pb-composer-send) {width:44px!important;min-width:44px!important;height:44px;min-height:44px!important;flex:0 0 44px;padding:9px!important;}
html body .pb-order-conversation .pb-conversation-composer .pb-chat-icon {width:26px!important;height:26px!important;}
html body .pb-order-conversation .pb-conversation-composer textarea {min-height:44px!important;height:44px!important;max-height:96px;padding:11px 14px!important;font-size:14px;line-height:20px;border:1px solid #e4e8eb!important;border-radius:24px!important;background:#f8fafb!important;color:var(--chat-ink);}
html body .pb-order-conversation .pb-conversation-composer .pb-composer-plus {border-radius:14px;background:#deebe3!important;}
html body .pb-order-conversation .pb-conversation-composer .pb-composer-send {min-width:54px!important;min-height:44px!important;background:var(--chat-green)!important;color:#fff!important;border-radius:12px;font-size:13px;}
html body .pb-order-conversation>[data-status],html body .pb-order-conversation>[role=status] {max-height:64px;font-size:12px;line-height:1.55;color:#92672d;background:#fffaf0;}
html body .pb-document-detail {background:#fff!important;border:1px solid var(--chat-line)!important;border-radius:16px;padding:16px;color:var(--chat-ink);}
html body .pb-document-detail h2 {font-size:19px;font-weight:500;line-height:1.4;}
html body .pb-document-detail h3 {font-size:15px;font-weight:500;}
html body .pb-document-detail p {font-size:14px;line-height:1.65;font-weight:400;}
html body .pb-document-detail button,html body .pb-order-chat button {min-height:44px;}
html body .pb-document-detail input[type=checkbox],html body .pb-order-chat input[type=checkbox] {accent-color:var(--chat-green);}
html body .pb-document-detail .pb-demand-submitted label {padding:11px 12px;background:#f7f9f8;border-color:var(--chat-line);border-radius:10px;font-size:13px;}
html body .pb-document-detail .pb-demand-label {font-weight:500;}
html body .pb-document-detail .pb-demand-value {font-weight:400;}
html body .pb-order-conversation .pb-chat-stream .pb-inline-review {width:100%;max-width:100%;padding:14px!important;}
html body .pb-order-conversation .pb-inline-review .pb-rating-stars button {min-width:44px;min-height:44px;}
html body .pb-order-conversation .pb-inline-review button {min-height:44px!important;}
html body .pb-order-conversation .pb-review-keywords-fold>summary {display:flex;align-items:center;min-height:44px;cursor:pointer;font-size:13px;color:#5c6c65;}
html body .pb-order-conversation .pb-inline-review textarea {min-height:88px;background:#fafbf9;border-color:var(--chat-line);border-radius:10px;font-size:14px;}
html body .pb-order-conversation .pb-inline-review>button,
html body .pb-order-conversation .pb-chat-history>button {min-height:44px;background:var(--chat-green)!important;color:#fff!important;border-radius:9px;}
html body .pb-orders-workspace .pb-ow-summary,html body .pb-orders-workspace .pb-ow-bill {border-color:var(--chat-line);background:#fff;border-radius:12px;box-shadow:none;}
html body .pb-orders-workspace .pb-ow-amounts strong,html body .pb-orders-workspace .pb-ow-order>span {color:var(--chat-gold);font-weight:500;}
html body .pb-orders-workspace .pb-ow-actions button {min-height:44px;background:var(--chat-green);border-radius:10px;}
html body .pb-order-conversation button:disabled,html body .pb-document-detail button:disabled {opacity:.5;cursor:not-allowed;}
html body .pb-document-detail .pb-promise-field-title {min-height:44px;}
html body .pb-document-detail select:not(:disabled),html body .pb-document-detail input:not([type=checkbox]):not([readonly]):not(:disabled) {min-height:44px!important;}
html body .pb-order-conversation :focus-visible,html body .pb-document-detail :focus-visible {outline:2px solid #287a6b;outline-offset:2px;}
@media (max-width:350px) {
  html body .pb-order-conversation .pb-conversation-name {grid-template-columns:34px minmax(0,1fr) auto;column-gap:6px;}
  html body .pb-order-conversation .pb-conversation-name>.pb-chat-avatar {width:34px;height:34px;}
  html body .pb-order-conversation .pb-conversation-name>strong {font-size:15px;}
  html body .pb-order-conversation .pb-conversation-name>small {font-size:10px;}
  html body .pb-order-conversation .pb-conversation-subtitle {grid-column:2;font-size:10px;}
  html body .pb-order-conversation .pb-chat-tool-grid button>.pb-chat-icon {width:48px!important;height:48px!important;padding:12px;}
  html body .pb-gallery-order .pb-chat-tool-grid {gap:10px 2px;}
  html body .pb-order-conversation .pb-chat-stream article p {font-size:14px;}
  html body .pb-order-conversation .pb-chat-pins>.pb-document-link[data-service-kind=demand] {grid-template-columns:30px minmax(0,1fr) auto 10px;gap:6px;}
  html body .pb-order-conversation .pb-document-action {font-size:11px;}
}
/* Paibei batch 20261130: full-bleed chat dialogs, top-aligned clothing images & rental stage notice cards */
html body dialog.pb-order-conversation,
html body dialog.pb-consultation-chat,
html body dialog.pb-rental-order-chat {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
}
[data-clothing-shop-compact] img:not(.avatar):not([data-avatar]),
[data-slot="storefront-section"] img:not(.avatar):not([data-avatar]),
[data-slot="product-card"] img:not(.avatar):not([data-avatar]),
[data-slot="product-gallery"] img:not(.avatar):not([data-avatar]),
.clothes-card img,
.merchant-product-thumb img,
.products img {
  object-position: center top !important;
}
html body .pb-order-conversation .pb-chat-stream article.pb-stage-notice-card {
  width: min(calc(100% - 20px), 420px) !important;
  max-width: min(calc(100% - 20px), 420px) !important;
  margin: 12px auto 16px !important;
  padding: 12px 14px !important;
  background: #eef3f7 !important;
  border: 1px solid #d5dfe9 !important;
  border-radius: 14px !important;
  box-sizing: border-box !important;
}
html body .pb-order-conversation .pb-stage-notice-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
html body .pb-order-conversation .pb-system-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #526575;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}
html body .pb-order-conversation .pb-stage-notice-head > small {
  position: static !important;
  padding: 0 !important;
  font-size: 11px !important;
  color: #627080 !important;
}
html body .pb-order-conversation .pb-stage-notice-card > p {
  margin: 4px 0 0 !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
  color: #243140 !important;
}
html body .pb-order-conversation .pb-stage-notice-images {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}
html body .pb-order-conversation .pb-stage-notice-images img {
  width: 100% !important;
  aspect-ratio: 1;
  object-fit: cover !important;
  object-position: center top !important;
  border-radius: 8px !important;
  cursor: pointer;
  background: #e4eaf0;
}
