/* Timed contact prompts share the approved sage/plum palette and capsule motion. */
.entry-prompts [hidden] { display: none; }
.entry-greeting,
.entry-invite {
  position: fixed;
  z-index: 18;
  right: max(24px, env(safe-area-inset-right));
  bottom: var(--entry-prompt-bottom, max(24px, env(safe-area-inset-bottom)));
  width: min(390px, calc(100% - 48px));
  max-height: calc(100svh - var(--entry-prompt-bottom, 24px) - 16px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--header);
  color: var(--ink);
  box-shadow: 0 16px 48px #120d122b;
}
.entry-greeting { display: flex; align-items: flex-start; gap: 14px; padding: 28px 24px 24px; }
.entry-greeting__icon { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%; color: var(--accent); background: var(--nav-fill); }
.entry-greeting__icon .ui-icon { width: 29px; height: 29px; }
.entry-greeting__content { min-width: 0; padding-right: 24px; }
.entry-greeting p { margin: 0 0 18px; font-size: 17px; line-height: 1.5; }
.entry-greeting strong { font-weight: 760; }
.entry-prompt__action { --button-padding: 11px 21px; min-height: 48px; max-width: 100%; font-size: 16px; line-height: 1.35; text-align: center; }
.entry-prompt__close { --button-padding: 0; --button-border: transparent; position: absolute; top: 7px; right: 7px; width: 44px; height: 44px; min-height: 44px; padding: 0; }
.entry-prompt__close .primary-label { display: flex; }
.entry-prompt__close .ui-icon { width: 20px; height: 20px; }
.entry-invite { left: auto; top: auto; margin: 0; width: min(440px, calc(100% - 48px)); max-width: none; max-height: calc(100svh - var(--entry-prompt-bottom, 24px) - 96px); padding: 30px; }
.entry-invite:not([open]) { display: none; }
.entry-invite::backdrop { background: #102017b8; backdrop-filter: blur(8px); }
[data-theme="dark"] .entry-invite::backdrop { background: #1a101dcc; }
body[data-entry-modal-open] { overflow: hidden; }
.entry-invite__icon { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 22px; border-radius: 18px; color: var(--accent); background: var(--nav-fill); }
.entry-invite__icon .ui-icon { width: 39px; height: 39px; }
.entry-invite h2 { margin: 0; padding-right: 10px; font-size: 30px; font-weight: 740; line-height: 1.12; letter-spacing: -.04em; overflow-wrap: anywhere; }
.entry-invite p { margin: 18px 0 24px; color: var(--muted); font-size: 18px; line-height: 1.5; }
@media (max-width: 600px) {
  .entry-greeting,
  .entry-invite { right: max(12px, env(safe-area-inset-right)); width: calc(100% - 24px); border-radius: 21px; }
  .entry-greeting { gap: 12px; padding: 25px 18px 20px; }
  .entry-greeting__icon { flex-basis: 36px; width: 36px; height: 36px; }
  .entry-greeting__icon .ui-icon { width: 26px; height: 26px; }
  .entry-greeting__content { padding-right: 24px; }
  .entry-greeting p { font-size: 16px; line-height: 1.45; }
  .entry-prompt__action { --button-padding: 11px 18px; font-size: 15px; }
  .entry-invite { padding: 25px 24px; }
  .entry-invite__icon { width: 48px; height: 48px; margin-bottom: 18px; border-radius: 15px; }
  .entry-invite__icon .ui-icon { width: 33px; height: 33px; }
  .entry-invite h2 { font-size: 27px; }
  .entry-invite p { font-size: 17px; }
}
@media (max-width: 640px) {
  .entry-invite {
    inset: 0;
    margin: auto;
    width: calc(100% - 24px);
    height: max-content;
    max-height: calc(100svh - 32px);
  }
}
@media (max-width: 360px) {
  .entry-greeting__icon { display: none; }
  .entry-greeting__content { padding-right: 24px; }
  .entry-invite h2 { font-size: 25px; }
}
@media (forced-colors: active) {
  .entry-greeting,
  .entry-invite { border-color: CanvasText; box-shadow: none; }
}
