:root{--sl-color-accent-low: #ede9fe;--sl-color-accent: #7c3aed;--sl-color-accent-high: #5b21b6}:root[data-theme=dark]{--sl-color-accent-low: #1e1b4b;--sl-color-accent: #8b5cf6;--sl-color-accent-high: #a78bfa}:root{--demo-bg: #ffffff;--demo-surface: #f8f9fb;--demo-border: #e2e4e9;--demo-text: #1a1d23;--demo-text-muted: #6b7280;--demo-text-dim: #9ca3af;--demo-accent: #7c3aed;--demo-code-bg: #f3f4f6;--demo-code-color: #1f2937;--demo-hover-bg: rgba(0, 0, 0, .04);--demo-radius: 8px;--demo-shadow: 0 1px 3px rgba(0, 0, 0, .08)}:root[data-theme=dark]{--demo-bg: #1a1d23;--demo-surface: #22252d;--demo-border: #2e3240;--demo-text: #e5e7eb;--demo-text-muted: #9ca3af;--demo-text-dim: #6b7280;--demo-accent: #8b5cf6;--demo-code-bg: #1f2937;--demo-code-color: #e5e7eb;--demo-hover-bg: rgba(255, 255, 255, .06);--demo-shadow: 0 1px 3px rgba(0, 0, 0, .3)}.demo-editor-container{display:flex;flex-direction:column;background:var(--demo-bg);overflow:hidden;min-height:320px}.demo-control-bar{display:flex;align-items:center;gap:8px;padding:8px 12px;background:var(--demo-surface);border-bottom:1px solid var(--demo-border);flex-wrap:wrap}.demo-control-bar button{padding:4px 10px;border:1px solid var(--demo-border);border-radius:6px;background:var(--demo-bg);color:var(--demo-text);font-size:12px;cursor:pointer;transition:background .15s,color .15s}.demo-control-bar button:hover{background:var(--demo-hover-bg)}.demo-control-bar-hint{font-size:12px;color:var(--demo-text-muted);margin-left:auto}.demo-control-bar-label{font-size:12px;color:var(--demo-text-dim);white-space:nowrap}.demo-control-bar .demo-segmented{display:inline-flex;gap:2px;padding:2px;border:1px solid var(--demo-border);border-radius:7px;background:var(--demo-surface)}.demo-control-bar .demo-segmented button{padding:3px 10px;border:0;border-radius:5px;background:transparent;color:var(--demo-text-muted);font-size:12px;font-weight:400;cursor:pointer;transition:background .15s,color .15s}.demo-control-bar .demo-segmented button:hover{background:var(--demo-hover-bg);color:var(--demo-text)}.demo-control-bar .demo-segmented button[aria-pressed=true]{background:var(--demo-bg);box-shadow:var(--demo-shadow);color:var(--demo-text);font-weight:600}.demo-connect-panel{display:flex;flex-direction:column;gap:10px;padding:12px;background:var(--demo-surface);border-bottom:1px solid var(--demo-border)}.demo-connect-grid{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.demo-connect-field{display:flex;flex-direction:column;gap:4px}.demo-connect-field:has(.demo-connect-input){flex:1;min-width:220px}.demo-connect-label{font-size:11px;color:var(--demo-text-dim)}.demo-connect-input,.demo-connect-select{padding:5px 8px;border:1px solid var(--demo-border);border-radius:6px;background:var(--demo-bg);color:var(--demo-text);font-size:12px;font-family:inherit}.demo-connect-input:focus,.demo-connect-select:focus{outline:2px solid var(--demo-accent);outline-offset:-1px}.demo-connect-badge{align-self:center;padding:3px 8px;border-radius:999px;background:var(--demo-hover-bg);color:var(--demo-text-muted);font-size:11px;white-space:nowrap}.demo-connect-badge[data-level=ok]{color:#059669}.demo-connect-badge[data-level=blocked]{color:#dc2626}.demo-connect-note,.demo-connect-warn,.demo-connect-status{margin:0;font-size:11px;line-height:1.6;color:var(--demo-text-muted)}.demo-connect-warn{color:#b45309}.demo-connect-status[data-status=ok]{color:#059669}.demo-connect-status[data-status=error]{color:#dc2626}.demo-connect-actions{display:flex;gap:8px}.demo-connect-actions button{padding:4px 10px;border:1px solid var(--demo-border);border-radius:6px;background:var(--demo-bg);color:var(--demo-text);font-size:12px;cursor:pointer}.demo-connect-actions button:hover:not(:disabled){background:var(--demo-hover-bg)}.demo-connect-actions button:disabled{opacity:.5;cursor:not-allowed}.demo-connect-actions .demo-connect-primary{border-color:var(--demo-accent);background:var(--demo-accent);color:#fff}.demo-editor-body{flex:1;overflow:auto;padding:12px}.demo-btn{padding:4px 10px;border:1px solid var(--demo-border);border-radius:6px;background:var(--demo-bg);color:var(--demo-text);font-size:12px;cursor:pointer;white-space:nowrap;transition:background .15s;margin:0;display:inline-flex}.demo-btn:hover{background:var(--demo-hover-bg)}.demo-btn:disabled{opacity:.4;cursor:not-allowed}.demo-tab-bar{display:flex;align-items:center;gap:4px;padding:8px 12px 0;flex-wrap:wrap}.demo-toolbar{display:flex;align-items:center;gap:4px;padding:8px 12px;background:var(--demo-surface);border-bottom:1px solid var(--demo-border);flex-wrap:wrap}.demo-editor-content,.demo-editor-wrapper{min-height:150px;color:var(--demo-text);font-size:14px;line-height:1.7}.demo-editor-content--dark{color-scheme:dark}.demo-editor-wrapper{min-height:200px}.demo-editor-output{border-top:1px solid var(--demo-border)}.demo-editor-output-summary{padding:8px 12px;font-size:12px;color:var(--demo-text-muted);cursor:pointer;background:var(--demo-surface)}.demo-editor-output pre,.demo-code-block{margin:0;padding:12px;font-size:12px;background:var(--demo-code-bg);color:var(--demo-code-color);overflow:auto;max-height:200px;white-space:pre-wrap;word-break:break-all}.demo-editor-body .ProseMirror{outline:none;min-height:inherit;padding:4px 0}.demo-editor-body .ProseMirror p{margin:0 0 8px}.demo-editor-body .ProseMirror table p{margin:0}.demo-editor-body .ProseMirror h1{font-size:24px;font-weight:700;line-height:1.3;margin:20px 0 12px;color:var(--demo-text)}.demo-editor-body .ProseMirror h2{font-size:20px;font-weight:600;line-height:1.35;margin:18px 0 10px;padding-bottom:6px;border-bottom:1px solid var(--demo-border);color:var(--demo-text)}.demo-editor-body .ProseMirror h3{font-size:17px;font-weight:600;line-height:1.4;margin:16px 0 8px;color:var(--demo-text)}.demo-editor-body .ProseMirror h4{font-size:15px;font-weight:600;line-height:1.45;margin:14px 0 6px;color:var(--demo-text)}.demo-editor-body .ProseMirror h5,.demo-editor-body .ProseMirror h6{font-size:14px;font-weight:600;line-height:1.5;margin:12px 0 4px;color:var(--demo-text-muted)}.demo-editor-body .ProseMirror strong{font-weight:600}.demo-editor-body .ProseMirror em{font-style:italic}.demo-editor-body .ProseMirror u{text-decoration:underline}.demo-editor-body .ProseMirror s{text-decoration:line-through}.editor-height-intro code,.demo-editor-body .ProseMirror code{padding:1px 5px;border-radius:4px;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,monospace;font-size:.9em;background:var(--demo-code-bg);color:var(--demo-code-color)}.demo-editor-body .ProseMirror pre{margin:12px 0;padding:12px 16px;border-radius:var(--demo-radius);background:var(--demo-code-bg);overflow-x:auto}.demo-editor-body .ProseMirror pre code{padding:0;background:none;color:var(--demo-code-color);font-size:13px;line-height:1.6}.demo-editor-body .ProseMirror blockquote{margin:12px 0;padding:8px 16px;border-left:3px solid var(--demo-accent);background:var(--demo-surface);border-radius:0 var(--demo-radius) var(--demo-radius) 0;color:var(--demo-text-muted)}.demo-editor-body .ProseMirror ul,.demo-editor-body .ProseMirror ol{margin:8px 0;padding-left:24px}.demo-editor-body .ProseMirror li{margin:4px 0}.demo-editor-body .ProseMirror ul[data-type=taskList]{padding-left:0;list-style:none}.demo-editor-body .ProseMirror ul[data-type=taskList] li{display:flex;align-items:flex-start;gap:8px}.demo-editor-body .ProseMirror ul[data-type=taskList] li>label{margin-top:2px}.demo-editor-body .ProseMirror hr{margin:20px 0;border:none;border-top:1px solid var(--demo-border)}.demo-editor-body .ProseMirror a{color:var(--demo-accent);text-decoration:underline;text-underline-offset:2px}.demo-editor-body .ProseMirror img{max-width:100%;height:auto;border-radius:var(--demo-radius)}.demo-editor-body .ProseMirror table{border-collapse:collapse;overflow:hidden}.demo-editor-body .ProseMirror th,.demo-editor-body .ProseMirror td{border:1px solid var(--demo-border);padding:8px 12px;text-align:left;min-width:80px;position:relative}.demo-editor-body .ProseMirror th{background:var(--demo-surface);font-weight:600;font-size:13px}.demo-editor-body .ProseMirror td{font-size:13px}.demo-editor-body .ProseMirror p.is-editor-empty:first-child:before{content:attr(data-placeholder);float:left;color:var(--demo-text-dim);pointer-events:none;height:0}.demo-iframe-wrapper{margin:16px 0;border:1px solid var(--demo-border);border-radius:var(--demo-radius);overflow:hidden;background:var(--demo-bg)}.demo-iframe-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 12px;background:var(--demo-surface);border-bottom:1px solid var(--demo-border)}.demo-iframe-label{font-size:13px;font-weight:600;color:var(--demo-text)}.demo-iframe-actions{display:flex;align-items:center;gap:6px;margin-left:auto}.demo-btn-code--active{background:var(--demo-accent);color:#fff;border-color:var(--demo-accent)}.demo-btn-code--active:hover{background:var(--sl-color-accent-high)}.demo-iframe-code-panel{border-bottom:1px solid var(--demo-border);animation:demo-code-slide-down .2s ease-out}@keyframes demo-code-slide-down{0%{opacity:0;max-height:0}to{opacity:1;max-height:600px}}.demo-iframe-code-header{display:flex;align-items:center;justify-content:space-between;padding:6px 12px;background:var(--demo-code-bg);border-bottom:1px solid var(--demo-border)}.demo-iframe-code-filename{font-size:12px;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,monospace;color:var(--demo-text-muted)}.demo-btn-copy{font-size:11px;padding:3px 8px}.demo-iframe-code.demo-code-block{margin:0;border-radius:0;max-height:400px;padding:14px 16px;line-height:1.6;font-size:13px}.demo-iframe-wrapper>iframe{display:block;width:100%;border:none;min-height:400px;margin:0;padding:0}.column-resize-handle{position:absolute;top:0;bottom:-2px;right:-3px;width:6px;background:var(--easyx-tiptap-table-plus-accent, #7c3aed);cursor:col-resize;z-index:15;pointer-events:auto}.resize-cursor{cursor:col-resize}.editor-height{display:flex;flex-direction:column;gap:20px;padding:16px}.editor-height-intro{margin:0;font-size:13px;line-height:1.7;color:var(--demo-text)}.editor-height-case{border:1px solid var(--demo-border);border-radius:10px;background:var(--demo-surface);overflow:hidden}.editor-height-case-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:12px 14px;border-bottom:1px solid var(--demo-border);background:var(--demo-control-bg)}.editor-height-case-title{margin:0;font-size:14px;font-weight:600;color:var(--demo-text)}.editor-height-case-desc{margin:4px 0 0;font-size:12px;line-height:1.6;color:var(--demo-text-muted)}.editor-height-case-code{flex-shrink:0;max-width:100%;padding:4px 8px;border-radius:6px;background:var(--demo-code-bg);color:var(--demo-code-color);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.editor-height-editor{width:100%;padding:12px 14px}.editor-height-editor .easyx-editor{width:100%}.demo-btn.demo-btn--primary{border-color:var(--demo-accent);background:var(--demo-accent);color:#fff}.demo-btn.demo-btn--primary:hover{background:var(--demo-accent);opacity:.9}.demo-image-layout{display:flex;flex-wrap:wrap;gap:16px;align-items:flex-start}.demo-image-card{flex:1 1 320px;min-width:300px;display:flex;flex-direction:column;gap:10px;padding:12px;border:1px solid var(--demo-border);border-radius:var(--demo-radius);background:var(--demo-bg)}.demo-image-card-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.demo-image-editor{margin-top:16px;padding:16px}.demo-image-card-title{font-size:12px;font-weight:600;color:var(--demo-text-muted)}.demo-image-tag{margin-left:6px;padding:1px 8px;border-radius:999px;background:var(--demo-hover-bg);color:var(--demo-text-muted);font-size:11px;font-weight:400}.demo-image-preview{display:flex;align-items:center;justify-content:center;min-height:200px;padding:8px;border-radius:6px;background:repeating-conic-gradient(rgba(127,127,127,.14) 0% 25%,transparent 0% 50%) 50% / 16px 16px}.demo-image-preview-img{max-width:100%;max-height:260px;border-radius:4px;object-fit:contain}.demo-image-error{margin:0;font-size:12px;color:#dc2626}.demo-image-chips{display:flex;flex-wrap:wrap;gap:6px}.demo-image-chip{padding:3px 10px;border:1px solid var(--demo-border);border-radius:999px;background:var(--demo-bg);color:var(--demo-text-muted);font-size:12px;cursor:pointer;transition:background .15s,color .15s}.demo-image-chip:hover{background:var(--demo-hover-bg);color:var(--demo-text)}.demo-image-chip[aria-pressed=true]{border-color:var(--demo-accent);background:var(--demo-accent);color:#fff}.demo-image-note{margin:0;min-height:32px;font-size:12px;line-height:1.6;color:var(--demo-text-muted)}.demo-image-facts{display:flex;flex-direction:column;gap:6px;margin:0;padding-top:10px;border-top:1px solid var(--demo-border);font-size:12px}.demo-image-facts>div{display:flex;gap:8px}.demo-image-facts dt{flex-shrink:0;width:72px;color:var(--demo-text-dim)}.demo-image-facts dd{margin:0;overflow:hidden;color:var(--demo-text);text-overflow:ellipsis}.demo-image-empty{margin:0;padding:24px 0;font-size:12px;line-height:1.7;color:var(--demo-text-dim)}.demo-image-results{display:flex;flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;max-height:360px;overflow:auto}.demo-image-result{display:flex;align-items:center;gap:10px;padding:8px;border:1px solid var(--demo-border);border-radius:6px;background:var(--demo-surface)}.demo-image-result[data-latest=true]{border-color:var(--demo-accent)}.demo-image-result-thumb{flex-shrink:0;width:48px;height:48px;border-radius:4px;object-fit:contain;background:repeating-conic-gradient(rgba(127,127,127,.14) 0% 25%,transparent 0% 50%) 50% / 12px 12px}.demo-image-result-meta{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.demo-image-result-name{font-size:12px;font-weight:600;color:var(--demo-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.demo-image-result-line{font-size:12px;color:var(--demo-text)}.demo-image-result-sub{font-size:11px;color:var(--demo-text-muted)}
