*,
*::before,
*::after{
box-sizing:border-box;
}

#leoia-fast-launcher{
position:fixed;
right:24px;
bottom:24px;
width:74px;
height:74px;
border:none;
border-radius:50%;
background:linear-gradient(135deg,#0ea5e9,#7c3aed);
display:flex;
align-items:center;
justify-content:center;
cursor:pointer;
z-index:99999999;
box-shadow:0 18px 55px rgba(0,0,0,.45);
color:#fff;
font-size:30px;
}

#leoia-fast-dashboard{
display:none;
position:fixed;
inset:0;
width:100vw;
height:100vh;
background:#020617;
z-index:99999999;
font-family:Arial,sans-serif;
color:#fff;
overflow:hidden;
}

#leoia-fast-dashboard.expanded{
inset:0;
width:100vw;
height:100vh;
}

#leoia-fast-sidebar{
position:absolute;
left:0;
top:0;
bottom:0;
width:330px;
background:linear-gradient(180deg,#020617,#071225);
border-right:1px solid rgba(148,163,184,.28);
padding:24px 22px;
color:#fff;
overflow-y:auto;
}

.leoia-fast-logo-box{
display:flex;
align-items:center;
gap:15px;
margin-bottom:24px;
}

.leoia-fast-logo{
width:86px;
height:86px;
border-radius:20px;
background:linear-gradient(135deg,#0ea5e9,#7c3aed);
display:flex;
align-items:center;
justify-content:center;
font-size:42px;
box-shadow:0 18px 55px rgba(124,58,237,.35);
}

.leoia-fast-logo-box h2{
margin:0;
font-size:34px;
font-weight:900;
letter-spacing:1px;
color:#f8fafc;
}

.leoia-fast-logo-box p{
margin:7px 0 0;
font-size:12px;
color:#22d3ee;
}

#leoia-fast-new-chat{
width:100%;
height:58px;
border:none;
border-radius:10px;
background:linear-gradient(135deg,#a855f7,#0ea5e9);
color:#fff;
font-size:17px;
font-weight:800;
cursor:pointer;
margin-bottom:20px;
}

#leoia-fast-search-chat{
width:100%;
height:50px;
padding:0 18px;
border-radius:10px;
border:1px solid rgba(148,163,184,.35);
background:#0f172a;
color:#fff;
outline:none;
margin-bottom:22px;
font-size:16px;
}

.leoia-fast-history-title{
font-size:14px;
font-weight:800;
color:#cbd5e1;
margin-bottom:12px;
}

#leoia-fast-history{
max-height:380px;
overflow-y:auto;
padding-right:4px;
margin-bottom:18px;
}

.leoia-fast-chat-item{
min-height:52px;
display:grid;
grid-template-columns:24px 1fr auto;
gap:8px;
align-items:center;
padding:0 12px;
border-radius:9px;
background:rgba(15,23,42,.95);
border:1px solid rgba(148,163,184,.18);
margin-bottom:8px;
font-size:14px;
color:#e5e7eb;
}

.leoia-fast-chat-item strong{
font-size:14px;
font-weight:500;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}

.leoia-fast-chat-item em{
font-style:normal;
font-size:12px;
color:#cbd5e1;
}

.leoia-fast-upload-box{
margin-top:18px;
background:rgba(15,23,42,.78);
border:1px dashed rgba(148,163,184,.55);
border-radius:12px;
padding:18px;
min-height:160px;
}

.leoia-fast-upload-box h3{
margin:0 0 10px;
font-size:15px;
font-weight:900;
color:#9beafe;
}

.leoia-fast-upload-box p{
margin:0 0 14px;
font-size:13px;
line-height:1.5;
color:#cbd5e1;
}

.leoia-fast-doc-count{
background:#111827;
border-radius:12px;
padding:14px;
text-align:center;
color:#22d3ee;
font-weight:800;
}

#leoia-fast-main{
position:absolute;
left:330px;
right:0;
top:0;
bottom:0;
display:flex;
flex-direction:column;
background:
radial-gradient(circle at top left,rgba(14,165,233,.20),transparent 35%),
radial-gradient(circle at top right,rgba(124,58,237,.23),transparent 35%),
#020617;
color:#fff;
overflow:hidden;
}

#leoia-fast-topbar{
height:88px;
display:flex;
align-items:center;
justify-content:space-between;
padding:0 44px;
border-bottom:1px solid rgba(148,163,184,.18);
}

.leoia-fast-status{
display:flex;
align-items:center;
gap:12px;
color:#fff;
}

.leoia-fast-status strong{
font-size:28px;
font-weight:900;
}

.leoia-fast-status span{
width:10px;
height:10px;
border-radius:50%;
background:#00f5a0;
box-shadow:0 0 12px #00f5a0;
display:inline-block;
}

.leoia-fast-top-actions{
display:flex;
align-items:center;
gap:14px;
}

#leoia-fast-expand{
border:1px solid rgba(148,163,184,.28);
border-radius:10px;
padding:12px 20px;
background:rgba(15,23,42,.85);
color:#fff;
cursor:pointer;
font-size:15px;
font-weight:800;
}

#leoia-fast-close{
width:44px;
height:44px;
border:none;
background:transparent;
color:#fff;
cursor:pointer;
font-size:30px;
}

#leoia-fast-welcome{
text-align:center;
margin:0 36px;
padding:52px 34px 34px;
border-radius:22px;
border:1px solid rgba(96,165,250,.25);
background:
radial-gradient(circle at top left,rgba(14,165,233,.22),transparent 35%),
radial-gradient(circle at top right,rgba(124,58,237,.35),transparent 38%),
rgba(2,6,23,.45);
flex:1;
overflow-y:auto;
}

.leoia-fast-brand-center{
display:flex;
flex-direction:column;
align-items:center;
justify-content:center;
margin-bottom:26px;
}

.leoia-fast-big-logo{
width:112px;
height:112px;
display:flex;
align-items:center;
justify-content:center;
font-size:78px;
}

.leoia-fast-wordmark{
font-size:42px;
font-weight:900;
letter-spacing:2px;
color:#f8fafc;
}

.leoia-fast-tagline{
font-size:13px;
color:#22d3ee;
margin-top:6px;
}

#leoia-fast-welcome h1{
margin:0;
font-size:34px;
font-weight:900;
color:#f8fafc;
}

#leoia-fast-welcome > p{
margin:14px auto 44px;
max-width:720px;
font-size:18px;
line-height:1.7;
color:#cbd5e1;
}
.leoia-fast-feature-grid{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:18px;
max-width:1040px;
margin:0 auto;
}

.leoia-fast-feature-card{
min-height:230px;
border-radius:18px;
background:rgba(15,23,42,.82);
border:1px solid rgba(148,163,184,.22);
display:flex;
flex-direction:column;
align-items:center;
justify-content:center;
padding:24px;
}

.leoia-fast-feature-card h3{
margin:18px 0 10px;
font-size:19px;
font-weight:800;
color:#f8fafc;
}

.leoia-fast-feature-card p{
margin:0;
font-size:15px;
line-height:1.6;
color:#cbd5e1;
text-align:center;
}

.leoia-fast-feature-icon{
width:88px;
height:88px;
border-radius:50%;
display:flex;
align-items:center;
justify-content:center;
font-size:42px;
border:1px solid rgba(255,255,255,.15);
}

.leoia-fast-feature-icon.blue{
background:rgba(37,99,235,.22);
}

.leoia-fast-feature-icon.green{
background:rgba(16,185,129,.22);
}

.leoia-fast-feature-icon.purple{
background:rgba(168,85,247,.22);
}

.leoia-fast-feature-icon.gold{
background:rgba(245,158,11,.22);
}

#leoia-fast-messages{
display:none;
flex:1;
overflow-y:auto;
padding:24px 44px;
flex-direction:column;
gap:16px;
}

#leoia-fast-messages.active{
display:flex;
}

.leoia-fast-user,
.leoia-fast-ai,
.leoia-fast-loading,
.leoia-fast-error{
max-width:82%;
padding:16px 19px;
border-radius:20px;
line-height:1.8;
word-break:break-word;
white-space:pre-wrap;
font-size:15px;
}

.leoia-fast-user{
align-self:flex-end;
background:linear-gradient(135deg,#0284c7,#7c3aed);
color:#fff;
}

.leoia-fast-ai{
align-self:flex-start;
background:rgba(255,255,255,.08);
border:1px solid rgba(255,255,255,.10);
color:#fff;
}

.leoia-fast-loading{
align-self:flex-start;
background:rgba(255,255,255,.08);
color:#93c5fd;
font-style:italic;
}

.leoia-fast-error{
align-self:flex-start;
background:#451a1a;
color:#fecaca;
border:1px solid #7f1d1d;
}

#leoia-fast-input-box{
margin:20px 36px 10px;
display:flex;
align-items:center;
gap:10px;
padding:16px;
border-radius:20px;
border:1px solid rgba(96,165,250,.22);
background:rgba(15,23,42,.75);
}

#leoia-fast-input{
flex:1;
height:62px;
resize:none;
border:1px solid rgba(148,163,184,.18);
outline:none;
border-radius:14px;
padding:19px;
background:#111827;
color:#fff;
font-size:17px;
}

#leoia-fast-send{
width:82px;
height:62px;
border:none;
border-radius:14px;
background:linear-gradient(135deg,#0ea5e9,#7c3aed);
color:#fff;
font-size:30px;
cursor:pointer;
}

.leoia-fast-disclaimer{
text-align:center;
font-size:14px;
color:#94a3b8;
padding:0 10px 14px;
}

.leoia-fast-admin-card{
background:#fff;
border-radius:18px;
padding:25px;
margin-bottom:22px;
box-shadow:0 12px 35px rgba(0,0,0,.08);
max-width:920px;
}

.leoia-fast-admin-card h1{
margin-top:0;
font-weight:800;
}

@media(max-width:1100px){
.leoia-fast-feature-grid{
grid-template-columns:repeat(2,1fr);
}
}

@media(max-width:900px){

#leoia-fast-sidebar{
display:none;
}

#leoia-fast-main{
left:0;
}

.leoia-fast-feature-grid{
grid-template-columns:1fr;
}

}