@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;650;700&display=swap');

/* Launcher ---------------------------------------------------------------- */
.assistant-launch{position:fixed;bottom:22px;right:22px;z-index:20;box-shadow:0 8px 30px #0003;background:#2459ed;color:#fff;border:0;border-radius:30px;padding:16px 22px;font:600 16px system-ui;cursor:pointer}
.roots .assistant-launch{background:#235247;font-family:'DM Sans',Arial,sans-serif}
body:has(.pps-assistant[open]) .assistant-launch{visibility:hidden;pointer-events:none}

/* The conversation panel docks beside the launcher rather than centring, so it
   reads as a chat window instead of a form in a modal. Every rule below is
   scoped to .pps-assistant: page stylesheets carry element rules for p, h2 and
   button that would otherwise outrank a bare class here. */
dialog.pps-assistant{position:fixed;margin:0;inset:auto 16px 16px auto;width:min(420px,calc(100vw - 32px));height:min(640px,calc(100dvh - 32px));max-width:none;max-height:none;display:flex;flex-direction:column;overflow:hidden;padding:0;border:1px solid #cdd8cf;border-radius:18px;box-shadow:0 24px 60px #0f271c33;background:#fff;color:var(--chat-ink);font:16px/1.55 'DM Sans',Arial,sans-serif}
dialog.pps-assistant:not([open]){display:none}
.pps-assistant::backdrop{background:#091d3e4d}
.pps-assistant{--chat-accent:#235247;--chat-accent-soft:#f1f5ec;--chat-line:#d9e2d3;--chat-ink:#193c30;--chat-muted:#5d6f66}
.blue-green-theme .pps-assistant{--chat-accent:#254966;--chat-accent-soft:#eef4fc;--chat-line:#d8e3f0;--chat-ink:#102d50;--chat-muted:#5b6c7d}
@media(max-width:600px){dialog.pps-assistant{inset:auto 8px 8px 8px;width:auto;height:min(82dvh,620px)}}

/* Header ------------------------------------------------------------------ */
.pps-assistant .assistant-bar{display:flex;align-items:center;gap:11px;padding:13px 14px;background:var(--chat-accent);color:#fff;flex:none}
.pps-assistant .assistant-avatar{flex:none;width:34px;height:34px;border-radius:50%;background:#ffffff26;display:flex;align-items:center;justify-content:center;font-size:15px;line-height:1}
.pps-assistant .assistant-id{flex:1;min-width:0}
.pps-assistant .assistant-bar h2{margin:0;font-size:17px;font-weight:650;line-height:1.25;letter-spacing:0;color:#fff;text-wrap:balance}
.pps-assistant .assistant-state{margin:1px 0 0;font-size:12px;line-height:1.35;color:#fff;opacity:.82}
.pps-assistant .assistant-bar button{flex:none;margin:0;float:none;border:0;background:#ffffff24;color:#fff;cursor:pointer;font-family:inherit}
.pps-assistant .assistant-restart{min-height:32px;padding:0 11px;border-radius:16px;font-size:12px;font-weight:600}
.pps-assistant .assistant-close{width:34px;height:34px;min-height:34px;padding:0;border-radius:50%;font-size:14px;line-height:1}
.pps-assistant .assistant-bar button:hover{background:#ffffff38}

/* Transcript -------------------------------------------------------------- */
.pps-assistant .assistant-thread{flex:1;min-height:0;overflow-y:auto;padding:18px 16px 10px;display:flex;flex-direction:column;gap:11px;scroll-behavior:smooth}
.pps-assistant .msg{max-width:87%;padding:11px 14px;border-radius:16px;font-size:15px;line-height:1.5}
.pps-assistant .msg p{margin:0;font-size:inherit;line-height:inherit}
.pps-assistant .msg p+p{margin-top:9px}
.pps-assistant .msg .assistant-response{white-space:pre-wrap}
.pps-assistant .msg-in{align-self:flex-start;background:var(--chat-accent-soft);border:1px solid var(--chat-line);border-bottom-left-radius:5px;color:var(--chat-ink)}
.pps-assistant .msg-out{align-self:flex-end;background:var(--chat-accent);color:#fff;border-bottom-right-radius:5px}

.pps-assistant .msg-typing{display:flex;gap:5px;align-items:center;padding:15px 16px}
.pps-assistant .msg-typing span{width:7px;height:7px;border-radius:50%;background:var(--chat-accent);animation:pps-typing 1.1s infinite}
.pps-assistant .msg-typing span:nth-child(2){animation-delay:.15s}
.pps-assistant .msg-typing span:nth-child(3){animation-delay:.3s}
@keyframes pps-typing{0%,60%,100%{opacity:.25;transform:translateY(0)}30%{opacity:.85;transform:translateY(-3px)}}
@media(prefers-reduced-motion:reduce){.pps-assistant .msg-typing span{animation:none;opacity:.5}.pps-assistant .assistant-thread{scroll-behavior:auto}}

.pps-assistant .msg-sources{margin-top:10px;padding-top:7px;border-top:1px solid var(--chat-line);display:flex;flex-direction:column}
.pps-assistant .msg-sources strong{font-size:11px;font-weight:700;letter-spacing:.11em;text-transform:uppercase;color:var(--chat-muted)}
.pps-assistant .msg-sources a{display:block;min-height:44px;padding:11px 0 0;font-size:15px;font-weight:600;line-height:1.4;color:var(--chat-accent);text-underline-offset:3px}

/* Suggested openings, replaced by the conversation once it starts. */
.pps-assistant .assistant-chips{display:flex;flex-wrap:wrap;gap:8px;padding:4px 16px 12px;flex:none}
.pps-assistant .assistant-chips button{margin:0;min-height:38px;padding:8px 13px;border:1px solid var(--chat-line);border-radius:20px;background:#fff;color:var(--chat-accent);font-family:inherit;font-size:13px;font-weight:600;line-height:1.3;cursor:pointer}
.pps-assistant .assistant-chips button:hover{background:var(--chat-accent-soft)}

/* Composer ---------------------------------------------------------------- */
.pps-assistant .assistant-composer{display:flex;gap:8px;align-items:center;padding:12px 16px;border-top:1px solid var(--chat-line);flex:none}
.pps-assistant .assistant-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.pps-assistant .assistant-composer input{flex:1;min-width:0;min-height:46px;margin:0;padding:12px 15px;border:1px solid #9eafa3;border-radius:23px;background:#fff;color:var(--chat-ink);font-family:inherit;font-size:15px}
.pps-assistant .assistant-composer input:focus{outline:3px solid var(--chat-accent-soft);outline-offset:1px;border-color:var(--chat-accent)}
.pps-assistant .assistant-send{margin:0;min-height:46px;padding:0 19px;border:0;border-radius:23px;background:var(--chat-accent);color:#fff;font-family:inherit;font-size:15px;font-weight:600;cursor:pointer}
.pps-assistant button:disabled{opacity:.55;cursor:wait}
.pps-assistant :is(button,input,a):focus-visible{outline:3px solid #a65c19;outline-offset:2px}
.pps-assistant .assistant-fine{margin:0;padding:0 16px 13px;font-size:11.5px;line-height:1.45;color:var(--chat-muted);text-align:center;flex:none}

/* Scheduling. The calendar needs the full panel, so the chat steps aside. */
.pps-assistant.booking-active{width:min(780px,calc(100vw - 32px));height:min(780px,calc(100dvh - 24px))}
.pps-assistant.booking-active>:is(.assistant-thread,.assistant-chips,.assistant-composer,.assistant-fine){display:none}
.pps-assistant .assistant-booking{flex:1;min-height:0;overflow-y:auto;padding:16px}
.pps-assistant .assistant-booking h3{margin:0 0 10px;font-size:22px;font-weight:650;line-height:1.25;color:var(--chat-ink)}
.pps-assistant .assistant-booking>p{margin:0 0 12px;font-size:15px;line-height:1.5;overflow-wrap:anywhere}
.pps-assistant .assistant-back{margin:0 0 12px;min-height:40px;padding:0 15px;border:1px solid var(--chat-line);border-radius:20px;background:#fff;color:var(--chat-accent);font-family:inherit;font-size:14px;font-weight:600;cursor:pointer}
.pps-assistant .assistant-booking iframe{display:block;width:100%;height:640px;border:0;border-radius:12px;background:#fff}
.pps-assistant .assistant-booking .assistant-fine{padding:12px 0 0;text-align:left}
@media(max-width:600px){.pps-assistant .assistant-booking iframe{height:700px}}

.pps-assistant [hidden]{display:none!important}
