:root{
  --ink:#17212b; --muted:#5b6672; --soft-muted:#8790a0;
  --line: rgba(255,255,255,0.5);
  --purple:#7657ed; --purple-dark:#5d40db; --purple-soft: rgba(118,87,237,0.14);
  --glass: rgba(255,255,255,0.46);
  --glass-strong: rgba(255,255,255,0.66);
  --glass-border: rgba(255,255,255,0.65);
  --shadow: 0 16px 40px rgba(33,43,54,0.14);
  --radius: 20px;
}
:root:not([data-theme="light"]) { }
*{box-sizing:border-box;}
html{scroll-behavior:smooth; height:100%;}
body{
  margin:0; min-height:100%; color:var(--ink); font-family:"DM Sans",sans-serif;
  background: linear-gradient(180deg,#eef1fb 0%, #f3ecfa 45%, #eaf3f6 100%);
  padding-top: env(safe-area-inset-top,0px); padding-bottom: env(safe-area-inset-bottom,0px);
}
button,input{font:inherit;}
button{cursor:pointer; border:0; background:transparent;}
.blobs{position:fixed; inset:0; z-index:-1; overflow:hidden;}
.blob{position:absolute; border-radius:50%; filter:blur(70px); opacity:0.55;}
.b1{width:520px;height:520px; top:-160px; left:-120px; background:radial-gradient(circle,#a48bff,transparent 70%); animation:float1 22s ease-in-out infinite;}
.b2{width:440px;height:440px; bottom:-140px; right:-100px; background:radial-gradient(circle,#7fe3d6,transparent 70%); animation:float2 26s ease-in-out infinite;}
.b3{width:380px;height:380px; top:35%; right:15%; background:radial-gradient(circle,#ffc6e0,transparent 70%); animation:float1 30s ease-in-out infinite reverse;}
@keyframes float1{0%,100%{transform:translate(0,0)} 50%{transform:translate(40px,30px)}}
@keyframes float2{0%,100%{transform:translate(0,0)} 50%{transform:translate(-35px,-25px)}}

.glass{ background:var(--glass); backdrop-filter:blur(22px) saturate(180%); -webkit-backdrop-filter:blur(22px) saturate(180%); border:1px solid var(--glass-border); box-shadow:var(--shadow); position:relative; }
.glass::before{content:""; position:absolute; inset:0; border-radius:inherit; background:linear-gradient(160deg, rgba(255,255,255,0.55), rgba(255,255,255,0) 40%); pointer-events:none;}

.app-shell{min-height:100vh; display:flex;}
.sidebar{width:264px; min-height:100vh; display:flex; flex-direction:column; padding:26px 18px 20px; border-radius:0 28px 28px 0; margin:0; z-index:5;}
.brand{display:flex; align-items:center; gap:11px; padding:0 10px; font-family:"Space Grotesk",sans-serif; font-size:18px; font-weight:700;}
.brand-mark{width:34px; height:34px; display:grid; place-items:center; color:white; background:linear-gradient(135deg,var(--purple),#9d78f1); border-radius:11px; font-family:Georgia,serif; font-size:22px; font-weight:bold; box-shadow:0 8px 18px rgba(118,87,237,0.35);}
.new-button{width:100%; display:flex; align-items:center; justify-content:center; gap:10px; margin:34px 0 22px; padding:14px; color:#fff; background:linear-gradient(135deg,var(--purple),#9d78f1); border-radius:14px; font-weight:700; box-shadow:0 10px 22px rgba(118,87,237,0.35); transition:transform .2s, box-shadow .2s;}
.new-button:hover{transform:translateY(-2px); box-shadow:0 14px 26px rgba(118,87,237,0.42);}
.plus-icon{font-size:20px; font-weight:400;}
.main-nav{display:grid; gap:5px;}
.nav-item{display:flex; align-items:center; gap:13px; padding:11px 13px; color:#5b6672; border-radius:12px; text-decoration:none; font-size:14px; font-weight:600; transition:background .2s,color .2s;}
.nav-item:hover{background:rgba(118,87,237,0.10);}
.nav-item.active{color:var(--purple); background:rgba(118,87,237,0.16);}
.nav-icon{width:18px; text-align:center; font-size:18px;}
.sidebar-bottom{margin-top:auto;}
.storage-card{margin:0 0 22px; padding:16px 15px 14px; border-radius:16px; background:rgba(255,255,255,0.4); border:1px solid var(--glass-border);}
.storage-card-header{display:flex; justify-content:space-between; margin-bottom:11px; font-size:12px; font-weight:700;}
.storage-card-header strong{color:var(--purple);}
.storage-track,.large-storage-track{overflow:hidden; height:7px; background:rgba(120,120,140,0.18); border-radius:99px;}
.storage-fill,.large-storage-fill{height:100%; background:linear-gradient(90deg,var(--purple),#a086f5); border-radius:inherit; transition:width .5s ease;}
.storage-card p{margin:10px 0 12px; color:var(--muted); font-size:11px;}
.storage-card p strong{color:var(--ink);}
.manage-button{color:var(--purple); font-size:11px; font-weight:700;}
.manage-button:hover{text-decoration:underline;}
.user-profile{display:flex; align-items:center; gap:10px; margin-top:16px; padding:16px 4px 0; border-top:1px solid rgba(120,120,140,0.18); position:relative;}
.avatar,.top-avatar{display:grid; place-items:center; color:#fff; background:linear-gradient(135deg,#1b9b8e,#3fc7ae); border-radius:50%; font-weight:700;}
.avatar{width:34px; height:34px; font-size:11px;}
.user-details{display:grid; gap:2px; flex:1;}
.user-details strong{font-size:12px;}
.user-details span{color:var(--muted); font-size:10px;}
.more-button{color:var(--muted); letter-spacing:2px;}
.main-content{min-width:0; flex:1;}
.topbar{height:78px; display:flex; align-items:center; justify-content:space-between; padding:0 5%; margin:14px 14px 0; border-radius:18px; position:sticky; top:14px; z-index:4;}
.breadcrumb{display:flex; align-items:center; gap:9px; font-size:13px;}
.muted-breadcrumb,.breadcrumb-separator{color:var(--soft-muted);}
.topbar-actions{display:flex; align-items:center; gap:16px; position:relative;}
.search-box{width:220px; display:flex; align-items:center; gap:8px; padding:9px 11px; color:var(--soft-muted); background:rgba(255,255,255,0.5); border:1px solid var(--glass-border); border-radius:12px;}
.search-box input{min-width:0; flex:1; border:0; outline:0; background:transparent; color:var(--ink); font-size:12px;}
.search-box kbd{padding:3px 5px; color:#7c8794; background:rgba(255,255,255,0.7); border:1px solid rgba(0,0,0,0.06); border-radius:5px; font-size:9px;}
.icon-button,.mobile-menu{color:#5b6672; font-size:20px; padding:6px; border-radius:10px; transition:background .2s;}
.icon-button:hover,.mobile-menu:hover{background:rgba(118,87,237,0.12);}
.top-avatar{width:31px; height:31px; font-size:10px; cursor:pointer;}
.mobile-menu{display:none;}
.content{max-width:1390px; margin:0 auto; padding:34px 5% 70px;}
.page-heading,.heading-actions,.section-heading,.card-heading,.recent-heading{display:flex; align-items:center; justify-content:space-between;}
.eyebrow,.card-label,.welcome-label{margin:0 0 10px; color:var(--purple); font-size:10px; font-weight:700; letter-spacing:1.5px;}
h1,h2,h3,p{margin-top:0;}
h1{margin-bottom:8px; font-family:"Space Grotesk",sans-serif; font-size:29px; letter-spacing:-1px;}
.page-description{margin-bottom:0; color:var(--muted); font-size:13px;}
.heading-actions{gap:10px;}
.primary-button,.secondary-button{display:flex; align-items:center; gap:8px; padding:12px 17px; border-radius:12px; font-size:12px; font-weight:700; transition:transform .2s;}
.primary-button{color:#fff; background:linear-gradient(135deg,var(--purple),#9d78f1); box-shadow:0 8px 18px rgba(118,87,237,0.3);}
.primary-button:hover,.secondary-button:hover{transform:translateY(-1px);}
.secondary-button{color:#4a5460; background:rgba(255,255,255,0.55); border:1px solid var(--glass-border);}
.overview-grid{display:grid; grid-template-columns:minmax(0,1.42fr) minmax(300px,1fr); gap:18px; margin-top:32px;}
.welcome-card,.usage-card{min-height:240px; overflow:hidden; position:relative; padding:30px 34px; border-radius:var(--radius);}
.welcome-card{color:#fff; background:linear-gradient(120deg,#7657ed 0%,#886bec 55%,#5cc4c9 130%); border:1px solid rgba(255,255,255,0.35); box-shadow:0 20px 44px rgba(101,74,211,0.35);}
.welcome-card .welcome-label{color:#e3dcff;}
.welcome-content{position:relative; z-index:2; max-width:330px;}
.welcome-content h2{margin-bottom:13px; font-family:"Space Grotesk",sans-serif; font-size:28px; line-height:1.1; letter-spacing:-1px;}
.welcome-content h2 em{color:#e3dcff; font-style:normal;}
.welcome-content p{max-width:320px; margin-bottom:18px; color:#ece6ff; font-size:12px; line-height:1.6;}
.learn-button{display:flex; align-items:center; gap:9px; color:#fff; font-size:12px; font-weight:700;}
.learn-button:hover{text-decoration:underline;}
.cloud-illustration{position:absolute; top:15px; right:6%; width:240px; height:220px;}
.cloud-shape{position:absolute; top:42px; left:51px; width:135px; height:96px; display:grid; place-items:center; background:linear-gradient(135deg,rgba(255,255,255,0.85),rgba(255,255,255,0.35)); backdrop-filter:blur(6px); border-radius:50px 50px 39px 39px; box-shadow:0 20px 32px rgba(47,29,137,0.24); transform:rotate(-9deg);}
.cloud-shape::before,.cloud-shape::after{content:""; position:absolute; background:inherit; border-radius:50%;}
.cloud-shape::before{width:70px; height:70px; top:-28px; left:23px;}
.cloud-shape::after{width:78px; height:78px; top:-17px; right:12px;}
.lambda-symbol{position:relative; z-index:2; color:#fff; font-family:Georgia,serif; font-size:58px; font-weight:bold; transform:rotate(9deg);}
.orbit{position:absolute; border:1.5px dashed rgba(255,255,255,0.45); border-radius:50%;}
.orbit-one{top:39px; left:23px; width:190px; height:122px;}
.orbit-two{top:17px; left:44px; width:140px; height:175px; transform:rotate(44deg);}
.spark{position:absolute; color:rgba(255,255,255,0.8);}
.spark-one{top:17px; right:5px; font-size:19px;}
.spark-two{bottom:15px; left:10px; font-size:24px;}
.spark-three{right:36px; bottom:16px; font-size:27px;}
.usage-card{border:1px solid var(--glass-border);}
.card-heading{align-items:flex-start;}
.card-label{color:var(--muted);}
.usage-card h3{margin-bottom:19px; font-family:"Space Grotesk",sans-serif; font-size:30px; letter-spacing:-1px;}
.usage-card h3 small{color:var(--muted); font-size:14px; font-weight:500;}
.usage-percent{color:var(--purple); font-size:12px; font-weight:700;}
.large-storage-track{height:9px;}
.storage-caption{margin:11px 0 22px; color:var(--muted); font-size:11px;}
.storage-caption strong{color:var(--ink);}
.usage-breakdown{display:grid; grid-template-columns:1fr 1fr; gap:12px 18px; color:var(--muted); font-size:10px;}
.usage-breakdown div{display:flex; align-items:center; gap:7px;}
.usage-breakdown strong{margin-left:auto; color:var(--ink); font-size:10px;}
.breakdown-dot{width:7px; height:7px; display:inline-block; border-radius:50%;}
.documents{background:#7657ed;} .images{background:#a383f1;} .videos{background:#5cc4c9;} .other{background:#c9cfe0;}
.files-section{margin-top:38px;}
.section-heading{padding-bottom:15px; border-bottom:1px solid rgba(120,120,140,0.2);}
.tabs{display:flex; gap:24px;}
.tab{position:relative; padding:0 0 15px; color:var(--muted); font-size:12px; font-weight:700;}
.tab.active{color:var(--purple);}
.tab.active::after{content:""; position:absolute; right:0; bottom:-16px; left:0; height:2px; background:var(--purple); border-radius:2px;}
.view-controls{display:flex; align-items:center; gap:10px; position:relative;}
.sort-button{padding:8px 11px; color:var(--muted); background:rgba(255,255,255,0.5); border:1px solid var(--glass-border); border-radius:9px; font-size:10px; display:flex; align-items:center;}
.sort-button span{margin-left:9px;}
.view-button{padding:5px; color:var(--soft-muted); font-size:18px; border-radius:8px;}
.view-button.active{color:var(--purple); background:rgba(118,87,237,0.14);}
.folder-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-top:20px;}
.folder-card{display:flex; align-items:center; gap:12px; min-width:0; padding:15px; border-radius:15px; transition:transform .2s, border .2s; border:1px solid var(--glass-border);}
.folder-card:hover{transform:translateY(-2px); border-color:rgba(118,87,237,0.4);}
.folder-icon{width:36px; height:32px; display:grid; place-items:center; flex:0 0 auto; color:#7f66dc; background:rgba(118,87,237,0.16); border-radius:9px; font-size:18px;}
.folder-card:nth-child(4n+2) .folder-icon{color:#3186c9; background:rgba(70,150,230,0.18);}
.folder-card:nth-child(4n+3) .folder-icon{color:#c98a1d; background:rgba(230,180,60,0.2);}
.folder-card:nth-child(4n) .folder-icon{color:#d1638a; background:rgba(230,110,150,0.18);}
.folder-info{min-width:0; flex:1; text-align:left;}
.folder-info strong{display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px;}
.folder-info span{color:var(--muted); font-size:10px;}
.folder-del{opacity:0; color:var(--soft-muted); font-size:15px; padding:4px;}
.folder-card:hover .folder-del{opacity:1;}
.recent-heading{margin:34px 0 16px;}
.recent-heading h2{margin:0; font-family:"Space Grotesk",sans-serif; font-size:16px;}
.link-button{color:var(--purple); font-size:11px; font-weight:700;}
.link-button span{margin-left:5px; font-size:15px;}
.file-table-wrapper{overflow:hidden; border-radius:16px; border:1px solid var(--glass-border);}
.file-table{width:100%; border-collapse:collapse; text-align:left;}
.file-table th{padding:14px 18px; color:var(--soft-muted); background:rgba(255,255,255,0.35); border-bottom:1px solid rgba(120,120,140,0.18); font-size:10px; font-weight:600;}
.file-table td{padding:14px 18px; border-bottom:1px solid rgba(120,120,140,0.12); color:var(--muted); font-size:11px;}
.file-table tr:last-child td{border-bottom:0;}
.file-table tr{transition:background .15s;}
.file-table tbody tr:hover{background:rgba(118,87,237,0.06);}
.file-name{display:flex; align-items:center; gap:11px; color:var(--ink) !important; font-weight:700;}
.file-icon{width:31px; height:31px; display:grid; place-items:center; border-radius:8px; font-size:14px;}
.file-icon.pdf{color:#dd6a70; background:rgba(230,90,100,0.15);}
.file-icon.image{color:#3b9e89; background:rgba(60,180,150,0.15);}
.file-icon.doc{color:#448be2; background:rgba(70,140,230,0.15);}
.file-icon.sheet{color:#4b9f72; background:rgba(70,170,110,0.15);}
.file-icon.zip{color:#c49a35; background:rgba(220,180,60,0.18);}
.file-owner{display:flex; align-items:center; gap:7px;}
.mini-avatar{width:20px; height:20px; display:grid; place-items:center; color:#fff; background:#1b9b8e; border-radius:50%; font-size:7px; font-weight:700;}
.star-btn{color:#d7a423; font-size:13px; margin-left:6px;}
.row-actions{display:flex; align-items:center; justify-content:flex-end; gap:4px; position:relative;}
.row-menu{color:var(--soft-muted); font-weight:bold; letter-spacing:2px; padding:6px 8px; border-radius:8px;}
.row-menu:hover{background:rgba(118,87,237,0.12);}
.empty-state{display:none; padding:46px 20px; text-align:center;}
.empty-state.visible{display:block;}
.empty-icon{color:var(--purple); font-size:26px;}
.empty-state h3{margin:10px 0 5px; font-family:"Space Grotesk",sans-serif; font-size:16px;}
.empty-state p{margin:0; color:var(--muted); font-size:12px;}
.toast{position:fixed; right:25px; bottom:25px; z-index:100; padding:13px 18px; color:#fff; background:rgba(23,33,43,0.85); backdrop-filter:blur(14px); border-radius:12px; box-shadow:0 8px 25px rgba(0,0,0,0.25); font-size:12px; opacity:0; pointer-events:none; transform:translateY(15px); transition:opacity .25s, transform .25s;}
.toast.show{opacity:1; transform:translateY(0);}
.dropdown{position:absolute; z-index:50; min-width:170px; padding:6px; border-radius:14px; background:rgba(255,255,255,0.82); backdrop-filter:blur(20px) saturate(180%); border:1px solid var(--glass-border); box-shadow:0 14px 30px rgba(33,43,54,0.2); display:none;}
.dropdown.open{display:block;}
.dropdown button{display:flex; width:100%; align-items:center; gap:9px; padding:9px 10px; border-radius:9px; font-size:12px; font-weight:600; color:var(--ink); text-align:left;}
.dropdown button:hover{background:rgba(118,87,237,0.12); color:var(--purple);}
.dropdown button.danger:hover{background:rgba(220,80,80,0.12); color:#c94b4b;}
.modal-overlay{position:fixed; inset:0; z-index:90; display:none; align-items:center; justify-content:center; background:rgba(20,20,30,0.28); backdrop-filter:blur(4px);}
.modal-overlay.open{display:flex;}
.modal{width:min(380px,88vw); padding:26px; border-radius:20px; background:rgba(255,255,255,0.78); backdrop-filter:blur(24px) saturate(180%); border:1px solid var(--glass-border); box-shadow:0 20px 50px rgba(33,43,54,0.3);}
.modal h3{font-family:"Space Grotesk",sans-serif; margin-bottom:10px;}
.modal p{color:var(--muted); font-size:13px; line-height:1.6; margin-bottom:18px;}
.modal-actions{display:flex; justify-content:flex-end; gap:10px;}
@media (max-width:1050px){ .sidebar{width:220px;} .cloud-illustration{right:-30px; opacity:.75;} .folder-grid{grid-template-columns:repeat(2,1fr);} }
@media (max-width:800px){
  .sidebar{position:fixed; z-index:20; left:-280px; top:0; bottom:0; transition:left .25s ease; border-radius:0 24px 24px 0;}
  .sidebar.open{left:0; box-shadow:10px 0 30px rgba(0,0,0,0.2);}
  .mobile-menu{display:block;}
  .topbar{gap:14px; margin:10px 10px 0;}
  .breadcrumb{flex:1;}
  .topbar-actions{gap:8px;}
  .search-box{width:160px;}
  .overview-grid{grid-template-columns:1fr;}
}
@media (max-width:580px){
  .topbar{height:66px; padding:0 16px;}
  .breadcrumb{font-size:11px;}
  .search-box{width:34px; padding:8px; border:0; background:transparent;}
  .search-box input,.search-box kbd{display:none;}
  .content{padding:26px 16px 50px;}
  .page-heading{display:block;}
  .heading-actions{margin-top:20px;}
  .welcome-card,.usage-card{padding:22px;}
  .cloud-illustration{right:-65px; opacity:.4;}
  .section-heading{align-items:flex-start;}
  .tabs{gap:13px;}
  .view-controls{display:none;}
  .folder-grid{grid-template-columns:1fr;}
  .file-table th:nth-child(n+3),.file-table td:nth-child(n+3){display:none;}
  .file-table th,.file-table td{padding:12px 10px;}
  .file-table th:first-child,.file-table td:first-child{width:70%;}
}

/* ===== AI Live Chat Widget ===== */
.chat-launcher{
  position:fixed; right:26px; bottom:26px; z-index:60;
  width:58px; height:58px; border-radius:50%;
  display:grid; place-items:center;
  background:linear-gradient(135deg,var(--purple),#9d78f1);
  color:#fff; font-size:24px; box-shadow:0 14px 30px rgba(118,87,237,0.4);
  transition:transform .2s ease, box-shadow .2s ease;
}
.chat-launcher:hover{ transform:translateY(-3px) scale(1.04); box-shadow:0 18px 36px rgba(118,87,237,0.5); }
.chat-launcher .chat-badge{
  position:absolute; top:-3px; right:-3px; width:16px; height:16px; border-radius:50%;
  background:#33c48a; border:2px solid #fff;
}
.chat-launcher .icon-chat{ display:block; }
.chat-launcher .icon-close{ display:none; font-size:22px; }
.chat-launcher.open .icon-chat{ display:none; }
.chat-launcher.open .icon-close{ display:block; }

.chat-panel{
  position:fixed; right:26px; bottom:96px; z-index:59;
  width:360px; max-width:calc(100vw - 40px);
  height:520px; max-height:calc(100vh - 150px);
  display:flex; flex-direction:column;
  border-radius:22px; overflow:hidden;
  opacity:0; transform:translateY(16px) scale(.97); pointer-events:none;
  transition:opacity .18s ease, transform .18s ease;
}
.chat-panel.open{ opacity:1; transform:translateY(0) scale(1); pointer-events:auto; }

.chat-header{
  display:flex; align-items:center; gap:11px; padding:16px 18px;
  background:linear-gradient(135deg,var(--purple),#9d78f1); color:#fff;
}
.chat-header .chat-avatar{
  width:36px; height:36px; border-radius:50%; display:grid; place-items:center;
  background:rgba(255,255,255,0.22); font-family:Georgia,serif; font-weight:bold; font-size:18px;
}
.chat-header .chat-title{ font-family:"Space Grotesk",sans-serif; font-weight:700; font-size:15px; line-height:1.2; }
.chat-header .chat-status{ font-size:11.5px; opacity:.85; display:flex; align-items:center; gap:5px; }
.chat-header .status-dot{ width:7px; height:7px; border-radius:50%; background:#33c48a; }
.chat-header .chat-close{ margin-left:auto; color:#fff; opacity:.85; font-size:18px; padding:4px; }
.chat-header .chat-close:hover{ opacity:1; }

.chat-messages{
  flex:1; overflow-y:auto; padding:16px; display:flex; flex-direction:column; gap:10px;
  background:linear-gradient(180deg,#f4f2fc 0%, #f0f4f2 100%);
}
.chat-msg{ display:flex; gap:8px; max-width:86%; }
.chat-msg.bot{ align-self:flex-start; }
.chat-msg.user{ align-self:flex-end; flex-direction:row-reverse; }
.chat-msg .bubble{
  padding:10px 13px; border-radius:14px; font-size:13.5px; line-height:1.45;
  box-shadow:0 6px 16px rgba(33,43,54,0.08);
}
.chat-msg.bot .bubble{ background:#fff; color:var(--ink); border-bottom-left-radius:4px; }
.chat-msg.user .bubble{ background:linear-gradient(135deg,var(--purple),#9d78f1); color:#fff; border-bottom-right-radius:4px; }
.chat-msg .avatar-sm{
  flex-shrink:0; width:26px; height:26px; border-radius:50%; display:grid; place-items:center;
  font-size:12px; font-weight:700;
}
.chat-msg.bot .avatar-sm{ background:var(--purple-soft); color:var(--purple-dark); }
.chat-msg.user .avatar-sm{ background:#e4e8f0; color:var(--muted); }

.chat-quick-replies{ display:flex; flex-wrap:wrap; gap:6px; padding:0 16px 10px; background:#f0f4f2; }
.chat-quick-replies button{
  font-size:12px; padding:7px 11px; border-radius:999px; background:#fff;
  color:var(--purple-dark); border:1px solid var(--purple-soft); font-weight:600;
  transition:background .15s ease;
}
.chat-quick-replies button:hover{ background:var(--purple-soft); }

.chat-typing{ display:flex; gap:4px; padding:11px 13px; }
.chat-typing span{
  width:6px; height:6px; border-radius:50%; background:var(--soft-muted);
  animation:chatTyping 1.1s infinite ease-in-out;
}
.chat-typing span:nth-child(2){ animation-delay:.15s; }
.chat-typing span:nth-child(3){ animation-delay:.3s; }
@keyframes chatTyping{ 0%,60%,100%{ transform:translateY(0); opacity:.4; } 30%{ transform:translateY(-4px); opacity:1; } }

.chat-input-row{
  display:flex; align-items:flex-end; gap:8px; padding:12px; background:#fff;
  border-top:1px solid rgba(0,0,0,0.06);
}
.chat-input-row textarea{
  flex:1; resize:none; max-height:90px; border:1px solid rgba(0,0,0,0.1); border-radius:14px;
  padding:10px 13px; font-size:13.5px; font-family:inherit; color:var(--ink); background:#f7f7fb;
}
.chat-input-row textarea:focus{ outline:2px solid var(--purple-soft); border-color:var(--purple); }
.chat-send{
  width:40px; height:40px; border-radius:50%; display:grid; place-items:center; flex-shrink:0;
  background:linear-gradient(135deg,var(--purple),#9d78f1); color:#fff; font-size:16px;
  transition:transform .15s ease;
}
.chat-send:hover{ transform:scale(1.06); }
.chat-send:disabled{ opacity:.5; cursor:default; transform:none; }

@media (max-width:580px){
  .chat-panel{ right:12px; left:12px; width:auto; bottom:88px; height:min(520px, calc(100vh - 140px)); }
  .chat-launcher{ right:16px; bottom:16px; }
}
