header.manny-enabled{min-height:100px;padding-right:145px}
.manny-launch{position:absolute;right:13px;top:8px;display:flex;flex-direction:column;align-items:center;gap:0;background:transparent;color:#cce5ff;border:1px solid #5c85b0;border-radius:12px;padding:3px 11px 6px;cursor:pointer;min-width:94px;font:700 12px system-ui}
.manny-launch img{display:block;object-fit:contain;height:60px;width:64px}.manny-launch:hover{background:#77b7ff18}.manny-launch:focus-visible{outline:3px solid #93c5fd;outline-offset:3px}
#manny-dialog{width:min(520px,96vw);height:min(780px,94dvh);max-height:94vh;padding:0;border:1px solid #819ab6;border-radius:18px;color:var(--fg,#25282c);background:var(--panel,#fff);overflow:hidden;box-shadow:0 22px 70px #0006}
#manny-dialog[open]{display:flex;flex-direction:column}#manny-dialog::backdrop{background:#09121f99}
#manny-dialog *{box-sizing:border-box}#manny-dialog button,#manny-dialog textarea{font:inherit}#manny-dialog button{cursor:pointer}#manny-dialog button:disabled{opacity:.55;cursor:wait}
#manny-dialog button:focus-visible,#manny-dialog textarea:focus-visible,#manny-dialog a:focus-visible{outline:3px solid #3b82f6;outline-offset:2px}
.manny-top{display:flex;align-items:center;gap:12px;padding:14px 16px;background:#142a43;color:#f4f8ff;flex-shrink:0}.manny-top img{object-fit:contain;flex-shrink:0}.manny-top h2{margin:0;font-size:19px}.manny-top p{margin:3px 0 0;font-size:13px;color:#c4d7ef}.manny-close{margin-left:auto;border:0;background:transparent;color:#fff;font-size:32px!important;line-height:1;padding:4px 8px;min-height:44px;min-width:44px}
#manny-scope{font-size:12px;color:var(--muted,#526176);line-height:1.4;margin:10px 16px 4px;flex-shrink:0}#manny-chat{flex:1;overflow-y:auto;padding:10px 15px;min-height:100px;overscroll-behavior:contain}.manny-intro{font-size:15px;line-height:1.6;color:var(--muted,#526176);padding:10px 2px}
.manny-suggestions{display:flex;flex-wrap:wrap;gap:6px;padding:7px 15px;flex-shrink:0}.manny-suggestions button{border:1px solid #7b93af;border-radius:8px;padding:7px 9px;background:var(--raised,#f0f5fb);color:var(--fg,#243b56);font-size:12px!important;min-height:36px}
.manny-message{padding:12px 13px;margin:0 0 12px;border:1px solid var(--border,#d5dfec);border-radius:12px;background:var(--raised,#f1f5fa);font-size:14px;line-height:1.55;overflow-wrap:anywhere}.manny-message.user{background:#155eef0c;border-left:3px solid #155eef}.manny-message>strong{font-size:12px;color:var(--muted,#4c6583);display:block;margin-bottom:4px}.manny-answer{white-space:pre-wrap}.manny-answer a{color:var(--hi,#155eef);text-decoration:underline}.manny-web-sources{display:flex;flex-direction:column;gap:7px;border-top:1px solid var(--border,#d5dfec);margin-top:12px;padding-top:10px;font-size:12px;white-space:normal}.manny-record-links{display:flex;flex-direction:column;gap:6px;margin-top:12px}.manny-record-links small{color:var(--muted,#526176)}.manny-record-links button,.manny-listen{border:1px solid #8aa1bc;border-radius:6px;padding:8px 10px;background:var(--panel,#fff);color:var(--fg,#233d5b);text-align:left;font-size:12px!important;min-height:38px}.manny-listen{margin-top:10px}
#manny-status{margin:0;padding:0 16px;color:var(--muted,#526176);font-size:13px;line-height:1.45;flex-shrink:0}#manny-status:empty{display:none}
#manny-form{border-top:1px solid var(--border,#d5dfec);padding:12px 15px 10px;flex-shrink:0}.manny-input-label{display:block;font-size:12px;font-weight:700;margin-bottom:5px}#manny-question{width:100%;resize:vertical;min-height:65px;max-height:130px;border:1px solid #8aa1bc;border-radius:9px;padding:10px;font-size:16px!important;background:var(--raised,#fff);color:var(--fg,#25282c)}.manny-actions{display:flex;gap:9px;margin-top:8px}.manny-actions button{border:1px solid #7b93af;border-radius:8px;min-height:43px;padding:10px 14px;background:var(--raised,#edf3fa);color:var(--fg,#243b56);font-weight:700!important}.manny-actions #manny-send{margin-left:auto;background:#155eef;color:#fff;border-color:#155eef;min-width:85px}.manny-actions #manny-mic[aria-pressed="true"]{background:#fee2e2;color:#991b1b;border-color:#b91c1c}.manny-record-note{margin:7px 0 0;font-size:11px;color:var(--muted,#526176)}
@media(max-width:380px){header.manny-enabled{padding-right:118px}.manny-launch{right:8px;min-width:86px;padding-left:6px;padding-right:6px}.manny-top{gap:8px;padding:10px}.manny-top h2{font-size:17px}.manny-top img{width:52px;height:52px}}
@media(max-height:600px){#manny-dialog{height:100dvh;max-height:100dvh;border-radius:0}.manny-top{padding:7px 12px}.manny-top img{width:40px;height:40px}.manny-top h2{font-size:16px}.manny-top p{font-size:11px}#manny-chat{min-height:20px;padding:5px 12px}#manny-scope{margin-top:6px;font-size:11px}#manny-form{padding:7px 12px}#manny-question{min-height:45px;height:45px}.manny-record-note{font-size:10px}}
.manny-actions #manny-mic{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:83px}.manny-actions #manny-mic svg{flex-shrink:0}
#manny-form{max-height:55dvh;overflow-y:auto;overscroll-behavior:contain}#manny-voice-settings{margin-top:8px}#manny-voice-settings label{display:block;margin:7px 0 4px}#manny-test-voice{border:1px solid #8aa1bc;border-radius:6px;padding:8px 12px;min-height:40px;color:var(--fg,#25282c);background:var(--raised,#fff)}

@media(max-height:600px){.manny-suggestions{display:none}#manny-status{max-height:20dvh;overflow-y:auto}#manny-form{max-height:48dvh}}
.manny-voice-row{display:flex;align-items:center;gap:8px;min-width:0;max-width:100%}.manny-voice-row select{flex:1 1 0;min-width:0;width:0;min-height:42px;padding:8px;border:1px solid #8aa1bc;border-radius:6px;background:var(--raised,#fff);color:var(--fg,#25282c);font:inherit;font-size:14px}#manny-test-voice{flex:0 1 auto;width:auto;max-width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere}
@media(max-width:480px){.manny-voice-row{flex-direction:column;align-items:stretch}.manny-voice-row select{flex:none;width:100%}#manny-test-voice{align-self:flex-start}}

/* Keep dictation inside the question field, with an icon-only touch target. */
.manny-question-input{position:relative;max-width:100%;min-width:0}
#manny-question{display:block;box-sizing:border-box;padding-right:60px;padding-bottom:10px;min-height:65px}
#manny-mic{position:absolute;right:6px;bottom:6px;display:inline-flex;align-items:center;justify-content:center;width:44px;min-width:44px;height:44px;min-height:44px;margin:0;padding:10px;border:0;border-radius:8px;background:transparent;color:var(--hi,#155eef);cursor:pointer}
#manny-mic svg{flex-shrink:0}
#manny-mic[aria-pressed="true"]{background:var(--subtle,#dbeafe);color:var(--subtle-fg,#1e3a8a);outline:2px solid currentColor;outline-offset:-2px}
#manny-mic:focus-visible{outline:3px solid var(--hi,#155eef);outline-offset:-3px}
#manny-mic:disabled{opacity:.6;cursor:wait}
#manny-stop-voice[hidden]{display:none}
.manny-actions{flex-wrap:wrap}
.manny-actions button{padding:9px 10px}
.manny-actions #manny-send{min-width:70px}
#manny-auto-read[aria-pressed="true"]{background:var(--subtle,#dbeafe);color:var(--subtle-fg,#1e3a8a)}
.manny-answer{margin-top:8px}
#manny-voice-note{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-height:600px){#manny-question{min-height:58px;height:58px}}

.manny-suggestions[hidden]{display:none}
#manny-confirm-voice[hidden]{display:none}
.manny-voice-setup{font-size:14px;line-height:1.5}.manny-voice-setup summary{cursor:pointer;font-weight:700;padding:8px 0}.manny-voice-setup p{overflow-wrap:anywhere}

