.msh-ai { --ai-red: #ce203e; --ai-ink: #161514; --ai-stone: #f4f2ef; position: fixed; right: 20px; bottom: 20px; z-index: 10050; font-family: inherit; }
.msh-ai__launch { position: relative; display: grid; place-items: center; width: 62px; height: 62px; padding: 0; border: 1px solid rgba(255, 255, 255, .75); border-radius: 50%; background: linear-gradient(145deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .38)); -webkit-backdrop-filter: blur(18px) saturate(180%); backdrop-filter: blur(18px) saturate(180%); color: var(--ai-red); cursor: pointer; box-shadow: 0 10px 30px rgba(22, 21, 20, .16), inset 0 1px 0 rgba(255, 255, 255, .9); transition: transform .25s, box-shadow .25s; }
.msh-ai__launch::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 2px solid rgba(206, 32, 62, .35); animation: msh-ai-ring 3.2s ease-out infinite; pointer-events: none; }
.msh-ai__launch svg { transition: transform .4s; }
.msh-ai__launch:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(22, 21, 20, .22), inset 0 1px 0 rgba(255, 255, 255, .9); }
.msh-ai__launch:hover svg { transform: rotate(18deg) scale(1.08); }
.msh-ai__launch:focus-visible { outline: 3px solid var(--ai-red); outline-offset: 3px; }
@keyframes msh-ai-ring { 0% { transform: scale(1); opacity: .9; } 70%, 100% { transform: scale(1.35); opacity: 0; } }
.msh-ai.is-open .msh-ai__launch { display: none; }
.msh-ai__panel { position: absolute; right: 0; bottom: 0; width: 380px; max-height: min(640px, calc(100vh - 40px)); display: flex; flex-direction: column; background: rgba(255, 255, 255, .7); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%); border: 1px solid rgba(255, 255, 255, .8); color: var(--ai-ink); border-radius: 22px; box-shadow: 0 24px 60px rgba(22, 21, 20, .22); overflow: hidden; animation: msh-ai-in .25s ease-out; }
.msh-ai__panel[hidden] { display: none; }
@keyframes msh-ai-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.msh-ai__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; background: rgba(255, 255, 255, .45); border-bottom: 1px solid rgba(22, 21, 20, .07); color: var(--ai-ink); }
.msh-ai__head > div:first-child { display: flex; align-items: center; gap: 12px; }
.msh-ai__avatar { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ai-red); color: #fff; box-shadow: 0 6px 16px rgba(206, 32, 62, .3); }
.msh-ai__head h2 { margin: 0; font-size: 17px; line-height: 1.2; color: var(--ai-ink); font-weight: 600; }
.msh-ai__head p { margin: 2px 0 0; padding: 0; font-size: 13px; color: #6b6762; line-height: 1.3; }
.msh-ai__close { border: 0; background: rgba(22, 21, 20, .06); color: var(--ai-ink); flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; }
.msh-ai__log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: rgba(244, 242, 239, .45); min-height: 180px; }
.msh-ai__msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 1.45; word-wrap: break-word; }
.msh-ai__msg p { margin: 0 0 6px; padding: 0; }
.msh-ai__msg p:last-child { margin-bottom: 0; }
.msh-ai__msg ul { margin: 4px 0 6px 18px; padding: 0; }
.msh-ai__msg li { margin: 2px 0; }
.msh-ai__msg a { color: var(--ai-red); font-weight: 600; text-decoration: underline; }
.msh-ai__msg--bot { align-self: flex-start; background: rgba(255, 255, 255, .9); box-shadow: 0 2px 8px rgba(22, 21, 20, .05); border-bottom-left-radius: 4px; }
.msh-ai__msg--user { align-self: flex-end; background: var(--ai-ink); color: #fff; border-bottom-right-radius: 4px; }
.msh-ai__msg.is-typing { display: inline-flex; gap: 4px; padding: 14px; }
.msh-ai__msg.is-typing span { width: 7px; height: 7px; border-radius: 50%; background: #b9b5b0; animation: msh-ai-dot 1s infinite ease-in-out; }
.msh-ai__msg.is-typing span:nth-child(2) { animation-delay: .15s; }
.msh-ai__msg.is-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes msh-ai-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.msh-ai__chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 16px 0; background: rgba(244, 242, 239, .45); }
.msh-ai__chips[hidden] { display: none; }
.msh-ai__chips button { border: 1px solid var(--ai-red); background: #fff; color: var(--ai-red); border-radius: 100px; padding: 7px 12px; font: inherit; font-size: 13px; line-height: 1.2; cursor: pointer; }
.msh-ai__chips button:hover { background: var(--ai-red); color: #fff; }
.msh-ai__form { display: flex; gap: 8px; padding: 12px; background: rgba(244, 242, 239, .45); }
.msh-ai__form input { flex: 1; min-width: 0; border: 1px solid #e0dedb; border-radius: 100px; padding: 12px 16px; font: inherit; font-size: 16px; background: #fff; }
.msh-ai__form input:focus { outline: 2px solid var(--ai-red); outline-offset: 1px; }
.msh-ai__form button { flex: 0 0 46px; height: 46px; border: 0; border-radius: 50%; background: var(--ai-red); color: #fff; display: grid; place-items: center; cursor: pointer; }
.msh-ai__note { margin: 0; padding: 8px 16px 12px; font-size: 11.5px; line-height: 1.4; color: #6b6762; background: rgba(244, 242, 239, .45); }
.msh-ai__note a { color: inherit; text-decoration: underline; }
/* Sit above the job page's mobile sticky Apply bar. */
@media (max-width: 999px) { body.msh-job-single .msh-ai { bottom: 86px; } }
@media (max-width: 600px) {
	.msh-ai { right: 12px; bottom: 12px; }
	.msh-ai__launch { width: 56px; height: 56px; }
	.msh-ai.is-open { left: 0; right: 0; bottom: 0; }
	.msh-ai__panel { position: fixed; left: 0; right: 0; bottom: 0; width: auto; max-height: 88vh; border-radius: 20px 20px 0 0; }
}
@media (prefers-reduced-motion: reduce) { .msh-ai__panel, .msh-ai__launch::after, .msh-ai__faq details p { animation: none; } .msh-ai__tabs::before { transition: none; } .msh-ai__msg.is-typing span { animation: none; } }
/* Theme form styles are more specific; keep the chat inputs rounded and on-brand. */
.msh-ai .msh-ai__form input[type="text"] { border-radius: 100px !important; border: 1px solid rgba(22, 21, 20, .1) !important; background: rgba(255, 255, 255, .9) !important; padding: 12px 16px !important; }
.msh-ai .msh-ai__form button[type="submit"] { background: var(--ai-red) !important; color: #fff !important; border-radius: 50% !important; padding: 0 !important; }
.msh-ai .msh-ai__launch { box-shadow: 0 10px 30px rgba(206, 32, 62, .18), 0 2px 8px rgba(22, 21, 20, .08), inset 0 1px 0 rgba(255, 255, 255, .9); }
/* FAQs / Ask AI pill tabs */
.msh-ai__tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; margin: 12px 16px 4px; padding: 4px; border-radius: 100px; background: rgba(22, 21, 20, .06); }
.msh-ai__tabs::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 100px; background: #fff; box-shadow: 0 2px 10px rgba(22, 21, 20, .1); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.msh-ai[data-tab="chat"] .msh-ai__tabs::before { transform: translateX(100%); }
.msh-ai .msh-ai__tabs button { position: relative; z-index: 1; border: 0 !important; background: none !important; padding: 9px 12px !important; border-radius: 100px; font: inherit; font-size: 14px; font-weight: 600; line-height: 1.2; color: #6b6762 !important; cursor: pointer; transition: color .2s; }
.msh-ai .msh-ai__tabs button[aria-selected="true"] { color: var(--ai-ink) !important; }
.msh-ai__tabs button:focus-visible { outline: 2px solid var(--ai-red); outline-offset: 2px; }
.msh-ai__chat { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.msh-ai__chat[hidden], .msh-ai__faq[hidden] { display: none; }
.msh-ai__faq { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 16px 16px; background: transparent; }
.msh-ai__faq h3 { margin: 14px 4px 6px; padding: 0; font-size: 12px; line-height: 1.2; letter-spacing: .08em; text-transform: uppercase; color: var(--ai-red); font-weight: 600; }
.msh-ai__faq details { margin: 0 0 6px; border-radius: 14px; background: rgba(255, 255, 255, .85); box-shadow: 0 2px 8px rgba(22, 21, 20, .05); overflow: hidden; }
.msh-ai__faq summary { position: relative; list-style: none; padding: 12px 40px 12px 14px; font-size: 14.5px; line-height: 1.35; font-weight: 600; cursor: pointer; }
.msh-ai__faq summary::-webkit-details-marker { display: none; }
.msh-ai__faq summary::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid var(--ai-red); border-bottom: 2px solid var(--ai-red); transform: rotate(45deg); transition: transform .25s; }
.msh-ai__faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.msh-ai__faq summary:focus-visible { outline: 2px solid var(--ai-red); outline-offset: -2px; border-radius: 14px; }
.msh-ai__faq details p { margin: 0; padding: 0 14px 14px; font-size: 14px; line-height: 1.5; color: #4a4642; animation: msh-ai-in .25s ease-out; }
.msh-ai__faq-more { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding: 12px 12px 12px 16px; border-radius: 100px; background: rgba(206, 32, 62, .08); font-size: 14px; font-weight: 600; }
.msh-ai .msh-ai__faq-more button { border: 0 !important; border-radius: 100px !important; padding: 9px 16px !important; background: var(--ai-red) !important; color: #fff !important; font: inherit; font-size: 13.5px; line-height: 1.1; cursor: pointer; }
.msh-ai__panel { height: min(640px, calc(100vh - 40px)); }
@media (max-width: 600px) { .msh-ai__panel { height: 88vh; } }
/* Frosted, but opaque enough that busy photos behind never compete with the text. */
.msh-ai__panel { background: rgba(250, 249, 247, .86); }
@media (max-width: 600px) { .msh-ai__panel { background: rgba(250, 249, 247, .94); height: 84vh; max-height: 84vh; } }
/* FAQ-only panel: FAQs fill the panel, with a contact bar pinned to the bottom. */
.msh-ai--faq .msh-ai__faq { padding-top: 8px; }
.msh-ai__contact { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 14px 16px 16px; border-top: 1px solid rgba(22, 21, 20, .08); background: rgba(255, 255, 255, .6); font-size: 14px; font-weight: 600; }
.msh-ai__contact span { flex: 1 1 auto; }
.msh-ai .msh-ai__contact-btn { display: inline-flex; align-items: center; height: 40px; padding: 0 20px; border-radius: 100px; background: var(--ai-red); color: #fff !important; font-size: 14px; font-weight: 500; text-decoration: none !important; }
.msh-ai .msh-ai__contact-btn:hover { filter: brightness(.94); }
.msh-ai .msh-ai__contact-tel { flex-basis: 100%; color: #4a4642 !important; font-weight: 400; font-size: 13.5px; text-decoration: underline !important; text-underline-offset: 3px; }
.msh-ai--faq .msh-ai__panel { height: min(600px, calc(100vh - 40px)); }
/* QA pass 2026-10-11 */
/* Raised above the sticky Apply bar, so the panel must be shorter by the same 86px or its top (and close button) goes off-screen. */
@media (min-width: 601px) and (max-width: 999px) { body.msh-job-single .msh-ai__panel { max-height: min(640px, calc(100vh - 126px)); } }
@media (min-width: 601px) and (max-height: 500px) { .msh-ai__panel { max-height: calc(100vh - 40px); } body.msh-job-single .msh-ai__panel { max-height: calc(100vh - 106px); } }
/* Bigger tap targets. */
.msh-ai__close { flex-basis: 44px; width: 44px; height: 44px; }
.msh-ai__contact-btn { min-height: 44px; display: inline-flex; align-items: center; }
/* Out of the way while the application form is on screen (it covered the fields and video buttons). */
.msh-ai { transition: opacity .2s, transform .2s; }
.msh-ai.is-away:not(.is-open) { opacity: 0; transform: translateY(16px); pointer-events: none; }
