html:has(body[data-mode='entrance']) { overflow-y: auto; overscroll-behavior-y: auto; }
body[data-mode='entrance'] { position: relative; top: 0; height: auto; min-height: 100svh; overflow: visible; background: #151619; }
body[data-mode='entrance'] .stage { height: auto; perspective: none; overflow: visible; }
body[data-mode='entrance'] #app { min-height: 100svh; height: auto; background: #151619; }
.preview-strip [hidden] { display: none; }
body[data-mode='entrance'] .preview-strip { font-size: 11px; background: #232428; color: #c3c5cb; }
.entrance-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 38px; }
.entrance-brand { color: #f4f2f0; text-decoration: none; font: 32px/1 Newsreader, Georgia, serif; }
.entrance-brand span { display: block; color: #a5a7af; font: 11px/1.5 -apple-system, BlinkMacSystemFont, sans-serif; margin-top: 5px; }
.entrance-sample-link { color: #bfc6d2; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; font-size: 12px; min-height: 44px; white-space: nowrap; }
.entrance-sample-link:hover { color: #f3a0c7; }
.entrance-sample-link svg { width: 15px; height: 15px; }
.entrance-content { flex: 1; display: flex; align-items: center; justify-content: center; padding: 22px 24px 46px; }
.entrance-flow { width: 100%; max-width: 390px; min-width: 0; }
.entrance-emblem { display: flex; justify-content: center; margin-bottom: 30px; }
.entrance-emblem img { display: block; width: 112px; height: 112px; border-radius: 8px; }
.entrance-progress { display: grid; grid-template-columns: 1.3fr .8fr 1fr; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; }
.entrance-progress li { display: flex; align-items: center; gap: 7px; color: #777c88; font-size: 11px; min-width: 0; }
.entrance-progress li:last-child { justify-self: end; }
.entrance-progress li > span:first-child { border: 1px solid #454953; display: grid; place-items: center; width: 20px; height: 20px; flex-shrink: 0; border-radius: 50%; font-size: 10px; }
.entrance-progress li.reached { color: #c5d9ea; }
.entrance-progress li.reached > span:first-child { border-color: #8facbf; }
.entrance-progress li[aria-current] { color: #f3a0c7; }
.entrance-progress li[aria-current] > span:first-child { border-color: #ce8dad; background: #35262f; }
.entrance-progress svg { width: 11px; height: 11px; }
.entrance-heading { text-align: center; margin-bottom: 26px; }
.entrance-heading h1 { font: 34px/1.15 Newsreader, Georgia, serif; color: #f4f2f0; overflow-wrap: anywhere; }
.entrance-heading h1:focus { outline: none; }
.entrance-heading p { font-size: 13px; line-height: 1.6; color: #a5a7af; margin-top: 9px; }
.entrance-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; border: 1px solid #3b3d44; border-radius: 8px; padding: 4px; margin-bottom: 24px; }
.entrance-methods button { min-height: 44px; border-radius: 5px; display: flex; justify-content: center; align-items: center; gap: 9px; color: #a5a7af; font-size: 14px; }
.entrance-methods button[aria-pressed='true'] { color: #f4f2f0; background: #303239; }
.entrance-methods button[aria-pressed='true'] svg { color: #aacee7; }
.entrance-label { display: block; font-size: 13px; font-weight: 500; margin: 0 0 10px; color: #e4e4e8; }
.entrance-label.next-field { margin-top: 22px; }
.entrance-input, .entrance-handle { display: block; width: 100%; border: 1px solid #4b4e58; border-radius: 7px; background: #202126; min-height: 52px; padding: 13px 15px; color: #f4f2f0; font-size: 17px; line-height: 24px; }
.entrance-input:focus, .entrance-handle:focus-within { border-color: #9bcced; outline: 1px solid #9bcced; outline-offset: 0; }
.entrance-input[aria-invalid='true'], .entrance-handle:has([aria-invalid='true']) { border-color: #ef9db0; }
.entrance-input::placeholder, .entrance-handle input::placeholder { color: #858b98; }
.entrance-hint { font-size: 12px; color: #a5a7af; line-height: 1.5; margin-top: 9px; min-height: 18px; overflow-wrap: anywhere; }
.entrance-error { color: #ffc0cc; font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.entrance-error:not(:empty) { margin-top: 14px; }
.entrance-primary { width: 100%; display: flex; justify-content: center; align-items: center; gap: 10px; min-height: 52px; padding: 13px 16px; margin-top: 24px; border: 1px solid #c5b1c4; border-radius: 7px; background: linear-gradient(108deg, #efb0ce, #aacde7); color: #1d2129; font-size: 15px; line-height: 22px; font-weight: 650; text-decoration: none; }
.entrance-primary:hover { filter: brightness(1.06); }
.entrance-primary:active { transform: translateY(1px); }
.entrance-primary svg { width: 17px; height: 17px; }
.entrance-privacy { margin: 20px 0 0; font-size: 12px; line-height: 1.5; color: #b9bfca; display: flex; gap: 8px; justify-content: center; align-items: center; }
.entrance-privacy svg { width: 15px; height: 15px; }
.entrance-preview-note { margin: 18px auto 0; text-align: center; color: #9197a4; font-size: 11px; line-height: 1.6; max-width: 340px; }
.entrance-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 16px 38px max(22px, env(safe-area-inset-bottom)); border-top: 1px solid #292b31; color: #858b97; font-size: 11px; }
.entrance-destination { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 14px; color: #d3d8e2; margin: -15px 0 16px; }
.entrance-destination span { min-width: 0; overflow-wrap: anywhere; }
.entrance-destination button { width: 40px; height: 40px; flex-shrink: 0; color: #aacee7; display: grid; place-items: center; }
.entrance-destination svg { width: 15px; height: 15px; }
.entrance-demo-code { display: flex; justify-content: space-between; gap: 10px; align-items: center; border-top: 1px solid #3c3e47; border-bottom: 1px solid #3c3e47; padding: 8px 0; margin-bottom: 23px; font-size: 12px; color: #bfc6d2; }
.entrance-demo-code strong { display: inline-block; padding-left: 5px; font-variant-numeric: tabular-nums; color: #f4f2f0; font-weight: 600; }
.entrance-demo-code button { display: flex; gap: 5px; align-items: center; color: #cce3f3; padding: 8px 0 8px 8px; min-height: 36px; }
.entrance-demo-code svg { width: 14px; height: 14px; }
.entrance-code-input { text-align: center; font: 28px/32px -apple-system, BlinkMacSystemFont, sans-serif; font-variant-numeric: tabular-nums; }
.entrance-code-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.entrance-back, .entrance-resend, .entrance-restart { color: #bdcce0; min-height: 44px; padding: 10px 0; display: flex; gap: 7px; align-items: center; font-size: 12px; line-height: 1.4; }
.entrance-back svg, .entrance-restart svg { width: 15px; height: 15px; }
.entrance-back { margin-top: 8px; }
.entrance-code-actions .entrance-back { margin-top: 0; }
.entrance-resend { text-align: right; }
.entrance-resend:disabled { opacity: 1; color: #858b97; }
.entrance-handle { display: flex; align-items: center; padding: 0 15px; gap: 8px; }
.entrance-handle > span { color: #9bcced; }
.entrance-handle input { min-width: 0; width: 100%; background: none; border: 0; padding: 13px 0; font-size: 17px; line-height: 24px; color: #f4f2f0; outline: none; }
.entrance-profile { display: flex; align-items: center; gap: 13px; padding: 18px 0; border-top: 1px solid #3c3e47; border-bottom: 1px solid #3c3e47; margin: 28px 0 22px; }
.entrance-initial { width: 44px; height: 44px; border-radius: 50%; background: #3a313c; color: #f3a0c7; display: grid; place-items: center; font: 24px/1 Newsreader, Georgia, serif; flex: 0 0 auto; }
.entrance-profile > div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.entrance-profile strong { display: block; font-size: 15px; font-weight: 600; }
.entrance-profile > div > span { display: block; font-size: 13px; margin-top: 4px; color: #a5a7af; }
.entrance-profile > svg { color: #acccbd; width: 20px; }
.entrance-complete-note { text-align: center; font-size: 13px; color: #b7bbc6; line-height: 1.7; }
.entrance-restart { margin: 14px auto 0; }
body[data-auth='live'] .entrance-methods svg { width: 18px; height: 18px; }
body[data-auth='live'] button:disabled { cursor: not-allowed; opacity: .55; }
body[data-auth='live'] .entrance-input:disabled { opacity: .65; }
body[data-auth='live'] .entrance-flow > div { min-width: 0; }
body[data-auth='live'] .entrance-label { margin-top: 10px; }
body[data-auth='live'][data-mode='entrance'] .stage { height: auto; }
@media (max-width: 540px) {
  body[data-mode='messages'] #preview-detail { display: none; }
  body[data-mode='entrance'] .preview-strip { padding-left: 20px; padding-right: 20px; }
  .entrance-header { padding: 20px 22px 10px; }
  .entrance-brand { font-size: 29px; }
  .entrance-content { padding: 25px 24px 34px; }
  .entrance-emblem { margin-bottom: 26px; }
  .entrance-emblem img { width: 88px; height: 88px; }
  .entrance-heading h1 { font-size: 30px; }
  .entrance-progress { gap: 5px; margin-bottom: 24px; }
  .entrance-footer { padding-left: 22px; padding-right: 22px; }
}
@media (max-height: 620px) {
  .entrance-emblem { display: none; }
  .entrance-content { padding-top: 18px; }
}
