/* The live player's phone cut-in (play.js): the borrower's iPhone (and the loan officer's, for the one decision) over
   Arive. Apple's frame is tools/phone/apple/bezel.png; the screen is an iMessage thread. iOS type, not Arive's. Nothing
   here moves on a clock: the phone is shown or not. */
#phone {
  position: fixed; right: 40px; bottom: 0; width: 366px; height: 748px; z-index: 500;
  transform: translateY(104%); pointer-events: none;
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif;
}
#phone.shown { transform: translateY(14px); }
#phone-device { position: relative; width: 100%; height: 100%; }
#phone-bezel { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
#phone-screen {
  position: absolute; top: 1.5%; bottom: 1.5%; left: 4%; right: 4%; z-index: 1; overflow: hidden;
  border-radius: 54px / 56px; background: #fff; display: flex; flex-direction: column;
}
#phone-status {
  display: flex; align-items: center; justify-content: space-between; height: 54px; padding: 14px 34px 0; flex: none;
  font-size: 15px; font-weight: 600; color: #000;
}
#phone-status .ps-r { display: flex; align-items: center; gap: 6px; }
#phone-status .ps-bars, #phone-status .ps-batt { width: 20px; height: 12px; }
#phone-head {
  display: flex; flex-direction: column; align-items: center; padding: 6px 0 12px; flex: none;
  border-bottom: .5px solid #d9d9dd; background: rgba(249,249,249,.94);
}
#phone-head .ph-ava { width: 50px; height: 50px; border-radius: 50%; background: #c8c9ce; display: grid; place-items: center; color: #fff; font-size: 18px; font-weight: 500; margin-bottom: 3px; }
#phone-head .ph-ava.mof { background: #1a2340; }
#phone-head .ph-name { font-size: 13px; color: #000; display: flex; align-items: center; gap: 3px; }
#phone-head .ph-chev { font-size: 10px; color: #b7b7bd; }
#phone-thread { flex: 1; overflow: hidden; padding: 12px 14px 8px; display: flex; flex-direction: column; gap: 3px; background: #fff; }
.pm-stamp { align-self: center; margin: 8px 0; font-size: 11px; color: #8e8e93; }
.pm { max-width: 76%; padding: 8px 13px; border-radius: 19px; font-size: 16px; line-height: 1.33; position: relative; word-wrap: break-word; }
.pm.them { align-self: flex-start; background: #e9e9eb; color: #000; border-bottom-left-radius: 6px; }
.pm.me { align-self: flex-end; background: #1b8cfe; color: #fff; border-bottom-right-radius: 6px; }
.pm.tail { margin-bottom: 7px; }
.pm.cont { border-radius: 19px; }
.pm-doc { align-self: flex-end; display: flex; align-items: center; gap: 10px; width: 76%; padding: 10px 12px; border-radius: 16px; background: #1b8cfe; color: #fff; }
.pm-doc .pd-ic { display: grid; place-items: center; width: 34px; height: 40px; border-radius: 5px; background: rgba(255,255,255,.22); font-size: 18px; flex: none; }
.pm-doc .pd-name { font-size: 14px; font-weight: 500; } .pm-doc .pd-size { font-size: 12px; opacity: .85; margin-top: 1px; }
.pm-sign { align-self: flex-end; width: 76%; padding: 12px; border-radius: 16px; background: #fff; border: 1px solid #e2e2e6; color: #000; }
.pm-sign .ps-top { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.pm-sign .ps-check { color: #0e9f5b; font-size: 18px; }
.pm-sign .ps-sub { margin-top: 4px; font-size: 12px; color: #8e8e93; }
.pm-link { color: inherit; text-decoration: underline; }
.pm.me .pm-link { color: #fff; }
.pm-pending { display: none !important; }
#phone-input { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 14px 22px; }
#phone-input .pi-plus { width: 32px; height: 32px; border-radius: 50%; background: #e9e9eb; display: grid; place-items: center; color: #8e8e93; font-size: 18px; }
#phone-input .pi-field { flex: 1; height: 34px; border: 1px solid #d9d9dd; border-radius: 17px; }
