dialog.profile-chat{position:fixed;inset:20px 24px 20px auto;width:min(510px,calc(100vw - 32px));height:min(760px,calc(100dvh - 40px));max-height:none;max-width:none;margin:auto 0;padding:0;border:0;border-radius:0;background:var(--bg);color:var(--ink);overflow:hidden;font-size:var(--body);line-height:1.5}
dialog.profile-chat[open]{display:flex;flex-direction:column}
dialog.profile-chat::backdrop{background:#102a3577}
.profile-chat-header{display:flex;align-items:center;gap:14px;padding:20px 24px;min-height:88px;background:var(--surface);flex-shrink:0}
.profile-chat-header h2{font-size:var(--subheading);line-height:1.1;letter-spacing:-.025em}
.profile-chat-header p{font-size:var(--small);margin:5px 0 0}
.profile-chat-avatar{display:grid;place-items:center;min-width:36px}
.profile-chat-close{margin-left:auto;min-width:44px;min-height:44px;background:transparent;font-size:var(--subheading)}
.profile-chat-close:hover{background:var(--bg)}
.profile-chat-scroll{overflow-y:auto;overscroll-behavior:contain;min-height:0;flex:1;padding:24px;scrollbar-gutter:stable}
.profile-chat-scroll p{font-size:var(--body);margin:0 0 20px}
.profile-chat-suggestions{display:flex;flex-direction:column;gap:10px;margin:24px 0}
.profile-chat-suggestions button{background:var(--surface);font-size:var(--small);text-align:left;padding:12px 16px;min-height:48px}
.profile-chat-suggestions button:hover{background:#d2dfe5}
.profile-chat-turn{margin-top:28px}
.profile-chat-user{margin-left:36px!important;padding:14px 18px;background:var(--ink);color:var(--bg);border-radius:16px 16px 0 16px}
.profile-chat-answer{padding:20px 0}
.profile-chat-answer>span{display:block;font-size:var(--small);color:var(--muted);margin-bottom:14px}
.profile-chat-answer blockquote{margin:16px 0;padding:16px;background:var(--surface);font-size:var(--small)}
.profile-chat-answer a{display:block;margin:16px 0;font-size:var(--small)}
.profile-chat-answer .profile-chat-contact{margin-top:24px;font-weight:500}
.profile-chat-status{font-size:var(--small)!important;color:var(--muted)}
.profile-chat-form{padding:20px 24px;background:var(--surface);flex-shrink:0}
.profile-chat-composer{display:flex;gap:12px;align-items:end}
.profile-chat-composer textarea{font:inherit;color:var(--ink);background:var(--bg);width:100%;min-height:66px;max-height:160px;padding:12px;border:2px solid transparent;resize:vertical;border-radius:0;line-height:1.4}
.profile-chat-composer textarea:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.profile-chat-composer>button{width:48px;height:48px;flex-shrink:0;display:grid;place-items:center;background:var(--accent);color:var(--accent-ink)}
.profile-chat-composer>button:disabled{opacity:.65;cursor:wait}
.profile-chat-footer{display:flex;justify-content:space-between;gap:14px;align-items:center;flex-wrap:wrap;margin:12px 0}
.profile-chat-footer button,.profile-chat-footer a{font-size:var(--small);min-height:44px;display:flex;align-items:center;background:transparent;padding:0}
.profile-chat-footer button{text-decoration:underline;text-underline-offset:4px}
.profile-chat-privacy{font-size:var(--small);margin:0;color:var(--muted);line-height:1.45}
.profile-chat-sr{position:absolute;width:2px;height:2px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:540px){dialog.profile-chat{inset:8px;width:calc(100vw - 16px);height:calc(100dvh - 16px);margin:0}.profile-chat-header{padding:16px;min-height:78px}.profile-chat-scroll{padding:20px 16px}.profile-chat-form{padding:16px}.profile-chat-privacy{font-size:var(--small)}}
