.gem-companion-helper{position:fixed;z-index:125;width:300px;max-width:calc(100vw - 36px);font:400 13px/1.55 'Instrument Sans',Arial,sans-serif;color:#28323c;pointer-events:none;box-sizing:border-box}
.gem-companion-helper[hidden],.gem-companion-helper [hidden]{display:none!important}
.gc-bubble{position:relative;padding:18px 16px 12px;border:1px solid #dce1e7;border-radius:15px 15px 5px 15px;background:#fff;box-shadow:0 12px 40px #1d2a3c14,0 2px 7px #1d2a3c09;pointer-events:auto;max-height:min(430px,55vh);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.gc-observation{margin:0 14px 12px 0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.6;letter-spacing:-.1px}
.gem-companion-helper button{font-family:inherit;cursor:pointer;box-sizing:border-box;transition:background .15s,border-color .15s}
.gc-close{position:absolute;right:7px;top:6px;display:grid;place-items:center;width:25px;height:25px;border:0;background:transparent;border-radius:6px;color:#89929b;font-size:19px;line-height:1}
.gc-close:hover{background:#f0f2f5;color:#3c4855}
.gc-actions{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 10px}
.gc-action{min-height:32px;border:1px solid #d9dfe7;border-radius:7px;background:#fff;padding:5px 10px;font-size:11px;font-weight:500;color:#435267}
.gc-action:hover{background:#f4f6f9;border-color:#bcc8d8}
.gc-action.gc-primary,.gc-answer-send{background:#3e6fa8;border-color:#3e6fa8;color:#fff}
.gc-action.gc-primary:hover,.gc-answer-send:hover{background:#335f93;border-color:#335f93}
.gc-answer{display:flex;align-items:flex-end;gap:5px;border:1px solid #dce2e9;background:#fafbfc;border-radius:9px;padding:5px;margin:3px 0 10px}
.gc-answer:focus-within{border-color:#7f9fc5;box-shadow:0 0 0 2px #3e6fa80a;background:#fff}
.gc-answer textarea{display:block;resize:vertical;min-height:32px;max-height:95px;width:100%;min-width:0;box-sizing:border-box;outline:0;border:0;background:transparent;padding:6px;font:400 12px/1.5 'Instrument Sans',Arial,sans-serif;color:#28323c}
.gc-answer textarea::placeholder{color:#939ba4}
.gc-answer-send{flex:none;width:28px;height:28px;border:1px solid #3e6fa8;border-radius:7px;font-size:19px;line-height:1;margin-bottom:2px}
.gc-sources{border-top:1px solid #edf0f3;padding-top:8px;font-size:11px;color:#77828f}
.gc-sources summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:5px;width:fit-content}
.gc-sources summary::-webkit-details-marker{display:none}.gc-sources summary:before{content:'›';font-size:15px;line-height:1}.gc-sources[open] summary:before{transform:rotate(90deg)}
.gc-source{margin-top:9px;padding:0 0 0 9px;border-left:2px solid #e6ebf2;overflow-wrap:anywhere}.gc-source strong{font-size:10px;font-weight:600;color:#5d6c7e}.gc-source p{margin:3px 0 0;white-space:pre-wrap;line-height:1.5;color:#77828f}
.gc-error{font-size:11px;line-height:1.5;color:#9a5b45;margin:8px 0 0}
.gc-reopen{display:flex;align-items:center;justify-content:center;position:relative;margin-left:auto;width:30px;height:30px;border:1px solid #d5dfe9;border-radius:50%;background:#fff;box-shadow:0 3px 12px #25374f12;pointer-events:auto;color:#3e6fa8;font-size:15px;font-weight:600}
.gc-pending-dot{position:absolute;width:6px;height:6px;top:0;right:0;border:2px solid #fff;border-radius:50%;background:#5985b7;box-sizing:content-box}
.gem-companion-helper button:disabled{opacity:.48;cursor:default}.gem-companion-helper button:focus-visible,.gc-sources summary:focus-visible{outline:2px solid #6892bf;outline-offset:3px}
body.gem-companion-enabled .as-companion,body.gem-companion-enabled.desktop-working .as-companion{width:58px;height:63px;padding:0;border:0;background:transparent;box-shadow:none;border-radius:14px;gap:0}
body.gem-companion-enabled .as-companion .as-launcher{width:58px;min-height:61px;justify-content:center;padding:0}
body.gem-companion-enabled .as-companion .as-launcher>svg.as-gem,body.gem-companion-enabled.desktop-working .as-companion .as-launcher>svg.as-gem{width:52px;height:60px;filter:drop-shadow(0 3px 3px #25374f12)}
body.gem-companion-enabled .as-companion .as-launcher-label,body.gem-companion-enabled .as-companion .as-quick-voice{display:none}
.gc-hosted{z-index:2;padding-bottom:37px}.gc-hosted .gc-bubble{border-bottom-right-radius:15px}.gc-character-button{position:absolute;bottom:-5px;right:-7px;width:46px;height:49px;padding:0;border:0;border-radius:12px;background:transparent;pointer-events:auto}.gc-character{display:block;width:100%;height:100%}.gc-character>.as-gem{width:44px;height:49px;fill:none;stroke:none;overflow:visible;filter:drop-shadow(0 2px 2px #25374f10)}
@media(max-width:900px){.gem-companion-helper{max-width:calc(100vw - 28px);width:292px}.gc-bubble{max-height:43vh;padding:16px 14px 11px}.gc-hosted{max-width:calc(100vw - 36px)}}
@media(prefers-reduced-motion:reduce){.gem-companion-helper *{animation:none!important;transition:none!important}}

body.gem-companion-enabled .as-companion.gem-companion-obscured{display:none!important}

.gem-companion-helper.gc-quiet{width:46px;height:49px;padding:0}.gc-quiet .gc-character-button{right:0;bottom:0}

body.gem-companion-enabled .entry-dialog.entry-paired:not(.entry-assistant){position:fixed;inset:24px;margin:auto;height:fit-content;max-height:calc(100dvh - 48px);z-index:145}
@media(max-width:800px){body.gem-companion-enabled .entry-dialog.entry-paired:not(.entry-assistant){inset:10px;max-height:calc(100dvh - 20px)}}

body:has(>.entry-dialog.entry-paired[open])::after{content:"";position:fixed;inset:0;z-index:140;background:#11171db3;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);pointer-events:none}
