/* One mobile-first entry for members, guests and recovery links. */
/* Entry content is already visible; do not replay an arrival after scripts load. */
.customer[data-member-motion] .guest-welcome .suite-enter {
    animation: none;
}
.customer.no-conversation main {
    border: 0; border-radius: 0; background: transparent; box-shadow: none;
}
.customer .guest-welcome {
    padding: max(24px,env(safe-area-inset-top,0px)) max(16px,env(safe-area-inset-right,0px)) max(24px,env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px));
    gap: 0; overscroll-behavior: contain; scroll-padding: 24px; background: transparent;
}
.customer .chat-entry-card {
    width: min(500px,100%); flex-shrink: 0; margin: auto;
    border: 1px solid var(--line); border-radius: 24px; background: var(--surface);
    box-shadow: var(--suite-shadow); overflow: hidden; text-align: left;
}
.customer .chat-entry-intro {
    position: relative; display: flex; align-items: center; gap: 8px;
    padding: 20px; isolation: isolate;
    color: #fff8e9; background: radial-gradient(ellipse at top right,#408c6844,transparent 65%),linear-gradient(140deg,#073b2d,#155c43);
}
.customer .chat-entry-intro::after {
    content: ""; position: absolute; inset: 12px; z-index: -1;
    border: 1px solid #ffe1ac26; border-radius: 20px; pointer-events: none;
}
.customer .chat-entry-art { flex: 0 0 80px; }
.customer .chat-entry-art .suite-card-scene { width: 100%; margin: 0; }
.customer .chat-entry-art svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; }
.customer .chat-entry-copy { min-width: 0; flex: 1; }
.customer .chat-entry-kicker { display: block; margin-bottom: 6px; color: #ffe1ac; font-size: 12px; font-weight: 600; letter-spacing: .08em; }
.customer .chat-entry-copy h1 { margin: 0 0 8px; font-size: clamp(24px,6vw,30px); line-height: 1.25; color: inherit; overflow-wrap: anywhere; text-wrap: balance; }
.customer .chat-entry-copy p { max-width: none; margin: 0; color: #d3e5d9; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.customer .chat-entry-form { position: relative; display: block; align-items: stretch; gap: 0; padding: 24px 20px; min-width: 0; }
.customer .chat-entry-form-heading { margin-bottom: 24px; }
.customer .chat-entry-form-heading h2 { margin: 0 0 8px; font-size: 22px; line-height: 1.4; color: var(--ink); overflow-wrap: anywhere; }
.customer .chat-entry-form-heading p { max-width: none; margin: 0; font-size: 14px; line-height: 1.7; color: var(--muted); }
.customer .guest-welcome label { display: block; width: 100%; margin: 0 0 8px; color: var(--ink); font-size: 14px; font-weight: 600; }
.customer :is(#guestNameField,#guestPhoneLabel) { width: 100%; margin-bottom: 20px; }
.customer .guest-name-control { display: flex; align-items: stretch; gap: 8px; }
.customer .guest-name-control input { flex: 1; width: 0; }
.customer .guest-welcome :is(input,select) {
    min-height: 52px; border: 1px solid #8ba99a; border-radius: 14px;
    background: #fbfdfb; color: var(--ink); font-size: 16px; font-weight: 400;
    scroll-margin-block: 24px;
}
.customer .guest-welcome .phone-control select { flex: 0 1 42%; width: 42%; min-width: 0; }
.customer .guest-welcome :is(input,select):focus { border-color: var(--primary); }
.customer .guest-welcome input[aria-invalid="true"] { border-color: #a1392a; }
.customer .guest-welcome input:read-only { background: #edf3ef; }
.customer .chat-entry-field-error { display: block; margin-top: 6px; color: #a1392a; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.customer .chat-entry-field-error:empty { display: none; }
.customer #refreshGuestName {
    display: grid; place-items: center; flex: 0 0 52px; min-height: 52px; padding: 0;
    border: 1px solid #8ba99a; border-radius: 14px; background: #edf5ef; color: var(--primary);
}
.customer .chat-entry-actions :is(button,a) {
    position: relative; width: 100%; min-height: 52px; display: flex; align-items: center; justify-content: center;
    gap: 10px; cursor: pointer; touch-action: manipulation; border-radius: 14px; overflow-wrap: anywhere;
}
.customer .chat-entry-actions svg,.customer #refreshGuestName svg {
    width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: currentColor;
    stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.customer .guest-welcome :is(#createCustomer,#claimCustomer) {
    padding: 14px 16px; font-size: 16px; box-shadow: 0 6px 16px #e4862029;
}
.customer .chat-entry-actions > a {
    margin-top: 12px; border: 1px solid var(--line); padding: 10px 16px;
    color: var(--primary); background: #f4f8f5; font-size: 15px; text-decoration: none;
}
.customer #guestCreateNotice { margin: 12px 0 0; font-size: 14px; line-height: 1.7; color: var(--muted); overflow-wrap: anywhere; }
.customer #guestCreateNotice[data-state="error"] { padding: 10px 12px; border: 1px solid #efd0c7; border-radius: 12px; background: #fff5f1; color: #a1392a; }
.customer #guestCreateNotice:empty { display: none; }
.customer .chat-entry-form[aria-busy="true"] :is(#createCustomer,#claimCustomer) { cursor: wait; }
.customer .chat-entry-form[aria-busy="true"] :is(#createCustomer,#claimCustomer) > svg { display: none; }
.customer .chat-entry-form[aria-busy="true"] :is(#createCustomer,#claimCustomer)::after {
    content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor;
}
.customer .chat-entry-actions > a[aria-disabled="true"] { opacity: .55; cursor: wait; }
@media (min-width:900px) {
    .customer .guest-welcome { padding: 32px; }
    .customer .chat-entry-card { display: grid; grid-template-columns: .9fr 1.1fr; width: min(1000px,100%); }
    .customer .chat-entry-intro { flex-direction: column; justify-content: center; gap: 16px; padding: 32px; }
    .customer .chat-entry-art { width: 180px; flex: 0 0 auto; }
    .customer .chat-entry-copy { flex: 0 0 auto; width: 100%; }
    .customer .chat-entry-copy h1 { font-size: 36px; }
    .customer .chat-entry-copy p { font-size: 16px; }
    .customer .chat-entry-kicker { margin-bottom: 12px; font-size: 13px; }
    .customer .chat-entry-form { display: flex; flex-direction: column; justify-content: center; padding: 32px; }
}
@media (max-height:700px) {
    .customer .chat-entry-intro { padding: 16px 20px; }
    .customer .chat-entry-art { flex-basis: 80px; }
    .customer .chat-entry-form { padding: 20px; }
    .customer .chat-entry-form-heading { margin-bottom: 20px; }
    .customer :is(#guestNameField,#guestPhoneLabel) { margin-bottom: 16px; }
}
@media (max-height:600px) {
    .customer .guest-welcome { padding-top: max(12px,env(safe-area-inset-top,0px)); padding-bottom: max(12px,env(safe-area-inset-bottom,0px)); }
    .customer .chat-entry-card { margin: 0 auto; }
    .customer .chat-entry-intro { padding: 16px 20px; }
    .customer .chat-entry-art { flex-basis: 72px; }
    .customer .chat-entry-form { padding: 20px; }
    .customer .chat-entry-form-heading { margin-bottom: 16px; }
}
@media (min-width:600px) and (max-height:500px) {
    .customer .chat-entry-card { display: grid; grid-template-columns: .85fr 1.15fr; width: min(800px,100%); }
    .customer .chat-entry-intro { flex-direction: column; justify-content: center; gap: 16px; }
    .customer .chat-entry-art { width: 100px; flex: 0 0 auto; }
}
