:root{font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color:#e8eaf2;background:#0f1117;--tg-viewport-height: 100vh;--glass-border: 1px solid rgba(255, 255, 255, .14)}*{box-sizing:border-box}html,body,#root{width:100%;height:100%;margin:0;padding:0;background:#0f1117}body{overflow:hidden;overscroll-behavior:none;color:#e8eaf2}.layout{position:relative;height:var(--tg-viewport-height);display:flex;flex-direction:column;background:radial-gradient(110% 80% at 0% 0%,rgba(125,101,255,.22),transparent 55%),radial-gradient(120% 90% at 100% 100%,rgba(45,178,255,.2),transparent 58%),linear-gradient(180deg,#0e1016,#0d0f14)}.glass{backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border:var(--glass-border);background:#14172180;box-shadow:0 12px 30px #0003}.topbar{position:sticky;top:0;z-index:24;display:flex;align-items:center;justify-content:space-between;min-height:56px;padding:calc(env(safe-area-inset-top) + 12px) 14px 10px;border-left:none;border-right:none;border-top:none;border-radius:0 0 18px 18px}.topbar-title{position:absolute;left:50%;transform:translate(-50%);font-size:15px;font-weight:700;color:#f5f6fb}.icon-btn,.account-btn{border:var(--glass-border);background:#ffffff14;color:#f4f7ff;border-radius:14px;padding:8px 12px;cursor:pointer;transition:transform .18s ease,background .18s ease,opacity .18s ease}.icon-btn{width:40px;padding:8px 0}.account-btn{font-size:12px}.icon-btn:active,.account-btn:active{transform:scale(.97) translateZ(0)}.toast{position:fixed;left:50%;top:calc(env(safe-area-inset-top) + 76px);transform:translate(-50%);z-index:120;border-radius:14px;padding:10px 14px;font-size:13px;border:var(--glass-border);background:#101219eb;box-shadow:0 14px 26px #0000004d;animation:fade-slide .22s ease}.warning{margin:8px 12px 0;border-radius:12px;padding:9px 10px;font-size:13px;color:#ffe9cf;background:#8456245c;border:1px solid rgba(255,191,123,.32)}.body{position:relative;flex:1;min-height:0}.main{height:100%}.panel{margin:12px;padding:18px;border-radius:20px;line-height:1.5}.chat-area{height:100%;overflow-y:auto;padding:14px 12px 122px;scroll-behavior:smooth}.chat-area.home{display:flex;align-items:center;justify-content:center}.home-center{color:#edf0ffb3;font-size:15px}.message-wrap{margin-bottom:10px}.bubble{position:relative;width:fit-content;max-width:90%;padding:11px 14px;border-radius:20px;white-space:pre-wrap;word-break:break-word;line-height:1.43;font-size:15px}.bubble.user{margin-left:auto;color:#fff;background:linear-gradient(135deg,#776bffe6,#5fcbffe0);box-shadow:0 8px 22px #6075ff52}.bubble.assistant{margin-right:auto;border:var(--glass-border);background:#ffffff14;color:#eef0fc}.appear{animation:bubble-appear .22s ease both}.copy-btn{position:absolute;right:6px;bottom:-18px;width:22px;height:22px;border-radius:999px;border:1px solid rgba(255,255,255,.3);background:#00000073;color:#e7ebff;font-size:12px;opacity:0;transition:opacity .18s ease}.bubble:hover .copy-btn,.bubble:focus-within .copy-btn{opacity:1}.message-actions{display:flex;justify-content:flex-start;padding-left:2px;margin-top:6px}.action-btn{border:var(--glass-border);border-radius:999px;background:#ffffff1a;color:#dbe3ff;font-size:12px;padding:5px 10px;cursor:pointer;transition:transform .18s ease,background .18s ease}.action-btn:active{transform:scale(.97) translateZ(0)}.typing-bubble{min-width:64px}.typing-dots{display:inline-flex;align-items:center;gap:6px}.typing-dots span{width:7px;height:7px;border-radius:999px;background:#e6ebffdb;animation:typing-dot 1.1s infinite;transform:translateZ(0)}.typing-dots span:nth-child(2){animation-delay:.14s}.typing-dots span:nth-child(3){animation-delay:.28s}.msg-image{width:100%;max-width:320px;border-radius:14px;display:block}.drawer-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:60;background:#08080c80}.drawer{width:min(84vw,340px);height:100%;padding:calc(env(safe-area-inset-top) + 12px) 12px 12px;border-top:none;border-left:none;border-bottom:none;border-radius:0 22px 22px 0}.drawer-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.new-chat{width:100%;margin-bottom:12px;border:var(--glass-border);border-radius:13px;background:#ffffff1f;color:#f0f2ff;padding:10px 12px}.drawer-chat{display:flex;align-items:center;justify-content:space-between;gap:8px;border-radius:14px;padding:10px 11px;margin-bottom:8px;border:var(--glass-border);background:#ffffff14;cursor:pointer}.drawer-chat.active{background:#6c8aff42}.drawer-delete{border:none;background:transparent;color:#e0e5ff}.cgpt-bar{position:fixed;left:10px;right:10px;bottom:8px;z-index:50;display:flex;align-items:flex-end;gap:10px;padding:10px;border-radius:24px;padding-bottom:calc(10px + env(safe-area-inset-bottom))}.cgpt-plus,.cgpt-mic,.cgpt-send,.cgpt-stop{border:var(--glass-border);border-radius:16px;width:44px;height:44px;background:#ffffff24;color:#f6f7ff;cursor:pointer;transition:transform .16s ease,opacity .16s ease,background .16s ease}.cgpt-plus{width:52px;height:52px;border-radius:18px}.cgpt-send{background:linear-gradient(140deg,#8b84ff,#51c7ff);color:#fff;border:0}.cgpt-stop{background:#ff747459}.cgpt-mic.rec{background:#ff535399}.cgpt-input-wrap{flex:1;display:flex;align-items:flex-end;gap:8px;border-radius:21px;min-height:52px;padding:8px}.voice-wave{display:inline-flex;align-items:flex-end;gap:3px;height:20px;padding:0 3px 2px}.voice-wave span{width:3px;border-radius:999px;background:#92e1ffeb;animation:wave .78s ease-in-out infinite;transform:translateZ(0)}.voice-wave span:nth-child(1){height:6px}.voice-wave span:nth-child(2){height:10px;animation-delay:60ms}.voice-wave span:nth-child(3){height:16px;animation-delay:.12s}.voice-wave span:nth-child(4){height:10px;animation-delay:.18s}.voice-wave span:nth-child(5){height:6px;animation-delay:.24s}.cgpt-input{flex:1;border:none;outline:none;resize:none;color:#f4f6ff;background:transparent;font-size:16px;line-height:1.38;max-height:160px}.skeleton-list{display:grid;gap:10px}.skeleton{border-radius:14px;background:linear-gradient(100deg,#ffffff14 10%,#fff3,#ffffff14 60%);background-size:200% 100%;animation:shimmer 1.4s infinite linear}.skeleton-btn{width:40px;height:36px}.skeleton-title{width:86px;height:16px}.skeleton-bubble{width:70%;height:48px}.skeleton-bubble.short{width:46%}.skeleton-bubble.user{width:58%;margin-left:auto}button:disabled,textarea:disabled,select:disabled{opacity:.56;cursor:not-allowed}@keyframes bubble-appear{0%{opacity:0;transform:translateY(10px) translateZ(0)}to{opacity:1;transform:translateY(0) translateZ(0)}}@keyframes typing-dot{0%,75%,to{opacity:.3;transform:translateY(0) translateZ(0)}35%{opacity:1;transform:translateY(-3px) translateZ(0)}}@keyframes shimmer{0%{background-position:100% 0}to{background-position:-100% 0}}@keyframes fade-slide{0%{opacity:0;transform:translate(-50%,-4px)}to{opacity:1;transform:translate(-50%)}}@keyframes wave{0%,to{transform:scaleY(.7) translateZ(0);opacity:.55}50%{transform:scaleY(1.2) translateZ(0);opacity:1}}
