.editor-header{position:sticky;top:0;left:0;width:100vw;z-index:100;justify-content:space-between;padding:.125rem 1rem;border-bottom:.5px solid #2a2a2c;background:#141416;flex-shrink:0;min-height:28px;box-sizing:border-box}.editor-header,.editor-header button,.editor-header>*{display:flex;align-items:center}.editor-header button{color:#a3a3a3;justify-content:center}.editor-header .ai-button{color:#ff6b35}.editor-header .ai-button:hover{color:#f7931e}.editor-text-color{color:var(--editor-text-color)}.editor-header-logo{font-size:1.5rem;font-weight:700;color:var(--accent-primary);letter-spacing:-.02em;gap:.7rem;margin-left:3px}.editor-header-logo,.editor-header-toolbar{display:flex;align-items:center;justify-content:center;height:100%}.editor-header-toolbar{gap:1rem}.editor-header-close,.editor-header-preview{display:flex;align-items:center;justify-content:center;padding:.5rem;border-radius:6px;background:none;border:none;color:var(--text-2);transition:all .2s ease;cursor:pointer}.editor-header-close:hover,.editor-header-preview:hover{background:var(--surface-hover);color:var(--text-1)}.editor-header-kebab{display:flex;align-items:center;justify-content:center;padding:.5rem;border-radius:6px;background:none;border:none;color:var(--text-2);transition:all .2s ease;cursor:pointer;position:relative}.editor-header-kebab:hover{background:var(--surface-hover);color:var(--text-1)}.editor-header-kebab-menu{position:absolute;top:100%;right:0;min-width:180px;background:var(--surface-2);border-radius:10px;box-shadow:0 4px 24px rgba(0,0,0,.1);z-index:1001;padding:.5rem 0;display:flex;flex-direction:column;gap:0}.editor-header-kebab-menu-item{padding:.7rem 1.2rem;color:var(--text-2);font-size:1rem;background:none;border:none;text-align:left;cursor:pointer;transition:background .15s,color .15s}.editor-header-kebab-menu-item:hover{background:var(--surface-hover);color:var(--accent-primary)}.editor-toolbar{padding:0;background:none;border:none;display:flex;gap:0;align-items:center;flex-wrap:wrap;position:static;z-index:10}.toolbar-group{display:flex;gap:1px;padding:0}.toolbar-group:not(:last-child){border-right:1px solid #2a2a2c;margin-right:6px;padding-right:6px}.toolbar-button{height:36px;padding:0 8px;gap:8px;border-radius:8px;border:none;background:transparent;color:var(--text-2);cursor:pointer;display:flex;align-items:center;font-size:.875rem;font-weight:500;transition:all .15s ease;user-select:none}.toolbar-button:hover{background:var(--surface-hover);color:var(--text-1)}.toolbar-button.active{background:var(--accent-subtle);color:var(--accent-primary)}.toolbar-button svg{width:16px;height:16px}.font-dropdown-btn svg{width:18px;height:18px}.toolbar-button.icon-text-style svg{width:auto;height:auto}.editor-header-actions{display:flex;align-items:center;gap:.5rem}.editor-mode-toggle{display:flex;align-items:center;justify-content:center;width:2.5rem;height:2rem;border:1px solid var(--border-subtle);border-radius:4px;background:var(--surface-2);color:var(--text-2);font-size:var(--editor-small-size);font-weight:600;transition:all .2s ease}.editor-mode-toggle:hover{background:var(--surface-3);border-color:var(--border-hover)}.editor-mode-toggle.active{background:var(--accent-subtle);color:var(--accent-primary);border-color:var(--accent-primary)}.editor-close{display:flex;align-items:center;justify-content:center;width:2rem;height:2rem;border:1px solid var(--border-subtle);border-radius:4px;background:var(--surface-2);color:var(--text-2);cursor:pointer;transition:all .2s ease}.editor-close:hover{background:var(--surface-3);border-color:var(--border-hover);color:var(--text-1)}.editor-topbar{display:flex;align-items:center;justify-content:space-between;padding:1rem 2rem;background:var(--surface-2);border-bottom:1px solid var(--border-subtle);gap:1rem}.editor-toolbar-center{flex:1;justify-content:center}.editor-toolbar-center,.editor-topbar-actions{display:flex;align-items:center;gap:.5rem}.editor-title-section{width:100%;max-width:750px;margin:0 auto;padding:2.5rem 3rem .1rem;display:flex;flex-direction:column;align-items:flex-start}.editor-action-button{display:flex;align-items:center;justify-content:center;width:2rem;height:2rem;border:1px solid var(--border-subtle);border-radius:4px;background:var(--surface-2);color:var(--text-2);cursor:pointer;transition:all .2s ease;font-size:.875rem}.editor-action-button:hover{background:var(--surface-3);border-color:var(--border-hover);color:var(--text-1)}.editor-title-field,.editor-title-span{flex-grow:1;border:none;background:none;padding:.5rem 0 1.2rem;margin:0 1rem 0 0;font-size:var(--editor-h3-size);font-weight:600;color:var(--editor-text-color);letter-spacing:-.02em;line-height:1.2;cursor:text;transform:scale(1);transform-origin:left center;transition:font-size .2s ease,transform .2s ease;font-family:var(--editor-font-family)}.editor-title-field:focus{font-size:var(--editor-xxl-size);transform:scale(1.02)}.editor-title-span:hover{transform:scale(1.01)}.editor-title-field::placeholder{color:var(--text-3);opacity:.7}.editor-title-wrapper{width:100%;max-width:750px;padding:2.5rem 3rem .1rem;display:flex;flex-direction:column;align-items:flex-start;min-height:45px;margin:0 auto 24px}.editor-header.title-focused .editor-title-wrapper{padding:2rem 3rem .1rem}.editor-title-field:focus{outline:none;box-shadow:none}.editor-title-field,.editor-title-span,textarea.editor-title-field{width:100%;max-width:750px;min-height:45px;margin:0 auto;display:block;padding:0;font-size:var(--editor-title-size);font-weight:700;line-height:1.1;color:var(--editor-text-color);background:none;border:none;outline:none;box-sizing:border-box;white-space:normal;word-break:break-word;overflow:visible;resize:none;transition:none;max-height:200px;height:auto;font-family:inherit;white-space:pre-line}.editor-title-field{margin-bottom:0;text-align:left}.editor-title-field,.editor-title-span,textarea.editor-title-field{text-align:left}