.e9-launcher { position: fixed; z-index: 80; right: max(16px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); display: grid; justify-items: end; gap: 9px; max-width: calc(100vw - 32px); color: #132c48; }
.e9-launcher[hidden], .e9-greeting[hidden] { display: none; }
.e9-greeting { display: flex; align-items: center; gap: .65rem; background: white; border: 1px solid #dae1e7; border-radius: 16px 16px 4px 16px; padding: .35rem .2rem .35rem .6rem; box-shadow: 0 4px 20px #102a4526; font-size: .95rem; }
.e9-mark { display: grid; place-items: center; width: 34px; height: 34px; flex: none; background: #072d59; border-radius: 50%; }
.e9-mark img { width: 24px; height: auto; }
.e9-greeting button { font: inherit; font-size: 1.3rem; cursor: pointer; width: 44px; height: 44px; background: transparent; border: 0; color: #425670; }
.ask-e9 { display: inline-flex; align-items: center; justify-content: center; gap: .45em; cursor: pointer; font: inherit; font-weight: 650; min-height: 44px; border-radius: 2em; padding: .55em 1.25em; color: white; background: #072d59; border: 1px solid #ffffff80; box-shadow: 0 3px 14px #102a4533; }
.ask-e9::before { content: ""; width: 1.2em; height: 1.2em; flex: none; background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M21%2011.3c0%204.5-4%208-9%208-1.5%200-2.9-.3-4.1-.8L3%2020l1.5-4.3A7.4%207.4%200%200%201%203%2011.3c0-4.5%204-8%209-8s9%203.5%209%208Z%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%221.8%22%20stroke-linejoin%3D%22round%22%2F%3E%3Cg%20fill%3D%22white%22%3E%3Ccircle%20cx%3D%228%22%20cy%3D%2211.3%22%20r%3D%221%22%2F%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2211.3%22%20r%3D%221%22%2F%3E%3Ccircle%20cx%3D%2216%22%20cy%3D%2211.3%22%20r%3D%221%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") center / contain no-repeat; }
.e9-panel [data-book] { color: #072d59; font-weight: 600; text-decoration: underline; text-underline-offset: .2em; }
.e9-panel { box-sizing: border-box; margin: auto; padding: 0; width: min(29rem, calc(100vw - 1.5rem)); max-height: 90dvh; overflow: auto; border: 1px solid #dae1e7; border-radius: 1.25rem; color: #152f49; background: white; box-shadow: 0 18px 80px #102a4540; }
.e9-panel::backdrop { background: #102a455f; }
.e9-panel * { box-sizing: border-box; }
.e9-panel header, .e9-panel .e9-actions, .e9-panel .e9-compose { display: flex; align-items: center; gap: .55rem; }
.e9-panel header { justify-content: space-between; padding: .9rem 1.2rem; border-bottom: 1px solid #e6ebef; }
.e9-panel section, .e9-panel .e9-main { padding: 1rem 1.2rem; }
.e9-panel h2, .e9-panel h3, .e9-panel p { margin: 0 0 .7rem; }
.e9-panel header h2 { margin: 0; font-size: 1.1rem; }
.e9-panel label { display: grid; gap: .2rem; margin: .5rem 0; font-size: .92rem; }
.e9-panel button { cursor: pointer; font: inherit; color: inherit; background: white; border: 1px solid #ccd6df; border-radius: 1.5rem; padding: .5rem .85rem; }
.e9-panel input, .e9-panel textarea { font: inherit; font-size: 16px; color: #132c48; background: white; border: 1px solid #aebdca; border-radius: .7rem; padding: .6rem; min-width: 0; }
.e9-panel .e9-primary { color: #fff; background: #102f50; border-color: #102f50; }
.e9-panel .e9-log { max-height: 32dvh; overflow-y: auto; margin: .8rem 0; }
.e9-panel .e9-log p { white-space: pre-wrap; overflow-wrap: anywhere; padding: .65rem .8rem; background: #f0f4f8; border-radius: .8rem; }
.e9-panel .e9-log .e9-guest { background: #f9eef4; margin-left: 1.2rem; }
.e9-panel .e9-compose input { flex: 1; }
.e9-panel .e9-actions { flex-wrap: wrap; margin-top: .7rem; }
.e9-panel pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; line-height: 1.5; }
.e9-panel [hidden] { display: none !important; }
.e9-launcher :focus-visible, .e9-panel :focus-visible { outline: 3px solid #0876ad; outline-offset: 2px; }

.e9-panel .e9-mic { flex: none; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; padding: 0; color: white; background: #072d59; border: 1px solid #072d59; border-radius: 50%; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.e9-panel .e9-mic:hover { background: #0b3f7a; }
.e9-panel .e9-mic:focus-visible { outline: 2px solid #072d59; outline-offset: 2px; }
.e9-panel .e9-mic.is-listening { color: white; background: #d83a52; border-color: #d83a52; animation: e9-listen 1.2s ease-out infinite; }
@keyframes e9-listen { 0% { box-shadow: 0 0 0 0 rgba(216,58,82,.45); } 100% { box-shadow: 0 0 0 10px rgba(216,58,82,0); } }
@media (prefers-reduced-motion: reduce) { .e9-panel .e9-mic.is-listening { animation: none; } }
.e9-panel .e9-compose [hidden] { display: none; }
