.chat-phone-transfer, .chat-phone-photo { color: #263934; font-family: 'Outfit', 'Open Sans', sans-serif; box-sizing: border-box; }
.chat-phone-transfer *, .chat-phone-photo * { box-sizing: border-box; }
.chat-phone-transfer [hidden], .chat-phone-photo [hidden] { display: none !important; }
dialog.chat-phone-transfer { width: min(92vw, 500px); max-height: 90dvh; padding: 24px;
  border: 1px solid #d5e1dc; border-radius: 18px; background: #f7f9f7; overflow: auto; }
.chat-phone-transfer::backdrop { background: #101b17bf; backdrop-filter: blur(3px); }
.chat-phone-transfer header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.chat-phone-transfer h2 { margin: 0; font-size: 23px; color: inherit; }
.chat-phone-transfer p { font-size: 15px; line-height: 1.6; }
.chat-phone-transfer .chat-phone-transfer__qr { display: block; width: min(100%, 300px); height: auto;
  margin: 20px auto; border-radius: 8px; background: white; image-rendering: pixelated; }
.chat-phone-transfer footer, .chat-phone-photo__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.chat-phone-transfer button, .chat-phone-photo > main button:not(.regform-button), .chat-phone-photo__account {
  min-height: 44px; padding: 10px 16px; border: 1px solid #afc3ba; border-radius: 24px;
  background: #fff; color: #274e41; font: inherit; cursor: pointer; touch-action: manipulation; }
.chat-phone-transfer .chat-phone-transfer__close { flex: 0 0 44px; width: 44px; padding: 0; font-size: 26px; }
.chat-phone-transfer .chat-phone-transfer__receive, .chat-phone-photo #phone-send, .chat-phone-photo #phone-take { background: #508575; color: white; border-color: #508575; }
.chat-phone-transfer button:disabled, .chat-phone-photo button:disabled { opacity: .5; cursor: wait; }
.chat-phone-transfer button:focus-visible, .chat-phone-photo button:focus-visible { outline: 3px solid #397e9b; outline-offset: 3px; }
.chat-phone-transfer__status { text-align: center; font-weight: 600; }
body.chat-phone-photo { margin: 0; min-height: 100dvh; padding: max(24px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom)); background: #edf3ef; }
.chat-phone-photo > main { max-width: 480px; margin: 0 auto; padding: 24px; background: #fff;
  border: 1px solid #d8e4dd; border-radius: 18px; box-shadow: 0 8px 30px #173c2310; }
.chat-phone-photo h1 { margin-top: 0; font-size: 27px; }
.chat-phone-photo p { line-height: 1.6; }
.chat-phone-photo__brand { color: #508575; font-size: 14px; font-weight: 600; letter-spacing: .1em; }
.chat-phone-photo #phone-preview { display: block; max-width: 100%; max-height: 48dvh; margin: 16px auto; object-fit: contain; border-radius: 8px; }
.chat-phone-photo #phone-login { margin-top: 20px; }
.chat-phone-photo #tab-2, .chat-phone-photo #register-form { display: none !important; }
.chat-phone-photo .auth-container { max-width: 100%; padding: 0; box-shadow: none; }
.chat-phone-photo .chat-phone-photo__account { display: block; margin: 16px auto 0; }
@media (max-width: 350px) { dialog.chat-phone-transfer, .chat-phone-photo > main { padding: 16px; } }