.chat-widget{z-index:1000;font-family:system-ui,-apple-system,sans-serif;position:fixed;bottom:24px;right:24px}.chat-toggle{color:#a5f3fc;cursor:pointer;background:linear-gradient(135deg,#a855f7,#ec4899);border:none;border-radius:50%;justify-content:center;align-items:center;width:56px;height:56px;font-size:28px;text-decoration:none;transition:transform .2s,box-shadow .2s;display:flex;box-shadow:0 4px 12px #a855f766}.chat-toggle:hover{transform:scale(1.1);box-shadow:0 6px 20px #a855f799}.chat-toggle.open{background:#ec4899}.chat-box{isolation:isolate;border:2px solid #0000;border-radius:16px;flex-direction:column;width:min(440px,100vw - 24px);height:min(82vh,780px);animation:.3s chatSlideIn;display:flex;position:absolute;bottom:80px;right:0;box-shadow:0 4px 12px #a855f766,0 0 24px #ec489959}.chat-box:before{content:"";opacity:1;z-index:-1;background:url(/bg-hallie.png) top/cover no-repeat;border-radius:14px;position:absolute;inset:0}.chat-box:after{content:"";-webkit-mask-composite:xor;pointer-events:none;background:linear-gradient(135deg,#a855f7,#ec4899);border-radius:16px;padding:2px;position:absolute;inset:-2px;-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor,source-over;mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0)}.chat-widget.chat-page .chat-box:before,.chat-widget.chat-page .chat-box:after{display:none}@keyframes chatSlideIn{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.chat-header{background:#0f172a73;border-bottom:1px solid #a855f733;border-top-left-radius:14px;border-top-right-radius:14px;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;padding:12px;display:flex}.chat-menu-btn,.chat-header .chat-saved,.chat-header .chat-saved-delete{color:#a5f3fc;cursor:pointer;background:#4c1d95;border:1px solid #c084fc;border-radius:8px;padding:8px 10px;font-size:14px;font-weight:800}.chat-menu{z-index:2;background:#0f172af0;flex-direction:column;max-height:46%;display:flex;overflow:auto}.chat-menu a{color:#a5f3fc;border-bottom:1px solid #a855f759;padding:12px 16px;font-weight:700;text-decoration:none;display:block}.chat-menu p{color:#a5f3fc;margin:10px 16px 6px;font-size:13px}.chat-menu .chat-logins{padding:0 12px 12px}.chat-header span{color:#d4a5ff;font-size:16px;font-weight:700}.chat-header button{color:#a5f3fc;cursor:pointer;background:0 0;border:none;padding:0 4px;font-size:20px}.chat-header .chat-menu-btn,.chat-header .chat-saved,.chat-header .chat-saved-delete{color:#a5f3fc;background:#4c1d95;border:1px solid #c084fc;border-radius:8px;padding:8px 10px;font-size:13px;font-weight:800}.chat-header-actions{flex-wrap:wrap;align-items:center;gap:8px;margin-left:auto;display:flex}.chat-header .chat-saved{color:#a5f3fc;font-size:14px;font-weight:800}.chat-sync{color:#c084fc;background:#00000059;border-bottom:1px solid #a855f740;padding:10px 14px 12px;font-size:13px;line-height:1.4}.chat-sync p{margin:0 0 8px}.chat-logins{flex-wrap:wrap;gap:8px;display:flex}.chat-logins button{flex:calc(50% - 8px);min-height:42px;font-size:15px}.chat-threads{gap:8px;margin-top:10px;padding-bottom:2px;display:flex;overflow-x:auto}.chat-threads button{text-overflow:ellipsis;white-space:nowrap;flex:none;max-width:160px;overflow:hidden}.chat-logins button.on,.chat-threads button.on{color:#3b0764;background:#fff;outline:none}.chat-saved-delete{color:#f9a8d4;cursor:pointer;background:0 0;border:1px solid #f9a8d480;border-radius:8px;margin-top:8px;padding:7px 10px;font-weight:700}.chat-sync input{box-sizing:border-box;color:#a5f3fc;width:100%;font:inherit;background:#00000059;border:1px solid #a855f773;border-radius:8px;margin-bottom:8px;padding:8px}.chat-sync button{appearance:none;color:#a5f3fc;cursor:pointer;background:#4c1d95;border:1px solid #c084fc;border-radius:8px;padding:10px 12px;font-size:15px;font-weight:700}.chat-sync form{gap:8px;margin-top:10px;display:flex}.chat-sync form input{margin:0}.chat-sync-note{color:#f9a8d4}.chat-messages{flex-direction:column;flex:1;gap:12px;padding:16px;display:flex;overflow-y:auto}.chat-message{flex-direction:column;max-width:85%;display:flex}.chat-message.user{align-self:flex-end}.chat-message.hallie{align-self:flex-start}.chat-widget .bubble{white-space:pre-wrap;border-radius:12px;padding:10px 14px;font-size:14px;line-height:1.5}.chat-widget .chat-message.user .bubble{-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);color:#67e8f9;background:#00000080;border:1px solid #a855f74d;border-bottom-right-radius:2px}.chat-widget .chat-message.hallie .bubble{-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);color:#c084fc;background:#00000080;border:1px solid #a855f74d;border-bottom-left-radius:2px}.chat-widget .time{color:#a5f3fc;text-shadow:0 1px 3px #000000e6;margin-top:4px;font-size:11px}.chat-widget .chat-message.user .time{align-self:flex-end}.chat-widget .chat-message.hallie .time{align-self:flex-start}.chat-input{background:#0f172acc;border-top:1px solid #a855f733;border-bottom-right-radius:14px;border-bottom-left-radius:14px;gap:8px;padding:12px;display:flex}.chat-input input{color:#a5f3fc;background:#ffffff1a;border:1px solid #a855f74d;border-radius:8px;flex:1;padding:10px 14px;font-size:14px}.chat-input input:focus{border-color:#c084fc;outline:none}.chat-input button{color:#a5f3fc;cursor:pointer;background:#a855f7;border:none;border-radius:8px;padding:10px 16px;font-weight:600}.chat-input button:hover:not(:disabled){background:#c084fc}.chat-input button:disabled{opacity:.5;cursor:not-allowed}.chat-widget .typing .dots:after{content:"…";animation:1.5s infinite typingDots}@keyframes typingDots{0%,20%{content:""}40%{content:"."}60%{content:".."}80%,to{content:"…"}}.chat-widget .chat-confirm{background:#0f172ae6;border:1px solid #a855f780;border-radius:12px;margin-top:8px;padding:10px 12px}.chat-widget .chat-confirm p{color:#f472b6;word-break:break-word;margin:0 0 10px;font-size:14px;line-height:1.4}.chat-widget .chat-confirm-buttons{gap:8px;display:flex}.chat-widget .chat-confirm-buttons button{cursor:pointer;appearance:none;touch-action:manipulation;border-radius:8px;flex:1;min-height:44px;font-size:15px;font-weight:600}.chat-widget .chat-confirm-buttons .confirm{color:#a5f3fc;background:#a855f7;border:none}.chat-widget .chat-confirm-buttons .cancel{color:#d4a5ff;background:0 0;border:1px solid #a855f780}.chat-widget .chat-confirm-buttons button:disabled{opacity:.5;cursor:not-allowed}.chat-widget .chat-confirm-status{color:#94a3b8;font-size:12px;font-weight:600}.chat-widget .chat-connect{appearance:none;cursor:pointer;color:#a5f3fc;-webkit-tap-highlight-color:transparent;touch-action:manipulation;background:linear-gradient(135deg,#a855f7,#ec4899);border:none;border-radius:12px;justify-content:center;align-items:center;min-height:44px;margin-top:8px;padding:10px 18px;font-family:inherit;font-size:15px;font-weight:600;text-decoration:none;display:flex;box-shadow:0 4px 12px #a855f766}.chat-widget .chat-connect:hover,.chat-widget .chat-connect:active{box-shadow:0 6px 20px #a855f799}.chat-widget.chat-page{width:100%;max-width:none;margin:0;position:static}.chat-widget.chat-page .chat-header{padding-right:124px}.chat-widget.chat-page .chat-box{background:linear-gradient(#0f172a80,#0f172a80) padding-box padding-box,url(/bg-hallie.png) top/cover no-repeat padding-box padding-box,linear-gradient(135deg,#a855f7,#ec4899) border-box;width:100%;height:calc(100dvh - 140px);min-height:380px;animation:none;position:relative;bottom:auto;right:auto}.chat-widget.chat-page .chat-input input{font-size:16px}.chat-widget.chat-page .chat-back{color:#a5f3fc;font-size:15px;font-weight:700;text-decoration:none}.chat-widget.chat-page .chat-back:hover{color:#c084fc;text-decoration:underline}.chat-terms{text-align:center;color:#c4b5fd;background:#0f172acc;border-bottom-right-radius:14px;border-bottom-left-radius:14px;padding:6px 12px 10px;font-size:11px}.chat-terms a{color:#c084fc;text-decoration:underline}.chat-composer{background:#0f172a;border-top:1px solid #e9d5ff66;flex-direction:column;gap:8px;padding:12px;display:flex}.chat-model{color:#a5f3fc;align-items:center;gap:10px;font-size:15px;font-weight:800;display:flex}.chat-model select{color:#a5f3fc;background:#1e1b4b;border:1px solid #c084fc;border-radius:8px;flex:1;min-height:44px;padding:8px 10px;font-size:16px;font-weight:700}.chat-model-status{color:#a5f3fc;margin:0;font-size:13px;font-weight:650}.chat-model-bar{background:#312e81;border-radius:99px;height:8px;overflow:hidden}.chat-model-bar span{background:#c084fc;height:100%;display:block}.chat-composer .chat-input{background:0 0;border:none;border-radius:0;padding:0}.chat-composer .chat-input input{color:#a5f3fc;background:#1e293b;border:1px solid #c084fc;min-height:48px;font-size:16px}.chat-composer .chat-input button{color:#a5f3fc;background:#6d28d9;border:1px solid #c084fc;min-height:48px;font-size:16px;font-weight:800}
