.chat-guest-shell { display: block; min-height: 100vh; }
.chat-guest-shell > header, .chat-guest-shell > main { width: min(100% - 2rem, 960px); margin: 1.5rem auto; padding: 1rem; }
.chat-guest-shell > header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.chat-guest-shell input { max-width: 100%; }
.chat-guest-shell .chat-contact-list { padding: 0; list-style: none; }
.chat-guest-shell .chat-contact-list li { padding: 1rem 0; border-bottom: 1px solid #d8d4cc; overflow-wrap: anywhere; }

.chat-guest-shell .btn { white-space: normal; max-width: 100%; }

/* Compact branding on public invitation/login pages; full workspace only in chat. */
.guest-brand{display:inline-flex;align-items:center;gap:.65rem;color:#25231f;text-decoration:none;min-width:0}
.guest-brand>span:last-child{font-size:.85rem;color:#62605c}
.guest-brand-mark{display:grid;grid-template-columns:8px 8px;gap:3px;flex:none}
.guest-brand-mark i{width:8px;height:8px;border-radius:50%;background:#00b5d9}
.guest-brand-mark i:nth-child(2){background:#e5007d}
.guest-brand-mark i:nth-child(3){background:#ffe200}
.guest-brand-mark i:nth-child(4){background:#151310}
.guest-header-actions{display:flex;align-items:center;gap:1rem;flex-wrap:wrap}
.guest-header-actions form{margin:0;max-width:none}
.chat-guest-shell>main:has(>form){max-width:620px;background:#fff;border:1px solid #e3ded6;border-radius:12px;padding:clamp(20px,4vw,36px);box-sizing:border-box}
.chat-guest-shell>main>form{display:grid;gap:10px;max-width:none}
.chat-guest-shell>main>form input{width:100%;box-sizing:border-box;min-width:0}
.chat-guest-shell>main>form label{margin-top:8px}
.chat-guest-shell>main>form .btn{justify-self:start;margin-top:10px}
.chat-guest-shell>main h1{font-size:clamp(1.4rem,3vw,2rem);line-height:1.2}
.chat-guest-shell>main p{overflow-wrap:anywhere}
body.chat-guest-shell.guest-chat-page{height:100dvh;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.guest-chat-page>header{width:100%;box-sizing:border-box;margin:0;padding:10px 18px;border-bottom:1px solid #e3ded6;background:#fff;flex:none;gap:8px}
.guest-chat-page>header .btn{min-height:36px;padding:6px 12px;font-size:.85rem;box-shadow:none}
.guest-chat-page>main{width:100%;max-width:none;margin:0;padding:0;flex:1;min-height:0;display:flex;flex-direction:column}
.guest-chat-page .chat-access{flex:1;min-height:0;margin:0;max-width:none}
.chat-guest-shell.guest-chat-page .native-chat-shell{height:100%;min-height:0;border:0;border-radius:0;box-shadow:none}
.guest-chat-page #native-chat{display:flex;flex-direction:column;height:100%;min-height:0}
.guest-chat-page #chat-workspace{display:flex;flex-direction:column;flex:1;min-height:0}
.guest-chat-page .native-chat-grid{flex:1;height:100%;min-height:0}
.guest-chat-page .native-chat-grid>section{height:auto;min-height:0}
@media(max-width:600px){.guest-chat-page>header{padding:8px 10px}.guest-brand>span:last-child{display:none}.guest-header-actions{gap:.6rem;font-size:.85rem}.guest-chat-page .native-chat-toolbar{padding:8px;gap:6px}.guest-chat-page .native-chat-call-buttons{gap:5px}.guest-chat-page #native-chat .native-chat-call-buttons>button{padding:6px 8px;font-size:.8rem;min-height:36px}}
