#little-max{font:15px/1.5 Inter,system-ui,-apple-system,sans-serif;color:#102b43;position:relative;z-index:1000}#little-max [hidden]{display:none!important}#little-max button,#little-max textarea{font:inherit}#little-max button{cursor:pointer}#little-max button:focus-visible,#little-max a:focus-visible,#little-max textarea:focus-visible{outline:3px solid #eab869;outline-offset:3px}.lm-launch{position:fixed;right:22px;bottom:max(20px,env(safe-area-inset-bottom));display:flex;align-items:center;gap:11px;background:#082b43;color:#fff;border:1px solid #64d4c8;border-radius:32px;padding:9px 17px 9px 9px;box-shadow:0 6px 24px #071d3740;font-weight:700!important}.lm-avatar{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#2ac4b7;color:#082b43;font-weight:900;font-size:23px}.lm-panel{position:fixed;right:22px;bottom:90px;width:390px;max-width:calc(100vw - 28px);height:610px;max-height:calc(100dvh - 120px);background:#fff;box-shadow:0 14px 60px #071d3740;border:1px solid #b9d8d8;border-radius:18px;display:flex;flex-direction:column;overflow:hidden}.lm-header{display:flex;justify-content:space-between;align-items:center;padding:18px;background:#082b43;color:white;flex-shrink:0}.lm-header strong{font-size:20px;display:block}.lm-header span{display:block;font-size:11px;color:#a7e7df}.lm-close{border:0;background:transparent;color:white;font-size:28px!important;width:40px;height:40px}.lm-messages{flex:1;min-height:90px;overflow-y:auto;padding:18px;background:#f5f9fa;overscroll-behavior:contain}.lm-message{max-width:95%;margin-bottom:14px;padding:11px 14px;border-radius:12px;background:white;border:1px solid #d8e6e8;white-space:pre-wrap;overflow-wrap:anywhere}.lm-user{margin-left:auto;background:#e1f3ef;border-color:#b5dfd6}.lm-speaker{display:block;font-size:11px;font-weight:800;color:#467477;margin-bottom:4px}.lm-suggestions{display:flex;gap:7px;flex-wrap:wrap;padding:10px 14px 0}.lm-suggestions button{font-size:12px!important;border:1px solid #bad9d7;border-radius:16px;background:#f5fbfa;color:#075e63;padding:6px 10px}.lm-form{padding:12px 14px 0}.lm-form label{font-size:11px;font-weight:700;display:block;margin-bottom:4px}.lm-form>div{display:flex;gap:8px;align-items:stretch}.lm-form textarea{min-width:0;flex:1;border:1px solid #b6cdcf;border-radius:8px;resize:none;padding:9px;line-height:1.4}.lm-send{border:0;border-radius:8px;background:#0c766f;color:white;padding:0 13px;font-weight:700!important}#little-max button:disabled{opacity:.55;cursor:wait}.lm-privacy{font-size:10px;line-height:1.5;margin:8px 15px;color:#5d717b}.lm-footer{display:flex;justify-content:space-between;gap:8px;border-top:1px solid #e3ecee;padding:10px 14px;font-size:11px}.lm-footer button{background:none;border:0;padding:0;color:#075e63;font-size:11px!important}.lm-footer a{color:#075e63}@media(max-width:480px){.lm-launch{right:14px;font-size:14px!important}.lm-panel{right:14px;bottom:86px;max-height:calc(100dvh - 108px)}}
.lm-avatar{font-size:0;background-image:url('/assets/ai-village/release-20261021/poster.jpg');background-size:700% auto;background-position:39% 23%;border:1px solid #5ed4c8}

/* Little Max expressions: registered 3 by 2 portrait atlas. */
#little-max{--lm-face-x:0%;--lm-face-y:0%}
#little-max .lm-avatar{display:block;flex:none;position:relative;width:46px;height:46px;border:1px solid #64d4c8;overflow:hidden;background:#082b43;border-radius:50%;font-size:0}
#little-max .lm-face{display:block;width:100%;height:100%;background-image:url('/assets/ai-village/release-20261021/poster.jpg');background-size:700% auto;background-position:39% 23%;background-repeat:no-repeat}
#little-max.lm-sprites-ready .lm-face{background-image:url('/assets/little-max/expressions-20261022.png');background-size:300% 200%;background-position:var(--lm-face-x) var(--lm-face-y)}
#little-max .lm-panel{width:414px;height:650px}
#little-max .lm-header{padding:15px 12px 15px 16px;gap:8px;min-height:104px;box-sizing:border-box}
#little-max .lm-identity{display:flex;align-items:center;gap:13px;min-width:0}
#little-max .lm-header .lm-avatar{width:78px;height:78px;box-shadow:0 0 0 4px #ffffff0b}
#little-max .lm-heading{min-width:0}
#little-max .lm-heading strong{line-height:1.2;margin-bottom:4px}
#little-max .lm-heading>span{font-size:10px;line-height:1.5}
#little-max .lm-heading .lm-presence{margin-top:7px;color:#f1cb8f;font-size:11px;letter-spacing:.02em}
#little-max .lm-close{flex:none;align-self:flex-start;width:30px;height:30px;line-height:1}
#little-max .lm-avatar-controls{display:flex;justify-content:space-between;align-items:center;gap:7px;padding:7px 14px;background:#ecf6f3;flex:none;border-bottom:1px solid #d8e8e3;font-size:10px;color:#43665f}
#little-max .lm-motion{border:0;background:none;padding:5px 0 5px 8px;color:#08665d;text-decoration:underline;text-underline-offset:3px;font-size:10px;white-space:nowrap;min-height:28px}
#little-max .lm-motion:disabled{cursor:default;opacity:.8;text-decoration:none}
#little-max.lm-motion-active[data-state="thinking"] .lm-header .lm-avatar{animation:lm-thought 3.6s ease-in-out infinite}
#little-max.lm-motion-active[data-state="speaking"] .lm-header .lm-avatar{animation:lm-nod 2.3s ease-in-out infinite}
@keyframes lm-thought{0%,100%{transform:rotate(0)}45%,70%{transform:rotate(-3deg)}}
@keyframes lm-nod{0%,100%{transform:translateY(0) rotate(0)}35%{transform:translateY(1px) rotate(-1deg)}70%{transform:translateY(0) rotate(1deg)}}
@media(max-width:380px){#little-max .lm-header{padding-left:12px}#little-max .lm-header .lm-avatar{width:64px;height:64px}#little-max .lm-identity{gap:10px}#little-max .lm-heading>span{font-size:9px}}
@media(prefers-reduced-motion:reduce){#little-max .lm-avatar{animation:none!important;transform:none!important}}

@media(max-width:480px){#little-max .lm-panel{left:14px;right:14px;width:auto;max-width:none;box-sizing:border-box}}

#little-max .lm-audio-controls{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:10px;white-space:normal}
#little-max .lm-listen,#little-max .lm-stop{min-height:32px;padding:5px 11px;font-size:12px;border:1px solid #aacfc8;border-radius:18px;background:#eff9f5;color:#075e58;font-weight:650}
#little-max .lm-stop{background:#fff;border-color:#c3d3d8;color:#284757}
#little-max .lm-voice-label{font-size:10px;color:#5a7279}
#little-max .lm-audio-note{flex-basis:100%;font-size:11px;line-height:1.4;color:#5a7279}
#little-max .lm-audio-note:empty{display:none}
