.water-widget{position:fixed;bottom:max(16px,env(safe-area-inset-bottom));right:22px;z-index:200;font:15px/1.65 Arial,'Noto Sans Thai',system-ui,sans-serif;color:#123b4d}.water-widget *{box-sizing:border-box}.water-launcher{border:0!important;background:transparent!important;border-radius:0!important;padding:0!important;min-height:0!important;display:flex;align-items:center;gap:0;color:#103e52;box-shadow:none}.water-launcher img{width:112px;height:140px;object-fit:contain;filter:drop-shadow(0 9px 9px #002f4a20);transform-origin:bottom;animation:water-wave 6s ease-in-out infinite}.water-launcher .water-callout{background:white;border:1px solid #b6d4db;border-radius:18px 18px 0 18px;padding:10px 16px;box-shadow:0 6px 25px #163b4c10;font-size:13px;text-align:left;margin-bottom:55px}.water-callout strong{display:block;font-size:15px}.water-panel{position:absolute;bottom:155px;right:0;width:380px;max-width:calc(100vw - 32px);height:min(560px,calc(100dvh - 190px));min-height:250px;background:#fff;border:1px solid #c3dade;border-radius:22px;box-shadow:0 22px 70px #082a3d30;display:flex;flex-direction:column;overflow:hidden}.water-panel[hidden]{display:none}.water-panel-head{padding:15px 18px;display:flex;align-items:center;gap:10px;background:#0b3c50;color:white}.water-panel-head img{width:40px;height:45px;object-fit:contain}.water-panel-head h2{font:700 17px/1.2 Arial,system-ui,sans-serif;margin:0;color:white}.water-panel-head small{display:block;color:#c3e2e9;font-size:11px;margin-top:5px}.water-close{margin-left:auto;border:0;background:transparent;color:white;font-size:24px;padding:2px 9px;line-height:1.5;min-height:36px;min-width:36px}.water-log{flex:1;overflow:auto;overscroll-behavior:contain;padding:16px;background:#f4f9f8;scrollbar-width:thin}.water-message{max-width:96%;font-size:14px;background:white;border:1px solid #d4e5e8;border-radius:15px 15px 15px 3px;padding:11px 13px;margin:0 0 12px;white-space:pre-line;overflow-wrap:anywhere}.water-message.user{margin-left:auto;background:#0d647f;color:white;border:0;border-radius:15px 15px 3px 15px}.water-message p{font-size:14px;line-height:1.7;margin:0 0 8px}.water-message a{display:block;color:#006b8b;margin-top:8px;text-decoration:underline;text-underline-offset:3px}.water-message.user a{color:white}.water-suggestions{display:flex;gap:7px;flex-wrap:wrap;padding:10px 14px;border-top:1px solid #e3edef}.water-suggestions button{border:1px solid #c7dcdf;background:#fff;border-radius:20px;padding:7px 10px;min-height:34px;color:#155367;font:12px/1.3 inherit}.water-form{display:flex;gap:8px;padding:10px 13px 14px;border-top:1px solid #e3edef;margin:0}.water-form input{width:0;min-width:0;flex:1;border:1px solid #b7d2da;border-radius:25px;padding:11px 14px;font:14px/1.5 Arial,system-ui,sans-serif;color:#133e50;background:white}.water-form button{padding:8px 16px;border:0;border-radius:25px;background:#103f54;color:white;font-size:14px;min-height:44px}.water-form button:disabled{opacity:.5}.water-powered{font-size:10px;padding:0 15px 10px;color:#547380;background:white}.water-widget a:focus-visible,.water-widget button:focus-visible,.water-widget input:focus-visible{outline:3px solid #d4a34c;outline-offset:3px}.water-widget.scrolling .water-launcher img{animation:water-step .35s ease-in-out 2}.water-panel-head:has(+.water-log){flex-shrink:0}@keyframes water-wave{0%,80%,100%{transform:rotate(0)}86%{transform:rotate(-4deg)}92%{transform:rotate(3deg)}}@keyframes water-step{50%{transform:translateY(-4px) rotate(-2deg)}}
@media(max-width:560px){.water-widget{right:12px;bottom:max(10px,env(safe-area-inset-bottom))}.water-launcher img{width:73px;height:92px}.water-launcher .water-callout{padding:7px 11px;font-size:11px;margin-bottom:29px}.water-callout strong{font-size:12px}.water-panel{bottom:105px;width:min(380px,calc(100vw - 24px));max-width:none;height:min(510px,calc(100dvh - 132px));border-radius:18px}.water-panel-head{padding:12px 14px}.water-message{font-size:14px}.water-log{padding:12px}.water-suggestions{padding:8px 10px}.water-form{padding:9px 10px 10px}.water-panel-head img{height:35px;width:32px}.water-launcher[aria-expanded=true] .water-callout{display:none}}
.water-character-animation{display:block;flex-shrink:0;line-height:0}.water-launcher .water-character-animation img,.water-widget.scrolling .water-launcher .water-character-animation img{animation:none;transform:none}
.water-widget [hidden]{display:none!important}.water-dismiss{position:absolute;top:-5px;right:0;display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid #b6d4db;border-radius:50%;background:#fff;color:#234f60;font-size:24px;line-height:1;box-shadow:0 3px 12px #002f4a12}.water-compact{display:flex;flex-direction:column;align-items:center;gap:5px}.water-compact-open{min-width:56px;height:48px;border:0;border-radius:25px;background:#103f54;color:#fff;padding:10px 18px;font:600 14px/1.4 Arial,system-ui,sans-serif;box-shadow:0 5px 20px #002f4a20}.water-restore{min-height:32px;padding:4px 8px;border:1px solid #c6dce0;border-radius:15px;background:#fff;color:#345d6a;font:11px/1.4 Arial,system-ui,sans-serif}.water-widget.mascot-hidden .water-panel{bottom:94px}
@media(max-width:560px){.water-dismiss{top:-14px;right:-3px;width:36px;height:36px;font-size:22px}.water-widget.mascot-hidden .water-panel{bottom:94px}}
@media(prefers-reduced-motion:reduce){.water-widget *{animation:none!important;scroll-behavior:auto!important}}

/* 2026-12-05: compact chat layout without changing assistant behavior. */
.water-log{min-height:0}.water-panel-head>div{min-width:0}.water-panel-head h2{overflow-wrap:anywhere}.water-form,.water-powered{flex-shrink:0}.water-suggestions{flex-shrink:0}.water-form input{font-size:16px}
@media(max-height:500px){.water-suggestions{max-height:72px;overflow-y:auto}.water-panel-head{padding:7px 12px}.water-powered{padding-bottom:5px}.water-form{padding-top:6px;padding-bottom:6px}}

.water-chat-open .water-launcher,.water-chat-open .water-motion-toggle,.water-chat-open .water-chat-shortcut{visibility:hidden;pointer-events:none}
