/* The welcome film and the Find deck share the ink and paper of the home edition. */
html[data-device=phone] #linyin-trade-friends .ly-header .ly-brand {
  min-width: 0; min-height: 44px; gap: 7px;
  font: 700 14px/1.2 system-ui, sans-serif; white-space: normal;
}
html[data-device=phone] #linyin-trade-friends .ly-header .ly-brand-icon { width: 28px; height: 28px; border-radius: 5px; }
html[data-device=phone].pk-deck-open #linyin-trade-friends .ly-header .ly-mobile-slogan {
  display: block; margin-top: 2px; color: var(--folio-muted);
  font: 500 11px/1.2 system-ui, sans-serif;
}
@media (max-width: 359px) {
  html[data-device=phone] #linyin-trade-friends:lang(en) .ly-header .ly-brand-icon { display: none; }
}
html[data-device=phone] #linyin-trade-friends {
  --home-phone-ink: #202823;
  --home-phone-paper: #fff;
  --home-phone-line: #e8e9eb;
  --ly-accent: #465760;
  --home-phone-green: #204c3f;
  --phone-card-radius: 18px;
  --phone-control-radius: 12px;
  --folio-bg: var(--home-phone-paper);
  --folio-sheet: var(--home-phone-paper);
  --folio-line: var(--home-phone-line);
  --ly-page: var(--home-phone-paper);
  --ly-panel: var(--home-phone-paper);
}
html[data-device=phone], html[data-device=phone] body, html[data-device=phone] #ly-pocket { background: #fff; }
html[data-device=phone],
html[data-device=phone] :is(body,dialog,#pocket-inquiry-content,#pm-product-fields) {
  touch-action: manipulation;
  touch-action: pan-x pan-y;
}

html[data-ios-standalone][data-profile-status] .pm-cover::after {
  background: linear-gradient(180deg,var(--profile-status-color),#101f2624 30%,#13272a4a 44%,#0b1a20ed);
}
html[data-device=phone] #pocket-filter-form :is(input,select) { background: #fff; }
html[data-device=phone] #linyin-trade-friends #brand-about {
  max-width: 470px;
  width: calc(100% - 24px);
  border-radius: var(--phone-card-radius);
  background: var(--home-phone-paper);
  color: var(--home-phone-ink);
}
html[data-device=phone] #brand-about::backdrop { background: rgb(24 31 25 / 66%); }
html[data-device=phone] #brand-about .bf-about-head {
  min-height: 48px;
  padding: 0 18px;
  border-bottom: 0;
  color: var(--home-phone-ink);
  font-weight: 650;
}
html[data-device=phone] #linyin-trade-friends #brand-close {
  min-height: 44px;
  color: #525c53;
  text-align: end;
}
html[data-device=phone] #linyin-trade-friends #brand-about #brand-film .bf-type { width: 88%; }
html[data-device=phone] #linyin-trade-friends #brand-about #brand-film .bf-intro-line { display: none; }
html[data-device=phone] #linyin-trade-friends #brand-about #brand-slogan {
  font-size: clamp(22px, 6.8vw, 35px);
  line-height: 1.24;
}
html[data-device=phone] #linyin-trade-friends:lang(en) #brand-about #brand-slogan {
  font-size: clamp(21px, 5.7vw, 29px);
}
html[data-device=phone] #brand-about .bf-about-body { padding: 22px 22px 18px; }
html[data-device=phone] #linyin-trade-friends #brand-about-title {
  margin-bottom: 9px;
  color: var(--home-phone-ink);
  font-size: clamp(24px, 6.9vw, 30px);
}
html[data-device=phone] #linyin-trade-friends #brand-about .bf-about-body > p {
  color: #4e574e;
  font-size: 15px;
  line-height: 1.7;
}
html[data-device=phone] #brand-about .bf-about-actions {
  gap: 9px 18px;
  align-items: center;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--home-phone-line);
}
html[data-device=phone] #linyin-trade-friends #brand-enter {
  min-height: 44px;
  background: var(--home-phone-green);
}
html[data-device=phone] #brand-about #brand-credits summary { padding-block: 8px; }

html[data-device=phone] #linyin-trade-friends #ly-pocket [data-pocket-view=find] {
  --folio-ink: var(--home-phone-ink);
  --folio-line: var(--home-phone-line);
  --folio-sheet: var(--home-phone-paper);
  --folio-green: var(--home-phone-green);
}
html[data-device=phone] #linyin-trade-friends #ly-pocket [data-pocket-view=find] :is(#pocket-stack,#pocket-card,#pocket-next) {
  border-radius: 3px;
}
html[data-device=phone] #linyin-trade-friends #ly-pocket [data-pocket-view=find] #pocket-actions .pk-choice {
  border-radius: 3px;
}
html[data-device=phone] #linyin-trade-friends #ly-pocket [data-pocket-view=find] .pk-face-contact {
  text-decoration-color: #98a79b;
  text-underline-offset: 4px;
}

/* Keep the photo, both links, and the gesture surface in their original buttons. */
@supports (grid-template-rows: subgrid) {
  @media (orientation: portrait) {
    html[data-device=phone] #linyin-trade-friends #ly-pocket [data-pocket-view=find] :is(#pocket-card,#pocket-next) {
      --byline-photo: clamp(78px, 29vw, 132px);
      display: grid;
      grid-template-columns: var(--byline-photo) minmax(0, 1fr);
      grid-template-rows: auto auto minmax(0, 1fr);
      gap: 0 clamp(13px, 4vw, 20px);
      padding-top: clamp(20px, 3.5dvh, 32px);
    }
    html[data-device=phone] #linyin-trade-friends #ly-pocket [data-pocket-view=find] :is(#pocket-photo,.pk-face-photo) {
      display: grid;
      grid-area: 1 / 1 / 3 / -1;
      grid-template: subgrid / subgrid;
      gap: inherit;
      min-height: 0;
    }
    html[data-device=phone] #linyin-trade-friends #ly-pocket [data-pocket-view=find] :is(#pocket-cover,.pk-face-cover) {
      grid-area: 1 / 1 / 3 / 2;
      align-self: center;
      width: var(--byline-photo);
      height: calc(var(--byline-photo) * 1.22);
      border-radius: var(--phone-control-radius);
      object-fit: cover;
    }
    html[data-device=phone] #linyin-trade-friends #ly-pocket [data-pocket-view=find] .pk-info { display: contents; }
    html[data-device=phone] #linyin-trade-friends #ly-pocket [data-pocket-view=find] .pk-identity {
      grid-area: 1 / 2;
      align-self: end;
      pointer-events: none;
    }
    html[data-device=phone] #linyin-trade-friends #ly-pocket [data-pocket-view=find] :is(#pocket-name,.pk-face-name) {
      font-size: clamp(24px, 7.15vw, 34px);
      line-height: 1.04;
      letter-spacing: -.035em;
    }
    html[data-device=phone] #linyin-trade-friends #ly-pocket [data-pocket-view=find] :is(#pocket-role,.pk-face-role) {
      color: #505950;
      font-size: 13px;
      line-height: 1.35;
      margin-top: 6px;
    }
    html[data-device=phone] #linyin-trade-friends #ly-pocket [data-pocket-view=find] .pk-folio-meta {
      grid-area: 2 / 2;
      align-self: start;
      gap: 2px;
      padding-top: 6px;
      color: #59665c;
    }
    html[data-device=phone] #linyin-trade-friends #ly-pocket [data-pocket-view=find] .pk-field-label {
      position: absolute;
      width: 1px;
      height: 1px;
      overflow: hidden;
      clip-path: inset(50%);
      white-space: nowrap;
    }
    html[data-device=phone] #linyin-trade-friends #ly-pocket [data-pocket-view=find] :is(#pocket-topic,.pk-face-topic,#pocket-where,.pk-face-where) {
      color: #59665c;
      font-size: 12px;
      font-weight: 450;
      line-height: 1.35;
    }
    html[data-device=phone] #linyin-trade-friends #ly-pocket [data-pocket-view=find] .pk-folio-brief {
      grid-area: 3 / 1 / 4 / -1;
      margin-top: clamp(16px, 3.6dvh, 34px);
      padding-top: clamp(18px, 4.8dvh, 48px);
      border-top: 1px solid var(--home-phone-line);
      overflow: hidden;
    }
    html[data-device=phone] #linyin-trade-friends #ly-pocket [data-pocket-view=find] .pk-purchase-label {
      display: block;
      margin-bottom: 8px;
      color: #56685a;
      font: 500 13px/1.4 -apple-system, 'PingFang SC', sans-serif;
      letter-spacing: normal;
    }
    html[data-device=phone] #linyin-trade-friends #ly-pocket [data-pocket-view=find] .pk-face-product {
      display: block;
    }
    html[data-device=phone] #linyin-trade-friends:lang(en) #ly-pocket .pk-face-product::first-letter {
      text-transform: uppercase;
    }
    html[data-device=phone] #linyin-trade-friends #ly-pocket [data-pocket-view=find] .pk-face-want {
      color: var(--home-phone-ink);
      font: 600 clamp(25px, 7.3vw, 34px)/1.28 var(--folio-serif);
      letter-spacing: -.02em;
      overflow-wrap: anywhere;
    }
    html[data-device=phone] #linyin-trade-friends #ly-pocket [data-pocket-view=find] :is(#pocket-quote,.pk-face-quote) {
      color: #39443c;
      margin-top: 14px;
      font: 450 clamp(17px, 4.6vw, 20px)/1.65 -apple-system, 'PingFang SC', sans-serif;
      -webkit-line-clamp: 5;
    }
    html[data-device=phone] #linyin-trade-friends #ly-pocket [data-pocket-view=find] .pk-face-want[hidden] ~ :is(#pocket-quote,.pk-face-quote) {
      color: var(--home-phone-ink);
      font-family: var(--folio-serif);
      font-size: clamp(22px, 6vw, 28px);
      line-height: 1.48;
    }
    html[data-device=phone] #linyin-trade-friends #ly-pocket [data-pocket-view=find] .pk-talk-label {
      color: #56685a;
      font-weight: 500;
    }
  }
  @media (orientation: portrait) and (max-height: 680px) {
    html[data-device=phone] #linyin-trade-friends #ly-pocket [data-pocket-view=find] :is(#pocket-card,#pocket-next) {
      --byline-photo: clamp(56px, 18vw, 74px);
      padding-top: 15px;
    }
    html[data-device=phone] #linyin-trade-friends #ly-pocket [data-pocket-view=find] :is(#pocket-name,.pk-face-name) { font-size: 23px; }
    html[data-device=phone] #linyin-trade-friends #ly-pocket [data-pocket-view=find] .pk-folio-brief { margin-top: 13px; padding-top: 12px; }
    html[data-device=phone] #linyin-trade-friends #ly-pocket [data-pocket-view=find] .pk-face-want { font-size: 23px; }
    html[data-device=phone] #linyin-trade-friends #ly-pocket [data-pocket-view=find] :is(#pocket-quote,.pk-face-quote) {
      margin-top: 7px;
      font-size: 16px;
      line-height: 1.45;
    }
  }
}

@media (max-width: 365px) {
  html[data-device=phone] #linyin-trade-friends:lang(en) #ly-pocket [data-pocket-view=find] .pk-face-contact {
    max-width: calc(50% - var(--card-pad));
    white-space: normal;
    font-size: 12px;
  }
  html[data-device=phone] #brand-about .bf-about-body { padding: 14px 18px; }
  html[data-device=phone] #brand-about .bf-about-actions { gap: 4px 10px; padding-top: 7px; margin-top: 10px; }
  html[data-device=phone] #linyin-trade-friends #brand-about .bf-about-body > p { font-size: 14px; line-height: 1.5; }
}

#pocket-inquiry-feed { list-style: none; margin: 0; padding: 0; }
#pocket-inquiry-feed > li { margin: 0; padding: 0; scroll-margin-bottom: calc(var(--tt-tab) + env(safe-area-inset-bottom)); }
#pocket-message-list:is(:not([data-inquiry-state=ready]),[data-has-inquiries]) #pocket-messages[data-empty] { display: none; }
#pocket-inquiry-status:not(:empty) { margin: 12px 0; color: var(--pk-muted); font-size: 14px; }
#pocket-supplier-inbox:not([hidden]), #pocket-inquiry-more:not([hidden]) {
  display: flex; align-items: center; justify-content: center; min-height: 44px; width: 100%; margin-bottom: 12px;
  border: 0; border-bottom: 1px solid var(--home-phone-line); color: var(--home-phone-green);
  background: transparent; font: 600 14px/1.4 system-ui,sans-serif; text-decoration: none;
}
html[data-device=phone] :is(#pocket-inquiry-feed,.pk-inquiry-bar,#ly-pocket-nav) :is(a,button) {
  -webkit-tap-highlight-color: transparent;
}
html[data-device=phone] #pocket-inquiry-feed a:active { background-color: #f4f5f6; }
html.pk-inquiries-open, html.pk-inquiries-open body { overflow: hidden; }
html[data-device=phone].pk-inquiries-open #linyin-trade-friends > .ly-header { display: none !important; }
html.pk-inquiries-open #ly-pocket {
  position: fixed; inset: env(safe-area-inset-top) 0 calc(var(--tt-tab) + env(safe-area-inset-bottom));
  width: 100%; padding: 0; overflow: hidden;
}
html.pk-inquiries-open #ly-pocket .pocket-top { display: none; }
html.pk-inquiries-open #ly-pocket [data-pocket-view=messages] {
  height: 100%; box-sizing: border-box; padding: 0 env(safe-area-inset-right) 0 env(safe-area-inset-left);
}
html.pk-inquiries-open #pocket-inquiry-pane { display: grid; grid-template-rows: auto minmax(0,1fr); height: 100%; }
.pk-inquiry-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 44px; padding: 0 16px; border-bottom: 1px solid var(--home-phone-line); }
#pocket-inquiry-pane .pk-inquiry-bar h2 { margin: 0; font: 650 17px/1.3 system-ui,sans-serif; color: var(--home-phone-ink); }
.pk-inquiry-bar a { justify-self: start; display: flex; align-items: center; gap: 4px; min-height: 44px; color: var(--home-phone-green); text-decoration: none; font-size: 14px; }
.pk-inquiry-bar [aria-hidden=true] { font-size: 24px; line-height: 1; }
#pocket-inquiry-content { min-height: 0; overflow: hidden; }
#pocket-inquiry-content iframe { display: block; width: 100%; height: 100%; border: 0; }
#pocket-inquiry-content .pk-inquiry-letter {
  height: 100%; overflow: auto; overscroll-behavior-y: contain; box-sizing: border-box;
  padding: 20px 16px 16px; color: var(--home-phone-ink); font: 15px/1.7 system-ui,sans-serif;
}
.pk-inquiry-letter .inquiry-message-content { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.pk-inquiry-letter .inquiry-message-content strong { font-size: 16px; }
#pocket-inquiry-content .pk-inquiry-letter :is(a,button,summary) {
  color: var(--home-phone-green); font: inherit; font-weight: 550;
  text-decoration: none; -webkit-tap-highlight-color: transparent;
}
#pocket-inquiry-content .inquiry-source-link {
  display: inline; padding: 0; border: 0; background: transparent; overflow-wrap: anywhere; text-align: start;
}
.pk-inquiry-letter .inquiry-original { margin-top: 16px; font-size: 14px; }
.pk-inquiry-letter .inquiry-original summary { padding: 10px 0; }
.pk-inquiry-letter .inquiry-original dl { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 6px 12px; }
.pk-inquiry-letter .inquiry-original dt { max-width: 8em; color: var(--pk-muted); overflow-wrap: anywhere; }
.pk-inquiry-letter .inquiry-original dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.pk-inquiry-letter .read-error { font-size: 14px; }

html[data-device=phone]:is([data-supplier-state=pending],[data-supplier-state=member]) #linyin-trade-friends .ly-header :is(#pocket-suppliers,#brand-mobile-open) { display: none; }
html[data-device=phone][data-supplier-state=member] #linyin-trade-friends .ly-header .ly-brand { flex: 0 0 auto; }
#pocket-account-link { display: inline-flex; align-items: center; gap: 7px; margin-inline-start: auto; padding-inline: 6px; min-height: 44px; color: #244d41; font: 600 14px/1.3 system-ui,sans-serif; text-decoration: none; }
#pocket-unread-count { position: absolute; top: 0; left: calc(50% + 6px); min-width: 17px; height: 17px; box-sizing: content-box; padding: 0 3px; border-radius: 12px; background: #b62943; border: 2px solid var(--folio-bg,#fff); color: white; font: 650 11px/17px system-ui,sans-serif; font-variant-numeric: tabular-nums; pointer-events: none; text-align: center; }
#pocket-account-error:not(:empty) { margin: 8px 0; color: #973943; }
#pocket-mast-title { display:none; }
html[data-device=phone][data-supplier-state=member] #linyin-trade-friends>.ly-header .ly-brand { display:none; }
html[data-device=phone][data-supplier-state=member]:not(.pk-self-open) #linyin-trade-friends>.ly-header {
  position:relative; display:grid; grid-template-columns:44px minmax(0,1fr) 44px; gap:0; background:white; color:#202024; border-bottom:1px solid #e9e9ec;
}
html[data-device=phone][data-supplier-state=member] #pocket-mast-title {
  display:block; grid-column:2; text-align:center; font:650 18px/1.4 system-ui,sans-serif;
}
@media (max-width: 350px) {
  html[data-device=phone] #linyin-trade-friends:lang(en) #pocket-mast-title .ly-mobile-slogan { font-size: 10px; }
}
html[data-device=phone][data-supplier-state=member] #pocket-account-link {
  grid-column:3; display:grid; place-items:center; height:44px; width:44px; padding:0; margin:0; color:#202024;
}
html[data-device=phone][data-supplier-state=member] #ly-pocket .pocket-top #pocket-heading {
  position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap;
}
html[data-device=phone][data-supplier-state=member] #ly-pocket:not([data-active-tab=find]) .pocket-top:has(#pocket-sub:empty) { padding:0; min-height:0; }

html[data-device=phone] #linyin-trade-friends #ly-pocket [data-pocket-view=find] :is(#pocket-stack,#pocket-card,#pocket-next),
html[data-device=phone] #ly-pocket .pk-empty,
html[data-device=phone] #linyin-trade-friends :is(#ly-dialog,#pocket-filter-dialog) {
  border-radius: var(--phone-card-radius);
}
html[data-device=phone] #linyin-trade-friends #ly-pocket [data-pocket-view=find] :is(#pocket-cover,.pk-face-cover),
html[data-device=phone] #linyin-trade-friends #ly-pocket #pocket-actions :is(#pocket-pass,#pocket-super,#pocket-like).pk-choice,
html[data-device=phone] #pocket-filter-form :is(input,select),
html[data-device=phone] #ly-dialog :is(input,select,textarea),
html[data-device=phone] #linyin-trade-friends #ly-dialog.purchase-sheet #ly-story-contact {
  border-radius: var(--phone-control-radius);
}
html[data-device=phone] #linyin-trade-friends #ly-pocket [data-pocket-view=find] .pk-face-cover {
  background-color: #edf1ee;
}
