.agent-widget{position:fixed;right:18px;bottom:18px;z-index:90;font-family:Arial,Helvetica,sans-serif}.agent-toggle{min-width:96px;min-height:50px;border:0;border-radius:999px;background:linear-gradient(135deg,#c07d22,#f7b64a);color:#111;box-shadow:0 12px 34px rgba(0,0,0,.26);display:flex;align-items:center;gap:8px;justify-content:center;cursor:pointer;font-weight:900}.agent-toggle span{width:32px;height:32px;border-radius:12px;background:#17110c;color:#fff;display:grid;place-items:center;font-size:12px;letter-spacing:-.04em}.agent-toggle:focus-visible,.agent-close:focus-visible,.agent-form button:focus-visible,.agent-form textarea:focus-visible,.agent-voice button:focus-visible{outline:3px solid #fff2a8;outline-offset:3px}.agent-panel{width:min(405px,calc(100vw - 24px));height:min(640px,calc(100svh - 96px));margin-bottom:12px;border-radius:24px;overflow:hidden;background:#fffdf8;color:#1d1b16;border:1px solid rgba(43,33,24,.16);box-shadow:0 22px 70px rgba(0,0,0,.35);display:flex;flex-direction:column}.agent-head{background:#2b2118;color:#fff;padding:14px 16px;display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.agent-head strong{display:block;font-size:15px}.agent-head small{display:block;color:rgba(255,255,255,.78);font-size:12px;line-height:1.3;margin-top:2px}.agent-close{border:1px solid rgba(255,255,255,.22);border-radius:999px;background:rgba(255,255,255,.1);color:#fff;width:34px;height:34px;cursor:pointer;font-size:22px;line-height:1}.agent-voice{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px 12px;background:#fff8e7;border-bottom:1px solid #ead8ac}.agent-voice button{min-height:36px;border:1px solid #d6b86a;border-radius:999px;background:#fff;color:#2b2118;font-weight:900;padding:0 12px;cursor:pointer}.agent-voice small{color:#706a5f;font-size:12px;line-height:1.25}.agent-log{padding:14px;background:#f5f2eb;overflow:auto;flex:1;display:flex;flex-direction:column;gap:10px}.agent-msg{max-width:88%;padding:10px 12px;border-radius:16px;font-size:14px;line-height:1.45;white-space:pre-wrap;word-break:break-word}.agent-msg.bot{align-self:flex-start;background:#fff;border:1px solid #e3dacb}.agent-msg.me{align-self:flex-end;background:#2b2118;color:#fff}.agent-msg.bad{background:#fee2dc;border-color:#d49b91;color:#5c160e}.agent-form{padding:12px;background:#fffdf8;border-top:1px solid #e3dacb;display:flex;gap:8px;align-items:flex-end}.agent-form textarea{flex:1;min-height:48px;max-height:110px;resize:vertical;border:1px solid #d6cdbc;border-radius:15px;padding:10px;font:inherit}.agent-form button{min-height:48px;border:0;border-radius:15px;background:#c07d22;color:#fff;padding:0 16px;font-weight:900;cursor:pointer}.agent-note{margin:0;padding:0 14px 13px;background:#fffdf8;color:#706a5f;font-size:12px;line-height:1.35}.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:680px){.agent-widget{right:12px;bottom:12px}.agent-panel{height:min(610px,calc(100svh - 82px));border-radius:20px}.agent-toggle{min-width:86px}.agent-head small{font-size:11px}.agent-msg{max-width:94%}}@media(prefers-reduced-motion:reduce){.agent-widget *{animation:none!important;transition:none!important}.agent-msg.streaming:after{animation:none!important}}
.agent-msg.streaming:after{content:'▌';display:inline-block;margin-left:2px;animation:agentBlink 1s steps(2,start) infinite}@keyframes agentBlink{50%{opacity:.15}}
.agent-actions,.agent-quick{align-self:flex-start;max-width:94%;background:#fff8e7;border:1px solid #e6c178;border-radius:17px;padding:12px;color:#2b2118;box-shadow:0 8px 22px rgba(43,33,24,.08)}.agent-actions b,.agent-quick b{display:block;font-size:13px;margin-bottom:8px}.agent-actions div,.agent-quick div{display:flex;gap:8px;flex-wrap:wrap}.agent-action-primary,.agent-quick button{min-height:42px;border:0;border-radius:12px;background:#c07d22;color:#fff;font-weight:900;padding:0 12px;cursor:pointer}.agent-action-link{min-height:42px;border-radius:12px;border:1px solid #d6cdbc;color:#2b2118;text-decoration:none;font-weight:900;padding:10px 12px;background:#fff;display:inline-flex;align-items:center}.agent-action-primary:focus-visible,.agent-action-link:focus-visible,.agent-quick button:focus-visible,.agent-booking-form button:focus-visible,.agent-booking-form input:focus-visible,.agent-booking-form textarea:focus-visible,.agent-booking-close:focus-visible{outline:3px solid #fff2a8;outline-offset:3px}.agent-booking{border-top:1px solid #e3dacb;background:#fffdf8;padding:12px;max-height:55%;overflow:auto}.agent-booking-form{display:grid;gap:9px}.agent-booking-title{display:flex;justify-content:space-between;align-items:center;gap:10px}.agent-booking-title strong{font-size:14px}.agent-booking-close{width:30px;height:30px;border-radius:999px;border:1px solid #d6cdbc;background:#fff;color:#2b2118;cursor:pointer;font-size:20px;line-height:1}.agent-booking-form label{font-size:12px;font-weight:800;color:#5f574c;display:grid;gap:4px}.agent-booking-form input,.agent-booking-form textarea{width:100%;border:1px solid #d6cdbc;border-radius:12px;padding:9px 10px;font:inherit;background:#fff;color:#1d1b16}.agent-booking-form button[type=submit]{min-height:44px;border:0;border-radius:13px;background:#2b2118;color:#fff;font-weight:900;cursor:pointer}.agent-booking-status{font-size:12px;color:#706a5f;white-space:pre-wrap}
.agent-panel[hidden],.agent-booking[hidden]{display:none!important}.agent-voice #agentMic.listening{background:#2b2118;color:#fff;border-color:#2b2118}.agent-action-secondary{min-height:42px;border:1px solid #d6cdbc;border-radius:12px;background:#fff;color:#2b2118;font-weight:900;padding:0 12px;cursor:pointer}.agent-system-note{align-self:center;max-width:92%;font-size:12px;line-height:1.35;color:#6d6256;background:#fff8e7;border:1px solid #ead8ac;border-radius:999px;padding:8px 12px}.agent-actions p{margin:0 0 8px;color:#5f574c;font-size:12px;line-height:1.35}.agent-sites{align-self:flex-start;max-width:94%;background:#f1f8ff;border:1px solid #bcd7ef;border-radius:17px;padding:12px;display:flex;gap:8px;flex-wrap:wrap;color:#19324c}.agent-sites b{display:block;flex-basis:100%;font-size:13px}.agent-sites a{min-height:38px;border-radius:999px;padding:9px 11px;background:#fff;color:#19324c;text-decoration:none;font-weight:900;border:1px solid #bcd7ef}.agent-sites a:focus-visible,.agent-action-secondary:focus-visible,#agentMic:focus-visible{outline:3px solid #fff2a8;outline-offset:3px}@media(max-width:420px){.agent-voice{gap:6px}.agent-voice button{font-size:12px;padding:0 9px}.agent-form{gap:6px}.agent-form button{padding:0 12px}.agent-panel{height:min(650px,calc(100svh - 78px))}}

/* v3.4 homepage-trigger compatibility */
.agent-toggle:focus-visible,.agent-panel button:focus-visible{outline:3px solid #ffd083;outline-offset:3px}

/* v4.4 day/night chat contrast fix: force Meg and all chat transcript boxes to follow the selected theme. */
html[data-theme="night"] .agent-panel,
html[data-theme="night"] .agent-form,
html[data-theme="night"] .agent-note,
html[data-theme="night"] .agent-booking,
html[data-theme="night"] .agent-booking-form,
html[data-theme="night"] .agent-booking-title,
html[data-theme="night"] .agent-voice{
  background:#071120!important;
  color:#f8fbff!important;
  border-color:rgba(255,255,255,.16)!important;
}
html[data-theme="night"] .agent-head{background:#020817!important;color:#f8fbff!important;border-bottom:1px solid rgba(255,255,255,.16)!important;}
html[data-theme="night"] .agent-log{background:#030814!important;color:#f8fbff!important;}
html[data-theme="night"] .agent-msg.bot{background:#101d31!important;color:#f8fbff!important;border-color:rgba(255,255,255,.16)!important;}
html[data-theme="night"] .agent-msg.me{background:#f7b64a!important;color:#061226!important;border:1px solid rgba(247,182,74,.65)!important;}
html[data-theme="night"] .agent-msg.bad{background:#4b1712!important;color:#ffe7e2!important;border-color:#a74335!important;}
html[data-theme="night"] .agent-actions,
html[data-theme="night"] .agent-quick,
html[data-theme="night"] .agent-sites,
html[data-theme="night"] .agent-system-note{background:#0d1a2c!important;color:#f8fbff!important;border-color:rgba(255,255,255,.16)!important;}
html[data-theme="night"] .agent-actions p,
html[data-theme="night"] .agent-voice small,
html[data-theme="night"] .agent-booking-status,
html[data-theme="night"] .agent-booking-form label,
html[data-theme="night"] .agent-system-note{color:#c7d3df!important;}
html[data-theme="night"] .agent-form textarea,
html[data-theme="night"] .agent-booking-form input,
html[data-theme="night"] .agent-booking-form textarea{background:#0d1a2c!important;color:#f8fbff!important;border-color:rgba(255,255,255,.22)!important;}
html[data-theme="night"] .agent-form textarea::placeholder,
html[data-theme="night"] .agent-booking-form textarea::placeholder{color:#98a8b8!important;}
html[data-theme="night"] .agent-voice button,
html[data-theme="night"] .agent-action-link,
html[data-theme="night"] .agent-action-secondary,
html[data-theme="night"] .agent-booking-close{background:#13243a!important;color:#f8fbff!important;border-color:rgba(255,255,255,.22)!important;}
html[data-theme="night"] .agent-booking-form button[type=submit],
html[data-theme="night"] .agent-form button,
html[data-theme="night"] .agent-action-primary,
html[data-theme="night"] .agent-quick button{background:#f7b64a!important;color:#061226!important;}
html[data-theme="night"] .agent-sites a{background:#13243a!important;color:#f8fbff!important;border-color:rgba(255,255,255,.22)!important;}

html[data-theme="day"] .agent-panel,
html[data-theme="day"] .agent-form,
html[data-theme="day"] .agent-note,
html[data-theme="day"] .agent-booking,
html[data-theme="day"] .agent-voice{background:#fffdf8!important;color:#1d1b16!important;}
html[data-theme="day"] .agent-log{background:#f5f2eb!important;color:#1d1b16!important;}
html[data-theme="day"] .agent-msg.bot{background:#fff!important;color:#1d1b16!important;border-color:#e3dacb!important;}
html[data-theme="day"] .agent-msg.me{background:#2b2118!important;color:#fff!important;}
html[data-theme="day"] .agent-form textarea,
html[data-theme="day"] .agent-booking-form input,
html[data-theme="day"] .agent-booking-form textarea{background:#fff!important;color:#1d1b16!important;border-color:#d6cdbc!important;}

/* Old demo chat boxes and public chat boxes */
html[data-theme="night"] .chatbox,
html[data-theme="night"] #chat,
html[data-theme="night"] .demo-card,
html[data-theme="night"] .chat{
  background:#030814!important;
  color:#f8fbff!important;
  border-color:rgba(255,255,255,.16)!important;
}
html[data-theme="night"] .chatbox .msg.bot,
html[data-theme="night"] #chat .msg.bot,
html[data-theme="night"] .demo-card .msg.assistant,
html[data-theme="night"] .chat .msg.assistant{
  background:#101d31!important;
  color:#f8fbff!important;
  border:1px solid rgba(255,255,255,.16)!important;
}
html[data-theme="night"] .chatbox .msg.me,
html[data-theme="night"] #chat .msg.me,
html[data-theme="night"] .demo-card .msg.user,
html[data-theme="night"] .chat .msg.user{
  background:#f7b64a!important;
  color:#061226!important;
  border:1px solid rgba(247,182,74,.65)!important;
}
html[data-theme="day"] .chatbox,
html[data-theme="day"] #chat,
html[data-theme="day"] .demo-card,
html[data-theme="day"] .chat{background:#fff!important;color:#1d1b16!important;border-color:#d6cdbc!important;}
html[data-theme="day"] .chatbox .msg.bot,
html[data-theme="day"] #chat .msg.bot,
html[data-theme="day"] .demo-card .msg.assistant,
html[data-theme="day"] .chat .msg.assistant{background:#f5f2eb!important;color:#1d1b16!important;border:1px solid #e3dacb!important;}
html[data-theme="day"] .chatbox .msg.me,
html[data-theme="day"] #chat .msg.me,
html[data-theme="day"] .demo-card .msg.user,
html[data-theme="day"] .chat .msg.user{background:#2b2118!important;color:#fff!important;}
