/* SahajConnect — public AI assistant widget (mobile-first) */
.assist-fab{position:fixed;right:16px;bottom:16px;z-index:1000;display:flex;align-items:center;gap:8px;
  background:#1f6feb;color:#fff;border-radius:999px;padding:12px 16px;font-weight:600;cursor:pointer;
  box-shadow:0 6px 20px rgba(0,0,0,.25);font-size:15px;user-select:none}
.assist-fab:hover{background:#195bc4}
.assist-fab-text{display:inline}
@media(max-width:480px){.assist-fab-text{display:none}.assist-fab{padding:14px}}

.assist-widget{position:fixed;right:16px;bottom:80px;z-index:1000;width:340px;max-width:calc(100vw - 32px);
  height:460px;max-height:calc(100vh - 120px);background:#fff;border:1px solid #e3e6ea;border-radius:14px;
  box-shadow:0 12px 40px rgba(0,0,0,.28);display:none;flex-direction:column;overflow:hidden}
.assist-widget.open{display:flex}
@media(max-width:480px){.assist-widget{right:8px;left:8px;bottom:76px;width:auto;height:70vh}}

.assist-head{background:#12233b;color:#fff;padding:12px 14px;font-weight:600;display:flex;
  align-items:center;justify-content:space-between;font-size:15px}
.assist-close{background:none;border:none;color:#fff;font-size:22px;line-height:1;cursor:pointer;padding:0 4px}

.assist-log{flex:1;overflow-y:auto;padding:12px;display:flex;flex-direction:column;gap:10px;background:#f7f9fc}
.assist-msg{max-width:85%;padding:9px 12px;border-radius:12px;font-size:14px;line-height:1.45;white-space:pre-wrap;word-wrap:break-word}
.assist-msg.bot{align-self:flex-start;background:#fff;border:1px solid #e3e6ea;color:#1a2330}
.assist-msg.me{align-self:flex-end;background:#1f6feb;color:#fff}
.assist-msg.pending{opacity:.6;font-style:italic}
.assist-src{margin-top:6px;font-size:12px}
.assist-src a{color:#1f6feb;text-decoration:none}
.assist-src a:hover{text-decoration:underline}

.assist-form{display:flex;align-items:center;gap:6px;padding:8px;border-top:1px solid #e3e6ea;background:#fff}
.assist-input{flex:1;border:1px solid #cdd3db;border-radius:999px;padding:9px 14px;font-size:14px;outline:none}
.assist-input:focus{border-color:#1f6feb}
.assist-send{background:#1f6feb;color:#fff;border:none;border-radius:50%;width:38px;height:38px;
  font-size:15px;cursor:pointer;flex:0 0 auto}
.assist-send:disabled{opacity:.5;cursor:default}
.assist-hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.assist-foot{font-size:11px;color:#8a94a3;text-align:center;padding:6px 8px;background:#fff;border-top:1px solid #eef1f5}

/* Dedicated /assistant page reuses the same look in a centered card */
.assist-page{max-width:640px;margin:24px auto;padding:0 16px}
.assist-page .assist-widget{position:static;display:flex;width:100%;height:520px;max-height:none;box-shadow:0 4px 18px rgba(0,0,0,.1)}
