#agent-popup{width:min(1100px,calc(100% - 32px));height:min(850px,90dvh);max-width:none;max-height:90dvh;padding:0;border:1px solid var(--line,#d5d0c5);border-radius:18px;background:var(--bg,#faf8f3);color:var(--ink,#30302b);box-shadow:0 24px 90px #0005;overflow:hidden}
#agent-popup[open]{display:flex;flex-direction:column}
#agent-popup::backdrop{background:#15130f80;backdrop-filter:blur(4px)}
.agent-popup-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 20px;border-bottom:1px solid var(--line,#d5d0c5);flex-shrink:0}
.agent-popup-heading h2{margin:0;font:500 24px/1.2 Georgia,serif;text-transform:none}
#agent-popup-close{display:grid;place-items:center;width:40px;min-height:40px;padding:0;border:0;border-radius:50%;background:var(--card,#eeeae2);color:inherit;font:28px/1 system-ui;cursor:pointer}
#agent-popup-close:hover{background:var(--accent-soft,#f2ded3)}
#agent-popup-close:focus-visible{outline:2px solid var(--accent,#a84f40);outline-offset:2px}
#agent-popup-frame{display:block;width:100%;flex:1;min-height:0;border:0;background:transparent}
html:has(#agent-popup[open]){overflow:hidden}
@media(max-width:600px){#agent-popup{width:calc(100% - 16px);height:92dvh;max-height:92dvh;border-radius:14px}.agent-popup-heading{padding:10px 14px}}
@media(prefers-reduced-motion:no-preference){#agent-popup[open]{animation:agent-popup-enter 180ms ease-out}@keyframes agent-popup-enter{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:none}}}
