
.cs-titlebar{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:0 0 20px}
.cs-titlebar h1{font-size:31px;margin:8px 0}.cs-titlebar p{margin:0}
.cs-workspace{display:grid;grid-template-columns:265px minmax(0,1fr);background:#171b29;border:1px solid #40374f;border-radius:19px;overflow:hidden;min-height:630px}
.cs-side{display:flex;flex-direction:column;padding:17px;gap:12px;border-right:1px solid #40384f;background:#17192a;min-width:0}
.cs-side-head{display:flex;justify-content:space-between;align-items:center;gap:8px}
.cs-threads{display:flex;flex-direction:column;gap:8px;flex:1;overflow:auto;max-height:340px}
.cs-thread{display:flex;flex-direction:column;gap:6px;padding:12px;text-align:left;color:#f1e8fb;background:#242437;border-radius:10px;border:1px solid #4b415a}
.cs-thread.active{background:#3b2b4d;border-color:#b788e7}.cs-thread small{color:#afa5bc}
.cs-character{border-top:1px solid #494055;padding-top:16px}
.cs-character p{font-size:13px;color:#bcb0ca}
.cs-avatar{width:50px;height:50px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(140deg,#b98ce6,#6c527f);color:#25152e;font-size:23px;font-weight:750;margin-bottom:13px}
.cs-chat{display:flex;min-width:0;flex-direction:column}
.cs-header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:17px 20px;border-bottom:1px solid #423951}
.cs-header .hint{margin:5px 0 0}.cs-badge{font-size:10px;color:#d7b8ec;border:1px solid #775a89;border-radius:30px;padding:7px 10px;white-space:nowrap;letter-spacing:1px}
.cs-messages{display:flex;flex-direction:column;gap:12px;background:radial-gradient(ellipse at 50% 10%,#2c233b55,transparent 65%),#101421;min-height:300px;max-height:450px;padding:23px;overflow-y:auto}
.cs-empty{margin:auto;text-align:center;max-width:400px;padding:20px}.cs-empty span{color:#b88ee8;font-size:34px}.cs-empty p{color:#b5a9c4;line-height:1.6}
.cs-bubble{align-self:flex-end;max-width:85%;border:1px solid #8b6aa0;border-radius:16px;background:#59406e;padding:13px 16px;white-space:pre-wrap;overflow-wrap:anywhere}
.cs-bubble small{display:block;color:#e9d3f8;font-size:10px;letter-spacing:.5px;margin-bottom:8px}
.cs-composer{border-top:1px solid #423850;padding:18px 20px}.cs-note{border:1px solid #594469;background:#292238;color:#d9c4e7;font-size:12px;padding:11px 14px;border-radius:10px;margin-bottom:16px;line-height:1.5}
.cs-composer textarea{min-height:78px}.cs-controls{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:10px}
.cs-controls .hint{margin:0}.cs-status{color:#cdb0e9;background:#362641;border:1px solid #5d4470;padding:10px;border-radius:9px;margin:12px 0 0}
@media(max-width:720px){.cs-titlebar{flex-direction:column;align-items:flex-start}.cs-workspace{grid-template-columns:1fr}.cs-side{border-right:0;border-bottom:1px solid #40384f}.cs-threads{flex-direction:row;max-height:none;overflow-x:auto}.cs-thread{min-width:150px}.cs-character{display:none}.cs-header,.cs-composer{padding:13px}.cs-messages{min-height:300px;max-height:440px;padding:13px}.cs-controls{flex-wrap:wrap;justify-content:flex-end}}
.cs-bubble.from-ai{align-self:flex-start;background:#242737;border-color:#554566}.cs-bubble.from-user{align-self:flex-end}
