@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');
:root{color-scheme:dark;font-family:'DM Sans',Arial,sans-serif;color:#f5f3f1;background:#101010;--accent:#ff60d3;--muted:#b4b4bc}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}a{color:var(--accent);text-underline-offset:3px}button,textarea{font:inherit}button{cursor:pointer;min-height:44px;border:1px solid #414147;border-radius:10px;padding:10px 16px;color:inherit;background:#222226;font-weight:600}button:hover{border-color:var(--accent)}button:disabled{opacity:.55;cursor:wait}button:focus-visible,a:focus-visible,textarea:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.primary{background:var(--accent);color:#111;border-color:var(--accent)}.chat-shell{max-width:780px;margin:auto;padding:28px}.inbox-shell{max-width:1400px;margin:auto;padding:32px}.chat-header{display:flex;align-items:center;gap:18px;border-bottom:1px solid #303035;padding-bottom:20px}.chat-header a{flex-shrink:0}.chat-header img{display:block}.eyebrow{color:var(--accent);font-size:11px;letter-spacing:1.2px;font-weight:700}h1{font-family:'Space Grotesk',sans-serif;font-size:26px;margin:4px 0 0}h2{font-size:20px;margin:0 0 8px}.intro{line-height:1.6;color:#ddd}.muted,footer{color:var(--muted);font-size:13px;line-height:1.5}#chat-status{font-size:14px;min-height:20px;color:#ffd5f3}#account{overflow-wrap:anywhere}.conversation-heading{display:flex;align-items:center;flex-wrap:wrap;gap:12px;font-size:13px;margin:16px 0}.conversation-heading span{color:var(--accent);flex:1}.conversation-heading button{font-size:12px}.messages{height:clamp(180px,38vh,440px);overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:14px;padding:12px 10px 12px 0;scrollbar-color:#555 #151515}.message{max-width:90%;padding:14px 16px;border:1px solid #39393f;border-radius:14px;background:#1d1d22;flex-shrink:0;overflow-wrap:anywhere;align-self:flex-start}.message.mine{align-self:flex-end;background:#32202e;border-color:#70405f}.message p{white-space:pre-wrap;line-height:1.55;margin:8px 0}.message small{font-size:11px;color:#bbb}.message strong{font-size:12px}.message-form{margin-top:16px}label{display:block;font-size:14px;margin:16px 0 8px}textarea{display:block;resize:vertical;width:100%;min-height:90px;max-height:260px;border:1px solid #444;border-radius:12px;background:#17171a;padding:14px;color:inherit}.compose-footer{display:flex;align-items:center;gap:16px;justify-content:space-between;margin-top:12px}.compose-footer span{max-width:300px}.compose-footer button{flex-shrink:0}footer{border-top:1px solid #303035;padding-top:18px;margin-top:24px;font-size:12px}.inbox-layout{display:grid;grid-template-columns:330px minmax(0,1fr);gap:32px;margin-top:24px}.inbox-list{border-right:1px solid #303035;padding-right:24px}#threads{max-height:65vh;overflow:auto;overscroll-behavior:contain}.thread{display:block;text-align:left;width:100%;margin:10px 0;overflow-wrap:anywhere}.thread[aria-pressed=true]{border-color:var(--accent);background:#32202e}.thread strong,.thread small{display:block}.thread small{font-weight:400;color:var(--muted);margin-top:6px}.thread .thread-state{color:var(--accent)}#customer-email{overflow-wrap:anywhere}@media(max-width:700px){.chat-shell,.inbox-shell{padding:18px}.inbox-layout{grid-template-columns:1fr;gap:24px}.inbox-list{border-right:0;border-bottom:1px solid #303035;padding:0 0 18px}#threads{max-height:230px}.compose-footer{align-items:stretch;flex-direction:column;gap:10px}.compose-footer span{max-width:none}.message{max-width:94%}.chat-header{gap:12px;flex-wrap:wrap}h1{font-size:23px}}
/* Empty and short chats use their content height, rather than a blank viewport. */
.chat-shell .messages{height:auto;max-height:38dvh;min-height:0;scrollbar-width:none}
.chat-shell .messages:empty{display:none}
.chat-shell .messages::-webkit-scrollbar{display:none}
.chat-shell .messages:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.chat-shell #chat-status:empty{display:none}
/* The embedded dialog reserves room for the composer and footer. Only a long
   transcript scrolls; very small viewports keep a wheel/touch fallback. */
html.chat-embedded,html.chat-embedded body{height:100%;overflow:hidden}
.chat-embedded .chat-shell{height:100%;max-width:none;padding:18px 20px;display:flex;flex-direction:column;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none}
.chat-embedded .chat-shell::-webkit-scrollbar{display:none}
.chat-embedded .chat-header{flex:none;padding-bottom:12px;gap:12px}
.chat-embedded .chat-header h1{font-size:23px}
.chat-embedded .intro{flex:none;font-size:14px;line-height:1.5;margin:12px 0}
.chat-embedded #account{flex:none;font-size:12px;margin:0 0 10px}
.chat-embedded #chat-status{flex:none;margin:0 0 10px;font-size:12px}
.chat-embedded #conversation{display:flex;flex:0 1 auto;flex-direction:column;min-height:0}
.chat-embedded .conversation-heading{flex:none;margin:4px 0 10px}
.chat-embedded .messages{flex:0 1 auto;height:auto;min-height:0;max-height:none;padding:0 2px 0 0;overscroll-behavior:contain;touch-action:pan-y}
.chat-embedded .message{padding:10px 12px}
.chat-embedded .message p{font-size:14px;line-height:1.45;margin:6px 0}
.chat-embedded #empty{flex:none;margin:0 0 8px;font-size:12px}
.chat-embedded #message-form{flex:none;margin:0}
.chat-embedded label{margin:10px 0 6px;font-size:13px}
.chat-embedded textarea{height:clamp(64px,12dvh,90px);min-height:64px;resize:none;padding:10px 12px;font-size:14px;scrollbar-width:none}
.chat-embedded textarea::-webkit-scrollbar{display:none}
.chat-embedded .compose-footer{display:flex;flex-direction:row;align-items:center;gap:12px;margin-top:10px}
.chat-embedded .compose-footer span{max-width:none;font-size:11px;line-height:1.4}
.chat-embedded .compose-footer button{flex:none;font-size:13px;padding:10px 12px}
.chat-embedded footer{flex:none;margin-top:14px;padding-top:12px;font-size:11px;line-height:1.4}
@media(max-height:620px){.chat-embedded .chat-shell{padding:12px 16px}.chat-embedded .chat-header{padding-bottom:8px}.chat-embedded .intro{margin:8px 0;font-size:13px}.chat-embedded footer{margin-top:10px;padding-top:8px}}
