:root {
    --footbg: #0f172a;
    --text: #242b36;
    --textalt: #5b6c86;
    --white: #ffffff;
    --lightgrey: #fafafa;
    --border: #e2e8f0;
    --sidenav: #5b6c86;
    --dblue: #137fec;
    --lblue: #e7f2fd;   
    --bg: #f6f6f8;
    --llblue: #f8fafc;
    --skill: #f1f5f9;
    --ver: #eff6ff; 
    --avbg: #dcfce7;
    --avborder: #b4eac7;
    --bookbg: #fef3c7;
    --bookborder: #f6daa0;
    --booktext: #b45309;  
    --avtext: #16a34a;  
    --footborder:#1a2641;
    --textlight: #6d7f9a;
    --mblue: #3c97f3;
    --vborder: #dfe1e3;
    --dpurple: #6849ba;
    --offwhite:#ecf1f9;
    --red: #ef4444; 
    --btngreen: #16a34a;
    --pmblue: #73d1fa;
    --newbg: #f7fafe;
    --star: #fbbf24;
    --borderhover: #cbd5e1;
}



.mem-ai-widget [hidden] {
    display: none !important;
}

.mem-ai-widget {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 99999;
    font-family: Figtree, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.mem-ai-open {
    border: 0;
    border-radius: 999px;
    padding: 15px;
    background: var(--text);
    color: var(--white);
    font-weight: 700;
    box-shadow: 0 18px 45px rgba(0,0,0,.24);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.mem-ai-open-icon {
    width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: var(--dblue);
}

.mem-ai-panel {
    width: min(360px, calc(100vw - 28px));
    height: min(480px, calc(100vh - 40px));
    background: var(--white);
    border: 1px solid rgba(17,24,39,.12);
    border-radius: 24px;
    box-shadow: 0 28px 80px rgba(0,0,0,.28);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.mem-ai-header {
    background: var(--text);
    color: var(--white);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.mem-ai-header small {
    display: block;
    color: rgba(255,255,255,.72);
    margin-top: 0px;
    font-size: 12px;
}

.mem-ai-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mem-ai-book-small {
color: var(--text);
  background: var(--white);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 10px;
}

#mem-ai-close {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    color: var(--white);
    background: rgba(255,255,255,.14);
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.mem-ai-messages {
    padding: 16px;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f9fafb;
}

.mem-ai-msg {
    max-width: 88%;
    padding: 11px 13px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.45;
    white-space: pre-wrap;
}

.mem-ai-msg.ai {
    background: var(--white);
    color: var(--text);
    border: 1px solid rgba(17,24,39,.08);
    align-self: flex-start;
}

.mem-ai-msg.user {
    background: var(--dblue);
    color: var(--white);
    align-self: flex-end;
}

.mem-ai-form {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid rgba(17,24,39,.08);
    background: var(--white);
}

.mem-ai-form input,
.mem-ai-lead-form input,
.mem-ai-lead-form textarea {
    width: 100%;
    border: 1px solid rgba(17,24,39,.14);
    border-radius: 12px;
    padding: 12px;
    font: inherit;
    outline: none!important;
}

.mem-ai-form input:focus,
.mem-ai-lead-form input:focus,
.mem-ai-lead-form textarea:focus {
    border-color: var(--dblue);
    box-shadow: 0!important;
}

.mem-ai-form button,
.mem-ai-lead-form button,
.mem-ai-secondary,
.mem-ai-primary {
    border: 0;
    border-radius: 12px;
    padding: 12px 14px;
    font: 14px 'Figtree', Helvetica, Arial, sans-serif !important;
    font-weight: 800!important;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}

.mem-ai-form button,
.mem-ai-lead-form button,
.mem-ai-primary {
    background: var(--dblue);
    color: var(--white);
}

.mem-ai-form button:hover,
.mem-ai-lead-form button:hover,
.mem-ai-primary:hover {
    background: var(--text);
    color: var(--white);
}


.mem-ai-actions {
    padding: 12px;
    display: grid;
    gap: 8px;
    border-top: 1px solid rgba(17,24,39,.08);
    background: var(--white);
}

.mem-ai-secondary {
    background: var(--white);
    color: var(--text);
    border: 1px solid rgba(17,24,39,.12);
}

.mem-ai-lead-screen {
    position: absolute;
    inset: 0;
    background: var(--white);
    z-index: 3;
    display: flex;
    flex-direction: column;
}

.mem-ai-panel {
    position: relative;
}

.mem-ai-lead-top {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(17,24,39,.08);
    background: var(--text);
    color: var(--white);
}

.mem-ai-lead-top h3 {
    margin: 0;
    font-size: 16px;
}

#mem-ai-lead-back {
    border: 0;
    border-radius: 999px;
    padding: 8px 10px;
    background: rgba(255,255,255,.14);
    color: var(--white);
    font-weight: 800;
    cursor: pointer;
}

.mem-ai-lead-form {
    padding: 16px;
    display: grid;
    gap: 10px;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
    background: var(--white);
}

#mem-ai-lead-status {
    margin: 0;
    font-size: 13px;
}

@media (max-width: 520px) {
    .mem-ai-widget {
        
        right: 15px;
        bottom: 15px;
    }



.mem-ai-open-txt {
  display: none;
}


    .mem-ai-panel {
       
    }
}
