/* Same-origin floating conversation shell. Full-page assistant styling remains in site.css. */
.widget-launchers{position:fixed;right:24px;bottom:max(24px,env(safe-area-inset-bottom));display:flex;align-items:center;gap:10px;z-index:80}
.widget-launch{border:1px solid transparent;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:54px;padding:13px 21px;box-shadow:0 8px 26px #14372c22;font:inherit;font-size:14px;font-weight:650;cursor:pointer;transition:transform .16s ease,box-shadow .16s ease}
.widget-launch:hover{transform:translateY(-2px);box-shadow:0 10px 30px #14372c30}.widget-launch svg{width:22px;height:22px;flex-shrink:0}
.widget-chat-launch{background:var(--primary);color:white}.widget-voice-launch{background:#e6f5ee;color:#184d3c;border-color:#c7e1d4}
.widget-launch:focus-visible,.widget-close:focus-visible,.widget-tabs button:focus-visible{outline:3px solid #a487d7;outline-offset:3px}
.widget-preview-tag{position:absolute;bottom:calc(100% + 8px);right:6px;font-size:10px;color:var(--muted);background:var(--paper,#fff);padding:3px 7px;border-radius:5px}
.widget-dialog{position:fixed;inset:auto 24px 98px auto;width:430px;max-width:calc(100vw - 32px);height:700px;max-height:calc(100dvh - 120px);padding:0;margin:0;border:1px solid #d8e4dd;border-radius:22px;background:white;color:var(--ink);box-shadow:0 22px 90px #132b3b40;overflow:hidden}
.widget-dialog:not([open]){display:none}.widget-dialog[open]{display:flex;flex-direction:column}.widget-dialog::backdrop{background:#112d291f}
.widget-header{display:flex;gap:12px;align-items:center;padding:18px 20px;background:var(--primary);color:white;flex-shrink:0}
.widget-avatar{width:40px;height:40px;background:#ffffff22;display:grid;place-items:center;border:1px solid #ffffff35;border-radius:13px;font-size:27px;font-weight:700;flex-shrink:0}
.widget-header>div{min-width:0;flex:1}.widget-header h2{font-size:16px;line-height:1.3;color:inherit;margin:0;overflow-wrap:anywhere;max-height:42px;overflow:auto}.widget-header p{font-size:11px;color:#e0efe6;margin:4px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.widget-close{color:white;background:#ffffff14;border:0;border-radius:9px;width:36px;height:36px;font-size:27px;line-height:1;cursor:pointer;flex-shrink:0}.widget-close:hover{background:#ffffff28}
.widget-preview{font-size:10px;padding:6px 15px;background:#f8f2dd;color:#61532e;flex-shrink:0}
.widget-tabs{display:flex;gap:6px;padding:10px 16px;border-bottom:1px solid var(--line);background:#fbfcfb;flex-shrink:0}
.widget-tabs button{flex:1;min-height:36px;border:1px solid transparent;border-radius:9px;background:transparent;color:var(--muted);font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.widget-tabs button[aria-selected="true"]{background:#eaf4ef;color:var(--primary);border-color:#d8e8df}
.widget-body{flex:1;min-height:0;overflow:auto}.widget-body #agent-app{height:100%;display:flex;flex-direction:column}
.widget-dialog .consent-box{margin:0;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:12px 17px;background:#fcfdfc;flex-shrink:0}
.widget-dialog .consent-box .check{margin:0;font-size:11px;line-height:1.5;align-items:start;gap:9px}.widget-dialog .consent-box input{margin-top:2px;flex-shrink:0}
.widget-dialog .interaction-grid{display:flex;flex-direction:column;gap:0;flex:1;min-height:200px;margin:0}
.widget-dialog .panel{border:0;border-radius:0;box-shadow:none;margin:0;min-width:0}.widget-dialog [hidden]{display:none!important}
.widget-dialog .chat-panel{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}
.widget-dialog .panel-heading{padding:12px 16px;gap:12px;flex-shrink:0}.widget-dialog .panel-heading h2{font-size:14px}.widget-dialog .panel-heading p{display:none}
.widget-dialog .messages{height:auto;min-height:100px;flex:1;padding:14px 16px;scroll-behavior:smooth;background:#f8faf8;overflow-y:auto}
.widget-dialog .message{font-size:13px;padding:11px 13px;max-width:94%;margin-bottom:10px;overflow-wrap:anywhere}.widget-dialog .message-label{font-size:10px;margin-bottom:5px}
.widget-dialog .chat-compose{padding:11px 14px;gap:8px;align-items:end;flex-shrink:0}.widget-dialog .chat-compose textarea{font-size:13px;min-height:45px;max-height:96px;resize:vertical}.widget-dialog .chat-compose .button{padding:12px 14px;min-height:44px;font-size:12px;white-space:nowrap}
.widget-dialog .inline-status{font-size:11px;padding:0 16px;margin:6px 0;flex-shrink:0}.widget-dialog .inline-status:empty{display:none}
.widget-dialog .microcopy{font-size:10px;line-height:1.45;margin:0;padding:0 16px 10px;color:var(--muted);flex-shrink:0}
.widget-dialog .voice-panel{padding:22px 22px 16px;text-align:center;flex:1;min-height:0;overflow:auto}.widget-dialog .voice-panel .eyebrow{font-size:9px}.widget-dialog .voice-panel h2{font-size:23px;margin:11px 0}.widget-dialog .voice-panel>p{font-size:12px}.widget-dialog .small-orbit{height:110px;width:110px;margin:20px auto}.widget-dialog .voice-panel .button{min-width:170px}.widget-dialog .voice-panel .inline-status{margin:12px 0;padding:0}.widget-dialog .voice-caption{font-size:12px;overflow-wrap:anywhere;max-height:90px;overflow:auto}.widget-dialog .voice-panel .microcopy{margin-top:14px;padding:0}
.widget-footer{padding:10px 16px;border-top:1px solid var(--line);display:flex;gap:8px;justify-content:space-between;align-items:center;font-size:10px;background:#fbfcfb;flex-shrink:0;color:var(--muted)}.widget-footer a{white-space:nowrap}
.widget-no-script{position:fixed;right:24px;bottom:90px;max-width:320px;padding:12px;background:white;border:1px solid var(--line);font-size:12px;z-index:81}
body.widget-is-open{overflow:hidden}body.has-assistant-widget .public-footer{padding-bottom:95px}
@media(max-width:600px){.widget-launchers{right:16px;bottom:max(16px,env(safe-area-inset-bottom));gap:8px}.widget-launch{min-height:50px;padding:12px 17px;font-size:13px}.widget-launch svg{height:20px;width:20px}.widget-dialog{inset:auto 12px max(12px,env(safe-area-inset-bottom)) 12px;width:auto;max-width:none;height:760px;max-height:calc(100dvh - 24px);border-radius:18px}.widget-header{padding:15px 16px}.widget-tabs{padding:8px 14px}.widget-dialog .consent-box{padding:10px 14px}.widget-footer{font-size:9px}.widget-dialog .interaction-grid{min-height:150px}.widget-dialog .messages{min-height:70px}.widget-dialog .voice-panel{padding-top:17px}}
@media(max-height:650px){.widget-dialog{bottom:12px;top:auto;max-height:calc(100dvh - 24px)}.widget-body #agent-app{height:100%;min-height:0}.widget-dialog .interaction-grid{min-height:0}.widget-dialog .messages{min-height:30px;max-height:none;gap:10px}.widget-dialog .panel-heading{padding:7px 13px}.widget-dialog .panel-heading .button{padding:6px 10px;min-height:30px;font-size:11px}.widget-dialog .chat-compose{padding:8px 12px}.widget-dialog .chat-compose textarea{height:45px;min-height:42px;resize:none}.widget-dialog .small-orbit{height:70px;width:70px;margin:14px auto}.widget-dialog .microcopy{font-size:9px;line-height:1.35;padding-bottom:6px}}
@media(max-height:450px){.widget-header{padding:8px 14px}.widget-avatar{width:30px;height:30px;font-size:23px}.widget-header h2{font-size:14px}.widget-header p{font-size:9px;margin-top:1px}.widget-tabs{padding:4px 14px}.widget-tabs button{min-height:28px;font-size:11px}.widget-dialog .consent-box{padding:6px 12px}.widget-dialog .consent-box .check{font-size:10px;line-height:1.35}.widget-dialog .chat-panel>.microcopy{display:none}.widget-dialog .panel-heading h2{font-size:12px}.widget-footer{padding:5px 12px}.widget-dialog .chat-compose .button{min-height:40px;padding:9px 12px}}
@media(prefers-reduced-motion:reduce){.widget-launch{transition:none}.widget-dialog .messages{scroll-behavior:auto}}
