/* STARWALT AI messenger */
.starwalt-chat-launcher{position:fixed;right:22px;bottom:86px;z-index:60;width:58px;height:58px;border:0;border-radius:19px;background:linear-gradient(135deg,#1d5cff,#0b1739);color:#fff;box-shadow:0 18px 46px rgba(11,23,57,.34);cursor:pointer;display:grid;place-items:center;transition:transform .2s ease,box-shadow .2s ease}
.starwalt-chat-launcher:hover{transform:translateY(-2px);box-shadow:0 22px 54px rgba(11,23,57,.42)}
.starwalt-chat-launcher svg{width:27px;height:27px;fill:currentColor}
.starwalt-chat-badge{position:absolute;right:-4px;top:-5px;min-width:21px;height:21px;padding:0 5px;border:2px solid #fff;border-radius:999px;background:#ef4444;color:#fff;font-size:11px;font-weight:900;line-height:17px;text-align:center}
.starwalt-chat-panel{position:fixed;right:22px;bottom:156px;z-index:61;width:min(390px,calc(100vw - 28px));height:min(610px,calc(100vh - 190px));border:1px solid rgba(14,37,82,.14);border-radius:25px;background:#fff;box-shadow:0 28px 80px rgba(11,23,57,.3);overflow:hidden;display:grid;grid-template-rows:auto 1fr auto auto;transform-origin:bottom right}
.starwalt-chat-panel[hidden]{display:none}
.starwalt-chat-panel.is-opening{animation:starwalt-chat-in .22s ease-out}
@keyframes starwalt-chat-in{from{opacity:0;transform:translateY(14px) scale(.97)}to{opacity:1;transform:none}}
.starwalt-chat-header{position:static;top:auto;z-index:auto;height:auto;display:flex;align-items:center;gap:11px;padding:14px 15px;background:linear-gradient(135deg,#0b1739,#163568);color:#fff}
.starwalt-chat-avatar{width:42px;height:42px;flex:0 0 42px;border-radius:14px;background:linear-gradient(135deg,#fff,#dbe7ff);color:#0b1739;display:grid;place-items:center;font-weight:950;letter-spacing:-.04em}
.starwalt-chat-title{min-width:0;flex:1}
.starwalt-chat-title strong{display:block;font-size:15px}
.starwalt-chat-title span{display:flex;align-items:center;gap:6px;color:#dce7ff;font-size:11px;margin-top:2px}
.starwalt-chat-title span::before{content:"";width:7px;height:7px;border-radius:50%;background:#37d67a;box-shadow:0 0 0 3px rgba(55,214,122,.18)}
.starwalt-chat-header button{width:36px;height:36px;border:0;border-radius:11px;background:rgba(255,255,255,.12);color:#fff;font-size:20px;cursor:pointer}
.starwalt-chat-header button:hover{background:rgba(255,255,255,.2)}
.starwalt-chat-messages{overflow-y:auto;padding:16px;background:linear-gradient(180deg,#f7f9ff,#fff);scroll-behavior:smooth;overscroll-behavior:contain}
.starwalt-chat-message{display:flex;gap:8px;margin:0 0 12px;align-items:flex-end}
.starwalt-chat-message.user{justify-content:flex-end}
.starwalt-chat-bubble{max-width:84%;padding:10px 12px;border-radius:16px 16px 16px 5px;background:#fff;border:1px solid #e0e7f2;color:#17233d;font-size:14px;line-height:1.5;box-shadow:0 5px 16px rgba(14,37,82,.06);white-space:pre-line}
.starwalt-chat-message.user .starwalt-chat-bubble{border:0;border-radius:16px 16px 5px 16px;background:#1d5cff;color:#fff;box-shadow:0 7px 20px rgba(29,92,255,.2)}
.starwalt-chat-time{display:block;margin-top:5px;color:#8390a7;font-size:9px}
.starwalt-chat-message.user .starwalt-chat-time{color:#dbe7ff;text-align:right}
.starwalt-chat-links{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.starwalt-chat-links a,.starwalt-chat-links button{border:1px solid #c9d7f0;border-radius:999px;background:#fff;color:#1d5cff;padding:6px 9px;text-decoration:none;font:inherit;font-size:11px;font-weight:850;cursor:pointer}
.starwalt-chat-quick{display:flex;gap:7px;overflow-x:auto;padding:10px 12px;border-top:1px solid #e8edf6;background:#fff;scrollbar-width:none}
.starwalt-chat-quick::-webkit-scrollbar{display:none}
.starwalt-chat-quick button{flex:0 0 auto;border:1px solid #cbd7ed;border-radius:999px;background:#f7f9ff;color:#163568;padding:7px 10px;font:inherit;font-size:11px;font-weight:850;cursor:pointer}
.starwalt-chat-quick button:hover{border-color:#1d5cff;color:#1d5cff}
.starwalt-chat-form{display:grid;grid-template-columns:1fr auto;gap:8px;padding:11px;border-top:1px solid #e8edf6;background:#fff}
.starwalt-chat-form input{min-width:0;border:1px solid #c7d2e4;border-radius:14px;padding:11px 12px;color:#0f172a;background:#fff;font:inherit;font-size:14px}
.starwalt-chat-form input:focus{outline:3px solid rgba(29,92,255,.17);border-color:#1d5cff}
.starwalt-chat-form button{width:44px;border:0;border-radius:14px;background:#1d5cff;color:#fff;font-size:18px;font-weight:900;cursor:pointer}
.starwalt-chat-privacy{grid-column:1/-1;margin:0;color:#738097;font-size:9px;line-height:1.4}
.starwalt-chat-typing{display:inline-flex;gap:4px;padding:12px 14px;border:1px solid #e0e7f2;border-radius:16px 16px 16px 5px;background:#fff}
.starwalt-chat-typing i{width:6px;height:6px;border-radius:50%;background:#7b8aa3;animation:starwalt-dot 1s infinite}
.starwalt-chat-typing i:nth-child(2){animation-delay:.14s}.starwalt-chat-typing i:nth-child(3){animation-delay:.28s}
@keyframes starwalt-dot{0%,70%,100%{transform:translateY(0);opacity:.5}35%{transform:translateY(-4px);opacity:1}}
.backtop{right:88px}
@media(max-width:820px){.starwalt-chat-launcher{right:16px;bottom:136px;width:54px;height:54px;border-radius:18px}.starwalt-chat-panel{right:7px;bottom:70px;width:calc(100vw - 14px);height:min(650px,calc(100dvh - 86px));border-radius:22px}.backtop{right:78px;bottom:136px}.starwalt-chat-bubble{max-width:88%}}
@media(max-width:420px){.starwalt-chat-panel{right:0;bottom:0;width:100vw;height:100dvh;max-height:none;border:0;border-radius:0}.starwalt-chat-header{padding-top:max(14px,env(safe-area-inset-top))}.starwalt-chat-form{padding-bottom:max(11px,env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:reduce){.starwalt-chat-panel.is-opening,.starwalt-chat-typing i{animation:none}.starwalt-chat-messages{scroll-behavior:auto}}
@media print{.starwalt-chat-launcher,.starwalt-chat-panel{display:none!important}}
