/* AI chat assistant (Dec 4 2026, look "A": one corner button), see ai-chat.js. Colours: black, white, cream.
   Phones: a bottom sheet about 80% high with the page dimmed above it (tap it, swipe down or press Close to leave). */
.mo-float.moai-off,.gt-float.moai-off{display:none !important}
.moai-pill.mo-float{text-decoration:none}
.moai-pill{position:fixed;right:20px;bottom:20px;z-index:70;display:flex;align-items:center;gap:10px;padding:6px 20px 6px 6px;background:#0A0A0A;color:#fff;border:0;border-radius:999px !important;font:500 15px/1.2 var(--font-body,system-ui,sans-serif);box-shadow:0 8px 24px rgba(0,0,0,.22);cursor:pointer;text-align:left}
.moai-pill:hover{background:#2B2B2B}
.moai-pill img{width:44px;height:44px;border-radius:50% !important;object-fit:cover;object-position:top}
.moai-pill .moai-dot{position:absolute;left:38px;bottom:8px;width:11px;height:11px;border-radius:50%;background:#2BB673;border:2px solid #0A0A0A}
.moai-pill b{display:block;font-weight:600;font-size:15px}.moai-pill small{display:block;font-size:12.5px;color:#BDBDBD;margin-top:2px}
.moai-back,.moai-grab{display:none}
.moai-panel{position:fixed;right:20px;bottom:20px;z-index:80;width:380px;height:600px;max-height:calc(100vh - 40px);background:#fff;border-radius:20px !important;box-shadow:0 18px 50px rgba(0,0,0,.25);display:none;flex-direction:column;overflow:hidden;font:400 14.5px/1.5 var(--font-body,system-ui,sans-serif);color:#0A0A0A}
.moai-open .moai-panel{display:flex}.moai-open .moai-pill{display:none}
.moai-head{display:flex;align-items:center;gap:10px;padding:12px 12px 12px 14px;border-bottom:1px solid #EEE9E1}
.moai-head img{width:40px;height:40px;border-radius:50% !important;object-fit:cover;object-position:top}
.moai-head div{flex:1;min-width:0}.moai-head b{display:block;font-weight:600;font-size:15px}.moai-head span{display:block;font-size:12.5px;color:#6b6b6b}
.moai-x{display:inline-flex;align-items:center;gap:6px;padding:9px 14px;border-radius:999px !important;background:#F0EEEA;border:0;color:#0A0A0A;font:600 14px/1 var(--font-body,system-ui,sans-serif);cursor:pointer}
.moai-x:hover{background:#E4E1DB}
.moai-acts{display:flex;gap:8px;padding:10px 14px;border-bottom:1px solid #EEE9E1;background:#FBF8F3}
.moai-acts a{flex:1;text-align:center;padding:9px 10px;border-radius:999px !important;font-weight:500;font-size:14px;text-decoration:none !important}
.moai-acts .p{background:#0A0A0A;color:#fff !important}.moai-acts .s{border:1px solid #0A0A0A;color:#0A0A0A !important;background:#fff}
.moai-body{flex:1;overflow:auto;padding:14px;display:flex;flex-direction:column;gap:10px;overscroll-behavior:contain}
.moai-m{max-width:88%;padding:10px 13px;border-radius:16px !important;white-space:normal;overflow-wrap:anywhere}
.moai-m p{margin:0 0 8px}.moai-m p:last-child{margin:0}.moai-m ul{margin:4px 0 8px;padding-left:18px}.moai-m li{margin:2px 0}
.moai-bot{background:#F4F0E9;border-bottom-left-radius:6px !important;align-self:flex-start}
.moai-me{background:#0A0A0A;color:#fff;border-bottom-right-radius:6px !important;align-self:flex-end}
.moai-m a{color:inherit;text-decoration:underline}
.moai-typing::after{content:'';display:inline-block;width:6px;height:6px;margin-left:4px;border-radius:50%;background:#999;animation:moai-b 1s infinite}
@keyframes moai-b{50%{opacity:.2}}
.moai-srcs{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.moai-src{display:inline-flex;align-items:center;gap:5px;padding:4px 10px;border-radius:999px !important;background:#fff;border:1px solid #E3DED5;font-size:12.5px;color:#0A0A0A !important;text-decoration:none !important}
.moai-src::after{content:'\2192'}
.moai-search{display:block;margin-top:10px;padding:10px 14px;border-radius:12px !important;background:#0A0A0A;color:#fff !important;text-decoration:none !important}
.moai-search b{display:block;font-weight:600;font-size:14px}.moai-search b::after{content:' \2197'}
.moai-search span{display:block;font-size:12.5px;color:#CFCFCF;margin-top:2px}
.moai-chips{display:flex;flex-wrap:wrap;gap:6px}
.moai-chips button{padding:7px 12px;border:1px solid #DDD7CC;border-radius:999px !important;font:inherit;font-size:13.5px;background:#fff;color:#0A0A0A;cursor:pointer}
.moai-chips button:hover{border-color:#0A0A0A}
.moai-lead{align-self:stretch;border:1px solid #E3DED5;border-radius:14px !important;padding:12px;display:flex;flex-direction:column;gap:8px;background:#fff}
.moai-lead b{font-size:14px}
.moai-lead input,.moai-lead textarea{border:1px solid #DDD7CC;border-radius:10px !important;padding:9px 11px;font:inherit;font-size:16px;width:100%;box-sizing:border-box;background:#fff;color:#0A0A0A}
.moai-lead label{display:block;padding-left:22px;position:relative;font:400 11.5px/1.4 var(--font-body,system-ui,sans-serif) !important;color:#666 !important;text-transform:none !important;letter-spacing:0 !important;margin:0 !important}
.moai-lead label input{position:absolute;left:0;top:1px;width:14px !important;height:14px;margin:0;padding:0}
.moai-lead label a{color:#555 !important;display:inline !important}
.moai-lead button{background:#0A0A0A;color:#fff;border:0;border-radius:999px !important;padding:11px;font:600 14px/1 var(--font-body,system-ui,sans-serif);cursor:pointer}
.moai-lead .moai-err{color:#B3261E;font-size:12.5px;margin:0}
.moai-in{display:flex;gap:8px;align-items:center;padding:10px 12px;border-top:1px solid #EEE9E1}
.moai-in input{flex:1;min-width:0;border:1px solid #DDD7CC;border-radius:999px !important;padding:11px 14px;font:inherit;font-size:16px;color:#0A0A0A;background:#fff}
.moai-in button{width:42px;height:42px;flex:0 0 42px;border-radius:50% !important;background:#0A0A0A;border:0;display:flex;align-items:center;justify-content:center;cursor:pointer}
.moai-in button:disabled{opacity:.4;cursor:default}
.moai-foot{font-size:11px;color:#7a7a7a;padding:0 14px 10px;line-height:1.35}
.moai-foot a{color:#555 !important}
@media (max-width:760px){
  .moai-pill{right:12px;bottom:12px;padding:5px 16px 5px 5px}.moai-pill img{width:38px;height:38px}.moai-pill .moai-dot{left:32px;bottom:6px}
  .moai-pill b{font-size:14px}.moai-pill small{font-size:12px}
  .moai-open .moai-back{display:block;position:fixed;inset:0;z-index:75;background:rgba(10,10,10,.38);animation:moai-fade .2s ease-out}
  .moai-panel{left:0;right:0;bottom:0;top:auto;width:auto;height:82vh;height:82dvh;max-height:none;border-radius:20px 20px 0 0 !important;transition:transform .22s ease-out;animation:moai-up .25s ease-out}
  .moai-grab{display:flex;justify-content:center;padding:8px 0 0;touch-action:none}
  .moai-grab span{width:40px;height:5px;border-radius:3px;background:#D6D1C8}
  .moai-head{padding-top:6px;touch-action:none}
  .moai-foot{padding-bottom:calc(10px + env(safe-area-inset-bottom))}
  html.moai-lock,html.moai-lock body{overflow:hidden}
}
@keyframes moai-up{from{transform:translateY(100%)}to{transform:none}}
@keyframes moai-fade{from{opacity:0}to{opacity:1}}
@media print{.moai-pill,.moai-panel,.moai-back{display:none !important}}
