:root{--primary: #1a73e8;--primary-light: #e8f0fe;--primary-dark: #1557b0;--primary-hover: #1b66c9;--bg: #f0f2f5;--bg-card: #ffffff;--bg-sidebar: #1e293b;--bg-sidebar-hover: #334155;--bg-sidebar-active: #1a73e8;--text: #1e293b;--text-secondary: #475569;--text-muted: #94a3b8;--text-sidebar: #cbd5e1;--text-sidebar-active: #ffffff;--border: #e2e8f0;--success: #22c55e;--success-bg: #f0fdf4;--warning: #f59e0b;--warning-bg: #fffbeb;--danger: #ef4444;--danger-bg: #fef2f2;--radius: 8px;--radius-lg: 12px;--shadow: 0 1px 2px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.1);--shadow-lg: 0 4px 6px rgba(0,0,0,.07), 0 10px 15px rgba(0,0,0,.1);--transition: all .2s ease}*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,PingFang SC,Noto Sans SC,Microsoft YaHei,sans-serif;background:var(--bg);color:var(--text);height:100vh;-webkit-font-smoothing:antialiased;font-size:14px;line-height:1.5}#root{height:100vh}input,button,select,textarea{font-family:inherit}::-webkit-scrollbar{width:4px;height:4px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:2px}::-webkit-scrollbar-thumb:hover{background:#94a3b8}.login-page{display:flex;align-items:center;justify-content:center;min-height:100vh;background:linear-gradient(135deg,#1a73e8,#1557b0,#0d47a1);position:relative}.login-page:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background-image:radial-gradient(2px 2px at 20px 30px,rgba(255,255,255,.15),transparent),radial-gradient(2px 2px at 40px 70px,rgba(255,255,255,.1),transparent),radial-gradient(2px 2px at 50px 160px,rgba(255,255,255,.12),transparent),radial-gradient(2px 2px at 90px 40px,rgba(255,255,255,.1),transparent),radial-gradient(2px 2px at 130px 80px,rgba(255,255,255,.15),transparent),radial-gradient(2px 2px at 160px 30px,rgba(255,255,255,.08),transparent);background-size:200px 200px;pointer-events:none}.login-card{background:var(--bg-card);padding:40px;border-radius:16px;box-shadow:0 20px 60px #0003;width:400px;position:relative;animation:fadeUp .4s ease}@keyframes fadeUp{0%{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}.login-card .brand{text-align:center;margin-bottom:28px}.login-card .brand img{width:56px;height:56px;border-radius:12px;margin-bottom:8px}.login-card .brand h1{font-size:22px;font-weight:700;color:var(--text);letter-spacing:1px}.login-card .brand p{font-size:13px;color:var(--text-muted);margin-top:4px}.login-card .tabs{display:flex;margin-bottom:24px;background:var(--bg);border-radius:var(--radius);padding:2px}.login-card .tabs button{flex:1;padding:9px;border:none;background:transparent;cursor:pointer;font-size:14px;font-weight:500;border-radius:6px;transition:var(--transition);color:var(--text-secondary)}.login-card .tabs button.active{background:var(--bg-card);color:var(--primary);box-shadow:var(--shadow)}.form-group{margin-bottom:16px}.form-group label{display:block;font-size:13px;font-weight:500;margin-bottom:5px;color:var(--text-secondary)}.form-group .input-wrap{position:relative}.form-group .input-icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);font-size:15px;pointer-events:none}.form-group input:not([type]),.form-group input[type=text],.form-group input[type=password],.form-group input[type=number],.form-group select{width:100%;padding:10px 12px 10px 38px;border:1.5px solid var(--border);border-radius:var(--radius);font-size:14px;background:var(--bg);transition:var(--transition);outline:none;color:var(--text)}.form-group input:not([type]):focus,.form-group input[type=text]:focus,.form-group input[type=password]:focus,.form-group select:focus{border-color:var(--primary);background:#fff;box-shadow:0 0 0 3px #1a73e81a}.form-group input[type=checkbox]{width:auto;margin:0;padding:0}.form-group input::placeholder{color:var(--text-muted)}.btn{width:100%;padding:11px;background:var(--primary);color:#fff;border:none;border-radius:var(--radius);font-size:15px;font-weight:600;cursor:pointer;transition:var(--transition)}.btn:hover{background:var(--primary-hover);box-shadow:0 2px 8px #1a73e84d}.btn:active{transform:translateY(0)}.btn:disabled{opacity:.5;cursor:not-allowed;box-shadow:none}.error-msg{background:var(--danger-bg);color:var(--danger);padding:10px 14px;border-radius:var(--radius);font-size:13px;margin-bottom:16px;border:1px solid #fecaca;animation:shake .3s}@keyframes shake{0%,to{transform:translate(0)}25%{transform:translate(-4px)}75%{transform:translate(4px)}}.tip{text-align:center;font-size:12px;color:var(--text-muted);margin-top:12px}.app-layout{display:flex;height:100vh}.sidebar{width:240px;height:100vh;background:var(--bg-sidebar);display:flex;flex-direction:column;flex-shrink:0;overflow:hidden}.sidebar-logo{padding:18px 20px;border-bottom:1px solid rgba(255,255,255,.08);display:flex;align-items:center;gap:10px}.sidebar-logo img{width:32px;height:32px;border-radius:8px}.sidebar-logo .brand-text h2{font-size:16px;color:#fff;font-weight:600}.sidebar-logo .brand-text span{font-size:11px;color:var(--text-sidebar);opacity:.6}.sidebar-menu{flex:1;padding:12px 8px;overflow-y:auto}.menu-item{display:flex;align-items:center;gap:10px;padding:10px 14px;border-radius:8px;cursor:pointer;color:var(--text-sidebar);font-size:14px;transition:var(--transition);margin-bottom:2px;text-decoration:none}.menu-item:hover{background:var(--bg-sidebar-hover);color:#fff}.menu-item.active{background:var(--bg-sidebar-active);color:#fff;font-weight:500}.menu-item .icon{font-size:18px;width:24px;text-align:center}.menu-divider{height:1px;background:#ffffff14;margin:12px 14px}.sidebar-footer{padding:14px 16px;border-top:1px solid rgba(255,255,255,.08);display:flex;align-items:center;justify-content:space-between}.sidebar-footer .user-badge{display:flex;align-items:center;gap:8px;min-width:0}.sidebar-footer .avatar{width:32px;height:32px;border-radius:50%;background:var(--primary);color:#fff;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:600;flex-shrink:0}.sidebar-footer .user-info .name{font-size:13px;color:#fff;font-weight:500}.sidebar-footer .user-info .role{font-size:11px;color:var(--text-sidebar);opacity:.7}.sidebar-footer .actions{display:flex;align-items:center;gap:4px}.sidebar-footer .icon-btn{width:32px;height:32px;border-radius:8px;border:none;background:transparent;color:var(--text-sidebar);cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:16px;position:relative;transition:var(--transition)}.sidebar-footer .icon-btn:hover{background:var(--bg-sidebar-hover);color:#fff}.notif-badge{position:absolute;top:2px;right:2px;min-width:16px;height:16px;border-radius:8px;background:var(--danger);color:#fff;font-size:10px;font-weight:600;display:flex;align-items:center;justify-content:center;padding:0 4px}.main-content{flex:1;display:flex;flex-direction:column;overflow:hidden}.page-header{padding:20px 28px 16px;background:var(--bg-card);border-bottom:1px solid var(--border)}.page-header h2{font-size:18px;font-weight:600}.page-header p{font-size:13px;color:var(--text-muted);margin-top:2px}.page-body{flex:1;overflow-y:auto;padding:24px 28px}.card{background:var(--bg-card);border-radius:var(--radius-lg);border:1px solid var(--border);padding:20px;box-shadow:var(--shadow)}.table-wrap{background:var(--bg-card);border-radius:var(--radius-lg);border:1px solid var(--border);overflow:hidden}table{width:100%;border-collapse:collapse}th{text-align:left;padding:12px 16px;font-size:12px;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.5px;border-bottom:1px solid var(--border);background:var(--bg)}td{padding:12px 16px;font-size:14px;border-bottom:1px solid var(--border);color:var(--text)}tr:last-child td{border-bottom:none}tr:hover td{background:#f8fafc}.tag{display:inline-flex;align-items:center;padding:2px 10px;border-radius:12px;font-size:12px;font-weight:500}.tag.active{background:var(--success-bg);color:var(--success)}.tag.pending{background:var(--warning-bg);color:var(--warning)}.tag.disabled{background:#f1f5f9;color:var(--text-muted)}.tag.deleted{background:#fef2f2;color:var(--danger)}.btn-sm{padding:6px 14px;border-radius:6px;border:1px solid var(--border);background:#fff;cursor:pointer;font-size:13px;transition:var(--transition);color:var(--text-secondary)}.btn-sm:hover{border-color:var(--primary);color:var(--primary)}.btn-sm.primary{background:var(--primary);color:#fff;border-color:var(--primary)}.btn-sm.primary:hover{background:var(--primary-hover)}.btn-sm.danger{color:var(--danger)}.btn-sm.danger:hover{border-color:var(--danger);color:var(--danger);background:var(--danger-bg)}.btn-text{background:none;border:none;color:var(--primary);cursor:pointer;font-size:13px;padding:4px 8px;border-radius:4px;transition:var(--transition)}.btn-text:hover{background:var(--primary-light)}.btn-text.danger{color:var(--danger)}.btn-text.danger:hover{background:var(--danger-bg)}.search-bar{display:flex;align-items:center;gap:8px;margin-bottom:16px}.search-bar input{flex:1;padding:9px 14px;border:1.5px solid var(--border);border-radius:var(--radius);font-size:14px;outline:none;transition:var(--transition);background:var(--bg-card)}.search-bar input:focus{border-color:var(--primary);box-shadow:0 0 0 3px #1a73e81a}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0006;display:flex;align-items:center;justify-content:center;z-index:100;animation:fadeIn .15s}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.modal{background:var(--bg-card);border-radius:var(--radius-lg);width:480px;max-height:80vh;overflow-y:auto;box-shadow:var(--shadow-lg);animation:scaleIn .15s}@keyframes scaleIn{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}.modal-header{padding:20px 24px 0;display:flex;align-items:center;justify-content:space-between}.modal-header h3{font-size:16px;font-weight:600}.modal-close{width:28px;height:28px;border-radius:6px;border:none;background:transparent;cursor:pointer;font-size:18px;color:var(--text-muted);display:flex;align-items:center;justify-content:center}.modal-close:hover{background:var(--bg);color:var(--text)}.modal-body{padding:20px 24px}.modal-footer{padding:16px 24px;display:flex;gap:8px;justify-content:flex-end;border-top:1px solid var(--border)}.org-tree{padding:0}.org-dept{margin-bottom:0}.org-dept-header{display:flex;align-items:center;gap:8px;padding:12px 16px;cursor:pointer;border-radius:var(--radius);transition:var(--transition);font-weight:500;color:var(--text)}.org-dept-header:hover{background:var(--primary-light)}.org-dept-header .arrow{font-size:10px;transition:var(--transition);color:var(--text-muted)}.org-dept-header .arrow.open{transform:rotate(90deg)}.org-dept-header .count{font-size:12px;color:var(--text-muted);font-weight:400;margin-left:auto}.org-member{display:flex;align-items:center;gap:10px;padding:8px 16px 8px 36px;cursor:pointer;border-radius:6px;transition:var(--transition);color:var(--text-secondary);font-size:14px}.org-member:hover{background:var(--bg);color:var(--text)}.org-member .avatar-sm{width:28px;height:28px;border-radius:50%;background:var(--primary-light);color:var(--primary);display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:600}.org-member .role-tag{font-size:11px;color:var(--text-muted);margin-left:auto}.workspace-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:16px}.ws-card{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius-lg);padding:20px;cursor:pointer;transition:var(--transition);text-align:center}.ws-card:hover{border-color:var(--primary);box-shadow:0 4px 12px #1a73e81f;transform:translateY(-2px)}.ws-card .icon{font-size:32px;margin-bottom:10px}.ws-card .name{font-size:14px;font-weight:600;color:var(--text)}.ws-card .desc{font-size:12px;color:var(--text-muted);margin-top:4px}.ws-card.add-card{border:2px dashed var(--border);display:flex;flex-direction:column;align-items:center;justify-content:center}.ws-card.add-card:hover{border-color:var(--primary);background:var(--primary-light)}.ws-card.add-card .plus{font-size:32px;color:var(--text-muted);margin-bottom:8px}.im-tabs{display:flex;border-bottom:1px solid var(--border);background:var(--bg-card)}.im-tab{flex:1;text-align:center;padding:10px 4px;font-size:13px;font-weight:500;cursor:pointer;color:var(--text-muted);transition:var(--transition);position:relative;border-bottom:2px solid transparent}.im-tab:hover{color:var(--text);background:#f8fafc}.im-tab.active{color:var(--primary);border-bottom-color:var(--primary);font-weight:600}.im-unread-badge{display:inline-flex;align-items:center;justify-content:center;min-width:16px;height:16px;border-radius:8px;background:var(--danger);color:#fff;font-size:10px;font-weight:600;padding:0 4px;margin-left:4px;vertical-align:top}.im-chat-header{display:flex;align-items:center;gap:10px;padding:12px 20px;border-bottom:1px solid var(--border);background:var(--bg-card);flex-shrink:0}.im-messages{background:#f8fafc}.im-indicator{font-size:12px;margin-left:6px;opacity:.6}.org-member:hover .im-indicator{opacity:1}.msg-status{font-size:10px;color:var(--text-muted);margin-top:2px}.chat-container{display:flex;height:100%}.chat-sidebar{width:280px;border-right:1px solid var(--border);background:var(--bg-card);display:flex;flex-direction:column}.chat-sidebar-header{padding:16px;border-bottom:1px solid var(--border)}.chat-sessions{flex:1;overflow-y:auto;padding:8px}.chat-session{padding:10px 12px;border-radius:var(--radius);cursor:pointer;transition:var(--transition);margin-bottom:2px}.chat-session:hover{background:var(--bg)}.chat-session.active{background:var(--primary-light)}.chat-session .title{font-size:13px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-session .meta{font-size:11px;color:var(--text-muted);margin-top:2px}.chat-main-area{flex:1;display:flex;flex-direction:column}.chat-messages{flex:1 1 0;overflow-y:auto;padding:16px 24px;min-height:0}.chat-input-area{padding:16px 24px;border-top:1px solid var(--border);background:var(--bg-card);flex-shrink:0}.chat-input-wrap{display:flex;gap:8px;background:var(--bg);border-radius:24px;padding:4px;border:1.5px solid var(--border);transition:var(--transition)}.chat-input-wrap:focus-within{border-color:var(--primary);background:#fff;box-shadow:0 0 0 3px #1a73e814}.chat-input-wrap input{flex:1;padding:10px 16px;border:none;background:transparent;font-size:14px;outline:none}.chat-input-wrap .send-btn{width:36px;height:36px;border-radius:50%;border:none;background:var(--primary);color:#fff;cursor:pointer;transition:var(--transition);margin:2px}.chat-input-wrap .send-btn:hover{background:var(--primary-dark);transform:scale(1.05)}.chat-input-wrap .send-btn:disabled{opacity:.4;cursor:not-allowed;transform:none}.msg-row{display:flex;gap:8px;margin-bottom:4px;max-width:75%}.msg-row.user{flex-direction:row-reverse;margin-left:auto}.msg-avatar{width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:13px;flex-shrink:0;font-weight:600}.msg-row.user .msg-avatar{background:var(--primary);color:#fff}.msg-row.assistant .msg-avatar{background:var(--bg);font-size:18px;overflow:hidden}.avatar-img{width:100%;height:100%;object-fit:cover;border-radius:50%}.thinking-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#1a73e8;margin:0 2px;animation:thinkingPulse 1.4s ease-in-out infinite}.thinking-dot:nth-child(2){animation-delay:.2s}.thinking-dot:nth-child(3){animation-delay:.4s}.thinking-text{display:inline-block;vertical-align:middle;font-size:13px;color:#888;margin-left:6px}@keyframes thinkingPulse{0%,80%,to{opacity:.3;transform:scale(.7)}40%{opacity:1;transform:scale(1)}}.msg-bubble{padding:8px 14px;border-radius:12px;font-size:14px;line-height:1.6;white-space:pre-wrap;word-break:break-word}.msg-row.user .msg-bubble,.msg-user{background:var(--primary);color:#fff;border-bottom-right-radius:4px}.msg-row.assistant .msg-bubble,.msg-ai{background:var(--bg-card);border:1px solid var(--border);border-bottom-left-radius:4px}.msg-error{background:#fef2f2;border:1px solid #fecaca;color:#991b1b;border-radius:8px;font-size:13px}.msg-row.system-error{justify-content:center}.msg-row.system-error .msg-bubble{max-width:80%;text-align:center}.msg-row.recalled{justify-content:center}.msg-row.recalled .msg-bubble{max-width:60%;text-align:center;background:#f8fafc;border:1px solid var(--border);color:#94a3b8;font-size:12px;border-radius:8px}.msg-more-btn{position:absolute;top:-4px;right:-4px;width:22px;height:22px;border-radius:50%;border:1px solid var(--border);background:#fff;color:#94a3b8;font-size:12px;line-height:1;cursor:pointer;display:none;align-items:center;justify-content:center;z-index:5;padding:0}.msg-row:hover .msg-more-btn{display:flex}.msg-more-btn:hover{background:var(--primary-light);color:var(--primary);border-color:var(--primary)}.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;color:var(--text-muted);gap:8px}.empty-state .icon{font-size:48px;opacity:.3}.empty-state .text{font-size:15px}.empty-state .hint{font-size:12px;opacity:.7}.notif-panel{position:absolute;bottom:60px;left:50px;width:360px;background:var(--bg-card);border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);border:1px solid var(--border);z-index:50}.notif-panel-header{padding:14px 16px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between}.notif-panel-header h4{font-size:14px;font-weight:600}.notif-panel-header .btn-text{font-size:12px}.notif-item{padding:12px 16px;display:flex;gap:10px;border-bottom:1px solid var(--border);cursor:pointer;transition:var(--transition)}.notif-item:hover{background:var(--bg)}.notif-item:last-child{border-bottom:none}.notif-item .notif-icon{font-size:18px;margin-top:2px}.notif-item .notif-content .notif-title{font-size:13px;font-weight:500}.notif-item .notif-content .notif-desc{font-size:12px;color:var(--text-muted);margin-top:2px}.notif-item .notif-content .notif-time{font-size:11px;color:var(--text-muted);margin-top:4px}.notif-item.unread{background:var(--primary-light)}.notif-item.unread .notif-title{color:var(--primary)}.profile-page{max-width:640px;margin:0 auto;display:flex;flex-direction:column;height:100%;overflow:hidden}.profile-page .page-body{flex:1;overflow-y:auto;padding:16px 28px 24px}.profile-card{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius-lg);padding:20px 24px;display:flex;flex-direction:column;height:100%}.profile-card .profile-fields{flex:1;overflow-y:auto;min-height:0}.profile-avatar{display:flex;flex-direction:column;align-items:center;gap:8px;margin-bottom:20px}.avatar-lg{width:72px;height:72px;border-radius:50%;background:var(--primary);color:#fff;display:flex;align-items:center;justify-content:center;font-size:28px;font-weight:600}.profile-role-tag{font-size:12px;color:var(--primary);background:var(--primary-light);padding:4px 12px;border-radius:20px;font-weight:500}.profile-fields{display:flex;flex-direction:column;gap:0;flex:1;overflow-y:auto;min-height:0}.profile-field{display:flex;align-items:flex-start;padding:10px 0;border-bottom:1px solid #f1f5f9;gap:12px}.profile-field:last-child{border-bottom:none}.profile-label{width:120px;font-size:13px;color:var(--text-muted);flex-shrink:0;padding-top:6px}.profile-value{font-size:14px;color:var(--text);padding-top:4px}.profile-input{flex:1;border:1px solid var(--border);border-radius:6px;padding:8px 12px;font-size:14px;outline:none;transition:var(--transition);width:100%;box-sizing:border-box}.profile-input:focus{border-color:var(--primary);box-shadow:0 0 0 3px #1a73e81a}.profile-cap-list{display:flex;flex-wrap:wrap;gap:6px;padding-top:2px}.profile-tag{display:inline-flex;padding:4px 12px;background:var(--primary-light);color:var(--primary);border-radius:6px;font-size:12px;font-weight:500;white-space:nowrap}.profile-msg{text-align:center;font-size:14px;padding:12px;margin-top:16px;border-radius:8px;background:var(--success-bg);color:var(--success)}.profile-msg.error{background:var(--danger-bg);color:var(--danger)}.profile-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px;padding-top:14px;border-top:1px solid var(--border)}.input-d-container{border-top:1px solid var(--border);background:#fff}.preview-bar{display:flex;gap:8px;padding:10px 16px 6px;flex-wrap:wrap;align-items:center;border-bottom:1px solid #f1f5f9}.preview-item{position:relative;width:44px;height:44px;border-radius:8px;overflow:hidden;border:1px solid var(--border);flex-shrink:0;background:#f8fafc}.preview-item img{width:100%;height:100%;object-fit:cover}.preview-item .file-icon{width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:16px}.preview-item .remove-preview{position:absolute;top:-4px;right:-4px;width:16px;height:16px;border-radius:50%;background:var(--danger);border:2px solid white;color:#fff;font-size:8px;line-height:12px;text-align:center;cursor:pointer;padding:0;transition:transform .15s}.preview-item .remove-preview:hover{transform:scale(1.2)}.file-count-label{font-size:11px;color:var(--text-muted);padding:0 4px}.toolbar-d{display:flex;align-items:center;gap:2px;padding:6px 12px 0}.toolbar-d .tool-group{display:flex;align-items:center;gap:2px}.toolbar-d .divider{width:1px;height:20px;background:var(--border);margin:0 6px;flex-shrink:0}.toolbar-d .tool-btn{width:30px;height:30px;border:none;background:transparent;border-radius:6px;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--text-muted);transition:all .15s ease;position:relative}.toolbar-d .tool-btn:hover{background:#f1f5f9;color:var(--primary)}.toolbar-d .tool-btn:disabled{opacity:.3;cursor:not-allowed}.toolbar-d .tool-btn svg{width:18px;height:18px}.toolbar-d .tool-btn .tooltip{position:absolute;bottom:calc(100% + 6px);left:50%;transform:translate(-50%);background:#1e293b;color:#fff;font-size:11px;padding:3px 8px;border-radius:4px;white-space:nowrap;opacity:0;pointer-events:none;transition:all .15s;z-index:10}.toolbar-d .tool-btn:hover .tooltip{opacity:1}.toolbar-d .right-tools{margin-left:auto;display:flex;align-items:center;gap:4px}.voice-status{display:flex;align-items:center;gap:6px;font-size:11px;color:var(--danger);font-weight:500;padding:0 8px;animation:fadeIn .2s}.wave-group{display:flex;align-items:center;gap:2px;height:18px}.wave-group span{width:3px;background:var(--danger);border-radius:2px;animation:wave-d .8s infinite alternate}.wave-group span:nth-child(1){height:6px;animation-delay:0s}.wave-group span:nth-child(2){height:12px;animation-delay:.1s}.wave-group span:nth-child(3){height:16px;animation-delay:.2s}.wave-group span:nth-child(4){height:10px;animation-delay:.3s}.wave-group span:nth-child(5){height:14px;animation-delay:.15s}@keyframes wave-d{0%{transform:scaleY(.6)}to{transform:scaleY(1.2)}}.input-bottom-d{display:flex;align-items:flex-end;padding:6px 12px 10px;gap:8px}.input-bottom-d .textarea-wrap{flex:1;position:relative}.input-bottom-d textarea{width:100%;border:none;outline:none;font-size:14px;font-family:inherit;resize:none;min-height:40px;max-height:120px;line-height:1.5;padding:8px 0 4px;color:var(--text);background:transparent}.input-bottom-d textarea::placeholder{color:var(--text-muted)}.input-bottom-d textarea:disabled{opacity:.5}.input-bottom-d textarea.listening::placeholder{color:var(--danger);font-weight:500}.input-bottom-d .right-actions{display:flex;align-items:center;gap:4px;flex-shrink:0}.input-bottom-d .char-count{font-size:11px;color:#cbd5e1;padding-right:4px;-webkit-user-select:none;user-select:none}.input-bottom-d .action-btn{width:36px;height:36px;border:none;background:transparent;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--text-muted);transition:all .15s}.input-bottom-d .action-btn:hover{background:#f1f5f9;color:var(--primary)}.input-bottom-d .action-btn:disabled{opacity:.3;cursor:not-allowed}.input-bottom-d .action-btn svg{width:20px;height:20px}.input-bottom-d .action-btn.recording{color:var(--danger);animation:pulse-mic 1.2s infinite;background:#fef2f2}@keyframes pulse-mic{0%,to{box-shadow:0 0 #ef44444d}50%{box-shadow:0 0 0 8px #ef444400}}.input-bottom-d .send-btn-d{width:38px;height:38px;border:none;background:linear-gradient(135deg,var(--primary),#2563eb);border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .15s;box-shadow:0 2px 8px #1a73e840;flex-shrink:0}.input-bottom-d .send-btn-d:hover{transform:scale(1.05);box-shadow:0 4px 12px #1a73e859}.input-bottom-d .send-btn-d:active{transform:scale(.95)}.input-bottom-d .send-btn-d svg{width:18px;height:18px;fill:#fff}.input-bottom-d .send-btn-d:disabled{opacity:.4;cursor:not-allowed;transform:none;box-shadow:none}.input-bottom-d .send-btn-d.stop-btn{background:linear-gradient(135deg,#ef4444,#dc2626);box-shadow:0 2px 8px #ef44444d;animation:pulse-stop 1.2s infinite}.input-bottom-d .send-btn-d.stop-btn:hover{background:linear-gradient(135deg,#dc2626,#b91c1c);box-shadow:0 4px 14px #ef444473;transform:scale(1.08)}@keyframes pulse-stop{0%,to{box-shadow:0 0 #ef444466}50%{box-shadow:0 0 0 10px #ef444400}}.upload-progress-bar{display:flex;align-items:center;gap:8px;padding:4px 12px 8px;position:relative}.upload-progress-fill{flex:1;height:4px;background:#e2e8f0;border-radius:2px;overflow:hidden;position:relative}.upload-progress-fill:after{content:"";position:absolute;top:0;left:-30%;width:30%;height:100%;background:linear-gradient(90deg,var(--primary),#60a5fa);border-radius:2px;animation:progress-indeterminate 1.2s ease infinite}@keyframes progress-indeterminate{0%{left:-30%}to{left:100%}}.upload-progress-text{font-size:11px;color:var(--text-muted);white-space:nowrap}.preview-item{position:relative}.pf-progress-wrap{position:absolute;bottom:0;left:0;right:0;background:#ffffffeb;padding:3px 6px 5px;border-radius:0 0 8px 8px;z-index:2}.pf-progress-bar{height:3px;background:linear-gradient(90deg,var(--primary),#60a5fa);border-radius:2px;transition:width .25s ease}.pf-progress-text{display:block;font-size:10px;color:var(--text-muted);text-align:center;margin-top:2px}.preview-item.failed img,.preview-item.failed .file-icon{opacity:.4}.pf-failed-wrap{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#ffffffe0;border-radius:8px;gap:3px;z-index:2}.pf-failed-text{font-size:11px;color:#ef4444;font-weight:600}.emoji-overlay{position:relative}.emoji-picker{position:absolute;bottom:calc(100% + 8px);left:-120px;right:-12px;background:#fff;border-radius:14px;border:1px solid var(--border);box-shadow:0 8px 32px #0000001f;z-index:50;max-height:360px;overflow:hidden;animation:fadeIn .15s ease,slideUp .2s ease}@keyframes slideUp{0%{transform:translateY(8px);opacity:0}to{transform:translateY(0);opacity:1}}.emoji-picker-header{display:flex;align-items:center;justify-content:space-between;padding:12px 16px 8px;border-bottom:1px solid #f1f5f9;font-size:13px;font-weight:600;color:var(--text)}.emoji-close{width:24px;height:24px;border:none;background:transparent;border-radius:6px;cursor:pointer;font-size:16px;color:var(--text-muted);display:flex;align-items:center;justify-content:center;transition:all .15s}.emoji-close:hover{background:#f1f5f9;color:var(--text)}.emoji-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:2px;padding:8px 10px;overflow-y:auto;max-height:300px}.emoji-item{display:flex;flex-direction:column;align-items:center;gap:2px;padding:4px 2px;border-radius:8px;cursor:pointer;transition:all .12s;border:1px solid transparent}.emoji-item:hover{background:#f1f5f9;border-color:var(--border);transform:scale(1.05)}.emoji-item:active{transform:scale(.95)}.emoji-item.loading{opacity:.5;pointer-events:none}.emoji-img-wrap{width:56px;height:56px;border-radius:8px;overflow:hidden;display:flex;align-items:center;justify-content:center;background:#f8fafc}.emoji-img-wrap img{width:100%;height:100%;object-fit:cover}.emoji-loading{width:56px;height:56px;display:flex;align-items:center;justify-content:center;font-size:18px;color:var(--text-muted)}.emoji-label{font-size:10px;color:var(--text-muted);text-align:center;line-height:1.2;max-width:56px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.emoji-item:hover .emoji-label{color:var(--text)}.slash-cmd-popup{position:absolute;bottom:calc(100% + 8px);left:0;background:#fff;border-radius:12px;border:1px solid var(--border);box-shadow:0 8px 32px #0000001f;z-index:55;min-width:220px;animation:fadeIn .15s ease,slideUp .2s ease;overflow:hidden}.slash-cmd-header{padding:10px 14px 8px;font-size:12px;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.5px;border-bottom:1px solid #f1f5f9}.slash-cmd-item{display:flex;align-items:center;gap:10px;padding:10px 14px;cursor:pointer;transition:background .12s;border-bottom:1px solid #f8fafc}.slash-cmd-item:last-child{border-bottom:none}.slash-cmd-item:hover{background:var(--primary-light)}.slash-cmd-icon{font-size:18px;width:28px;text-align:center;flex-shrink:0}.slash-cmd-body{flex:1;min-width:0}.slash-cmd-label{display:block;font-size:13px;font-weight:500;color:var(--text)}.slash-cmd-desc{display:block;font-size:11px;color:var(--text-muted);margin-top:1px}.slash-cmd-code{font-size:11px;background:#f1f5f9;padding:2px 6px;border-radius:4px;color:var(--text-secondary);font-family:SF Mono,Fira Code,monospace;white-space:nowrap}.extract-btn{display:inline-flex;align-items:center;gap:4px;padding:3px 10px;border-radius:6px;border:1px solid var(--border);background:#fff;cursor:pointer;font-size:11px;color:var(--text-secondary);transition:all .15s}.extract-btn:hover{border-color:var(--primary);color:var(--primary);background:var(--primary-light)}.extract-result-box{margin-top:0;padding:10px 12px;background:#f8fafc;border:1px solid var(--border);border-radius:8px;max-width:400px}.extract-result-label{font-size:11px;color:var(--text-muted);margin-bottom:6px;font-weight:500}.extract-result-content{font-size:13px;color:var(--text);line-height:1.6;white-space:pre-wrap;word-break:break-word;max-height:300px;overflow-y:auto;user-select:text;-webkit-user-select:text}.extract-copy-btn{display:inline-flex;align-items:center;gap:4px;margin-top:8px;padding:4px 12px;border-radius:6px;border:1px solid var(--border);background:#fff;cursor:pointer;font-size:11px;color:var(--text-secondary);transition:all .15s}.extract-copy-btn:hover{border-color:var(--primary);color:var(--primary);background:var(--primary-light)}.voice-toggle-btn{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border:none;background:none;cursor:pointer;font-size:18px;border-radius:8px;color:var(--text-muted);transition:all .15s;flex-shrink:0}.voice-toggle-btn:hover{background:#f1f5f9;color:var(--primary)}.hold-to-talk-wrap{flex:1;position:relative;-webkit-user-select:none;user-select:none}.hold-to-talk-btn{width:100%;height:40px;border:1.5px solid var(--border);border-radius:20px;background:#f8fafc;cursor:pointer;font-size:14px;font-weight:500;color:var(--text-secondary);letter-spacing:1px;transition:all .15s;display:flex;align-items:center;justify-content:center;gap:6px;outline:none;-webkit-tap-highlight-color:transparent}.hold-to-talk-btn:active,.hold-to-talk-btn.pressing{background:#fee2e2;border-color:#ef4444;color:#dc2626}.record-wave{display:flex;align-items:center;gap:2px;height:20px}.record-wave span{width:3px;border-radius:2px;background:#ef4444;animation:waveAnim .6s ease-in-out infinite}.record-wave span:nth-child(1){height:10px;animation-delay:0s}.record-wave span:nth-child(2){height:14px;animation-delay:.15s}.record-wave span:nth-child(3){height:10px;animation-delay:.3s}.record-wave span:nth-child(4){height:16px;animation-delay:.45s}.record-wave span:nth-child(5){height:10px;animation-delay:.6s}@keyframes waveAnim{0%,to{transform:scaleY(1)}50%{transform:scaleY(1.8)}}.record-timer{font-size:12px;color:#dc2626;font-variant-numeric:tabular-nums}.record-release-hint{font-size:11px;color:#f87171;margin-top:4px;text-align:center}.audio-msg-bubble{display:flex;align-items:center;gap:10px;min-width:180px}.audio-play-btn{width:36px;height:36px;border-radius:50%;border:none;background:var(--primary);color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:16px;flex-shrink:0;transition:all .15s}.audio-play-btn:hover{background:#059669;transform:scale(1.05)}.audio-play-btn.playing{background:#f59e0b}.audio-progress-wrap{flex:1;min-width:0}.audio-progress-bar{width:100%;height:4px;border-radius:2px;background:#e2e8f0;cursor:pointer;overflow:hidden;-moz-appearance:none;appearance:none;-webkit-appearance:none}.audio-progress-bar::-webkit-slider-thumb{-moz-appearance:none;appearance:none;-webkit-appearance:none;width:12px;height:12px;border-radius:50%;background:var(--primary);cursor:pointer}.audio-duration{font-size:11px;color:var(--text-muted);font-variant-numeric:tabular-nums;white-space:nowrap;min-width:32px;text-align:right}.audio-transcribe-btn{font-size:11px;background:none;border:1px solid var(--border);border-radius:10px;padding:2px 8px;cursor:pointer;color:var(--text-muted);white-space:nowrap;transition:all .15s;margin-left:4px}.audio-transcribe-btn:hover{border-color:var(--primary);color:var(--primary);background:var(--primary-light)}.audio-transcribe-result{margin-top:8px;padding:8px 10px;background:#f0fdf4;border-radius:8px;font-size:13px;color:var(--text);line-height:1.5;border-left:3px solid var(--primary)}.audio-transcribe-loading{font-size:11px;color:var(--text-muted);margin-top:6px}.msg-bubble-wrapper{position:relative}.msg-actions{position:absolute;top:6px;right:8px;display:flex;gap:4px;opacity:0;transition:opacity .2s;z-index:1}.msg-bubble-wrapper:hover .msg-actions,.msg-actions:hover{opacity:1}.msg-action-btn{width:28px;height:28px;border:1px solid #e2e8f0;border-radius:6px;background:#fff;cursor:pointer;font-size:14px;display:flex;align-items:center;justify-content:center;transition:background .15s;padding:0;line-height:1}.msg-action-btn:hover{background:#e8f0fe;border-color:#1a73e8}.feedback-page{overflow-y:auto;flex:1;display:flex;flex-direction:column}.feedback-page *{overflow-wrap:break-word!important;word-break:break-word!important}.feedback-page .feedback-card{overflow:hidden}
