.summary-editor{display:flex;flex-direction:column;height:100%}.summary-editor .CodeMirror{height:auto;min-height:300px;font-family:monospace;font-size:14px;line-height:1.6;padding:12px}.summary-editor .CodeMirror .cm-header-1{font-size:1.6em;font-weight:700}.summary-editor .CodeMirror .cm-header-2{font-size:1.35em;font-weight:700}.summary-editor .CodeMirror .cm-header-3{font-size:1.15em;font-weight:600}.summary-editor .CodeMirror .cm-header-4{font-size:1.05em;font-weight:600}.summary-editor .CodeMirror .cm-strong{font-weight:700}.summary-editor .CodeMirror .cm-em{font-style:italic}.summary-editor .CodeMirror .cm-strikethrough{text-decoration:line-through}.summary-editor .CodeMirror .cm-link{color:#4a9eff;text-decoration:underline}.summary-editor .CodeMirror .cm-url{color:#999}.summary-editor .CodeMirror .cm-comment{color:#6a9955}.summary-editor .CodeMirror .cm-quote{color:#888;font-style:italic}.summary-toolbar{display:flex;align-items:center}.summary-toolbar .toolbar-btn{display:inline-flex;align-items:center;justify-content:center;cursor:pointer;padding:4px 8px;margin-left:4px;background:none;border:none}.summary-toolbar .toolbar-btn:disabled{opacity:.4;cursor:default}.summary-toolbar .char-counter{font-size:12px;color:#999;padding:0 8px}.summary-toolbar .char-counter.warn{color:#e67e22}.summary-toolbar .char-counter.over{color:#c0392b;font-weight:600}.preview-toggle.active i{color:#7ec8f7!important}.summary-content{flex:1;overflow-y:auto;position:relative;padding:8px 16px}.summary-preview{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;font-size:14px;line-height:1.6;color:#333;padding:12px}.summary-preview h1,.summary-preview h2,.summary-preview h3,.summary-preview h4,.summary-preview h5,.summary-preview h6{color:#2c3e50;margin:16px 0 8px;line-height:1.3}.summary-preview h1{font-size:1.6em;font-weight:700;border-bottom:2px solid #3498db;padding-bottom:8px}.summary-preview h2{font-size:1.35em;font-weight:700;border-bottom:1px solid #bdc3c7;padding-bottom:4px}.summary-preview h3{font-size:1.15em;font-weight:600;color:#34495e}.summary-preview h4{font-size:1.05em;font-weight:600}.summary-preview code{background:#e8e8e8;padding:2px 6px;border-radius:4px;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:.9em;color:#c7254e}.summary-preview pre{background:#2c3e50;color:#ecf0f1;padding:16px;border-radius:8px;overflow-x:auto;margin:12px 0}.summary-preview pre code{background:transparent;padding:0;color:#ecf0f1}.summary-preview ul,.summary-preview ol{margin:12px 0;padding-left:24px}.summary-preview li{margin:6px 0}.summary-preview blockquote{border-left:4px solid #3498db;margin:12px 0;padding:8px 16px;background:#ecf0f1;font-style:italic;border-radius:0 8px 8px 0}.summary-preview table{border-collapse:collapse;width:100%;margin:12px 0}.summary-preview th,.summary-preview td{border:1px solid #bdc3c7;padding:8px 12px;text-align:left}.summary-preview th{background:#3498db;color:#fff;font-weight:700}.summary-preview strong{color:#2c3e50;font-weight:600}.summary-preview p{margin:8px 0}.summary-preview p:first-child{margin-top:0}.summary-preview p:last-child{margin-bottom:0}.summary-preview hr{border:none;border-top:2px solid #bdc3c7;margin:20px 0}.summary-preview a{color:#3498db;text-decoration:none}.summary-preview a:hover{text-decoration:underline}.generating-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:8px;background:#ffffffd9;z-index:10;font-size:14px;color:#666}.generating-overlay .spin{animation:spin 2s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}
