:root{font-family:PingFang SC,Microsoft YaHei,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;line-height:1.5;font-weight:400;color:#1f2937;background:#f5f8ff;--text-primary: #1f2937;--text-secondary: #6b7280;--bg-primary: #ffffff;--bg-secondary: #f9fafb;--border-color: #e5e7eb;--accent-color: #3b82f6;--accent-bg: #eff6ff}.container.theme-dark{--text-primary: #f9fafb;--text-secondary: #9ca3af;--bg-primary: #111827;--bg-secondary: #1f2937;--border-color: #374151;--accent-color: #3b82f6;--accent-bg: #1e3a5f}html,body,#app{height:100%}*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at 10% 0%,rgb(147 197 253 / 35%),transparent 36%),radial-gradient(circle at 90% 8%,rgb(167 243 208 / 30%),transparent 34%),linear-gradient(180deg,#f8fbff,#eef6ff 55%,#f4f8ff);color:#1e293b}pre,code{font-family:Monaco,Menlo,Consolas,Courier New,monospace}pre,pre.hljs,div.hljs,.ProseMirror pre,.ProseMirror .code-block{padding:16px!important;border-radius:8px;overflow-x:auto;margin:12px 0;background:#0d1117!important;border:1px solid #374151;display:block}pre code,pre code.hljs,.hljs{background:transparent!important;padding:0;color:#c9d1d9}.ProseMirror-focused,.ProseMirror:focus,[contenteditable=true]:focus,[contenteditable=true].ProseMirror-focused{outline:none!important;border:none!important;box-shadow:none!important;border-width:0!important;-webkit-ring-offset-color:transparent!important;-webkit-ring-offset-width:0!important;-webkit-ring-color:transparent!important;-webkit-ring-width:0!important;--tw-ring-color: transparent !important;--tw-ring-offset-color: transparent !important}.container{width:100%;height:100vh;max-width:none;padding:10px 12px;display:flex;flex-direction:column;gap:8px;overflow:hidden}.title-wrap{display:flex;align-items:baseline;gap:12px}.title-spacer{flex:1}.header-actions{position:relative;display:inline-flex;align-items:center;gap:8px}.theme-toggle-btn{border:1px solid #cbd5e1;border-radius:999px;padding:4px 10px;font-size:12px;color:#334155;background:#fff}.avatar-btn{width:30px;height:30px;border-radius:999px;padding:0;font-size:12px;font-weight:700;border:1px solid #93c5fd;background:#dbeafe;color:#1d4ed8}.user-menu-panel{position:absolute;top:calc(100% + 8px);right:0;width:min(520px,88vw);max-height:70vh;overflow:auto;border-radius:12px;border:1px solid rgb(148 163 184 / 24%);background:#fffffff5;box-shadow:0 16px 34px #0f172a33;padding:10px;z-index:20}.user-menu-section+.user-menu-section{margin-top:10px;padding-top:10px;border-top:1px solid #e2e8f0}.user-menu-title{font-size:12px;font-weight:700;color:#1e293b;margin-bottom:6px}.user-menu-label{display:block;font-size:12px;color:#64748b;margin-bottom:4px}.user-menu-input{width:100%;margin-bottom:8px;border:1px solid #cbd5e1;border-radius:8px;padding:6px 10px;font-size:12px}.user-share-list{display:flex;flex-direction:column;gap:6px}.user-share-item{display:grid;grid-template-columns:minmax(90px,135px) 72px 1fr auto auto;gap:6px;align-items:center;font-size:12px}.tool-tabs{display:flex;gap:8px}.tool-tabs button{border:1px solid #cbd5e1;background:#fff;color:#334155}.tool-tabs button.active{background:linear-gradient(135deg,#2563eb,#06b6d4);color:#fff;border-color:#2563eb}.title-wrap h1{margin:0;font-size:24px;letter-spacing:.3px;color:#0f172a}.title-wrap p{margin:0;font-size:12px;color:#64748b}.toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:8px 10px;border-radius:12px;border:1px solid rgb(148 163 184 / 25%);background:#ffffffc7;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-shadow:0 8px 24px #0f172a14}.findbar{display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:12px;border:1px solid rgb(148 163 184 / 25%);background:#ffffffc7;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-shadow:0 8px 20px #0f172a14;flex-wrap:wrap}.findbar input[type=text],.findbar input:not([type]){border:1px solid #cbd5e1;border-radius:8px;padding:6px 10px;font-size:12px;min-width:140px}.findbar label{display:inline-flex;align-items:center;gap:4px;font-size:12px;color:#475569}.regex-help-btn{width:18px;height:18px;border-radius:50%;border:none;background:#f97316;color:#fff;font-size:11px;font-weight:700;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s ease}.regex-help-btn:hover{background:#ea580c;transform:scale(1.1)}.find-summary{font-size:12px;color:#64748b;min-width:92px}.find-location{font-size:12px;color:#2563eb;min-width:120px}.toolbar-spacer{flex:1}.inline{display:inline-flex;align-items:center;gap:6px;color:#475569;font-size:13px}.file-picker{border:1px dashed #94a3b8;padding:4px 10px;border-radius:8px;background:#f8fbff}.file-picker input{width:168px;font-size:12px}.panel-grid{display:grid;gap:10px;grid-template-columns:repeat(2,minmax(0,1fr));flex:1;min-height:0}.panel{background:#ffffffd1;border:1px solid rgb(148 163 184 / 24%);border-radius:14px;padding:8px;box-shadow:0 12px 28px #0f172a1a;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);display:flex;flex-direction:column;min-height:0}.panel h2{margin:0 0 6px;font-size:14px;color:#0f172a}.panel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}.view-switch{display:inline-flex;border:1px solid #cbd5e1;border-radius:8px;overflow:hidden}.view-switch button{border:0;border-right:1px solid #cbd5e1;border-radius:0;padding:5px 10px;font-size:12px;color:#334155;background:#fff}.view-switch button:last-child{border-right:0}.view-switch button.active{background:linear-gradient(135deg,#3b82f6,#06b6d4);color:#fff}textarea{width:100%;height:100%;min-height:0;resize:vertical;border:1px solid #dbe3ef;border-radius:10px;padding:10px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:13px;line-height:1.6;background:#fff;color:#0f172a}.input-editor{position:relative;border:1px solid #dbe3ef;border-radius:10px;overflow:hidden;display:flex;min-height:0;height:100%;background:#fff}.remote-presence-badge{position:absolute;z-index:7;pointer-events:none;padding:2px 8px;border-radius:999px;border:1px solid #60a5fa;background:#ffffffeb;color:#1e3a8a;font-size:11px;font-weight:600;white-space:nowrap;box-shadow:0 4px 12px #2563eb33}.remote-selection-layer{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;z-index:4}.match-highlight-layer{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;z-index:3;margin-left:52px}.match-highlight{position:absolute;border-radius:3px;border:1px solid;transition:all .15s ease}.match-highlight.group-highlight{border-width:2px}.remote-selection-rect{position:absolute;height:var(--editor-line-height, 20.8px);border:1px solid transparent;border-radius:2px}.line-numbers{width:52px;flex-shrink:0;border-right:1px solid #e2e8f0;background:#f8fafc;color:#94a3b8;text-align:right;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:13px;line-height:var(--editor-line-height, 20.8px);padding:10px 8px 10px 6px;overflow:hidden;-webkit-user-select:none;user-select:none}.line-number{height:var(--editor-line-height, 20.8px)}.input-textarea{border:0;border-radius:0;padding-left:10px;line-height:var(--editor-line-height, 20.8px);white-space:pre}.input-textarea:read-only{background:#f8fafc;color:#64748b;cursor:not-allowed}.actions{display:flex;flex-wrap:wrap;gap:8px;padding:8px 10px;border-radius:12px;border:1px solid rgb(148 163 184 / 25%);background:#ffffffc7;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-shadow:0 8px 22px #0f172a14}.share-history{padding:8px 10px;border-radius:12px;border:1px solid rgb(148 163 184 / 25%);background:#ffffffc7;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-shadow:0 8px 22px #0f172a14}.share-dialog-mask{position:fixed;top:0;right:0;bottom:0;left:0;z-index:40;background:#0f172a73;display:flex;align-items:center;justify-content:center;padding:12px}.share-dialog-card{width:min(420px,100%);border-radius:12px;border:1px solid rgb(148 163 184 / 30%);background:#fff;box-shadow:0 18px 36px #0f172a40;padding:14px;display:flex;flex-direction:column;gap:10px}.share-dialog-card h3{margin:0;font-size:15px;color:#0f172a}.share-dialog-field{display:flex;flex-direction:column;gap:6px;font-size:12px;color:#475569}.share-dialog-field input,.share-dialog-field select{width:100%}.share-dialog-actions{display:flex;justify-content:flex-end;gap:8px}.share-history-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px;font-size:12px;color:#475569}.share-history-empty{font-size:12px;color:#94a3b8}.share-history-list{display:flex;flex-direction:column;gap:6px}.share-history-item{display:grid;grid-template-columns:minmax(100px,150px) 90px 1fr auto auto;align-items:center;gap:8px;font-size:12px}.share-id{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;color:#0f172a}button,select{border:1px solid #cbd5e1;border-radius:8px;padding:6px 10px;background:#fff;color:#334155;font-size:12px;transition:all .16s ease}button{cursor:pointer}button:hover,select:hover{border-color:#60a5fa;background:#eff6ff}button:disabled{cursor:not-allowed;color:#94a3b8;background:#f8fafc;border-color:#e2e8f0}.share-btn{border-color:#2563eb;background:linear-gradient(135deg,#2563eb,#06b6d4);color:#fff;font-weight:600;box-shadow:0 6px 16px #2563eb47}.share-btn:hover{border-color:#1d4ed8;background:linear-gradient(135deg,#1d4ed8,#0891b2)}.share-btn:disabled{color:#e2e8f0;border-color:#93c5fd;background:linear-gradient(135deg,#60a5fa,#67e8f9)}.realtime-badge{display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;background:#e0f2fe;color:#0c4a6e;border:1px solid #7dd3fc;font-size:12px}.danger-btn{border-color:#dc2626;background:#fee2e2;color:#b91c1c}.danger-btn:hover{border-color:#b91c1c;background:#fecaca}.status{margin:0;font-size:12px;line-height:1.4}.status-detail{margin:0;padding:8px 10px;border-radius:8px;background:#fff1f2;color:#be123c;font-size:12px;line-height:1.5;overflow:auto;max-height:84px}.status.info{color:#475569}.status.success{color:#047857}.status.error{color:#b91c1c}.tree-wrap{display:flex;flex-direction:column;gap:8px;height:100%;min-height:0}.table-wrap{height:100%;min-height:0}.json-table{display:flex;flex-direction:column;gap:8px;height:100%;min-height:0}.json-table-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px}.json-table-toolbar input{border:1px solid #cbd5e1;border-radius:8px;padding:6px 10px;font-size:12px;min-width:220px}.json-table-count{font-size:12px;color:#64748b}.json-table-wrap{border:1px solid #dbe3ef;border-radius:10px;background:#fff;overflow:auto;min-height:0;flex:1}.json-table table{width:100%;border-collapse:collapse;font-size:12px}.json-table th,.json-table td{border-bottom:1px solid #e2e8f0;text-align:left;vertical-align:top;padding:8px;white-space:nowrap}.json-table th{position:sticky;top:0;background:#f8fafc;z-index:1}.json-table-empty{text-align:center!important;color:#94a3b8}.diff-tab-wrap{flex:1;min-height:0}.diff-layout{height:100%;min-height:0;display:flex;flex-direction:column;gap:10px}.diff-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:8px 10px;border-radius:12px;border:1px solid rgb(148 163 184 / 25%);background:#ffffffc7}.diff-toolbar label{display:inline-flex;gap:4px;font-size:12px;color:#475569}.diff-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;min-height:0}.diff-panel{background:#ffffffd1;border:1px solid rgb(148 163 184 / 24%);border-radius:12px;padding:8px;display:flex;flex-direction:column;min-height:220px}.diff-panel h3{margin:0 0 6px;font-size:13px}.diff-panel textarea{min-height:220px}.diff-summary,.diff-error{margin:0;font-size:12px}.diff-error{color:#b91c1c}.diff-summary{color:#475569}.diff-share-status{font-size:12px;color:#2563eb}.diff-result-wrap{border:1px solid #dbe3ef;border-radius:10px;background:#fff;overflow:auto;min-height:0;flex:1;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:12px}.diff-side-header{position:sticky;top:0;z-index:1;display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid #e2e8f0;background:#f8fafc;color:#64748b}.diff-side-head{padding:8px 10px;font-weight:600}.diff-side-row{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid #e2e8f0}.diff-side-cell{display:grid;grid-template-columns:56px 1fr;white-space:pre-wrap;word-break:break-word}.diff-line-no,.diff-line-text{padding:8px 10px}.diff-line-no{border-right:1px solid #e2e8f0;color:#94a3b8;text-align:right;-webkit-user-select:none;user-select:none}.diff-side-added{background:#ecfdf5}.diff-side-removed{background:#fff1f2}.diff-side-changed{background:#eff6ff}.diff-char-highlight{background:#facc154d;border-radius:4px}.diff-collapsed-line{grid-column:1 / -1;padding:8px 10px;text-align:center;color:#64748b;background:#f8fafc;border-top:1px dashed #cbd5e1;border-bottom:1px dashed #cbd5e1}.diff-empty{margin:0;padding:14px;text-align:center;color:#94a3b8}.tree-actions{display:flex;gap:8px}.tree-selected-path{margin:0;font-size:12px;color:#64748b}.tree-user-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}.tree-user-tag{display:inline-flex;align-items:center;max-width:100%;padding:2px 8px;border:1px solid;border-radius:999px;font-size:12px;background:#f8fafce0}.tree-body{border:1px solid #dbe3ef;border-radius:10px;background:#fff;padding:8px 0;overflow:auto;min-height:0;flex:1}.json-tree{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:13px;line-height:1.6}.tree-line{white-space:nowrap;border-radius:6px;cursor:pointer}.tree-line:hover{background:#f1f5f9}.tree-line.selected{background:#dbeafe}.tree-line.remote-selected{box-shadow:inset 0 0 0 1px var(--remote-selected-color, #3b82f6)}.node-context-menu{position:fixed;z-index:9999;min-width:180px;padding:6px;border-radius:10px;border:1px solid #cbd5e1;background:#fffffffa;box-shadow:0 12px 28px #0f172a29;display:flex;flex-direction:column;gap:4px}.copy-toast{position:fixed;right:20px;bottom:22px;z-index:10000;padding:10px 14px;border-radius:10px;background:#0f172aeb;color:#fff;font-size:13px;box-shadow:0 10px 24px #0f172a3d}.context-menu-item{width:100%;text-align:left;border:0;background:transparent;color:#1e293b;padding:8px 10px;border-radius:8px;font-size:12px}.context-menu-item:hover{background:#eff6ff}.context-menu-item.danger{color:#b91c1c}.context-menu-item:disabled{color:#94a3b8;background:transparent;cursor:not-allowed}.toggle,.toggle-placeholder{width:22px;display:inline-flex;align-items:center;justify-content:center;margin-right:2px}.toggle{border:0;background:transparent;padding:0;cursor:pointer;color:#2563eb}.node-key{color:#7c3aed}.node-separator{color:#64748b}.token-brace{color:#0f172a}.primitive.string{color:#059669}.primitive.number{color:#d97706}.primitive.boolean{color:#0369a1}.primitive.bigint,.primitive.object{color:#be123c}.tree-empty{margin:0;color:#b91c1c}.container.theme-dark{background:radial-gradient(circle at 10% 0%,rgb(59 130 246 / 22%),transparent 36%),radial-gradient(circle at 90% 8%,rgb(14 165 233 / 16%),transparent 34%),linear-gradient(180deg,#0b1220,#111827 55%,#0f172a);color:#e2e8f0}.container.theme-dark .title-wrap h1{color:#f8fafc}.container.theme-dark .title-wrap p{color:#94a3b8}.container.theme-dark .theme-toggle-btn{border-color:#475569;background:#1e293b;color:#e2e8f0}.container.theme-dark .avatar-btn{border-color:#38bdf8;background:#0e749052;color:#bae6fd}.container.theme-dark .user-menu-panel{background:#0f172af5;border-color:#94a3b83d}.container.theme-dark .user-menu-section+.user-menu-section{border-color:#334155}.container.theme-dark .user-menu-title,.container.theme-dark .user-menu-label{color:#cbd5e1}.container.theme-dark .user-menu-input{border-color:#475569;background:#1e293b;color:#e2e8f0}.container.theme-dark .toolbar,.container.theme-dark .findbar,.container.theme-dark .actions,.container.theme-dark .share-history,.container.theme-dark .panel{background:#0f172ac7;border-color:#94a3b83d;color:#cbd5e1}.container.theme-dark .inline,.container.theme-dark .panel h2,.container.theme-dark .tree-selected-path,.container.theme-dark .share-history-head{color:#cbd5e1}.container.theme-dark .tree-user-tag{background:#0f172ad1}.container.theme-dark .share-id{color:#e2e8f0}.container.theme-dark .share-dialog-card{background:#111827;border-color:#334155}.container.theme-dark .share-dialog-card h3,.container.theme-dark .share-dialog-field{color:#e2e8f0}.container.theme-dark .share-history-empty{color:#94a3b8}.container.theme-dark .file-picker,.container.theme-dark .findbar input,.container.theme-dark .tool-tabs button,.container.theme-dark .view-switch button,.container.theme-dark button,.container.theme-dark select{background:#1e293b;border-color:#475569;color:#e2e8f0}.container.theme-dark .view-switch button.active,.container.theme-dark .share-btn{color:#fff}.container.theme-dark .danger-btn{border-color:#ef4444;background:#7f1d1d;color:#fee2e2}.container.theme-dark .realtime-badge{background:#0284c73d;color:#bae6fd;border-color:#0ea5e9}.container.theme-dark .file-picker input{color:#e2e8f0}.container.theme-dark .findbar label,.container.theme-dark .find-summary{color:#cbd5e1}.container.theme-dark .find-location{color:#7dd3fc}.container.theme-dark .input-editor,.container.theme-dark textarea,.container.theme-dark .tree-body{background:#0f172a;border-color:#334155;color:#e2e8f0}.container.theme-dark .remote-presence-badge{border-color:#38bdf8;background:#0f172aeb;color:#bae6fd}.container.theme-dark .input-textarea:read-only{background:#111827;color:#94a3b8}.container.theme-dark .json-table-wrap{background:#0f172a;border-color:#334155}.container.theme-dark .diff-toolbar,.container.theme-dark .diff-panel{background:#0f172ac7;border-color:#94a3b83d;color:#e2e8f0}.container.theme-dark .diff-toolbar label,.container.theme-dark .diff-summary{color:#cbd5e1}.container.theme-dark .diff-share-status{color:#7dd3fc}.container.theme-dark .diff-result-wrap{background:#0f172a;border-color:#334155}.container.theme-dark .diff-side-header,.container.theme-dark .diff-side-row,.container.theme-dark .diff-line-no{border-color:#334155}.container.theme-dark .diff-side-header{background:#111827;color:#e2e8f0}.container.theme-dark .diff-side-added{background:#064e3b4d}.container.theme-dark .diff-side-removed{background:#7f1d1d4d}.container.theme-dark .diff-side-changed{background:#1e40af4d}.container.theme-dark .diff-char-highlight{background:#fbbf2447}.container.theme-dark .diff-collapsed-line{color:#cbd5e1;background:#111827;border-color:#334155}.container.theme-dark .json-table th,.container.theme-dark .json-table td{border-color:#334155;color:#e2e8f0}.container.theme-dark .json-table th{background:#111827}.container.theme-dark .json-table-toolbar input{border-color:#475569;background:#1e293b;color:#e2e8f0}.container.theme-dark .line-numbers{background:#111827;border-color:#334155;color:#64748b}.container.theme-dark .tree-line:hover{background:#1f2937}.container.theme-dark .tree-line.selected{background:#1d4ed8}.container.theme-dark .tree-line.remote-selected{box-shadow:inset 0 0 0 1px var(--remote-selected-color, #93c5fd)}.container.theme-dark .node-context-menu{background:#0f172a;border-color:#334155}.container.theme-dark .context-menu-item{color:#e2e8f0}.container.theme-dark .context-menu-item:hover{background:#1e293b}.container.theme-dark .context-menu-item.danger{color:#fca5a5}.container.theme-dark .status.info{color:#93c5fd}.container.theme-dark .status.success{color:#86efac}.container.theme-dark .status.error,.container.theme-dark .tree-empty{color:#fca5a5}.container.theme-dark .status-detail{background:#7f1d1d42;color:#fecaca}.container.theme-dark .token-brace{color:#e2e8f0}.container.theme-dark .node-separator{color:#94a3b8}.container-fullscreen{padding:4px}.container-fullscreen .title-wrap,.container-fullscreen .tool-tabs,.container-fullscreen .toolbar,.container-fullscreen .findbar,.container-fullscreen .actions,.container-fullscreen .status,.container-fullscreen .status-detail,.container-fullscreen .copy-toast{display:none!important}.container-fullscreen .panel-grid{flex:1;min-height:0}.panel-grid.fullscreen{grid-template-columns:repeat(2,minmax(0,1fr))}.fullscreen-btn{width:28px;height:28px;padding:0;font-size:16px;border:1px solid #cbd5e1;border-radius:6px;background:#fff;color:#334155;cursor:pointer}.fullscreen-btn:hover{border-color:#60a5fa;background:#eff6ff}.container.theme-dark .fullscreen-btn{background:#1e293b;border-color:#475569;color:#e2e8f0}.container.theme-dark .fullscreen-btn:hover{border-color:#3b82f6;background:#334155}.call-float-btn-wrap{position:fixed;bottom:100px;right:20px;z-index:1000}.call-float-btn-group{display:flex;flex-direction:column;gap:12px}.call-btn{display:flex;align-items:center;gap:8px;padding:12px 20px;border:none;border-radius:50px;cursor:pointer;font-size:14px;font-weight:500;transition:all .3s ease;box-shadow:0 4px 20px #00000026}.call-btn-audio{background:linear-gradient(135deg,#3b82f6,#2563eb);color:#fff}.call-btn-video{background:linear-gradient(135deg,#10b981,#059669);color:#fff}.call-btn:hover{transform:translateY(-2px);box-shadow:0 6px 24px #0003}.call-icon{font-size:18px}.call-label{white-space:nowrap}.call-panel{position:fixed;bottom:20px;right:20px;z-index:1001;background:#1e293bf2;border-radius:16px;padding:16px;box-shadow:0 8px 32px #0000004d}.call-controls{display:flex;gap:12px;align-items:center}.call-control-btn{width:48px;height:48px;border:none;border-radius:50%;background:#ffffff26;color:#fff;font-size:20px;cursor:pointer;transition:all .2s ease}.call-control-btn:hover{background:#ffffff40}.call-control-btn.active{background:#ef4444cc}.call-end-btn{background:#ef4444e6}.call-end-btn:hover{background:#ef4444}.video-container{position:relative;width:280px;height:200px;margin-top:16px;border-radius:12px;overflow:hidden;background:#0f172a}.remote-video{width:100%;height:100%;object-fit:cover}.local-video{position:absolute;bottom:8px;right:8px;width:80px;height:60px;border-radius:8px;object-fit:cover;border:2px solid rgba(255,255,255,.5)}.video-placeholder{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#94a3b8}.placeholder-icon{font-size:48px;margin-bottom:8px}.placeholder-text{font-size:14px}.login-btn{border:1px solid #3b82f6;border-radius:8px;padding:6px 14px;background:linear-gradient(135deg,#3b82f6,#2563eb);color:#fff;font-size:12px;font-weight:500;cursor:pointer}.login-btn:hover{background:linear-gradient(135deg,#2563eb,#1d4ed8);border-color:#2563eb}.logout-btn{border:1px solid #dc2626;border-radius:8px;padding:6px 12px;background:#fee2e2;color:#b91c1c;font-size:12px;cursor:pointer;margin-top:6px}.logout-btn:hover{background:#fecaca;border-color:#b91c1c}.container.theme-dark .login-btn{border-color:#3b82f6;background:linear-gradient(135deg,#3b82f6,#1d4ed8)}.container.theme-dark .logout-btn{border-color:#ef4444;background:#7f1d1d;color:#fee2e2}.container.theme-dark .logout-btn:hover{background:#991b1b}.notes-btn{border:1px solid #10b981;border-radius:8px;padding:6px 14px;background:linear-gradient(135deg,#10b981,#059669);color:#fff;font-size:12px;font-weight:500;cursor:pointer}.notes-btn:hover{background:linear-gradient(135deg,#059669,#047857);border-color:#059669}.container.theme-dark .notes-btn{border-color:#10b981;background:linear-gradient(135deg,#10b981,#047857)}.notes-panel-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#0006;display:flex;align-items:center;justify-content:center;z-index:9999}.notes-panel{width:90%;max-width:1200px;max-height:85vh;background:#fff;border-radius:16px;box-shadow:0 20px 60px #00000040;overflow:hidden;display:flex;flex-direction:column}.container.theme-dark .notes-panel{background:#1f2937}.notes-panel-header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid #e5e7eb;background:#f9fafb}.container.theme-dark .notes-panel-header{border-bottom-color:#374151;background:#111827}.notes-panel-header h3{margin:0;font-size:18px;color:#1f2937}.container.theme-dark .notes-panel-header h3{color:#f9fafb}.notes-panel-actions{display:flex;align-items:center;gap:12px}.new-notebook-btn{padding:6px 14px;border:1px solid #3b82f6;border-radius:8px;background:linear-gradient(135deg,#3b82f6,#2563eb);color:#fff;font-size:13px;font-weight:500;cursor:pointer}.new-notebook-btn:hover{background:linear-gradient(135deg,#2563eb,#1d4ed8)}.empty-actions{margin-top:16px}.notes-panel-close{width:32px;height:32px;border:none;background:transparent;border-radius:50%;font-size:20px;color:#6b7280;cursor:pointer;display:flex;align-items:center;justify-content:center}.notes-panel-close:hover{background:#e5e7eb;color:#1f2937}.container.theme-dark .notes-panel-close:hover{background:#374151;color:#f9fafb}.notes-panel-body{flex:1;display:flex;overflow:hidden}.notes-sidebar{width:280px;border-right:1px solid #e5e7eb;overflow:hidden}.container.theme-dark .notes-sidebar{border-right-color:#374151}.notes-main{flex:1;display:flex;overflow:hidden}.notes-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1;color:#6b7280;font-size:14px}.container.theme-dark .notes-empty{color:#9ca3af}.notes-content{flex:1;display:flex;overflow:hidden}.notes-list{width:240px;border-right:1px solid #e5e7eb;display:flex;flex-direction:column;overflow:hidden}.container.theme-dark .notes-list{border-right-color:#374151}.notes-list-header{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid #e5e7eb;background:#f9fafb}.container.theme-dark .notes-list-header{border-bottom-color:#374151;background:#1f2937}.notes-list-title{font-size:14px;font-weight:600;color:#1f2937}.container.theme-dark .notes-list-title{color:#f9fafb}.note-create-btn{padding:4px 10px;border:1px solid #3b82f6;border-radius:6px;background:#eff6ff;color:#3b82f6;font-size:12px;cursor:pointer}.note-create-btn:hover{background:#dbeafe}.notes-list .notes-empty{padding:30px 16px;gap:12px}.notes-list .empty-create-btn{margin-top:0}.note-item{display:flex;align-items:center;justify-content:space-between;padding:10px 16px;cursor:pointer;border-bottom:1px solid #f3f4f6}.container.theme-dark .note-item{border-bottom-color:#374151}.note-item:hover{background:#f3f4f6}.container.theme-dark .note-item:hover{background:#374151}.note-item.active{background:#dbeafe}.container.theme-dark .note-item.active{background:#1e3a8a}.note-item-title{flex:1;font-size:14px;color:#374151;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.container.theme-dark .note-item-title{color:#e5e7eb}.note-item-actions{display:flex;gap:4px}.note-delete-btn{width:24px;height:24px;padding:0;border:none;border-radius:4px;background:transparent;font-size:12px;cursor:pointer}.note-delete-btn:hover{background:#fee2e2}.container.theme-dark .note-delete-btn:hover{background:#7f1d1d}.note-editor{flex:1;display:flex;flex-direction:column;overflow:hidden}.note-editor-header{display:flex;align-items:center;gap:12px;padding:12px 16px;border-bottom:1px solid #e5e7eb;background:#f9fafb}.container.theme-dark .note-editor-header{border-bottom-color:#374151;background:#1f2937}.note-title-input{flex:1;padding:8px 12px;border:1px solid #e5e7eb;border-radius:6px;font-size:16px;font-weight:600;background:#fff;outline:none}.container.theme-dark .note-title-input{border-color:#4b5563;background:#111827;color:#f9fafb}.note-title-input:focus{border-color:#3b82f6}.note-save-btn{padding:8px 16px;border:1px solid #3b82f6;border-radius:6px;background:#eff6ff;color:#3b82f6;font-size:13px;cursor:pointer}.note-save-btn:hover{background:#dbeafe}.note-content-input{flex:1;padding:16px;border:none;font-size:14px;line-height:1.8;resize:none;outline:none;background:#fff}.container.theme-dark .note-content-input{background:#111827;color:#e5e7eb}.note-editor-empty{flex:1;display:flex;align-items:center;justify-content:center;color:#9ca3af;font-size:14px}.image-resizable{position:relative;display:inline-block;max-width:100%;margin:8px 0;cursor:default;border:2px solid transparent;transition:border-color .2s ease}.image-resizable:hover{border-color:#6366f1}.image-resizable img{width:100%;height:auto;object-fit:contain;display:block;border-radius:8px}.image-resizable .resize-handle{position:absolute;width:24px;height:24px;background:#6366f1;border-radius:50%;cursor:nwse-resize;bottom:-12px;right:-12px;opacity:1;transition:opacity .2s ease,transform .2s ease;border:3px solid white;box-shadow:0 2px 10px #0006;z-index:1000;display:flex;align-items:center;justify-content:center}.image-resizable .resize-handle:after{content:"↘";color:#fff;font-size:10px;font-weight:700}.image-resizable:hover .resize-handle,.image-resizable .resize-handle:hover{opacity:1;transform:scale(1.15);box-shadow:0 4px 12px #00000080}@media(max-width:960px){.container{height:auto;min-height:100vh;overflow:visible;padding:10px}.title-wrap{display:block}.title-wrap p{margin-top:4px}.panel-grid{grid-template-columns:1fr;flex:none}.diff-grid{grid-template-columns:1fr}textarea,.input-editor{min-height:260px;height:260px}}.regex-help-modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;pointer-events:none}.regex-help-content{position:absolute;top:0;right:0;bottom:0;width:420px;background:#fff;box-shadow:-4px 0 20px #0003;overflow:hidden;display:flex;flex-direction:column;transform:translate(100%);transition:transform .3s ease;pointer-events:auto}.regex-help-modal.show .regex-help-content{transform:translate(0)}.regex-help-header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid #e2e8f0;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.regex-help-header h3{margin:0;font-size:18px;font-weight:600}.regex-help-close{background:#fff3;border:none;color:#fff;width:32px;height:32px;border-radius:50%;font-size:24px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s ease}.regex-help-close:hover{background:#ffffff4d}.regex-help-body{padding:20px;overflow-y:auto;flex:1}.regex-section{margin-bottom:20px}.regex-section:last-child{margin-bottom:0}.regex-section h4{margin:0 0 12px;font-size:14px;font-weight:600;color:#1e293b;padding-bottom:6px;border-bottom:2px solid #e2e8f0}.regex-items{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:8px}.regex-item{display:flex;align-items:center;gap:10px;padding:8px 12px;background:#f8fafc;border-radius:8px;transition:all .2s ease}.regex-item:hover{background:#f1f5f9}.regex-item code{background:#e2e8f0;padding:3px 8px;border-radius:4px;font-size:12px;font-weight:600;color:#dc2626;min-width:60px;text-align:center}.regex-item span{font-size:13px;color:#475569}.regex-item.not-in-go{background:#fef2f2;border:1px solid #fecaca}.regex-item.not-in-go code{background:#fee2e2;color:#dc2626}.not-in-go-badge{background:#ef4444;color:#fff;font-size:10px;padding:2px 6px;border-radius:4px;font-weight:500;margin-left:auto}.find-dialog-modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;pointer-events:none}.find-dialog-content{position:absolute;top:0;right:0;bottom:0;width:420px;background:#fff;box-shadow:-4px 0 20px #0003;overflow:hidden;display:flex;flex-direction:column;transform:translate(100%);transition:transform .3s ease;pointer-events:auto}.find-dialog-modal.show .find-dialog-content{transform:translate(0)}.find-dialog-header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid #e2e8f0;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.find-dialog-header h3{margin:0;font-size:18px;font-weight:600}.find-dialog-close{background:#fff3;border:none;color:#fff;width:32px;height:32px;border-radius:50%;font-size:24px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s ease}.find-dialog-close:hover{background:#ffffff4d}.find-dialog-body{padding:20px;overflow-y:auto;flex:1}.find-input-group{margin-bottom:16px}.find-input-group label{display:block;margin-bottom:8px;font-size:14px;font-weight:500;color:#1e293b}.find-input-group input[type=text]{width:100%;padding:8px 12px;border:1px solid #d1d5db;border-radius:6px;font-size:14px}.find-input-group .checkbox-label{display:inline-flex;align-items:center;gap:6px;margin-right:16px;margin-top:8px;font-size:13px;color:#475569;cursor:pointer}.find-results-info{padding:8px 12px;background:#f0fdf4;border:1px solid #bbf7d0;border-radius:6px;color:#166534;font-size:13px;margin-bottom:16px}.find-actions{display:flex;gap:8px;margin-bottom:16px}.find-actions button{padding:6px 12px;border-radius:6px;border:1px solid #d1d5db;background:#fff;font-size:13px;cursor:pointer;transition:all .2s}.find-actions button:hover:not(:disabled){background:#f3f4f6}.find-actions button:disabled{opacity:.5;cursor:not-allowed}.find-highlight-preview{border-top:1px solid #e2e8f0;padding-top:16px}.find-highlight-preview h4{margin:0 0 12px;font-size:14px;font-weight:600;color:#1e293b}.highlight-list{display:flex;flex-direction:column;gap:6px;max-height:200px;overflow-y:auto}.highlight-item{display:flex;align-items:center;gap:8px;padding:8px 12px;background:#f8fafc;border-radius:6px;cursor:pointer;transition:all .2s;font-size:13px}.highlight-item:hover{background:#f1f5f9}.highlight-item.active{background:#dbeafe;border:1px solid #93c5fd}.highlight-index{font-weight:600;color:#64748b;min-width:24px}.highlight-text{flex:1;font-family:Courier New,monospace;color:#1e293b;word-break:break-all}.highlight-position{color:#64748b;font-size:12px}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}
