/* MessMate help bot (Claude, 4 Nov 2026). A small automated helper: a pill at the bottom right that opens a panel of
   quick questions and a text box. Colours come from the site's own tokens, with fallbacks. */
.mmh-btn{position:fixed;z-index:60;right:max(16px,env(safe-area-inset-right,0px));bottom:max(16px,calc(env(safe-area-inset-bottom,0px) + 12px));display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:0 18px 0 14px;border:0;border-radius:999px;background:var(--mm-pine,#3E7D63);color:#fff;font:600 15px/1 "DM Sans",system-ui,sans-serif;cursor:pointer;box-shadow:0 8px 24px rgba(36,33,29,.22),0 1px 3px rgba(36,33,29,.18);transition:transform .2s ease,box-shadow .2s ease,background-color .2s ease}
.mmh-btn:hover{background:var(--mm-pine-2,#2f5f4b);transform:translateY(-1px)}
.mmh-btn:focus-visible,.mmh-x:focus-visible,.mmh-chip:focus-visible,.mmh-send:focus-visible,.mmh-in:focus-visible,.mmh-a:focus-visible{outline:3px solid var(--focus,rgba(0,125,250,.65));outline-offset:2px}
.mmh-btn svg{width:22px;height:22px;flex:none}
body:has(.mm-buybar) .mmh-btn{bottom:calc(env(safe-area-inset-bottom,0px) + 92px)}
@media (min-width:900px){body:has(.mm-buybar) .mmh-btn{bottom:max(16px,calc(env(safe-area-inset-bottom,0px) + 12px))}}
.mmh-btn[aria-expanded="true"]{display:none}

.mmh-panel{position:fixed;z-index:61;right:max(16px,env(safe-area-inset-right,0px));bottom:max(16px,calc(env(safe-area-inset-bottom,0px) + 12px));width:min(380px,calc(100vw - 32px));height:min(600px,calc(100dvh - 32px));display:flex;flex-direction:column;background:var(--mm-paper,#fff);color:var(--mm-ink,#24211D);border:1px solid var(--mm-line,#E6DCCD);border-radius:20px;box-shadow:0 24px 60px rgba(36,33,29,.28);overflow:hidden;font:400 15px/1.45 "DM Sans",system-ui,sans-serif;animation:mmh-in .22s ease-out}
.mmh-panel[hidden]{display:none}
@keyframes mmh-in{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.mmh-panel{animation:none}.mmh-btn{transition:none}}

.mmh-head{display:flex;align-items:center;gap:12px;padding:14px 14px 14px 18px;background:var(--mm-pine,#3E7D63);color:#fff}
.mmh-head b{display:block;font-size:16px;line-height:1.2}
.mmh-head span{display:block;font-size:12.5px;opacity:.9;line-height:1.3;margin-top:2px}
.mmh-x{margin-left:auto;flex:none;width:36px;height:36px;border:0;border-radius:50%;background:rgba(255,255,255,.16);color:#fff;font-size:22px;line-height:1;cursor:pointer}
.mmh-x:hover{background:rgba(255,255,255,.28)}

.mmh-log{flex:1;min-height:0;overflow-y:auto;padding:16px 14px 8px;display:flex;flex-direction:column;gap:10px;background:var(--mm-cream,#FBF7F1);overscroll-behavior:contain}
.mmh-m{max-width:88%;padding:10px 13px;border-radius:16px;white-space:pre-line;overflow-wrap:anywhere}
.mmh-m--bot{align-self:flex-start;background:var(--mm-paper,#fff);border:1px solid var(--mm-line,#E6DCCD);border-bottom-left-radius:5px}
.mmh-m--me{align-self:flex-end;background:var(--mm-pine,#3E7D63);color:#fff;border-bottom-right-radius:5px}
.mmh-m--typing{color:var(--mm-ink-3,#8A8277);letter-spacing:.2em}
.mmh-links{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.mmh-a{display:inline-flex;align-items:center;min-height:34px;padding:0 12px;border-radius:999px;border:1px solid var(--mm-pine,#3E7D63);color:var(--mm-pine-2,#2f5f4b);background:var(--mm-pine-tint,#e6f0eb);font-weight:600;font-size:13.5px;text-decoration:none}
.mmh-a:hover{background:var(--mm-pine-tint-2,#cfe3d9)}
.mmh-note{align-self:center;font-size:12.5px;color:var(--mm-ink-3,#8A8277);text-align:center;padding:2px 8px}

.mmh-chips{display:flex;flex-wrap:wrap;gap:6px;padding:4px 14px 10px;background:var(--mm-cream,#FBF7F1)}
.mmh-chip{min-height:34px;padding:0 12px;border-radius:999px;border:1px solid var(--mm-line,#E6DCCD);background:var(--mm-paper,#fff);color:var(--mm-ink,#24211D);font:500 13.5px/1 "DM Sans",system-ui,sans-serif;cursor:pointer}
.mmh-chip:hover{border-color:var(--mm-pine,#3E7D63);color:var(--mm-pine-2,#2f5f4b)}

.mmh-form{display:flex;gap:8px;padding:10px 12px;border-top:1px solid var(--mm-line,#E6DCCD);background:var(--mm-paper,#fff)}
.mmh-in{flex:1;min-width:0;min-height:44px;padding:0 14px;border:1px solid var(--mm-line,#E6DCCD);border-radius:999px;background:var(--mm-cream,#FBF7F1);color:var(--mm-ink,#24211D);font:400 16px/1 "DM Sans",system-ui,sans-serif}
.mmh-send{flex:none;min-height:44px;padding:0 16px;border:0;border-radius:999px;background:var(--mm-pine,#3E7D63);color:#fff;font:600 14.5px/1 "DM Sans",system-ui,sans-serif;cursor:pointer}
.mmh-send:hover{background:var(--mm-pine-2,#2f5f4b)}
.mmh-foot{padding:0 14px 10px;background:var(--mm-paper,#fff);font-size:12px;color:var(--mm-ink-3,#8A8277);text-align:center}

@media (max-width:520px){
  .mmh-panel{right:0;left:0;bottom:0;width:auto;height:min(78dvh,640px);border-radius:20px 20px 0 0;padding-bottom:env(safe-area-inset-bottom,0px)}
  .mmh-btn{padding:0 16px 0 12px}
}
@media print{.mmh-btn,.mmh-panel{display:none!important}}
