/* Website service assistant. Scoped names keep the existing page design intact. */
.pm-chat-launcher{position:fixed;right:max(18px,env(safe-area-inset-right));bottom:calc(var(--pm-chat-bottom,16px) + env(safe-area-inset-bottom));z-index:65;display:inline-flex;align-items:center;gap:.55rem;min-height:46px;padding:.75rem 1rem;border:1px solid rgba(255,255,255,.3);border-radius:999px;background:var(--ink,#1c1a17);color:#fff;font:600 .8rem/1.2 "Montserrat",system-ui,sans-serif;box-shadow:0 5px 18px rgba(28,26,23,.18);cursor:pointer}
.pm-chat-icon{width:17px;height:14px;display:inline-block;border:1.5px solid currentColor;border-radius:5px;position:relative;flex:none}
.pm-chat-icon:after{content:"";position:absolute;left:2px;bottom:-4px;width:5px;height:5px;border-left:1.5px solid currentColor;transform:skewY(-35deg);background:var(--ink,#1c1a17)}
.pm-chat-launcher:hover{background:#353127}.pm-chat-launcher:hover .pm-chat-icon:after{background:#353127}
.pm-chat-inline-help{display:none}
.pm-chat-inline-trigger{display:inline-flex;align-items:center;min-height:44px;padding:.55rem .1rem;background:none;border:0;color:var(--ink,#1c1a17);font:600 .85rem/1.4 "Montserrat",system-ui,sans-serif;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.pm-chat-inline-trigger:focus-visible{outline:3px solid var(--orange,#ee773f);outline-offset:3px;border-radius:4px}
.pm-chat-launcher:focus-visible,.pm-chat-dialog button:focus-visible,.pm-chat-dialog a:focus-visible{outline:3px solid var(--orange,#ee773f);outline-offset:3px}
.pm-chat-dialog{position:fixed;inset:var(--pm-chat-top,18px) 18px auto auto;box-sizing:border-box;width:min(420px,calc(100vw - 36px));height:min(690px,calc(var(--pm-chat-view-height,100dvh) - 36px));max-width:none;max-height:none;margin:0;padding:0;overflow:hidden;border:1px solid var(--line,rgba(28,26,23,.14));border-radius:22px;background:var(--paper,#faf4ec);color:var(--ink,#1c1a17);font:400 .875rem/1.55 "Montserrat",system-ui,sans-serif;box-shadow:0 20px 70px rgba(28,26,23,.24)}
.pm-chat-dialog::backdrop{background:rgba(28,26,23,.12)}
.pm-chat-dialog:not([open]){display:none}
.pm-chat-shell{height:100%;display:flex;flex-direction:column;min-height:0;overflow-y:auto;overscroll-behavior:contain}
.pm-chat-header{display:flex;align-items:center;justify-content:space-between;gap:.6rem;padding:1.15rem 1.15rem .75rem;background:var(--peach,#fad7bf);flex:none}
.pm-chat-heading{min-width:0}.pm-chat-subtitle{font-size:.75rem;font-weight:600;letter-spacing:.055em;line-height:1.4;margin:0 0 .25rem}
.pm-chat-dialog h2{font-family:var(--serif,Georgia,serif);font-weight:500;font-size:1.65rem;line-height:1.1;letter-spacing:-.025em;max-width:none;margin:0}
.pm-chat-close{flex:none;align-self:flex-start;display:grid;place-items:center;width:40px;height:40px;border:1px solid rgba(28,26,23,.18);border-radius:50%;background:transparent;font:400 1.6rem/1 system-ui,sans-serif;color:inherit;cursor:pointer}
.pm-chat-scope{margin:0;padding:.65rem 1.15rem;font-size:.75rem;line-height:1.45;color:var(--ink-60,#514a43);border-bottom:1px solid var(--line,rgba(28,26,23,.14));flex:none}
.pm-chat-log{overflow-y:auto;overscroll-behavior:contain;flex:1;min-height:90px;padding:1rem 1rem .3rem;scrollbar-width:thin}
.pm-chat-message{max-width:100%;margin:0 0 .85rem;padding:.8rem .9rem;border-radius:15px;background:#fff;border:1px solid var(--line,rgba(28,26,23,.14));overflow-wrap:anywhere}
.pm-chat-message--user{margin-left:1.5rem;background:var(--sage,#cfdcbb);border-color:transparent}
.pm-chat-message--assistant{margin-right:.4rem}
.pm-chat-speaker{font-size:.75rem;line-height:1.3;font-weight:600;margin:0 0 .4rem;color:var(--ink-60,#514a43)}
.pm-chat-text{margin:0;white-space:pre-wrap;line-height:1.55;font-size:.9rem}
.pm-chat-links{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.8rem}
.pm-chat-links a{display:inline-flex;align-items:center;min-height:40px;padding:.5rem .7rem;background:var(--ink,#1c1a17);color:#fff;border:1px solid var(--ink,#1c1a17);border-radius:13px;font-size:.75rem;font-weight:500;line-height:1.4;text-decoration:none}
.pm-chat-links a:hover{background:#353127}
.pm-chat-sources{margin-top:.85rem;padding-top:.65rem;border-top:1px solid var(--line,rgba(28,26,23,.14));font-size:.75rem;color:var(--ink-60,#514a43)}
.pm-chat-sources>p{margin:0 0 .25rem;font-weight:600}.pm-chat-source-links{display:flex;flex-wrap:wrap;gap:.3rem .8rem}.pm-chat-source-links a{text-underline-offset:3px}
.pm-chat-chips{flex:none;display:flex;flex-wrap:wrap;gap:.45rem;padding:.25rem 1rem .7rem}.pm-chat-chips[hidden]{display:none}
.pm-chat-log>.pm-chat-chips{padding:.15rem 0 .7rem}
.pm-chat-chip,.pm-chat-retry{font-family:inherit;font-size:.75rem;line-height:1.4;font-weight:500;text-align:left;min-height:39px;border:1px solid rgba(28,26,23,.25);border-radius:999px;padding:.45rem .65rem;background:#fff;color:inherit;cursor:pointer}
.pm-chat-chip:hover,.pm-chat-retry:hover{background:var(--cream,#f2eae2)}
.pm-chat-failure{padding:.85rem;margin-bottom:.8rem;border:1px solid var(--line,rgba(28,26,23,.14));border-radius:15px;background:var(--cream,#f2eae2)}
.pm-chat-retry{margin-top:.7rem}
.pm-chat-status{flex:none;min-height:0;margin:0;padding:0 1.1rem;font-size:.75rem;color:var(--ink-60,#514a43)}.pm-chat-status:not(:empty){padding-top:.3rem;padding-bottom:.5rem}
.pm-chat-form{flex:none;margin:0;padding:.65rem 1rem .35rem;border-top:1px solid var(--line,rgba(28,26,23,.14))}
.pm-chat-label{display:block;margin:0 0 .3rem;font-size:.75rem;font-weight:600;line-height:1.3}
.pm-chat-compose{display:flex;gap:.5rem;align-items:stretch}
.pm-chat-input{min-width:0;flex:1;min-height:55px;max-height:100px;resize:none;box-sizing:border-box;border:1px solid rgba(28,26,23,.28);border-radius:12px;background:#fff;color:var(--ink,#1c1a17);font:400 16px/1.4 "Montserrat",system-ui,sans-serif;padding:.65rem .7rem}
.pm-chat-input:focus{outline:2px solid var(--olive,#4b6b2c);outline-offset:1px}
.pm-chat-send{flex:none;min-width:58px;border:0;border-radius:12px;background:var(--ink,#1c1a17);color:#fff;padding:.6rem .65rem;font:600 .75rem/1.3 "Montserrat",system-ui,sans-serif;cursor:pointer}
.pm-chat-dialog button:disabled{opacity:.55;cursor:default}
.pm-chat-footer{flex:none;padding:.35rem 1rem .75rem;display:flex;align-items:flex-start;gap:.8rem}
.pm-chat-notice{margin:0;flex:1;font-size:.75rem;line-height:1.45;color:var(--ink-60,#514a43)}.pm-chat-notice a{text-decoration:underline;text-underline-offset:2px}
.pm-chat-reset{background:none;border:0;border-radius:4px;min-height:36px;padding:.2rem 0;font:500 .75rem/1.3 "Montserrat",system-ui,sans-serif;color:var(--ink-60,#514a43);text-decoration:underline;text-underline-offset:3px;cursor:pointer;max-width:62px}
@media(max-width:520px){.pm-chat-launcher{right:12px;font-size:.75rem;min-height:44px;padding:.65rem .85rem}.pm-chat-dialog{right:10px;width:calc(100vw - 20px);height:min(690px,calc(var(--pm-chat-view-height,100dvh) - 24px));border-radius:19px}.pm-chat-header{padding:1rem 1rem .7rem}.pm-chat-dialog h2{font-size:1.5rem}.pm-chat-scope{padding:.55rem 1rem;font-size:.75rem}.pm-chat-log{padding:.8rem .8rem .2rem}.pm-chat-chips{padding-left:.8rem;padding-right:.8rem}.pm-chat-footer{gap:.6rem}.pm-chat-text{font-size:.875rem}}
@media(prefers-reduced-motion:reduce){.pm-chat-dialog,.pm-chat-launcher{scroll-behavior:auto}}
@media(max-width:760px){
 .pm-chat-launcher{min-height:48px;max-width:calc(100vw - 36px);padding:.7rem .9rem;gap:.5rem;border-radius:999px;font-size:.8rem}
 .pm-chat-launcher-label{display:inline;line-height:1.3}
 .pm-chat-inline-help{display:flex;flex-wrap:wrap;align-items:center;column-gap:.55rem;margin:.7rem 0;font:400 .82rem/1.5 "Montserrat",system-ui,sans-serif;color:var(--ink-60,#514a43)}
}
