#eg-launch{position:fixed;right:18px;bottom:18px;z-index:800;display:flex;align-items:center;gap:7px;border:1px solid var(--ink);background:var(--paper);color:var(--ink);padding:7px 12px;font:12px 'Courier New',monospace;box-shadow:3px 3px 0 #0002}#eg-launch img{object-fit:cover}#eg-window{position:fixed;right:18px;bottom:72px;z-index:801;width:350px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 96px);overflow-y:auto;background:var(--paper);color:var(--ink);border:1px solid var(--ink);box-shadow:5px 5px 0 #0003;padding:12px;font:13px/1.6 'Courier New','Yu Gothic',monospace;text-align:left}#eg-window[hidden]{display:none!important}#eg-window *{box-sizing:border-box}.eg-toolbar{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid;padding-bottom:5px}.eg-toolbar small{font:9px 'Courier New',monospace;margin-left:5px}.eg-toolbar button{border:0;background:none;color:inherit;width:36px;height:36px;font-size:25px}.eg-character-row{display:flex;gap:18px;align-items:center;padding:8px 0 0}#eg-window .eg-portrait{width:76px;height:83px;flex:0 0 76px;margin-left:8px}#eg-window .eg-portrait img{width:70px;height:75px}#eg-window .eg-cigarette{width:46px;right:-6px;bottom:0}#eg-window .eg-beer{width:42px;left:-7px;bottom:-2px}#eg-intro{margin:0;font-weight:bold}#eg-page{margin:4px 0;max-width:205px}.eg-tiny{font-size:9px;line-height:1.6}#eg-log{display:flex;flex-direction:column;gap:9px;max-height:220px;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:10px 0}#eg-log:empty{padding:4px 0}#eg-window .eg-message{max-width:91%;padding:7px 10px;border:1px solid #17130f55;font-size:13px;line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere;margin:0;animation:eg-pop .12s ease-out}#eg-window .eg-message.eg-user{align-self:flex-end;background:#fff3}#eg-window .eg-message.eg-answer{align-self:flex-start;background:#17130f08}#eg-window .eg-message strong{font-size:9px;display:block;font-weight:normal;opacity:.7;margin-bottom:3px}.eg-links{display:block;margin-top:7px;font-size:11px}.eg-links a{display:block;margin:4px 0}#eg-window #eg-status{min-height:0;margin:0 0 5px;font-size:11px}#eg-input-label{display:block;margin-bottom:4px}.eg-composer{display:flex;align-items:flex-end;gap:6px}#eg-window input,#eg-window textarea{font:inherit;color:inherit;background:transparent;border:1px solid;border-radius:0;width:100%;padding:8px}#eg-message{min-height:42px;max-height:100px;resize:none;line-height:1.6}#eg-window button{font-family:inherit;cursor:pointer}#eg-send{flex:0 0 42px;min-height:42px;background:var(--ink);color:var(--paper);border:1px solid var(--ink);font-size:20px}#eg-send:disabled{opacity:.35;cursor:default}.eg-tools{display:flex;gap:15px;align-items:flex-start;margin:7px 0;font-size:10px}.eg-tools>button{background:none;border:0;padding:0;text-decoration:underline;font-size:10px;color:inherit}.eg-tools details{flex:1}.eg-tools summary{cursor:pointer}#eg-memory-panel{padding:7px 0;font-size:11px}#eg-memory-panel label{display:block;margin:9px 0 3px}#eg-memory-panel button{background:transparent;color:inherit;border:1px solid;padding:7px 9px;margin:5px 0;font-size:11px}#eg-memory-notice{margin:0 0 6px}#eg-memory-status{margin:4px 0}#eg-saved-history{font:11px/1.7 inherit;white-space:pre-wrap;overflow-wrap:anywhere;max-height:150px;overflow-y:auto}#eg-memory-delete{color:#a41620!important}#eg-contact-link{font-size:10px}#eg-privacy{margin:7px 0 3px}#eg-check{margin-top:6px}#eg-window .eg-thinking .eg-cigarette{animation-duration:2.5s}#eg-window .eg-memo .eg-beer{opacity:0}#eg-window .eg-memo:after{content:'MEMO';position:absolute;bottom:0;left:5px;transform:rotate(-8deg);background:#eee8cb;color:#17130f;border:2px solid;padding:2px 5px;font-size:9px}#eg-window .eg-drinking .eg-beer{animation:eg-small-drink 2.2s steps(4,end)}@keyframes eg-small-drink{0%,100%{transform:none}30%,65%{transform:translate(11px,-21px) rotate(22deg)}}@keyframes eg-pop{from{opacity:.4;transform:translateY(4px)}to{opacity:1;transform:none}}@media(max-width:550px){#eg-launch{right:12px;bottom:12px;min-height:42px}#eg-window{right:12px;bottom:65px;width:350px;max-height:calc(100dvh - 84px)}#eg-window input,#eg-window textarea{font-size:16px}#eg-log{max-height:28dvh}}@media(prefers-reduced-motion:reduce){#eg-window .eg-message{animation:none}#eg-window .eg-beer,#eg-window .eg-cigarette{animation:none!important}}

#eg-window .eg-portrait{height:108px;width:84px;flex-basis:84px;margin:0 0 0 4px;position:relative}#eg-window .eg-body{position:absolute;bottom:0;left:0;width:84px;height:112px;overflow:visible}#eg-window .eg-paper{position:absolute;top:0;left:11px;width:64px;height:69px;padding:3px;background:#f4f0e3;box-shadow:2px 3px 0 #0003;transform:rotate(-5deg);z-index:3}#eg-window .eg-paper img{width:100%;height:100%;display:block;object-fit:cover}#eg-window .eg-paper:before,#eg-window .eg-paper:after{content:'';position:absolute;top:-5px;width:24px;height:10px;background:#e9e1baaa;border:1px solid #d7cfaa77;z-index:4;transform:rotate(-12deg)}#eg-window .eg-paper:before{left:-5px}#eg-window .eg-paper:after{right:-7px;transform:rotate(18deg)}.eg-sip-arm,.eg-puff-arm{display:none;transform-box:fill-box;transform-origin:50% 20%}#eg-window .eg-sipping .eg-sip-arm{display:block;animation:eg-human-sip 6.8s ease-in-out}#eg-window .eg-sipping .eg-rest-left{display:none}#eg-window .eg-smoking .eg-puff-arm{display:block;animation:eg-human-puff 8.3s ease-in-out}#eg-window .eg-smoking .eg-rest-right{display:none}.eg-puff-smoke{animation:eg-human-smoke 2.5s ease-out infinite}#eg-window .eg-memo:after{left:34px;bottom:3px;z-index:4}#eg-window .eg-memo .eg-sip-arm,#eg-window .eg-memo .eg-puff-arm{display:none}@keyframes eg-human-sip{0%,100%{transform:translateY(13px);opacity:0}15%,85%{transform:translateY(0);opacity:1}35%,65%{transform:translate(5px,-24px) rotate(10deg);opacity:1}}@keyframes eg-human-puff{0%,100%{transform:translateY(12px);opacity:0}15%,85%{transform:none;opacity:1}35%,65%{transform:translate(-8px,-25px) rotate(-12deg);opacity:1}}@keyframes eg-human-smoke{0%{opacity:0;transform:translateY(3px)}40%{opacity:.6}100%{opacity:0;transform:translateY(-9px)}}@media(prefers-reduced-motion:reduce){.eg-sip-arm,.eg-puff-arm,.eg-puff-smoke{animation:none!important}}

.eg-answer.eg-revealing::after{content:'';display:inline-block;width:5px;height:1em;margin-left:3px;vertical-align:-.12em;background:currentColor;opacity:.5;animation:eg-reply-cursor 1.1s steps(1,end) infinite}@keyframes eg-reply-cursor{0%,55%{opacity:.5}56%,100%{opacity:0}}@media(prefers-reduced-motion:reduce){.eg-answer.eg-revealing::after{animation:none;opacity:.35}}
