@lyfie/luthor 2.3.6 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/README.md +5 -8
  2. package/dist/{ExtensiveEditor-B25Uedf2.d.ts → ExtensiveEditor-6OT-Dmr1.d.ts} +21 -4
  3. package/dist/chunk-42NSZXCX.js +1 -0
  4. package/dist/{chunk-YI6UVUPP.js → chunk-AHHU2IZS.js} +1 -1
  5. package/dist/chunk-MGWT45KA.js +1 -0
  6. package/dist/chunk-ONBHJIZQ.js +6 -0
  7. package/dist/chunk-TRGIRBLU.js +1 -0
  8. package/dist/chunk-VITE7CVN.js +1 -0
  9. package/dist/{index-CUB1ColU.d.ts → index-DZPcit31.d.ts} +3 -2
  10. package/dist/index.css +1 -1
  11. package/dist/index.d.ts +15 -14
  12. package/dist/index.js +1 -1
  13. package/dist/presets/compose/index.d.ts +27 -0
  14. package/dist/presets/compose/index.js +1 -0
  15. package/dist/presets/composer/index.d.ts +64 -0
  16. package/dist/presets/composer/index.js +1 -0
  17. package/dist/presets/extensive/index.d.ts +2 -2
  18. package/dist/presets/extensive/index.js +1 -1
  19. package/dist/presets/headless-editor/index.js +1 -1
  20. package/dist/presets/md-friendly/index.d.ts +19 -0
  21. package/dist/presets/md-friendly/index.js +1 -0
  22. package/dist/presets/notion-like/index.d.ts +1 -1
  23. package/dist/presets/notion-like/index.js +1 -1
  24. package/package.json +7 -6
  25. package/dist/chunk-DOJY2XR6.js +0 -1
  26. package/dist/chunk-HSXFJCQA.js +0 -1
  27. package/dist/chunk-QR6IHW2C.js +0 -1
  28. package/dist/chunk-RLHHVHV7.js +0 -1
  29. package/dist/chunk-TID3K24V.js +0 -1
  30. package/dist/chunk-TTLFSMFF.js +0 -1
  31. package/dist/chunk-U3MVQLAN.js +0 -1
  32. package/dist/chunk-WU54BL4Y.js +0 -3
  33. package/dist/presets/chat-window/index.d.ts +0 -22
  34. package/dist/presets/chat-window/index.js +0 -1
  35. package/dist/presets/email-compose/index.d.ts +0 -17
  36. package/dist/presets/email-compose/index.js +0 -1
  37. package/dist/presets/md-text/index.d.ts +0 -15
  38. package/dist/presets/md-text/index.js +0 -1
  39. package/dist/presets/notes/index.d.ts +0 -21
  40. package/dist/presets/notes/index.js +0 -1
  41. package/dist/presets/rich-text-box/index.d.ts +0 -17
  42. package/dist/presets/rich-text-box/index.js +0 -1
  43. package/dist/presets/simple-text/index.d.ts +0 -15
  44. package/dist/presets/simple-text/index.js +0 -1
@@ -1,14 +1,15 @@
1
1
  import { E as EditorPreset } from './index-BtdZVw3X.js';
2
2
  import { FontFamilyOption, FontSizeOption, LineHeightOption, CodeLanguageOptionsConfig } from '@lyfie/luthor-headless';
3
- import { g as ToolbarItemType } from './ExtensiveEditor-B25Uedf2.js';
3
+ import { g as ToolbarItemType } from './ExtensiveEditor-6OT-Dmr1.js';
4
4
 
5
- declare const extensiveToolbar: readonly ["undo", "redo", "heading", "fontFamily", "fontSize", "lineHeight", "textColor", "textHighlight", "bold", "italic", "underline", "strikethrough", "subscript", "superscript", "link", "image", "table", "horizontalRule", "iframeEmbed", "youtubeEmbed", "blockquote", "code", "codeBlock", "bulletedList", "numberedList", "checkList", "commandPalette", "floatingToolbar", "contextMenu", "draggableBlock", "customNode", "sourceMode", "themeToggle"];
5
+ declare const extensiveToolbar: readonly ["undo", "redo", "fontFamily", "heading", "fontSize", "lineHeight", "textColor", "textHighlight", "bold", "italic", "underline", "strikethrough", "subscript", "superscript", "link", "image", "table", "horizontalRule", "iframeEmbed", "youtubeEmbed", "blockquote", "code", "codeBlock", "bulletedList", "numberedList", "checkList", "commandPalette", "floatingToolbar", "contextMenu", "draggableBlock", "customNode", "sourceMode", "themeToggle"];
6
6
  declare const extensivePreset: EditorPreset;
7
7
  type ExtensivePresetConfig = {
8
8
  fontFamilyOptions?: readonly FontFamilyOption[];
9
9
  fontSizeOptions?: readonly FontSizeOption[];
10
10
  lineHeightOptions?: readonly LineHeightOption[];
11
11
  minimumDefaultLineHeight?: string | number;
12
+ maxListIndentation?: number;
12
13
  isCopyAllowed?: boolean;
13
14
  languageOptions?: readonly string[] | CodeLanguageOptionsConfig;
14
15
  };
package/dist/index.css CHANGED
@@ -1 +1 @@
1
- .luthor-preset-extensive.luthor-editor-wrapper[data-editor-theme=light]{--luthor-bg: #ffffff;--luthor-fg: #0f172a;--luthor-border: #e2e8f0;--luthor-border-hover: #cbd5e1;--luthor-border-active: #94a3b8;--luthor-accent: #0f172a;--luthor-accent-hover: #1e293b;--luthor-shadow: rgba(0, 0, 0, .08);--luthor-muted: #f8fafc;--luthor-muted-fg: #64748b;--luthor-toolbar-bg: var(--luthor-muted);--luthor-toolbar-section-border: var(--luthor-border);--luthor-toolbar-button-fg: var(--luthor-fg);--luthor-toolbar-button-hover-bg: var(--luthor-muted);--luthor-toolbar-button-hover-border: var(--luthor-border-hover);--luthor-toolbar-button-hover-shadow: 0 4px 12px rgba(0, 0, 0, .15);--luthor-toolbar-button-press-shadow: 0 2px 8px rgba(0, 0, 0, .1);--luthor-toolbar-button-active-bg: var(--luthor-accent);--luthor-toolbar-button-active-border: var(--luthor-accent);--luthor-toolbar-button-active-fg: var(--luthor-bg);--luthor-toolbar-button-active-shadow: 0 2px 8px rgba(0, 0, 0, .2);--luthor-toolbar-button-overlay: linear-gradient(135deg, rgba(255, 255, 255, .1) 0%, rgba(255, 255, 255, .05) 100%);--luthor-toolbar-button-active-overlay: linear-gradient(135deg, rgba(255, 255, 255, .2) 0%, rgba(255, 255, 255, .1) 100%);--luthor-toolbar-color-indicator-border: var(--luthor-border);--luthor-toolbar-highlight-bg: var(--luthor-muted);--luthor-quote-bg: var(--luthor-muted);--luthor-quote-fg: var(--luthor-fg);--luthor-quote-border: var(--luthor-accent);--luthor-text-bold-color: var(--luthor-fg);--luthor-link-color: var(--luthor-accent);--luthor-list-marker-color: var(--luthor-fg);--luthor-list-checkbox-color: var(--luthor-accent);--luthor-table-border-color: var(--luthor-border);--luthor-table-header-bg: var(--luthor-muted);--luthor-hr-color: var(--luthor-border);--luthor-placeholder-color: var(--luthor-muted-fg);--luthor-codeblock-bg: var(--luthor-muted);--luthor-code-unhighlighted-fg: #24292e;--luthor-floating-bg: var(--luthor-bg);--luthor-floating-fg: var(--luthor-fg);--luthor-floating-border: var(--luthor-border);--luthor-floating-shadow: var(--luthor-shadow);--luthor-floating-muted: var(--luthor-muted);--luthor-floating-border-hover: var(--luthor-border-hover);--luthor-floating-border-active: var(--luthor-border-active);--luthor-floating-accent: var(--luthor-accent);--luthor-floating-accent-fg: var(--luthor-bg);--luthor-syntax-comment: #64748b;--luthor-syntax-keyword: #64748b;--luthor-syntax-string: #64748b;--luthor-syntax-number: #64748b;--luthor-syntax-function: #64748b;--luthor-syntax-variable: #64748b}.luthor-preset-extensive.luthor-editor-wrapper[data-editor-theme=dark]{--luthor-bg: #0a0a0a;--luthor-fg: #ededed;--luthor-border: #262626;--luthor-border-hover: #404040;--luthor-border-active: #525252;--luthor-accent: #ededed;--luthor-accent-hover: #d4d4d8;--luthor-shadow: rgba(0, 0, 0, .5);--luthor-muted: #171717;--luthor-muted-fg: #a3a3a3;--luthor-toolbar-bg: var(--luthor-muted);--luthor-toolbar-section-border: var(--luthor-border);--luthor-toolbar-button-fg: var(--luthor-fg);--luthor-toolbar-button-hover-bg: var(--luthor-muted);--luthor-toolbar-button-hover-border: var(--luthor-border-hover);--luthor-toolbar-button-hover-shadow: 0 4px 12px rgba(0, 0, 0, .35);--luthor-toolbar-button-press-shadow: 0 2px 8px rgba(0, 0, 0, .3);--luthor-toolbar-button-active-bg: var(--luthor-accent);--luthor-toolbar-button-active-border: var(--luthor-accent);--luthor-toolbar-button-active-fg: var(--luthor-bg);--luthor-toolbar-button-active-shadow: 0 2px 8px rgba(0, 0, 0, .5);--luthor-toolbar-button-overlay: linear-gradient(135deg, rgba(255, 255, 255, .08) 0%, rgba(255, 255, 255, .03) 100%);--luthor-toolbar-button-active-overlay: linear-gradient(135deg, rgba(255, 255, 255, .14) 0%, rgba(255, 255, 255, .06) 100%);--luthor-toolbar-color-indicator-border: var(--luthor-border);--luthor-toolbar-highlight-bg: var(--luthor-muted);--luthor-quote-bg: color-mix(in srgb, var(--luthor-muted) 92%, #ffffff 8%);--luthor-quote-fg: var(--luthor-fg);--luthor-quote-border: color-mix(in srgb, var(--luthor-accent) 78%, #ffffff 22%);--luthor-text-bold-color: var(--luthor-fg);--luthor-link-color: var(--luthor-accent);--luthor-list-marker-color: var(--luthor-fg);--luthor-list-checkbox-color: var(--luthor-accent);--luthor-table-border-color: var(--luthor-border);--luthor-table-header-bg: var(--luthor-muted);--luthor-hr-color: var(--luthor-border);--luthor-placeholder-color: var(--luthor-muted-fg);--luthor-codeblock-bg: var(--luthor-muted);--luthor-code-unhighlighted-fg: #c9d1d9;--luthor-floating-bg: var(--luthor-bg);--luthor-floating-fg: var(--luthor-fg);--luthor-floating-border: var(--luthor-border);--luthor-floating-shadow: var(--luthor-shadow);--luthor-floating-muted: var(--luthor-muted);--luthor-floating-border-hover: var(--luthor-border-hover);--luthor-floating-border-active: var(--luthor-border-active);--luthor-floating-accent: var(--luthor-accent);--luthor-floating-accent-fg: var(--luthor-bg);--luthor-syntax-comment: #8b949e;--luthor-syntax-keyword: #8b949e;--luthor-syntax-string: #8b949e;--luthor-syntax-number: #8b949e;--luthor-syntax-function: #8b949e;--luthor-syntax-variable: #8b949e}.luthor-preset-extensive.luthor-editor-wrapper{border:1px solid var(--luthor-border);border-radius:8px;background-color:var(--luthor-bg);overflow:hidden;display:flex;flex-direction:column;position:relative;--luthor-theme-transition: .2s ease;width:100%;max-width:100%;min-height:500px;height:auto;isolation:isolate;--luthor-z-dropdown: 20;--luthor-z-popover: 24;--luthor-z-menu: 28;--luthor-z-overlay: 32;--luthor-z-modal: 36;transition:background-color var(--luthor-theme-transition),border-color var(--luthor-theme-transition),color var(--luthor-theme-transition),box-shadow var(--luthor-theme-transition)}.luthor-preset-extensive.luthor-editor-wrapper,.luthor-preset-extensive.luthor-editor-wrapper *,.luthor-preset-extensive.luthor-editor-wrapper *:before,.luthor-preset-extensive.luthor-editor-wrapper *:after{box-sizing:border-box}.luthor-editor-header{background-color:var(--luthor-muted);border-bottom:1px solid var(--luthor-border);transition:background-color var(--luthor-theme-transition),border-color var(--luthor-theme-transition),color var(--luthor-theme-transition)}.luthor-editor-toolbar-slot{background-color:var(--luthor-toolbar-bg, var(--luthor-muted));transition:background-color var(--luthor-theme-transition),border-color var(--luthor-theme-transition),color var(--luthor-theme-transition)}.luthor-editor-toolbar-slot--bottom{border-top:1px solid var(--luthor-border)}.luthor-mode-tabs{display:flex;border-bottom:1px solid var(--luthor-border);transition:border-color var(--luthor-theme-transition),background-color var(--luthor-theme-transition)}.luthor-mode-tab{padding:10px 20px;background:none;border:none;cursor:pointer;color:var(--luthor-muted-fg);font-size:14px;font-weight:500;transition:all .2s cubic-bezier(.4,0,.2,1);border-bottom:2px solid transparent;position:relative}.luthor-mode-tab:hover{color:var(--luthor-fg);background-color:var(--luthor-muted)}.luthor-mode-tab.active{color:var(--luthor-accent);border-bottom-color:var(--luthor-accent);background-color:#0f172a0d}.luthor-tab-converting-spinner{display:inline-block;width:12px;height:12px;margin-left:6px;border:2px solid var(--luthor-muted-fg);border-top-color:var(--luthor-accent);border-radius:50%;animation:luthor-spin .6s linear infinite;vertical-align:middle}@keyframes luthor-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.luthor-toolbar{display:flex;align-items:center;gap:4px;padding:8px;flex-wrap:wrap;overflow-x:hidden;overflow-y:visible;row-gap:6px;min-height:48px;transition:background-color var(--luthor-theme-transition),border-color var(--luthor-theme-transition),color var(--luthor-theme-transition)}.luthor-toolbar--align-left{justify-content:flex-start}.luthor-toolbar--align-center{justify-content:center}.luthor-toolbar--align-right{justify-content:flex-end}.luthor-toolbar-section{display:flex;align-items:center;flex-wrap:wrap;gap:2px;padding:0 4px;min-width:0}.luthor-toolbar-section:not(:last-child){border-right:1px solid var(--luthor-toolbar-section-border, var(--luthor-border));margin-right:8px;padding-right:8px;transition:border-color var(--luthor-theme-transition)}.luthor-toolbar-button{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border:1px solid transparent;border-radius:6px;background-color:transparent;color:var(--luthor-toolbar-button-fg, var(--luthor-fg));cursor:pointer;transition:all .2s cubic-bezier(.4,0,.2,1);font-size:16px;position:relative;overflow:hidden}.luthor-toolbar-button:before{content:"";position:absolute;inset:0;background:var(--luthor-toolbar-button-overlay);opacity:0;transition:opacity .2s ease}.luthor-toolbar-button:hover{background-color:var(--luthor-toolbar-button-hover-bg, var(--luthor-muted));border-color:var(--luthor-toolbar-button-hover-border, var(--luthor-border-hover));transform:translateY(-1px);box-shadow:var(--luthor-toolbar-button-hover-shadow)}.luthor-toolbar-button:hover:before{opacity:1}.luthor-toolbar-button:active{transform:translateY(0) scale(.98);box-shadow:var(--luthor-toolbar-button-press-shadow)}.luthor-toolbar-button.active{background-color:var(--luthor-toolbar-button-active-bg, var(--luthor-accent));border-color:var(--luthor-toolbar-button-active-border, var(--luthor-accent));color:var(--luthor-toolbar-button-active-fg, var(--luthor-bg));box-shadow:var(--luthor-toolbar-button-active-shadow)}.luthor-toolbar-button.active:before{background:var(--luthor-toolbar-button-active-overlay);opacity:1}.luthor-toolbar-button:disabled{opacity:.5;cursor:not-allowed;transform:none;box-shadow:none}.luthor-toolbar-button:disabled:hover{background-color:transparent;border-color:transparent;transform:none;box-shadow:none}.luthor-toolbar-button:disabled:before{opacity:0}.luthor-color-button{padding-bottom:4px}.luthor-color-button-letter{font-size:14px;line-height:1;font-weight:700;position:relative;z-index:1}.luthor-color-button-indicator{position:absolute;left:7px;right:7px;bottom:5px;height:3px;border-radius:999px;border:1px solid var(--luthor-toolbar-color-indicator-border, var(--luthor-border));box-shadow:inset 0 0 0 1px #fff3;z-index:1}.luthor-color-button.is-highlight .luthor-color-button-letter{padding:0 2px;border-radius:3px;background-color:var(--luthor-toolbar-highlight-bg, var(--luthor-muted))}.luthor-color-button-highlighter{position:relative;z-index:1}.luthor-color-picker{z-index:var(--luthor-z-popover, 440);background-color:var(--luthor-bg, #ffffff);border:1px solid var(--luthor-border, #e2e8f0);border-radius:10px;box-shadow:0 12px 28px #0f172a2e;padding:10px;display:grid;gap:9px;max-width:90vw;width:248px;color:var(--luthor-fg, #0f172a)}.luthor-color-picker-header{display:flex;align-items:center;justify-content:space-between;gap:10px}.luthor-color-picker-title{font-size:12px;font-weight:600;color:var(--luthor-fg)}.luthor-color-picker-native-hidden{position:absolute;width:0;height:0;opacity:0;pointer-events:none}.luthor-color-picker-clear{border:1px solid var(--luthor-border);border-radius:6px;background:var(--luthor-muted);color:var(--luthor-fg);font-size:12px;font-weight:500;padding:4px 8px;cursor:pointer}.luthor-color-picker-clear:hover{border-color:var(--luthor-border-hover)}.luthor-color-picker-section{display:grid;gap:6px}.luthor-color-picker-label{margin:0;font-size:11px;font-weight:600;color:var(--luthor-muted-fg);text-transform:uppercase;letter-spacing:.03em}.luthor-color-swatch-grid,.luthor-color-swatch-row{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}.luthor-color-swatch{width:100%;aspect-ratio:1;border:1px solid var(--luthor-border);border-radius:6px;background-clip:padding-box;cursor:pointer;transition:transform .15s ease,border-color .15s ease;box-shadow:inset 0 0 0 1px #0f172a14}.luthor-color-swatch:hover:enabled{border-color:var(--luthor-border-hover);transform:translateY(-1px)}.luthor-color-swatch:disabled{cursor:not-allowed;background-image:repeating-linear-gradient(45deg,transparent,transparent 4px,var(--luthor-muted) 4px,var(--luthor-muted) 8px);opacity:.7}.luthor-color-picker-footer{display:flex;justify-content:space-between;align-items:center;gap:8px;padding-top:2px}.luthor-color-picker-custom{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--luthor-border);border-radius:6px;background:var(--luthor-muted);color:var(--luthor-fg);font-size:12px;font-weight:500;padding:4px 8px;cursor:pointer}.luthor-color-picker-custom:hover{border-color:var(--luthor-border-hover)}.luthor-preset-extensive.luthor-editor-wrapper[data-editor-theme=dark] .luthor-color-picker{box-shadow:0 14px 32px #0009}.luthor-preset-extensive.luthor-editor-wrapper[data-editor-theme=dark] .luthor-color-swatch{box-shadow:inset 0 0 0 1px #ffffff14}.luthor-preset-extensive.luthor-editor-wrapper[data-editor-theme=dark] .luthor-color-picker-clear,.luthor-preset-extensive.luthor-editor-wrapper[data-editor-theme=dark] .luthor-color-picker-custom{background:#ffffff0a}.luthor-select{position:relative;display:inline-block}.luthor-select-trigger{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:8px 12px;border:1px solid var(--luthor-border);border-radius:6px;background-color:var(--luthor-bg);color:var(--luthor-fg);cursor:pointer;font-size:14px;min-width:120px;max-width:180px;height:36px;transition:all .2s cubic-bezier(.4,0,.2,1);box-shadow:0 1px 3px #0000001a}.luthor-select-trigger span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}.luthor-select-trigger:hover{border-color:var(--luthor-border-hover);box-shadow:0 2px 8px #00000026}.luthor-select-trigger.open{border-color:var(--luthor-accent);box-shadow:0 0 0 3px #0f172a1a}.luthor-select-dropdown{position:fixed;z-index:var(--luthor-z-dropdown, 420);background-color:var(--luthor-bg, #ffffff);border:1px solid var(--luthor-border, #e2e8f0);border-radius:6px;box-shadow:0 8px 32px #0000001f;max-height:200px;overflow-y:auto}.luthor-select-option{display:block;width:100%;padding:10px 14px;border:none;background:none;color:var(--luthor-fg);cursor:pointer;font-size:14px;text-align:left;transition:all .15s ease}.luthor-select-option:hover{background-color:var(--luthor-muted)}.luthor-select-option.selected{background-color:var(--luthor-accent);color:var(--luthor-bg);font-weight:500}.luthor-dropdown{position:relative;display:inline-flex}.luthor-dropdown-content{position:fixed;z-index:var(--luthor-z-dropdown, 420);background-color:var(--luthor-bg, #ffffff);border:1px solid var(--luthor-border, #e2e8f0);border-radius:4px;box-shadow:0 4px 6px -1px var(--luthor-shadow);margin-top:2px;min-width:160px;padding:4px 0}.luthor-dropdown-item{display:flex;align-items:center;gap:8px;width:100%;padding:8px 12px;border:none;background:none;color:var(--luthor-fg);cursor:pointer;font-size:14px;text-align:left;transition:background-color .15s}.luthor-dropdown-item:hover{background-color:var(--luthor-muted)}.luthor-file-input{display:none}.luthor-editor{flex:1;display:flex;flex-direction:column;min-height:400px;position:relative;--luthor-drag-gutter-width: 56px;background-color:var(--luthor-bg);transition:background-color var(--luthor-theme-transition),border-color var(--luthor-theme-transition),color var(--luthor-theme-transition)}.luthor-editor-visual-shell{display:grid;grid-template-columns:var(--luthor-drag-gutter-width) minmax(0,1fr);grid-template-rows:minmax(0,1fr);flex:1;min-height:0}.luthor-editor-visual-shell--no-gutter{grid-template-columns:minmax(0,1fr)}.luthor-editor-visual-shell.is-hidden{position:absolute;inset:0;visibility:hidden;pointer-events:none}.luthor-editor-visual-gutter{grid-column:1;grid-row:1;pointer-events:none;background-color:var(--luthor-bg);transition:background-color var(--luthor-theme-transition),border-color var(--luthor-theme-transition),color var(--luthor-theme-transition)}.luthor-editor--draggable-disabled{--luthor-drag-gutter-width: 0px}.luthor-editor--draggable-disabled .luthor-editor-visual-gutter{display:none}.luthor-richtext-container{position:relative;flex:1;--luthor-editor-content-padding-y: 20px;--luthor-editor-content-padding-x: 20px;--luthor-first-block-offset: calc(8px * var(--luthor-line-height-ratio, 1));background-color:var(--luthor-bg);transition:background-color var(--luthor-theme-transition),border-color var(--luthor-theme-transition),color var(--luthor-theme-transition)}.luthor-editor-visual-shell .luthor-richtext-container{grid-column:2;grid-row:1;min-width:0}.luthor-editor-visual-shell--no-gutter .luthor-richtext-container{grid-column:1}.luthor-content-editable{flex:1;padding:var(--luthor-editor-content-padding-y) var(--luthor-editor-content-padding-x);outline:none;color:var(--luthor-fg);line-height:1;font-size:16px;background-color:var(--luthor-bg);transition:background-color var(--luthor-theme-transition),color var(--luthor-theme-transition),border-color var(--luthor-theme-transition)}.luthor-content-editable:focus{outline:none;background-color:var(--luthor-bg)}.luthor-content-editable a,.luthor-content-editable a:hover,.luthor-content-editable a:focus-visible{cursor:pointer}.luthor-placeholder{color:var(--luthor-placeholder-color, var(--luthor-muted-fg));pointer-events:none;position:absolute;top:calc(var(--luthor-editor-content-padding-y) + var(--luthor-first-block-offset));left:var(--luthor-editor-content-padding-x);font-size:16px;line-height:var(--luthor-default-line-height, 1.5);z-index:1;transition:color var(--luthor-theme-transition),background-color var(--luthor-theme-transition),border-color var(--luthor-theme-transition)}.luthor-source-panel{padding:20px;flex:1;overflow-y:auto;background-color:var(--luthor-bg);transition:background-color var(--luthor-theme-transition),border-color var(--luthor-theme-transition),color var(--luthor-theme-transition)}.luthor-source-view{width:100%;min-height:280px;padding:12px;border:1px solid var(--luthor-border);font-family:SF Mono,Monaco,Inconsolata,Roboto Mono,Consolas,Courier New,monospace;font-size:14px;line-height:1.6;background-color:var(--luthor-bg);color:var(--luthor-fg);border-radius:0;resize:vertical;overflow-x:auto;overflow-y:auto;white-space:pre;tab-size:2;transition:background-color var(--luthor-theme-transition),color var(--luthor-theme-transition),border-color var(--luthor-theme-transition)}.luthor-source-error{display:flex;gap:12px;padding:12px;margin-bottom:12px;background-color:#dc26261a;border:1px solid rgba(220,38,38,.3);border-radius:6px;color:#dc2626;transition:background-color var(--luthor-theme-transition),border-color var(--luthor-theme-transition),color var(--luthor-theme-transition)}.luthor-preset-extensive.luthor-editor-wrapper[data-editor-theme=dark] .luthor-source-error{background-color:#ef444426;border-color:#ef444466;color:#fca5a5}.luthor-source-error-icon{flex-shrink:0;font-size:18px;line-height:1}.luthor-source-error-message{flex:1}.luthor-source-error-message strong{display:block;margin-bottom:4px;font-weight:600}.luthor-source-error-message p{margin:4px 0;font-size:13px;line-height:1.4;white-space:pre-wrap;word-break:break-word}.luthor-source-error-message small{display:block;margin-top:6px;font-size:12px;opacity:.7}.luthor-command-palette-overlay{position:absolute;inset:0;background:#00000080;display:flex;align-items:flex-start;justify-content:center;padding:min(20vh,120px) 16px 16px;z-index:var(--luthor-z-overlay, 480);overscroll-behavior:contain}.luthor-command-palette{background:var(--luthor-bg, #ffffff);border:1px solid var(--luthor-border, #e2e8f0);border-radius:12px;box-shadow:0 12px 48px #0000001f;width:min(640px,100%);max-width:100%;max-height:min(560px,calc(100% - min(20vh,120px) - 16px));display:flex;flex-direction:column;overflow:hidden;overscroll-behavior:contain}.luthor-command-palette-header{display:flex;align-items:center;padding:16px 20px;border-bottom:1px solid var(--luthor-border);gap:12px}.luthor-command-palette-icon{color:var(--luthor-muted-fg);flex-shrink:0}.luthor-command-palette-input{flex:1;background:transparent;border:none;outline:none;font-size:16px;color:var(--luthor-fg);font-family:inherit}.luthor-command-palette-input::placeholder{color:var(--luthor-muted-fg)}.luthor-command-palette-kbd{background:var(--luthor-muted);border:1px solid var(--luthor-border);border-radius:4px;padding:2px 6px;font-size:11px;color:var(--luthor-muted-fg);font-family:monospace}.luthor-command-palette-list{flex:1;overflow-y:auto;padding:8px 0;overscroll-behavior:contain}.luthor-command-palette-group{margin-bottom:8px}.luthor-command-palette-group-title{padding:8px 20px 4px;font-size:11px;font-weight:600;color:var(--luthor-muted-fg);text-transform:uppercase;letter-spacing:.5px}.luthor-command-palette-item{display:flex;align-items:center;padding:12px 20px;cursor:pointer;border:none;background:none;width:100%;text-align:left;transition:background-color .1s}.luthor-command-palette-item:hover,.luthor-command-palette-item.selected{background:var(--luthor-muted)}.luthor-command-palette-item-content{flex:1;min-width:0}.luthor-command-palette-item-title{font-size:14px;color:var(--luthor-fg);font-weight:500;margin-bottom:2px}.luthor-command-palette-item-description{font-size:12px;color:var(--luthor-muted-fg);line-height:1.4}.luthor-command-palette-item-shortcut{background:var(--luthor-muted);border:1px solid var(--luthor-border);border-radius:4px;padding:2px 6px;font-size:10px;color:var(--luthor-muted-fg);font-family:monospace;margin-left:12px;flex-shrink:0}.luthor-command-palette-footer{padding:12px 20px;border-top:1px solid var(--luthor-border);background:var(--luthor-muted)}.luthor-command-palette-hint{font-size:11px;color:var(--luthor-muted-fg);display:flex;align-items:center;gap:8px}.luthor-command-palette-hint kbd{background:var(--luthor-bg);border:1px solid var(--luthor-border);border-radius:3px;padding:1px 4px;font-size:10px;font-family:monospace}.luthor-command-palette-empty{padding:40px 20px;text-align:center;color:var(--luthor-muted-fg);font-size:14px}.luthor-slash-menu{position:fixed;z-index:var(--luthor-z-menu, 460);background:var(--luthor-bg, #ffffff);border:1px solid var(--luthor-border, #e2e8f0);border-radius:10px;box-shadow:0 12px 36px #00000024;width:min(420px,calc(100vw - 24px));max-height:min(55vh,420px);overflow:hidden;display:flex;flex-direction:column}.luthor-slash-menu-header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 12px;border-bottom:1px solid var(--luthor-border);background:var(--luthor-muted)}.luthor-slash-menu-title{font-size:12px;font-weight:600;color:var(--luthor-muted-fg);text-transform:uppercase;letter-spacing:.4px}.luthor-slash-menu-query{font-size:12px;font-family:monospace;color:var(--luthor-muted-fg);background:var(--luthor-bg);border:1px solid var(--luthor-border);padding:1px 6px;border-radius:4px}.luthor-slash-menu-list{overflow-y:auto;padding:8px 0}.luthor-slash-menu-group{margin-bottom:6px}.luthor-slash-menu-group-title{padding:6px 12px 4px;font-size:11px;font-weight:600;color:var(--luthor-muted-fg);text-transform:uppercase;letter-spacing:.5px}.luthor-slash-menu-item{width:100%;display:flex;align-items:center;gap:12px;padding:10px 12px;border:none;background:none;text-align:left;cursor:pointer;color:var(--luthor-fg);transition:background-color .12s}.luthor-slash-menu-item:hover,.luthor-slash-menu-item.selected{background:var(--luthor-muted)}.luthor-slash-menu-item-content{min-width:0;display:flex;flex-direction:column;gap:2px;flex:1}.luthor-slash-menu-item-title{font-size:14px;font-weight:500;color:var(--luthor-fg)}.luthor-slash-menu-item-description{font-size:12px;line-height:1.35;color:var(--luthor-muted-fg)}.luthor-slash-menu-item-shortcut{background:var(--luthor-muted);border:1px solid var(--luthor-border);border-radius:4px;padding:2px 6px;font-size:10px;font-family:monospace;color:var(--luthor-muted-fg);flex-shrink:0}.luthor-slash-menu-empty{padding:20px 12px;font-size:13px;color:var(--luthor-muted-fg);text-align:center}.luthor-emoji-picker-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;padding:8px;width:220px}.luthor-emoji-picker-item{display:inline-flex;align-items:center;justify-content:center;height:32px;border:1px solid transparent;border-radius:6px;background:transparent;cursor:pointer;font-size:18px;line-height:1}.luthor-emoji-picker-item:hover{background:var(--luthor-muted);border-color:var(--luthor-border)}.luthor-emoji-menu{position:fixed;z-index:var(--luthor-z-menu, 460);background:var(--luthor-bg, #ffffff);border:1px solid var(--luthor-border, #e2e8f0);border-radius:10px;box-shadow:0 12px 36px #00000024;width:min(320px,calc(100vw - 24px));max-height:min(45vh,320px);overflow:hidden;display:flex;flex-direction:column}.luthor-emoji-menu-header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 12px;border-bottom:1px solid var(--luthor-border);background:var(--luthor-muted)}.luthor-emoji-menu-title{font-size:12px;font-weight:600;color:var(--luthor-muted-fg);text-transform:uppercase;letter-spacing:.4px}.luthor-emoji-menu-query{font-size:12px;font-family:monospace;color:var(--luthor-muted-fg);background:var(--luthor-bg);border:1px solid var(--luthor-border);padding:1px 6px;border-radius:4px}.luthor-emoji-menu-list{overflow-y:auto;padding:6px 0}.luthor-emoji-menu-item{width:100%;display:flex;align-items:center;gap:10px;padding:8px 10px;border:none;background:none;text-align:left;cursor:pointer;color:var(--luthor-fg);transition:background-color .12s}.luthor-emoji-menu-item:hover,.luthor-emoji-menu-item.selected{background:var(--luthor-muted)}.luthor-emoji-menu-item-symbol{font-size:20px;line-height:1;width:24px;text-align:center;flex-shrink:0}.luthor-emoji-menu-item-content{min-width:0;display:flex;flex-direction:column;gap:1px;flex:1}.luthor-emoji-menu-item-title{font-size:13px;font-weight:500;color:var(--luthor-fg)}.luthor-emoji-menu-item-shortcode{font-size:12px;line-height:1.25;color:var(--luthor-muted-fg);font-family:monospace}.luthor-emoji-menu-empty{padding:18px 12px;font-size:13px;color:var(--luthor-muted-fg);text-align:center}.luthor-dialog-overlay{position:fixed;inset:0;background-color:#00000080;display:flex;align-items:center;justify-content:center;z-index:var(--luthor-z-modal, 500);overscroll-behavior:contain}.luthor-dialog{background-color:var(--luthor-bg);border-radius:10px;box-shadow:0 20px 30px var(--luthor-shadow);min-width:360px;max-width:520px;max-height:90vh;overflow:hidden}.luthor-dialog-header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid var(--luthor-border)}.luthor-dialog-title{margin:0;font-size:16px;font-weight:600;color:var(--luthor-fg)}.luthor-dialog-close{background:none;border:none;color:var(--luthor-muted-fg);cursor:pointer;padding:4px;border-radius:6px}.luthor-dialog-close:hover{background-color:var(--luthor-muted);color:var(--luthor-fg)}.luthor-dialog-content{padding:18px 20px}.luthor-table-dialog{display:flex;flex-direction:column;gap:14px}.luthor-form-group{display:flex;flex-direction:column;gap:6px}.luthor-form-group label{font-size:13px;font-weight:600;color:var(--luthor-fg)}.luthor-input{padding:8px 12px;border:1px solid var(--luthor-border);border-radius:6px;background-color:var(--luthor-bg);color:var(--luthor-fg);font-size:13px}.luthor-input:focus{outline:none;border-color:var(--luthor-accent);box-shadow:0 0 0 3px #3b82f61f}.luthor-checkbox-label{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--luthor-fg)}.luthor-checkbox{width:16px;height:16px;accent-color:var(--luthor-accent)}.luthor-dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:4px}.luthor-button-primary,.luthor-button-secondary{padding:8px 14px;border-radius:6px;font-size:13px;font-weight:600;cursor:pointer;border:1px solid}.luthor-button-primary{background-color:var(--luthor-accent);border-color:var(--luthor-accent);color:var(--luthor-bg)}.luthor-button-primary:hover{background-color:var(--luthor-accent-hover);border-color:var(--luthor-accent-hover)}.luthor-button-secondary{background-color:transparent;border-color:var(--luthor-border);color:var(--luthor-fg)}.luthor-button-secondary:hover{background-color:var(--luthor-muted);border-color:var(--luthor-border-hover)}.luthor-text-bold{font-weight:700;color:var(--luthor-text-bold-color, var(--luthor-fg))}.luthor-text-italic{font-style:italic}.luthor-text-underline{text-decoration:underline}.luthor-text-strikethrough{text-decoration:line-through}.luthor-text-code,.luthor-content-editable code,.luthor-code-block{font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;background-color:var(--luthor-codeblock-bg, var(--luthor-muted));border:1px solid var(--luthor-border);color:var(--luthor-syntax-string, var(--luthor-muted-fg));border-radius:4px}.luthor-content-editable .luthor-text-code,.luthor-content-editable code,.luthor-content-editable code.luthor-text-code,.luthor-preset .luthor-content-editable code,.luthor-preset-extensive .luthor-content-editable code{color:var(--luthor-syntax-string, var(--luthor-muted-fg));font-weight:500}.luthor-code-block{display:block;padding:12px;margin:12px 0;line-height:1.6;overflow-x:auto;max-width:min(100%,880px);width:100%;tab-size:2;white-space:pre-wrap;overflow-wrap:normal;word-break:normal}.luthor-code-block--interactive{position:relative;margin-top:40px;border-top-left-radius:0;border-top-right-radius:0;border-top:0}.luthor-codeblock-controls-layer{position:absolute;inset:0;pointer-events:none;z-index:25}.luthor-codeblock-controls{position:absolute;display:flex;align-items:center;justify-content:space-between;z-index:26;pointer-events:auto;margin:0;max-width:none;padding:8px 10px;border:1px solid var(--luthor-border);border-top-left-radius:8px;border-top-right-radius:8px;border-bottom:1px solid var(--luthor-border);background:var(--luthor-codeblock-bg, var(--luthor-muted))}.luthor-codeblock-controls-left,.luthor-codeblock-controls-right{display:inline-flex;align-items:center;gap:6px}.luthor-codeblock-language,.luthor-codeblock-copy{font-size:11px;line-height:1.2;height:24px;border-radius:6px;border:1px solid var(--luthor-border);background:var(--luthor-bg);color:var(--luthor-fg);padding:0 8px}.luthor-codeblock-language{min-width:88px;appearance:none}.luthor-codeblock-language option{background:var(--luthor-bg);color:var(--luthor-fg)}.luthor-codeblock-copy{cursor:pointer;font-weight:600;width:26px;height:24px;padding:0;display:inline-flex;align-items:center;justify-content:center;position:relative;background:var(--luthor-bg)}.luthor-codeblock-copy svg{width:14px;height:14px;fill:currentColor}.luthor-codeblock-copy:after{content:attr(data-tooltip);position:absolute;top:-28px;right:0;padding:2px 6px;font-size:10px;line-height:1.2;white-space:nowrap;border-radius:4px;border:1px solid var(--luthor-border);background:var(--luthor-bg);color:var(--luthor-fg);opacity:0;pointer-events:none;transform:translateY(4px);transition:opacity .15s ease,transform .15s ease}.luthor-codeblock-copy:hover:after,.luthor-codeblock-copy:focus-visible:after{opacity:1;transform:translateY(0)}.luthor-codeblock-copy:hover,.luthor-codeblock-language:hover,.luthor-codeblock-copy.is-copied{border-color:var(--luthor-border-hover);background:var(--luthor-codeblock-bg, var(--luthor-muted))}.luthor-codeblock-copy.is-copy-error{border-color:var(--luthor-syntax-variable);color:var(--luthor-syntax-variable)}.luthor-code-block[data-theme=plain]{--luthor-syntax-keyword: var(--luthor-muted-fg);--luthor-syntax-string: var(--luthor-muted-fg);--luthor-syntax-number: var(--luthor-muted-fg);--luthor-syntax-function: var(--luthor-muted-fg);--luthor-syntax-variable: var(--luthor-muted-fg)}.luthor-preset-extensive.luthor-editor-wrapper .hljs{color:var(--luthor-code-unhighlighted-fg, var(--luthor-fg))}:where(.luthor-code-comment),:where(.luthor-code-prolog),:where(.luthor-code-doctype),:where(.luthor-code-cdata),:where(.luthor-code-punctuation),:where(.luthor-code-operator),:where(.luthor-code-namespace),:where(.luthor-code-property),:where(.luthor-code-tag),:where(.luthor-code-constant),:where(.luthor-code-symbol),:where(.luthor-code-deleted),:where(.luthor-code-boolean),:where(.luthor-code-number),:where(.luthor-code-attr),:where(.luthor-code-selector),:where(.luthor-code-string),:where(.luthor-code-char),:where(.luthor-code-builtin),:where(.luthor-code-inserted),:where(.luthor-code-function),:where(.luthor-code-class),:where(.luthor-code-class-name),:where(.luthor-code-keyword),:where(.luthor-code-atrule),:where(.luthor-code-regex),:where(.luthor-code-variable),:where(.luthor-code-important){color:var(--luthor-syntax-string, var(--luthor-muted-fg));font-weight:inherit}.luthor-paragraph{margin:var(--luthor-first-block-offset) 0;line-height:var(--luthor-default-line-height, 1.5)}.luthor-heading-h1,.luthor-heading-h2,.luthor-heading-h3,.luthor-heading-h4,.luthor-heading-h5,.luthor-heading-h6{margin:calc(16px * var(--luthor-line-height-ratio, 1)) 0 calc(8px * var(--luthor-line-height-ratio, 1));line-height:var(--luthor-default-line-height, 1.5);font-weight:700}.luthor-heading-h1{font-size:28px}.luthor-heading-h2{font-size:24px}.luthor-heading-h3{font-size:20px}.luthor-heading-h4{font-size:18px}.luthor-heading-h5{font-size:16px}.luthor-heading-h6{font-size:14px}.luthor-list-ul,.luthor-list-ol{margin:10px 0 10px 20px}.luthor-list-li{margin:calc(4px * var(--luthor-line-height-ratio, 1)) 0;line-height:var(--luthor-default-line-height, 1.5)}.luthor-list-ul .luthor-list-li::marker,.luthor-list-ol .luthor-list-li::marker{color:var(--luthor-list-marker-color, var(--luthor-fg))}.luthor-list-item-unchecked,.luthor-list-item-checked{position:relative;list-style:none;margin-left:0;padding-left:28px;min-height:22px;cursor:pointer}.luthor-list-item-unchecked::marker,.luthor-list-item-checked::marker{content:""}.luthor-list-item-unchecked:before,.luthor-list-item-checked:before{content:"";position:absolute;left:0;top:.1em;width:16px;height:16px;border-radius:4px;border:1.5px solid var(--luthor-list-checkbox-color, var(--luthor-accent));background-color:var(--luthor-bg);box-sizing:border-box;transition:all .15s ease}.luthor-list-item-unchecked:hover:before{border-color:var(--luthor-list-checkbox-color, var(--luthor-accent))}.luthor-list-item-checked:before{content:"\2713";display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;line-height:1;color:var(--luthor-bg);border-color:var(--luthor-list-checkbox-color, var(--luthor-accent));background-color:var(--luthor-list-checkbox-color, var(--luthor-accent))}.luthor-list-item-checked{text-decoration:line-through;opacity:.85}.luthor-list-item-checked>ul,.luthor-list-item-checked>ol{text-decoration:none;opacity:1}.luthor-quote{border-left:4px solid var(--luthor-quote-border, var(--luthor-accent));background-color:var(--luthor-quote-bg, var(--luthor-muted));padding:10px 14px;margin:12px 0;color:var(--luthor-quote-fg, var(--luthor-fg));line-height:var(--luthor-default-line-height, 1.5)}.luthor-link{color:var(--luthor-link-color, var(--luthor-accent));text-decoration:underline}.luthor-link:hover{color:var(--luthor-accent-hover)}.luthor-hr{margin:16px 0;border:none;border-top:1px solid var(--luthor-hr-color, var(--luthor-border));height:1px}.luthor-preset-extensive .lexical-image{margin:1em 0;display:block;position:relative}.luthor-preset-extensive .lexical-image img{max-width:100%;height:auto;border-radius:6px;display:block}.luthor-preset-extensive .lexical-image.align-left{float:left;margin-right:1em;margin-bottom:1em}.luthor-preset-extensive .lexical-image.align-right{float:right;margin-left:1em;margin-bottom:1em}.luthor-preset-extensive .lexical-image.align-center{text-align:center;margin:1em auto}.luthor-preset-extensive .lexical-image.align-center img{margin:0 auto}.luthor-preset-extensive .lexical-image figcaption{margin-top:.5em;font-size:12px;color:var(--luthor-muted-fg);text-align:center;font-style:italic}.luthor-preset-extensive .lexical-image.selected{outline:none}.luthor-preset-extensive .resizer{position:absolute;width:8px;height:8px;background:var(--luthor-accent);border:1px solid white;border-radius:50%}.luthor-preset-extensive .resizer.ne{top:-4px;right:-4px;cursor:nesw-resize}.luthor-preset-extensive .resizer.nw{top:-4px;left:-4px;cursor:nwse-resize}.luthor-preset-extensive .resizer.se{bottom:-4px;right:-4px;cursor:nwse-resize}.luthor-preset-extensive .resizer.sw{bottom:-4px;left:-4px;cursor:nesw-resize}.luthor-table{border-collapse:collapse;width:100%;margin:16px 0;border:1px solid var(--luthor-table-border-color, var(--luthor-border))}.luthor-table-cell,.luthor-table-cell-header{border:1px solid var(--luthor-table-border-color, var(--luthor-border));padding:8px 12px;text-align:left;min-width:80px;background-color:var(--luthor-bg)}.luthor-table-cell-header{background-color:var(--luthor-table-header-bg, var(--luthor-muted));font-weight:600}.luthor-preset-extensive table[data-lexical-table-selection]{box-shadow:0 0 0 2px var(--luthor-accent)}.luthor-preset-extensive table td[data-lexical-table-cell-selection]{background-color:#3b82f61a}.luthor-table-bubble-menu{display:flex;align-items:center;gap:6px;padding:8px;border:1px solid var(--luthor-border);border-radius:10px;background:var(--luthor-bg);box-shadow:0 8px 24px var(--luthor-shadow);pointer-events:auto;white-space:nowrap}.luthor-table-bubble-button{height:30px;min-width:30px;padding:0 10px;display:inline-flex;align-items:center;justify-content:center;border-radius:6px;border:1px solid var(--luthor-border);background:var(--luthor-muted);color:var(--luthor-fg);font-size:12px;font-weight:600;line-height:1;cursor:pointer;transition:all .16s ease}.luthor-table-bubble-button svg{display:block}.luthor-table-bubble-button-icon{width:30px;padding:0}.luthor-table-bubble-button:hover{border-color:var(--luthor-border-hover);background:color-mix(in srgb,var(--luthor-muted) 58%,var(--luthor-accent) 42%);color:var(--luthor-bg)}.luthor-table-bubble-button-active{background:var(--luthor-accent);border-color:var(--luthor-accent);color:var(--luthor-bg)}.luthor-table-bubble-button-danger:hover{background:#dc2626;border-color:#dc2626;color:#fff}.luthor-table-bubble-checkbox{display:inline-flex;align-items:center;gap:6px;padding:0 6px;height:28px;font-size:12px;font-weight:600;color:var(--luthor-fg);user-select:none}.luthor-table-bubble-checkbox input{margin:0;accent-color:var(--luthor-accent)}.luthor-context-menu{position:fixed;background:var(--luthor-bg);border:1px solid var(--luthor-border);border-radius:8px;box-shadow:0 10px 30px var(--luthor-shadow);z-index:var(--luthor-z-menu, 460);min-width:160px;padding:6px 0;font-size:13px}.luthor-context-menu-item{padding:8px 14px;cursor:pointer;user-select:none}.luthor-context-menu-item:hover{background-color:var(--luthor-muted)}.luthor-context-menu-item-disabled{opacity:.5;cursor:not-allowed}.luthor-floating-toolbar{--luthor-floating-bg: #ffffff;--luthor-floating-fg: #0f172a;--luthor-floating-border: #e2e8f0;--luthor-floating-shadow: rgba(0, 0, 0, .08);--luthor-floating-muted: #f8fafc;--luthor-floating-border-hover: #cbd5e1;--luthor-floating-border-active: #94a3b8;--luthor-floating-accent: #0f172a;--luthor-floating-accent-fg: #ffffff;display:flex;align-items:center;gap:4px;padding:6px;background-color:var(--luthor-floating-bg);color:var(--luthor-floating-fg);border:1px solid var(--luthor-floating-border);border-radius:8px;box-shadow:0 8px 24px var(--luthor-floating-shadow)}.luthor-floating-toolbar[data-theme=dark]{--luthor-floating-bg: #0a0a0a;--luthor-floating-fg: #ededed;--luthor-floating-border: #262626;--luthor-floating-shadow: rgba(0, 0, 0, .5);--luthor-floating-muted: #171717;--luthor-floating-border-hover: #404040;--luthor-floating-border-active: #525252;--luthor-floating-accent: #ededed;--luthor-floating-accent-fg: #0a0a0a}.luthor-floating-toolbar .luthor-toolbar-button{color:var(--luthor-floating-fg);border-color:transparent}.luthor-floating-toolbar .luthor-toolbar-button:hover{background-color:var(--luthor-floating-muted);border-color:var(--luthor-floating-border-hover)}.luthor-floating-toolbar .luthor-toolbar-button.active{background-color:var(--luthor-floating-accent);border-color:var(--luthor-floating-accent);color:var(--luthor-floating-accent-fg)}.luthor-floating-toolbar-separator{width:1px;height:18px;background-color:var(--luthor-floating-border);margin:0 4px}.luthor-floating-toolbar-input{height:30px;min-width:140px;max-width:220px;padding:4px 8px;font-size:12px;color:var(--luthor-floating-fg);background-color:var(--luthor-floating-bg);border:1px solid var(--luthor-floating-border);border-radius:6px;outline:none}.luthor-floating-toolbar-fields{display:flex;flex-direction:column;gap:6px}.luthor-floating-toolbar-field-row{display:flex;align-items:center;gap:6px}.luthor-floating-toolbar-action{height:30px;min-width:30px;width:auto;padding:0 10px;font-size:12px;font-weight:600;border-color:var(--luthor-floating-border);background:var(--luthor-floating-muted);color:var(--luthor-floating-fg);transform:none;box-shadow:none}.luthor-floating-toolbar .luthor-floating-toolbar-action:hover{border-color:var(--luthor-floating-border-hover);background:var(--luthor-floating-muted);color:var(--luthor-floating-fg);transform:none;box-shadow:none}.luthor-floating-toolbar-action-primary,.luthor-floating-toolbar .luthor-floating-toolbar-action-primary:hover{border-color:var(--luthor-floating-accent);background:var(--luthor-floating-accent);color:var(--luthor-floating-accent-fg)}.luthor-floating-toolbar-action-danger:hover{border-color:#dc2626;background:#dc2626;color:#fff}.luthor-floating-toolbar-input:focus{border-color:var(--luthor-floating-border-active);box-shadow:0 0 0 2px color-mix(in srgb,var(--luthor-floating-accent) 18%,transparent)}.luthor-floating-toolbar-input.is-error{border-color:#dc2626}.luthor-link-hover-bubble{gap:6px;max-width:min(680px,calc(100vw - 20px));border-radius:10px;box-shadow:0 8px 24px var(--luthor-floating-shadow)}.luthor-link-hover-bubble-url{min-width:160px;max-width:360px;padding:0 4px;font-size:12px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.luthor-link-hover-bubble-button{height:30px;min-width:30px;padding:0 10px;width:auto;font-size:12px;font-weight:600;border-color:var(--luthor-floating-border);background:var(--luthor-floating-muted);transform:none;box-shadow:none}.luthor-link-hover-bubble .luthor-link-hover-bubble-button:hover{border-color:var(--luthor-floating-border-hover);background:var(--luthor-floating-muted);transform:none;box-shadow:none}.luthor-link-hover-bubble-button-primary,.luthor-link-hover-bubble .luthor-link-hover-bubble-button-primary:hover{border-color:var(--luthor-floating-accent);background:var(--luthor-floating-accent);color:var(--luthor-floating-accent-fg)}.luthor-link-hover-bubble-button-danger:hover{border-color:#dc2626;background:#dc2626;color:#fff}.luthor-link-hover-bubble-input{height:28px;min-width:220px;max-width:360px;padding:4px 8px;font-size:12px;border:1px solid var(--luthor-floating-border);border-radius:6px;color:var(--luthor-floating-fg);background:var(--luthor-floating-bg);outline:none}.luthor-link-hover-bubble-input:focus{border-color:var(--luthor-floating-border-active);box-shadow:0 0 0 2px color-mix(in srgb,var(--luthor-floating-accent) 18%,transparent)}.luthor-link-hover-bubble-input.is-error{border-color:#dc2626}.luthor-media-embed-shell{position:relative;border:2px solid var(--luthor-border);border-radius:12px;overflow:hidden;background:var(--luthor-bg);transition:border-color var(--luthor-theme-transition),box-shadow var(--luthor-theme-transition),background-color var(--luthor-theme-transition)}.luthor-media-embed-shell:hover{border-color:var(--luthor-border-active)}.luthor-media-embed-shell.is-selected{border-color:var(--luthor-accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--luthor-accent) 28%,transparent)}.luthor-media-embed-shell.is-resizing{user-select:none}.luthor-media-embed-controls{position:absolute;top:8px;right:8px;display:inline-flex;gap:4px;padding:4px;border:1px solid var(--luthor-border-hover);border-radius:8px;background:color-mix(in srgb,var(--luthor-bg) 92%,black 8%);z-index:2}.luthor-media-embed-control{border:1px solid var(--luthor-border);background:var(--luthor-muted);color:var(--luthor-fg);border-radius:6px;padding:2px 8px;font-size:11px;line-height:1.4;cursor:pointer}.luthor-media-embed-control:hover{border-color:var(--luthor-border-hover)}.luthor-media-embed-control.is-active{background:var(--luthor-accent);border-color:var(--luthor-accent);color:var(--luthor-bg)}.luthor-media-embed-resize-handle-width,.luthor-media-embed-resize-handle-height{position:absolute;border:1px solid var(--luthor-accent);background:color-mix(in srgb,var(--luthor-muted) 85%,var(--luthor-bg) 15%);border-radius:999px;z-index:2;opacity:.95;transition:background-color var(--luthor-theme-transition),border-color var(--luthor-theme-transition),transform .12s ease}.luthor-media-embed-resize-handle-width{top:50%;right:-7px;transform:translateY(-50%);width:14px;height:30px;cursor:ew-resize;border-radius:999px}.luthor-media-embed-resize-handle-height{left:50%;bottom:-7px;transform:translate(-50%);width:30px;height:14px;cursor:ns-resize;border-radius:999px}.luthor-media-embed-resize-handle-width:hover,.luthor-media-embed-resize-handle-height:hover{transform:translateY(-50%) scale(1.06)}.luthor-media-embed-resize-handle-height:hover{transform:translate(-50%) scale(1.06)}.luthor-media-embed-shell.is-resizing .luthor-media-embed-resize-handle-width,.luthor-media-embed-shell.is-resizing .luthor-media-embed-resize-handle-height{background:color-mix(in srgb,var(--luthor-accent) 28%,var(--luthor-bg) 72%);border:1px solid var(--luthor-accent)}.luthor-draggable-handle,.luthor-draggable-add-button{width:24px;height:24px;border-radius:0;border:none;background:transparent;color:var(--luthor-muted-fg);fill:currentColor;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:color .16s ease,transform .16s ease;outline:none}.luthor-draggable-add-button{width:20px;height:20px;font-size:14px;line-height:1;font-weight:500;padding:0}.luthor-draggable-handle svg{width:14px;height:14px;stroke:currentColor;fill:none}.luthor-draggable-handle:hover,.luthor-draggable-add-button:hover{color:var(--luthor-fg);transform:scale(1.04)}.luthor-draggable-handle:active,.luthor-draggable-add-button:active,.luthor-draggable-handle-active{background:transparent;color:var(--luthor-accent);transform:scale(.96)}.luthor-draggable-button-stack{display:flex;flex-direction:column;gap:6px;align-items:center;padding:0;border:none;background:transparent}.luthor-draggable-drop-indicator{height:3px;background:var(--luthor-accent);border-radius:999px}.luthor-draggable-block-dragging,.luthor-draggable-block-is-dragging{opacity:.6}.luthor-editor--draggable-disabled .luthor-draggable-button-stack,.luthor-editor--draggable-disabled .luthor-draggable-handle,.luthor-editor--draggable-disabled .luthor-draggable-add-button,.luthor-editor--draggable-disabled .luthor-draggable-drop-indicator{display:none!important}@media(max-width:768px){.luthor-preset-extensive.luthor-editor-wrapper{min-height:400px}.luthor-toolbar{padding:6px}.luthor-toolbar--align-right{justify-content:flex-start}.luthor-toolbar-button{width:32px;height:32px;font-size:14px}.luthor-toolbar-section{padding:0 2px}.luthor-toolbar-section:not(:last-child){margin-right:6px;padding-right:6px}.luthor-richtext-container{--luthor-editor-content-padding-y: 16px;--luthor-editor-content-padding-x: 16px}.luthor-content-editable{font-size:16px}.luthor-select-trigger{min-width:100px;font-size:13px}.luthor-mode-tab{padding:8px 12px;font-size:13px}}.luthor-extensive-feature-card{border:1px solid var(--luthor-border-active);border-radius:12px;padding:12px;margin:10px 0;background-color:var(--luthor-muted)}.luthor-extensive-feature-card.is-selected{box-shadow:0 0 0 2px var(--luthor-accent)}.luthor-extensive-feature-card__tag{display:inline-flex;align-items:center;font-size:10px;letter-spacing:.04em;text-transform:uppercase;color:var(--luthor-accent);border:1px solid var(--luthor-border-active);background-color:var(--luthor-bg);border-radius:999px;padding:2px 8px;margin-bottom:8px}.luthor-extensive-feature-card__title{margin:0;font-size:14px;color:var(--luthor-fg);line-height:1.35}.luthor-extensive-feature-card__description{margin:6px 0 0;font-size:12px;line-height:1.45;color:var(--luthor-muted-fg)}.luthor-preset-simple-text .luthor-editor-header{border-bottom:0}.luthor-preset-simple-text .luthor-editor{min-height:180px}.luthor-preset-rich-text-box .luthor-editor{min-height:220px}.luthor-preset-rich-text-box--compact .luthor-toolbar,.luthor-preset-rich-text-box__toolbar--compact{padding:4px;gap:2px}.luthor-preset-rich-text-box__toolbar--compact .luthor-toolbar-button{width:30px;height:30px}.luthor-preset-chat-window{display:flex;flex-direction:column;gap:10px}.luthor-chat-window-actions{display:flex;justify-content:flex-end;align-items:center;gap:8px}.luthor-chat-window-action{border:1px solid var(--luthor-border);background:var(--luthor-muted);color:var(--luthor-fg);border-radius:8px;height:32px;padding:0 12px;cursor:pointer}.luthor-chat-window-action-send{border-color:var(--luthor-accent);background:var(--luthor-accent);color:var(--luthor-bg)}.luthor-preset-email-compose{display:flex;flex-direction:column;gap:10px}.luthor-email-compose-shell{border:1px solid var(--luthor-border);border-radius:8px;overflow:hidden}.luthor-email-compose-row{display:grid;grid-template-columns:72px 1fr;align-items:center;gap:8px;padding:8px 12px;border-bottom:1px solid var(--luthor-border);background:var(--luthor-bg);color:var(--luthor-fg)}.luthor-email-compose-row:last-child{border-bottom:0}.luthor-email-compose-row input{border:0;outline:none;background:transparent}.luthor-preset-md-text{display:flex;flex-direction:column;gap:8px}.luthor-md-text-tabs{display:flex;gap:4px}.luthor-md-text-tabs button{border:1px solid var(--luthor-border);background:var(--luthor-muted);color:var(--luthor-fg);border-radius:6px;height:30px;padding:0 10px}.luthor-md-text-tabs button.active{border-color:var(--luthor-accent);background:var(--luthor-accent);color:var(--luthor-bg)}.luthor-md-text-source{width:100%;min-height:240px;border:1px solid var(--luthor-border);border-radius:8px;padding:12px;font-family:ui-monospace,Menlo,Consolas,monospace}.luthor-md-text-error{margin:6px 0 0;color:#dc2626;font-size:12px}.luthor-preset-notion-like .luthor-editor{min-height:280px}.luthor-headless-preset{border:1px solid #cbd5e1;border-radius:8px;padding:12px;display:grid;gap:10px}.luthor-headless-controls{display:flex;flex-wrap:wrap;gap:6px}.luthor-headless-controls button{height:30px;border:1px solid #cbd5e1;border-radius:6px;background:#f8fafc;color:#0f172a;text-transform:lowercase;padding:0 10px}.luthor-headless-editor-content{min-height:160px;border:1px solid #e2e8f0;border-radius:8px;padding:12px}.luthor-preset-notes{border:1px solid var(--luthor-border);border-radius:10px;padding:10px;display:grid;gap:10px;background:var(--luthor-bg)}.luthor-notes-title{border:0;outline:none;font-size:16px;font-weight:600;background:transparent;color:var(--luthor-fg)}.luthor-notes-actions{display:flex;gap:8px}.luthor-notes-actions button,.luthor-notes-actions select{border:1px solid var(--luthor-border);border-radius:6px;height:30px;padding:0 10px;background:var(--luthor-muted);color:var(--luthor-fg)}
1
+ .luthor-preset-extensive.luthor-editor-wrapper[data-editor-theme=light]{--luthor-bg: #ffffff;--luthor-fg: #0f172a;--luthor-border: #e2e8f0;--luthor-border-hover: #cbd5e1;--luthor-border-active: #94a3b8;--luthor-accent: #0f172a;--luthor-accent-hover: #1e293b;--luthor-shadow: rgba(0, 0, 0, .08);--luthor-muted: #f8fafc;--luthor-muted-fg: #64748b;--luthor-toolbar-bg: var(--luthor-muted);--luthor-toolbar-section-border: var(--luthor-border);--luthor-toolbar-button-fg: var(--luthor-fg);--luthor-toolbar-button-hover-bg: var(--luthor-muted);--luthor-toolbar-button-hover-border: var(--luthor-border-hover);--luthor-toolbar-button-hover-shadow: 0 4px 12px rgba(0, 0, 0, .15);--luthor-toolbar-button-press-shadow: 0 2px 8px rgba(0, 0, 0, .1);--luthor-toolbar-button-active-bg: var(--luthor-accent);--luthor-toolbar-button-active-border: var(--luthor-accent);--luthor-toolbar-button-active-fg: var(--luthor-bg);--luthor-toolbar-button-active-shadow: 0 2px 8px rgba(0, 0, 0, .2);--luthor-toolbar-button-overlay: linear-gradient(135deg, rgba(255, 255, 255, .1) 0%, rgba(255, 255, 255, .05) 100%);--luthor-toolbar-button-active-overlay: linear-gradient(135deg, rgba(255, 255, 255, .2) 0%, rgba(255, 255, 255, .1) 100%);--luthor-toolbar-color-indicator-border: #000000;--luthor-toolbar-highlight-bg: var(--luthor-muted);--luthor-quote-bg: var(--luthor-muted);--luthor-quote-fg: var(--luthor-fg);--luthor-quote-border: var(--luthor-accent);--luthor-text-bold-color: var(--luthor-fg);--luthor-link-color: var(--luthor-accent);--luthor-list-marker-color: var(--luthor-fg);--luthor-list-checkbox-color: var(--luthor-accent);--luthor-table-border-color: var(--luthor-border);--luthor-table-header-bg: var(--luthor-muted);--luthor-hr-color: var(--luthor-border);--luthor-placeholder-color: var(--luthor-muted-fg);--luthor-codeblock-bg: var(--luthor-muted);--luthor-code-unhighlighted-fg: #24292e;--luthor-floating-bg: var(--luthor-bg);--luthor-floating-fg: var(--luthor-fg);--luthor-floating-border: var(--luthor-border);--luthor-floating-shadow: var(--luthor-shadow);--luthor-floating-muted: var(--luthor-muted);--luthor-floating-border-hover: var(--luthor-border-hover);--luthor-floating-border-active: var(--luthor-border-active);--luthor-floating-accent: var(--luthor-accent);--luthor-floating-accent-fg: var(--luthor-bg);--luthor-syntax-comment: #64748b;--luthor-syntax-keyword: #64748b;--luthor-syntax-string: #64748b;--luthor-syntax-number: #64748b;--luthor-syntax-function: #64748b;--luthor-syntax-variable: #64748b}.luthor-preset-extensive.luthor-editor-wrapper[data-editor-theme=dark]{--luthor-bg: #0a0a0a;--luthor-fg: #ededed;--luthor-border: #262626;--luthor-border-hover: #404040;--luthor-border-active: #525252;--luthor-accent: #ededed;--luthor-accent-hover: #d4d4d8;--luthor-shadow: rgba(0, 0, 0, .5);--luthor-muted: #171717;--luthor-muted-fg: #a3a3a3;--luthor-toolbar-bg: var(--luthor-muted);--luthor-toolbar-section-border: var(--luthor-border);--luthor-toolbar-button-fg: var(--luthor-fg);--luthor-toolbar-button-hover-bg: var(--luthor-muted);--luthor-toolbar-button-hover-border: var(--luthor-border-hover);--luthor-toolbar-button-hover-shadow: 0 4px 12px rgba(0, 0, 0, .35);--luthor-toolbar-button-press-shadow: 0 2px 8px rgba(0, 0, 0, .3);--luthor-toolbar-button-active-bg: var(--luthor-accent);--luthor-toolbar-button-active-border: var(--luthor-accent);--luthor-toolbar-button-active-fg: var(--luthor-bg);--luthor-toolbar-button-active-shadow: 0 2px 8px rgba(0, 0, 0, .5);--luthor-toolbar-button-overlay: linear-gradient(135deg, rgba(255, 255, 255, .08) 0%, rgba(255, 255, 255, .03) 100%);--luthor-toolbar-button-active-overlay: linear-gradient(135deg, rgba(255, 255, 255, .14) 0%, rgba(255, 255, 255, .06) 100%);--luthor-toolbar-color-indicator-border: #ffffff;--luthor-toolbar-highlight-bg: var(--luthor-muted);--luthor-quote-bg: color-mix(in srgb, var(--luthor-muted) 92%, #ffffff 8%);--luthor-quote-fg: var(--luthor-fg);--luthor-quote-border: color-mix(in srgb, var(--luthor-accent) 78%, #ffffff 22%);--luthor-text-bold-color: var(--luthor-fg);--luthor-link-color: var(--luthor-accent);--luthor-list-marker-color: var(--luthor-fg);--luthor-list-checkbox-color: var(--luthor-accent);--luthor-table-border-color: var(--luthor-border);--luthor-table-header-bg: var(--luthor-muted);--luthor-hr-color: var(--luthor-border);--luthor-placeholder-color: var(--luthor-muted-fg);--luthor-codeblock-bg: var(--luthor-muted);--luthor-code-unhighlighted-fg: #c9d1d9;--luthor-floating-bg: var(--luthor-bg);--luthor-floating-fg: var(--luthor-fg);--luthor-floating-border: var(--luthor-border);--luthor-floating-shadow: var(--luthor-shadow);--luthor-floating-muted: var(--luthor-muted);--luthor-floating-border-hover: var(--luthor-border-hover);--luthor-floating-border-active: var(--luthor-border-active);--luthor-floating-accent: var(--luthor-accent);--luthor-floating-accent-fg: var(--luthor-bg);--luthor-syntax-comment: #8b949e;--luthor-syntax-keyword: #8b949e;--luthor-syntax-string: #8b949e;--luthor-syntax-number: #8b949e;--luthor-syntax-function: #8b949e;--luthor-syntax-variable: #8b949e}.luthor-preset-extensive.luthor-editor-wrapper{border:1px solid var(--luthor-border);border-radius:8px;background-color:var(--luthor-bg);overflow:hidden;display:flex;flex-direction:column;position:relative;--luthor-theme-transition: .2s ease;width:100%;max-width:100%;min-height:500px;height:auto;isolation:isolate;--luthor-z-dropdown: 20;--luthor-z-popover: 24;--luthor-z-menu: 28;--luthor-z-overlay: 32;--luthor-z-modal: 36;transition:background-color var(--luthor-theme-transition),border-color var(--luthor-theme-transition),color var(--luthor-theme-transition),box-shadow var(--luthor-theme-transition)}.luthor-preset-extensive.luthor-editor-wrapper.luthor-editor-wrapper--toolbar-pinned{overflow:visible}.luthor-preset-extensive.luthor-editor-wrapper,.luthor-preset-extensive.luthor-editor-wrapper *,.luthor-preset-extensive.luthor-editor-wrapper *:before,.luthor-preset-extensive.luthor-editor-wrapper *:after{box-sizing:border-box}.luthor-editor-header{background-color:var(--luthor-muted);border-bottom:1px solid var(--luthor-border);transition:background-color var(--luthor-theme-transition),border-color var(--luthor-theme-transition),color var(--luthor-theme-transition)}.luthor-editor-top-region--pinned{position:sticky;top:0;z-index:40}.luthor-editor-toolbar-slot{background-color:var(--luthor-toolbar-bg, var(--luthor-muted));transition:background-color var(--luthor-theme-transition),border-color var(--luthor-theme-transition),color var(--luthor-theme-transition)}.luthor-editor-toolbar-slot--top{border-bottom:1px solid var(--luthor-border)}.luthor-editor-toolbar-slot--pinned{position:sticky;top:0;z-index:40;background-color:var(--luthor-toolbar-bg, var(--luthor-muted))}.luthor-editor-toolbar-slot--bottom{border-top:1px solid var(--luthor-border)}.luthor-mode-tabs{display:flex;border-bottom:1px solid var(--luthor-border);transition:border-color var(--luthor-theme-transition),background-color var(--luthor-theme-transition)}.luthor-mode-tab{padding:10px 20px;background:none;border:none;cursor:pointer;color:var(--luthor-muted-fg);font-size:14px;font-weight:500;transition:all .2s cubic-bezier(.4,0,.2,1);border-bottom:2px solid transparent;position:relative}.luthor-mode-tab:hover{color:var(--luthor-fg);background-color:var(--luthor-muted)}.luthor-mode-tab.active{color:var(--luthor-accent);border-bottom-color:var(--luthor-accent);background-color:#0f172a0d}.luthor-tab-converting-spinner{display:inline-block;width:12px;height:12px;margin-left:6px;border:2px solid var(--luthor-muted-fg);border-top-color:var(--luthor-accent);border-radius:50%;animation:luthor-spin .6s linear infinite;vertical-align:middle}@keyframes luthor-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.luthor-toolbar{display:flex;align-items:center;gap:4px;padding:8px;flex-wrap:wrap;overflow-x:hidden;overflow-y:visible;row-gap:6px;min-height:48px;transition:background-color var(--luthor-theme-transition),border-color var(--luthor-theme-transition),color var(--luthor-theme-transition)}.luthor-toolbar--align-left{justify-content:flex-start}.luthor-toolbar--align-center{justify-content:center}.luthor-toolbar--align-right{justify-content:flex-end}.luthor-toolbar-section{display:flex;align-items:center;flex-wrap:wrap;gap:2px;padding:0 4px;min-width:0}.luthor-toolbar-section:not(:last-child){border-right:1px solid var(--luthor-toolbar-section-border, var(--luthor-border));margin-right:8px;padding-right:8px;transition:border-color var(--luthor-theme-transition)}.luthor-toolbar-button{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border:1px solid transparent;border-radius:6px;background-color:transparent;color:var(--luthor-toolbar-button-fg, var(--luthor-fg));cursor:pointer;transition:all .2s cubic-bezier(.4,0,.2,1);font-size:16px;position:relative;overflow:hidden}.luthor-toolbar-button:before{content:"";position:absolute;inset:0;background:var(--luthor-toolbar-button-overlay);opacity:0;transition:opacity .2s ease}.luthor-toolbar-button:hover{background-color:var(--luthor-toolbar-button-hover-bg, var(--luthor-muted));border-color:var(--luthor-toolbar-button-hover-border, var(--luthor-border-hover));transform:translateY(-1px);box-shadow:var(--luthor-toolbar-button-hover-shadow)}.luthor-toolbar-button:hover:before{opacity:1}.luthor-toolbar-button:active{transform:translateY(0) scale(.98);box-shadow:var(--luthor-toolbar-button-press-shadow)}.luthor-toolbar-button.active{background-color:var(--luthor-toolbar-button-active-bg, var(--luthor-accent));border-color:var(--luthor-toolbar-button-active-border, var(--luthor-accent));color:var(--luthor-toolbar-button-active-fg, var(--luthor-bg));box-shadow:var(--luthor-toolbar-button-active-shadow)}.luthor-toolbar-button.active:before{background:var(--luthor-toolbar-button-active-overlay);opacity:1}.luthor-toolbar-button:disabled{opacity:.5;cursor:not-allowed;transform:none;box-shadow:none}.luthor-toolbar-button:disabled:hover{background-color:transparent;border-color:transparent;transform:none;box-shadow:none}.luthor-toolbar-button:disabled:before{opacity:0}.luthor-toolbar-split-button{display:inline-flex;align-items:center}.luthor-toolbar-split-button .luthor-dropdown{display:inline-flex}.luthor-toolbar-split-button .luthor-toolbar-button{border-radius:0}.luthor-toolbar-split-button>.luthor-toolbar-button:first-child{border-top-left-radius:6px;border-bottom-left-radius:6px}.luthor-toolbar-split-button .luthor-toolbar-button-arrow{width:20px;border-left-color:transparent;border-top-right-radius:6px;border-bottom-right-radius:6px;padding:0}.luthor-dropdown-divider{height:1px;margin:4px 8px;background-color:var(--luthor-border)}.luthor-color-button{padding-bottom:4px}.luthor-color-button-letter{font-size:14px;line-height:1;font-weight:700;position:relative;z-index:1}.luthor-color-button-indicator{position:absolute;left:7px;right:7px;bottom:5px;height:6px;border-radius:999px;border:.5px solid var(--luthor-toolbar-color-indicator-border, var(--luthor-fg));box-shadow:none;z-index:1}.luthor-color-button.is-highlight .luthor-color-button-letter{padding:0 2px;border-radius:3px;background-color:var(--luthor-toolbar-highlight-bg, var(--luthor-muted))}.luthor-color-button-highlighter{position:relative;z-index:1}.luthor-color-picker{z-index:var(--luthor-z-popover, 440);background-color:var(--luthor-bg, #ffffff);border:1px solid var(--luthor-border, #e2e8f0);border-radius:10px;box-shadow:0 12px 28px #0f172a2e;padding:10px;display:grid;gap:9px;max-width:90vw;width:248px;color:var(--luthor-fg, #0f172a)}.luthor-color-picker-header{display:flex;align-items:center;justify-content:space-between;gap:10px}.luthor-color-picker-title{font-size:12px;font-weight:600;color:var(--luthor-fg)}.luthor-color-picker-native-hidden{position:absolute;width:0;height:0;opacity:0;pointer-events:none}.luthor-color-picker-clear{border:1px solid var(--luthor-border);border-radius:6px;background:var(--luthor-muted);color:var(--luthor-fg);font-size:12px;font-weight:500;padding:4px 8px;cursor:pointer}.luthor-color-picker-clear:hover{border-color:var(--luthor-border-hover)}.luthor-color-picker-section{display:grid;gap:6px}.luthor-color-picker-label{margin:0;font-size:11px;font-weight:600;color:var(--luthor-muted-fg);text-transform:uppercase;letter-spacing:.03em}.luthor-color-swatch-grid,.luthor-color-swatch-row{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}.luthor-color-swatch{width:100%;aspect-ratio:1;border:1px solid var(--luthor-border);border-radius:6px;background-clip:padding-box;cursor:pointer;transition:transform .15s ease,border-color .15s ease;box-shadow:inset 0 0 0 1px #0f172a14}.luthor-color-swatch:hover:enabled{border-color:var(--luthor-border-hover);transform:translateY(-1px)}.luthor-color-swatch:disabled{cursor:not-allowed;background-image:repeating-linear-gradient(45deg,transparent,transparent 4px,var(--luthor-muted) 4px,var(--luthor-muted) 8px);opacity:.7}.luthor-color-picker-footer{display:flex;justify-content:space-between;align-items:center;gap:8px;padding-top:2px}.luthor-color-picker-custom{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--luthor-border);border-radius:6px;background:var(--luthor-muted);color:var(--luthor-fg);font-size:12px;font-weight:500;padding:4px 8px;cursor:pointer}.luthor-color-picker-custom:hover{border-color:var(--luthor-border-hover)}.luthor-preset-extensive.luthor-editor-wrapper[data-editor-theme=dark] .luthor-color-picker{box-shadow:0 14px 32px #0009}.luthor-preset-extensive.luthor-editor-wrapper[data-editor-theme=dark] .luthor-color-swatch{box-shadow:inset 0 0 0 1px #ffffff14}.luthor-preset-extensive.luthor-editor-wrapper[data-editor-theme=dark] .luthor-color-picker-clear,.luthor-preset-extensive.luthor-editor-wrapper[data-editor-theme=dark] .luthor-color-picker-custom{background:#ffffff0a}.luthor-select{position:relative;display:inline-block}.luthor-select-trigger{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:8px 12px;border:1px solid var(--luthor-border);border-radius:6px;background-color:var(--luthor-bg);color:var(--luthor-fg);cursor:pointer;font-size:14px;min-width:120px;max-width:180px;height:36px;transition:all .2s cubic-bezier(.4,0,.2,1);box-shadow:0 1px 3px #0000001a}.luthor-select-trigger span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}.luthor-select-trigger:hover{border-color:var(--luthor-border-hover);box-shadow:0 2px 8px #00000026}.luthor-select-trigger.open{border-color:var(--luthor-accent);box-shadow:0 0 0 3px #0f172a1a}.luthor-select-dropdown{position:fixed;z-index:var(--luthor-z-dropdown, 420);background-color:var(--luthor-bg, #ffffff);border:1px solid var(--luthor-border, #e2e8f0);border-radius:6px;box-shadow:0 8px 32px #0000001f;max-height:200px;overflow-y:auto}.luthor-select-option{display:block;width:100%;padding:10px 14px;border:none;background:none;color:var(--luthor-fg);cursor:pointer;font-size:14px;text-align:left;transition:all .15s ease}.luthor-select-option:hover{background-color:var(--luthor-muted)}.luthor-select-option.selected{background-color:var(--luthor-accent);color:var(--luthor-bg);font-weight:500}.luthor-dropdown{position:relative;display:inline-flex}.luthor-dropdown-content{position:fixed;z-index:var(--luthor-z-dropdown, 420);background-color:var(--luthor-bg, #ffffff);border:1px solid var(--luthor-border, #e2e8f0);border-radius:4px;box-shadow:0 4px 6px -1px var(--luthor-shadow);margin-top:2px;min-width:160px;padding:4px 0}.luthor-dropdown-item{display:flex;align-items:center;gap:8px;width:100%;padding:8px 12px;border:none;background:none;color:var(--luthor-fg);cursor:pointer;font-size:14px;text-align:left;transition:background-color .15s}.luthor-dropdown-item:hover{background-color:var(--luthor-muted)}.luthor-checklist-variant-grid,.luthor-unordered-variant-grid,.luthor-ordered-variant-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:8px}.luthor-unordered-variant-option,.luthor-ordered-variant-option{display:inline-flex;align-items:center;justify-content:center;padding:0;border:1px solid var(--luthor-border);border-radius:6px;background-color:var(--luthor-bg);cursor:pointer;transition:border-color .15s ease,background-color .15s ease,transform .15s ease}.luthor-unordered-variant-option:hover,.luthor-ordered-variant-option:hover{border-color:var(--luthor-border-hover);background-color:var(--luthor-muted);transform:translateY(-1px)}.luthor-unordered-variant-option:focus-visible{outline:none;border-color:var(--luthor-accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--luthor-accent) 24%,transparent)}.luthor-ordered-variant-option:focus-visible{outline:none;border-color:var(--luthor-accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--luthor-accent) 24%,transparent)}.luthor-unordered-variant-svg,.luthor-ordered-variant-svg{display:block;width:94px;height:74px}.luthor-unordered-variant-frame,.luthor-ordered-variant-frame{fill:var(--luthor-bg);stroke:var(--luthor-border)}.luthor-unordered-variant-line,.luthor-ordered-variant-line{fill:color-mix(in srgb,var(--luthor-muted-fg) 32%,transparent)}.luthor-ordered-variant-label{fill:var(--luthor-list-marker-color, var(--luthor-fg));font-size:11px;font-weight:500;font-family:Inter,Segoe UI,Arial,sans-serif;letter-spacing:.01em}.luthor-unordered-variant-marker{fill:var(--luthor-list-marker-color, var(--luthor-fg))}.luthor-unordered-variant-marker-open{fill:none;stroke:var(--luthor-list-marker-color, var(--luthor-fg));stroke-width:1.3}.luthor-unordered-variant-arrow{fill:none;stroke:var(--luthor-list-marker-color, var(--luthor-fg));stroke-width:1.35;stroke-linecap:round;stroke-linejoin:round}.luthor-checklist-variant-option{display:inline-flex;align-items:center;justify-content:center;padding:0;border:1px solid var(--luthor-border);border-radius:6px;background-color:var(--luthor-bg);cursor:pointer;transition:border-color .15s ease,background-color .15s ease,transform .15s ease}.luthor-checklist-variant-option:hover{border-color:var(--luthor-border-hover);background-color:var(--luthor-muted);transform:translateY(-1px)}.luthor-checklist-variant-option:focus-visible{outline:none;border-color:var(--luthor-accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--luthor-accent) 24%,transparent)}.luthor-checklist-variant-svg{display:block;width:78px;height:42px}.luthor-checklist-variant-frame{fill:var(--luthor-bg);stroke:var(--luthor-border)}.luthor-checklist-variant-box{fill:var(--luthor-bg);stroke:var(--luthor-list-checkbox-color, var(--luthor-accent));stroke-width:1.5}.luthor-checklist-variant-check{fill:none;stroke:var(--luthor-list-checkbox-color, var(--luthor-accent));stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.luthor-checklist-variant-line{fill:color-mix(in srgb,var(--luthor-muted-fg) 32%,transparent)}.luthor-checklist-variant-strike{stroke:var(--luthor-muted-fg);stroke-width:1.35;stroke-linecap:round}.luthor-file-input{display:none}.luthor-editor{flex:1;display:flex;flex-direction:column;min-height:400px;position:relative;--luthor-drag-gutter-width: 56px;background-color:var(--luthor-bg);transition:background-color var(--luthor-theme-transition),border-color var(--luthor-theme-transition),color var(--luthor-theme-transition)}.luthor-editor-visual-shell{display:grid;grid-template-columns:var(--luthor-drag-gutter-width) minmax(0,1fr);grid-template-rows:minmax(0,1fr);flex:1;min-height:0}.luthor-editor-visual-shell--no-gutter{grid-template-columns:minmax(0,1fr)}.luthor-editor-visual-shell.is-hidden{position:absolute;inset:0;visibility:hidden;pointer-events:none}.luthor-editor-visual-gutter{grid-column:1;grid-row:1;pointer-events:none;background-color:var(--luthor-bg);transition:background-color var(--luthor-theme-transition),border-color var(--luthor-theme-transition),color var(--luthor-theme-transition)}.luthor-editor--draggable-disabled{--luthor-drag-gutter-width: 0px}.luthor-editor--draggable-disabled .luthor-editor-visual-gutter{display:none}.luthor-richtext-container{position:relative;flex:1;--luthor-editor-content-padding-y: 20px;--luthor-editor-content-padding-x: 20px;--luthor-first-block-offset: calc(8px * var(--luthor-line-height-ratio, 1));background-color:var(--luthor-bg);transition:background-color var(--luthor-theme-transition),border-color var(--luthor-theme-transition),color var(--luthor-theme-transition)}.luthor-editor-visual-shell .luthor-richtext-container{grid-column:2;grid-row:1;min-width:0}.luthor-editor-visual-shell--no-gutter .luthor-richtext-container{grid-column:1}.luthor-content-editable{flex:1;padding:var(--luthor-editor-content-padding-y) var(--luthor-editor-content-padding-x);outline:none;color:var(--luthor-fg);line-height:1;font-size:16px;background-color:var(--luthor-bg);transition:background-color var(--luthor-theme-transition),color var(--luthor-theme-transition),border-color var(--luthor-theme-transition)}.luthor-content-editable:focus{outline:none;background-color:var(--luthor-bg)}.luthor-content-editable a,.luthor-content-editable a:hover,.luthor-content-editable a:focus-visible{cursor:pointer}.luthor-placeholder{color:var(--luthor-placeholder-color, var(--luthor-muted-fg));pointer-events:none;position:absolute;top:calc(var(--luthor-editor-content-padding-y) + var(--luthor-first-block-offset));left:var(--luthor-editor-content-padding-x);font-size:16px;line-height:var(--luthor-default-line-height, 1.5);z-index:1;transition:color var(--luthor-theme-transition),background-color var(--luthor-theme-transition),border-color var(--luthor-theme-transition)}.luthor-source-panel{padding:20px;flex:1;overflow-y:auto;background-color:var(--luthor-bg);transition:background-color var(--luthor-theme-transition),border-color var(--luthor-theme-transition),color var(--luthor-theme-transition)}.luthor-source-view{width:100%;min-height:280px;padding:12px;border:1px solid var(--luthor-border);font-family:SF Mono,Monaco,Inconsolata,Roboto Mono,Consolas,Courier New,monospace;font-size:14px;line-height:1.6;background-color:var(--luthor-bg);color:var(--luthor-fg);border-radius:0;resize:vertical;overflow-x:auto;overflow-y:auto;white-space:pre;tab-size:2;transition:background-color var(--luthor-theme-transition),color var(--luthor-theme-transition),border-color var(--luthor-theme-transition)}.luthor-source-view--wrapped{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;overflow-x:hidden}.luthor-source-error{display:flex;gap:12px;padding:12px;margin-bottom:12px;background-color:#dc26261a;border:1px solid rgba(220,38,38,.3);border-radius:6px;color:#dc2626;transition:background-color var(--luthor-theme-transition),border-color var(--luthor-theme-transition),color var(--luthor-theme-transition)}.luthor-preset-extensive.luthor-editor-wrapper[data-editor-theme=dark] .luthor-source-error{background-color:#ef444426;border-color:#ef444466;color:#fca5a5}.luthor-source-error-icon{flex-shrink:0;font-size:18px;line-height:1}.luthor-source-error-message{flex:1}.luthor-source-error-message strong{display:block;margin-bottom:4px;font-weight:600}.luthor-source-error-message p{margin:4px 0;font-size:13px;line-height:1.4;white-space:pre-wrap;word-break:break-word}.luthor-source-error-message small{display:block;margin-top:6px;font-size:12px;opacity:.7}.luthor-command-palette-overlay{position:absolute;inset:0;background:#00000080;display:flex;align-items:flex-start;justify-content:center;padding:min(20vh,120px) 16px 16px;z-index:var(--luthor-z-overlay, 480);overscroll-behavior:contain}.luthor-command-palette{background:var(--luthor-bg, #ffffff);border:1px solid var(--luthor-border, #e2e8f0);border-radius:12px;box-shadow:0 12px 48px #0000001f;width:min(640px,100%);max-width:100%;max-height:min(560px,calc(100% - min(20vh,120px) - 16px));display:flex;flex-direction:column;overflow:hidden;overscroll-behavior:contain}.luthor-command-palette-header{display:flex;align-items:center;padding:16px 20px;border-bottom:1px solid var(--luthor-border);gap:12px}.luthor-command-palette-icon{color:var(--luthor-muted-fg);flex-shrink:0}.luthor-command-palette-input{flex:1;background:transparent;border:none;outline:none;font-size:16px;color:var(--luthor-fg);font-family:inherit}.luthor-command-palette-input::placeholder{color:var(--luthor-muted-fg)}.luthor-command-palette-kbd{background:var(--luthor-muted);border:1px solid var(--luthor-border);border-radius:4px;padding:2px 6px;font-size:11px;color:var(--luthor-muted-fg);font-family:monospace}.luthor-command-palette-list{flex:1;overflow-y:auto;padding:8px 0;overscroll-behavior:contain}.luthor-command-palette-group{margin-bottom:8px}.luthor-command-palette-group-title{padding:8px 20px 4px;font-size:11px;font-weight:600;color:var(--luthor-muted-fg);text-transform:uppercase;letter-spacing:.5px}.luthor-command-palette-item{display:flex;align-items:center;padding:12px 20px;cursor:pointer;border:none;background:none;width:100%;text-align:left;transition:background-color .1s}.luthor-command-palette-item:hover,.luthor-command-palette-item.selected{background:var(--luthor-muted)}.luthor-command-palette-item-content{flex:1;min-width:0}.luthor-command-palette-item-title{font-size:14px;color:var(--luthor-fg);font-weight:500;margin-bottom:2px}.luthor-command-palette-item-description{font-size:12px;color:var(--luthor-muted-fg);line-height:1.4}.luthor-command-palette-item-shortcut{background:var(--luthor-muted);border:1px solid var(--luthor-border);border-radius:4px;padding:2px 6px;font-size:10px;color:var(--luthor-muted-fg);font-family:monospace;margin-left:12px;flex-shrink:0}.luthor-command-palette-footer{padding:12px 20px;border-top:1px solid var(--luthor-border);background:var(--luthor-muted)}.luthor-command-palette-hint{font-size:11px;color:var(--luthor-muted-fg);display:flex;align-items:center;gap:8px}.luthor-command-palette-hint kbd{background:var(--luthor-bg);border:1px solid var(--luthor-border);border-radius:3px;padding:1px 4px;font-size:10px;font-family:monospace}.luthor-command-palette-empty{padding:40px 20px;text-align:center;color:var(--luthor-muted-fg);font-size:14px}.luthor-slash-menu{position:fixed;z-index:var(--luthor-z-menu, 460);background:var(--luthor-bg, #ffffff);border:1px solid var(--luthor-border, #e2e8f0);border-radius:10px;box-shadow:0 12px 36px #00000024;width:min(420px,calc(100vw - 24px));max-height:min(55vh,420px);overflow:hidden;display:flex;flex-direction:column}.luthor-slash-menu-header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 12px;border-bottom:1px solid var(--luthor-border);background:var(--luthor-muted)}.luthor-slash-menu-title{font-size:12px;font-weight:600;color:var(--luthor-muted-fg);text-transform:uppercase;letter-spacing:.4px}.luthor-slash-menu-query{font-size:12px;font-family:monospace;color:var(--luthor-muted-fg);background:var(--luthor-bg);border:1px solid var(--luthor-border);padding:1px 6px;border-radius:4px}.luthor-slash-menu-list{overflow-y:auto;padding:8px 0}.luthor-slash-menu-group{margin-bottom:6px}.luthor-slash-menu-group-title{padding:6px 12px 4px;font-size:11px;font-weight:600;color:var(--luthor-muted-fg);text-transform:uppercase;letter-spacing:.5px}.luthor-slash-menu-item{width:100%;display:flex;align-items:center;gap:12px;padding:10px 12px;border:none;background:none;text-align:left;cursor:pointer;color:var(--luthor-fg);transition:background-color .12s}.luthor-slash-menu-item:hover,.luthor-slash-menu-item.selected{background:var(--luthor-muted)}.luthor-slash-menu-item-content{min-width:0;display:flex;flex-direction:column;gap:2px;flex:1}.luthor-slash-menu-item-title{font-size:14px;font-weight:500;color:var(--luthor-fg)}.luthor-slash-menu-item-description{font-size:12px;line-height:1.35;color:var(--luthor-muted-fg)}.luthor-slash-menu-item-shortcut{background:var(--luthor-muted);border:1px solid var(--luthor-border);border-radius:4px;padding:2px 6px;font-size:10px;font-family:monospace;color:var(--luthor-muted-fg);flex-shrink:0}.luthor-slash-menu-empty{padding:20px 12px;font-size:13px;color:var(--luthor-muted-fg);text-align:center}.luthor-emoji-picker-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;padding:8px;width:220px}.luthor-emoji-picker-item{display:inline-flex;align-items:center;justify-content:center;height:32px;border:1px solid transparent;border-radius:6px;background:transparent;cursor:pointer;font-size:18px;line-height:1}.luthor-emoji-picker-item:hover{background:var(--luthor-muted);border-color:var(--luthor-border)}.luthor-emoji-menu{position:fixed;z-index:var(--luthor-z-menu, 460);background:var(--luthor-bg, #ffffff);border:1px solid var(--luthor-border, #e2e8f0);border-radius:10px;box-shadow:0 12px 36px #00000024;width:min(320px,calc(100vw - 24px));max-height:min(45vh,320px);overflow:hidden;display:flex;flex-direction:column}.luthor-emoji-menu-header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 12px;border-bottom:1px solid var(--luthor-border);background:var(--luthor-muted)}.luthor-emoji-menu-title{font-size:12px;font-weight:600;color:var(--luthor-muted-fg);text-transform:uppercase;letter-spacing:.4px}.luthor-emoji-menu-query{font-size:12px;font-family:monospace;color:var(--luthor-muted-fg);background:var(--luthor-bg);border:1px solid var(--luthor-border);padding:1px 6px;border-radius:4px}.luthor-emoji-menu-list{overflow-y:auto;padding:6px 0}.luthor-emoji-menu-item{width:100%;display:flex;align-items:center;gap:10px;padding:8px 10px;border:none;background:none;text-align:left;cursor:pointer;color:var(--luthor-fg);transition:background-color .12s}.luthor-emoji-menu-item:hover,.luthor-emoji-menu-item.selected{background:var(--luthor-muted)}.luthor-emoji-menu-item-symbol{font-size:20px;line-height:1;width:24px;text-align:center;flex-shrink:0}.luthor-emoji-menu-item-content{min-width:0;display:flex;flex-direction:column;gap:1px;flex:1}.luthor-emoji-menu-item-title{font-size:13px;font-weight:500;color:var(--luthor-fg)}.luthor-emoji-menu-item-shortcode{font-size:12px;line-height:1.25;color:var(--luthor-muted-fg);font-family:monospace}.luthor-emoji-menu-empty{padding:18px 12px;font-size:13px;color:var(--luthor-muted-fg);text-align:center}.luthor-dialog-overlay{position:absolute;inset:0;background-color:#00000080;display:flex;align-items:center;justify-content:center;z-index:var(--luthor-z-modal, 500);overscroll-behavior:contain;padding:12px}.luthor-dialog{background-color:var(--luthor-bg);border-radius:10px;box-shadow:0 20px 30px var(--luthor-shadow);width:min(520px,calc(100% - 24px));min-width:min(360px,calc(100% - 24px));max-height:calc(100% - 24px);overflow:hidden}.luthor-dialog-header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid var(--luthor-border)}.luthor-dialog-title{margin:0;font-size:16px;font-weight:600;color:var(--luthor-fg)}.luthor-dialog-close{background:none;border:none;color:var(--luthor-muted-fg);cursor:pointer;padding:4px;border-radius:6px}.luthor-dialog-close:hover{background-color:var(--luthor-muted);color:var(--luthor-fg)}.luthor-dialog-content{padding:18px 20px}.luthor-table-dialog{display:flex;flex-direction:column;gap:14px}.luthor-form-group{display:flex;flex-direction:column;gap:6px}.luthor-form-group label{font-size:13px;font-weight:600;color:var(--luthor-fg)}.luthor-input{padding:8px 12px;border:1px solid var(--luthor-border);border-radius:6px;background-color:var(--luthor-bg);color:var(--luthor-fg);font-size:13px}.luthor-input:focus{outline:none;border-color:var(--luthor-accent);box-shadow:0 0 0 3px #3b82f61f}.luthor-checkbox-label{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--luthor-fg)}.luthor-checkbox{width:16px;height:16px;accent-color:var(--luthor-accent)}.luthor-dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:4px}.luthor-button-primary,.luthor-button-secondary{padding:8px 14px;border-radius:6px;font-size:13px;font-weight:600;cursor:pointer;border:1px solid}.luthor-button-primary{background-color:var(--luthor-accent);border-color:var(--luthor-accent);color:var(--luthor-bg)}.luthor-button-primary:hover{background-color:var(--luthor-accent-hover);border-color:var(--luthor-accent-hover)}.luthor-button-secondary{background-color:transparent;border-color:var(--luthor-border);color:var(--luthor-fg)}.luthor-button-secondary:hover{background-color:var(--luthor-muted);border-color:var(--luthor-border-hover)}.luthor-text-bold{font-weight:700;color:var(--luthor-text-bold-color, var(--luthor-fg))}.luthor-text-italic{font-style:italic}.luthor-text-underline{text-decoration:underline}.luthor-text-strikethrough{text-decoration:line-through}.luthor-content-editable code:not(.luthor-code-block),.luthor-preset .luthor-content-editable code:not(.luthor-code-block),.luthor-preset-extensive .luthor-content-editable code:not(.luthor-code-block){background-color:color-mix(in srgb,var(--luthor-muted) 78%,var(--luthor-bg) 22%);color:var(--luthor-syntax-keyword, var(--luthor-muted-fg));padding:0 .24em;border:1px solid color-mix(in srgb,var(--luthor-border) 55%,transparent);border-radius:3px;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace!important;font-size:1em!important}.luthor-content-editable code:not(.luthor-code-block) .luthor-text-code,.luthor-preset .luthor-content-editable code:not(.luthor-code-block) .luthor-text-code,.luthor-preset-extensive .luthor-content-editable code:not(.luthor-code-block) .luthor-text-code{background:transparent;border:0;padding:0;border-radius:0}.luthor-content-editable code:not(.luthor-code-block) *,.luthor-preset .luthor-content-editable code:not(.luthor-code-block) *,.luthor-preset-extensive .luthor-content-editable code:not(.luthor-code-block) *{color:inherit!important;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace!important;font-size:1em!important}.luthor-code-block{font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;background-color:var(--luthor-codeblock-bg, var(--luthor-muted));border:1px solid var(--luthor-border);color:var(--luthor-syntax-string, var(--luthor-muted-fg));border-radius:4px}.luthor-code-block{display:block;padding:12px;margin:12px 0;line-height:1.6;overflow-x:auto;max-width:min(100%,880px);width:100%;tab-size:2;white-space:pre;overflow-wrap:normal;word-break:normal}.luthor-code-block--interactive{position:relative;margin-top:40px;border-top-left-radius:0;border-top-right-radius:0;border-top:0}.luthor-codeblock-controls-layer{position:absolute;inset:0;pointer-events:none;z-index:25}.luthor-codeblock-controls{position:absolute;display:flex;align-items:center;justify-content:space-between;z-index:26;pointer-events:auto;margin:0;max-width:none;padding:8px 10px;border:1px solid var(--luthor-border);border-top-left-radius:8px;border-top-right-radius:8px;border-bottom:1px solid var(--luthor-border);background:var(--luthor-codeblock-bg, var(--luthor-muted))}.luthor-codeblock-controls-left,.luthor-codeblock-controls-right{display:inline-flex;align-items:center;gap:6px}.luthor-codeblock-language,.luthor-codeblock-copy{font-size:11px;line-height:1.2;height:24px;border-radius:6px;border:1px solid var(--luthor-border);background:var(--luthor-bg);color:var(--luthor-fg);padding:0 8px}.luthor-codeblock-language{min-width:88px;appearance:none}.luthor-codeblock-language option{background:var(--luthor-bg);color:var(--luthor-fg)}.luthor-codeblock-copy{cursor:pointer;font-weight:600;width:26px;height:24px;padding:0;display:inline-flex;align-items:center;justify-content:center;position:relative;background:var(--luthor-bg)}.luthor-codeblock-copy svg{width:14px;height:14px;fill:currentColor}.luthor-codeblock-copy:after{content:attr(data-tooltip);position:absolute;top:-28px;right:0;padding:2px 6px;font-size:10px;line-height:1.2;white-space:nowrap;border-radius:4px;border:1px solid var(--luthor-border);background:var(--luthor-bg);color:var(--luthor-fg);opacity:0;pointer-events:none;transform:translateY(4px);transition:opacity .15s ease,transform .15s ease}.luthor-codeblock-copy:hover:after,.luthor-codeblock-copy:focus-visible:after{opacity:1;transform:translateY(0)}.luthor-codeblock-copy:hover,.luthor-codeblock-language:hover,.luthor-codeblock-copy.is-copied{border-color:var(--luthor-border-hover);background:var(--luthor-codeblock-bg, var(--luthor-muted))}.luthor-codeblock-copy.is-copy-error{border-color:var(--luthor-syntax-variable);color:var(--luthor-syntax-variable)}.luthor-code-block[data-theme=plain]{--luthor-syntax-keyword: var(--luthor-muted-fg);--luthor-syntax-string: var(--luthor-muted-fg);--luthor-syntax-number: var(--luthor-muted-fg);--luthor-syntax-function: var(--luthor-muted-fg);--luthor-syntax-variable: var(--luthor-muted-fg)}.luthor-preset-extensive.luthor-editor-wrapper .hljs{color:var(--luthor-code-unhighlighted-fg, var(--luthor-fg))}:where(.luthor-code-comment),:where(.luthor-code-prolog),:where(.luthor-code-doctype),:where(.luthor-code-cdata),:where(.luthor-code-punctuation),:where(.luthor-code-operator),:where(.luthor-code-namespace),:where(.luthor-code-property),:where(.luthor-code-tag),:where(.luthor-code-constant),:where(.luthor-code-symbol),:where(.luthor-code-deleted),:where(.luthor-code-boolean),:where(.luthor-code-number),:where(.luthor-code-attr),:where(.luthor-code-selector),:where(.luthor-code-string),:where(.luthor-code-char),:where(.luthor-code-builtin),:where(.luthor-code-inserted),:where(.luthor-code-function),:where(.luthor-code-class),:where(.luthor-code-class-name),:where(.luthor-code-keyword),:where(.luthor-code-atrule),:where(.luthor-code-regex),:where(.luthor-code-variable),:where(.luthor-code-important){color:var(--luthor-syntax-string, var(--luthor-muted-fg));font-weight:inherit}.luthor-paragraph{margin:var(--luthor-first-block-offset) 0;line-height:var(--luthor-default-line-height, 1.5)}.luthor-heading-h1,.luthor-heading-h2,.luthor-heading-h3,.luthor-heading-h4,.luthor-heading-h5,.luthor-heading-h6{margin:calc(16px * var(--luthor-line-height-ratio, 1)) 0 calc(8px * var(--luthor-line-height-ratio, 1));line-height:var(--luthor-default-line-height, 1.5);font-weight:700}.luthor-heading-h1{font-size:28px}.luthor-heading-h2{font-size:24px}.luthor-heading-h3{font-size:20px}.luthor-heading-h4{font-size:18px}.luthor-heading-h5{font-size:16px}.luthor-heading-h6{font-size:14px}.luthor-list-ul,.luthor-list-ol{margin:10px 0 10px 24px}.luthor-list-li{margin:calc(4px * var(--luthor-line-height-ratio, 1)) 0;line-height:var(--luthor-default-line-height, 1.5)}.luthor-list-ul .luthor-list-li::marker,.luthor-list-ol .luthor-list-li::marker{color:var(--luthor-list-marker-color, var(--luthor-fg))}.luthor-list-ol[style*=--luthor-ordered-pattern]{list-style:none;padding-left:0}.luthor-list-ol:has(>.luthor-list-li[style*=--luthor-ordered-marker-content]){list-style:none;padding-left:0}.luthor-list-ol>.luthor-list-li[style*=--luthor-ordered-marker-content]:not(.luthor-list-item-unchecked):not(.luthor-list-item-checked){padding-left:0}.luthor-list-ol>.luthor-list-li[style*=--luthor-ordered-marker-content]:not(.luthor-list-item-unchecked):not(.luthor-list-item-checked)::marker{content:""}.luthor-list-ol>.luthor-list-li[style*=--luthor-ordered-marker-content]:not(.luthor-list-item-unchecked):not(.luthor-list-item-checked):before{content:var(--luthor-ordered-marker-content);display:inline-block;white-space:nowrap;min-width:2.4ch;margin-right:10px;text-align:right;line-height:inherit;vertical-align:baseline;font-variant-numeric:tabular-nums;font-size:14px;font-weight:500;color:var(--luthor-list-marker-color, var(--luthor-fg))}.luthor-list-ul[style*=--luthor-unordered-pattern]{list-style:none;padding-left:0}.luthor-list-ul:has(>.luthor-list-li[style*=--luthor-unordered-marker-kind]){list-style:none;padding-left:0}.luthor-list-li[style*=--luthor-unordered-marker-kind]:not(.luthor-list-item-unchecked):not(.luthor-list-item-checked){position:relative;padding-left:24px}.luthor-list-li[style*=--luthor-unordered-marker-kind]:not(.luthor-list-item-unchecked):not(.luthor-list-item-checked)::marker{content:""}.luthor-list-li[style*=--luthor-unordered-marker-kind]:not(.luthor-list-item-unchecked):not(.luthor-list-item-checked):before{content:"";position:absolute;left:0;top:50%;transform:translateY(-50%);width:18px;height:18px;background-position:center;background-repeat:no-repeat;background-size:12px 12px;color:var(--luthor-list-marker-color, var(--luthor-fg));opacity:.95}.luthor-list-li[style*="--luthor-unordered-marker-kind: disc"]:before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Ccircle cx='6' cy='6' r='2.7' fill='currentColor'/%3E%3C/svg%3E")}.luthor-list-li[style*="--luthor-unordered-marker-kind: circle"]:before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Ccircle cx='6' cy='6' r='3.1' fill='none' stroke='currentColor' stroke-width='1.2'/%3E%3C/svg%3E")}.luthor-list-li[style*="--luthor-unordered-marker-kind: square"]:before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Crect x='3.1' y='3.1' width='5.8' height='5.8' fill='currentColor'/%3E%3C/svg%3E")}.luthor-list-li[style*="--luthor-unordered-marker-kind: diamond"]:before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 2.2 9.8 6 6 9.8 2.2 6Z' fill='currentColor'/%3E%3C/svg%3E")}.luthor-list-li[style*="--luthor-unordered-marker-kind: arrow"]:before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 2.6v6.8L9 6 3 2.6Z' fill='currentColor'/%3E%3C/svg%3E")}.luthor-list-item-unchecked,.luthor-list-item-checked{position:relative;list-style:none;margin-left:0;padding-left:28px;min-height:22px;cursor:pointer}.luthor-list-item-unchecked::marker,.luthor-list-item-checked::marker{content:""}.luthor-list-item-unchecked:before,.luthor-list-item-checked:before{content:"";position:absolute;left:0;top:.1em;width:16px;height:16px;border-radius:4px;border:1.5px solid var(--luthor-list-checkbox-color, var(--luthor-accent));background-color:var(--luthor-bg);box-sizing:border-box;transition:all .15s ease}.luthor-list-item-unchecked:hover:before{border-color:var(--luthor-list-checkbox-color, var(--luthor-accent))}.luthor-list-item-unchecked:focus,.luthor-list-item-unchecked:focus-visible,.luthor-list-item-checked:focus,.luthor-list-item-checked:focus-visible{outline:none;box-shadow:none}.luthor-list-li:has(>.luthor-list-ul:first-child),.luthor-list-li:has(>.luthor-list-ol:first-child){list-style:none}.luthor-list-item-unchecked:has(>.luthor-list-ul:first-child),.luthor-list-item-unchecked:has(>.luthor-list-ol:first-child),.luthor-list-item-checked:has(>.luthor-list-ul:first-child),.luthor-list-item-checked:has(>.luthor-list-ol:first-child){padding-left:0;min-height:0}.luthor-list-item-unchecked:has(>.luthor-list-ul:first-child):before,.luthor-list-item-unchecked:has(>.luthor-list-ol:first-child):before,.luthor-list-item-checked:has(>.luthor-list-ul:first-child):before,.luthor-list-item-checked:has(>.luthor-list-ol:first-child):before{display:none}.luthor-list-item-checked:before{content:"\2713";display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;line-height:1;color:var(--luthor-bg);border-color:var(--luthor-list-checkbox-color, var(--luthor-accent));background-color:var(--luthor-list-checkbox-color, var(--luthor-accent))}.luthor-list-item-checked{text-decoration:var(--luthor-checklist-text-decoration, line-through);opacity:var(--luthor-checklist-opacity, .85)}.luthor-list-item-checked>ul,.luthor-list-item-checked>ol{text-decoration:none;opacity:1}.luthor-list-ul[style*="--luthor-checklist-variant: plain"] .luthor-list-item-checked,.luthor-list-ol[style*="--luthor-checklist-variant: plain"] .luthor-list-item-checked,.luthor-list-item-checked[style*="--luthor-checklist-variant: plain"],.luthor-list-item-checked:has([style*="--luthor-checklist-variant: plain"]){--luthor-checklist-text-decoration: none;--luthor-checklist-opacity: 1}.luthor-quote{border-left:4px solid var(--luthor-quote-border, var(--luthor-accent));background-color:var(--luthor-quote-bg, var(--luthor-muted));padding:10px 14px;margin:12px 0;color:var(--luthor-quote-fg, var(--luthor-fg));line-height:var(--luthor-default-line-height, 1.5)}.luthor-link{color:var(--luthor-link-color, var(--luthor-accent));text-decoration:underline}.luthor-link:hover{color:var(--luthor-accent-hover)}.luthor-hr{margin:16px 0;border:none;border-top:1px solid var(--luthor-hr-color, var(--luthor-border));height:1px}.luthor-preset-extensive .lexical-image{margin:1em 0;display:block;position:relative}.luthor-preset-extensive .lexical-image img{max-width:100%;height:auto;border-radius:6px;display:block}.luthor-preset-extensive .lexical-image.align-left{float:left;margin-right:1em;margin-bottom:1em}.luthor-preset-extensive .lexical-image.align-right{float:right;margin-left:1em;margin-bottom:1em}.luthor-preset-extensive .lexical-image.align-center{text-align:center;margin:1em auto}.luthor-preset-extensive .lexical-image.align-center img{margin:0 auto}.luthor-preset-extensive .lexical-image figcaption{margin-top:.5em;font-size:12px;color:var(--luthor-muted-fg);text-align:center;font-style:italic}.luthor-preset-extensive .lexical-image.selected{outline:none}.luthor-preset-extensive .resizer{position:absolute;width:8px;height:8px;background:var(--luthor-accent);border:1px solid white;border-radius:50%}.luthor-preset-extensive .resizer.ne{top:-4px;right:-4px;cursor:nesw-resize}.luthor-preset-extensive .resizer.nw{top:-4px;left:-4px;cursor:nwse-resize}.luthor-preset-extensive .resizer.se{bottom:-4px;right:-4px;cursor:nwse-resize}.luthor-preset-extensive .resizer.sw{bottom:-4px;left:-4px;cursor:nesw-resize}.luthor-table{border-collapse:collapse;width:100%;margin:16px 0;border:1px solid var(--luthor-table-border-color, var(--luthor-border))}.luthor-table-cell,.luthor-table-cell-header{border:1px solid var(--luthor-table-border-color, var(--luthor-border));padding:8px 12px;text-align:left;min-width:80px;background-color:var(--luthor-bg)}.luthor-table-cell-header{background-color:var(--luthor-table-header-bg, var(--luthor-muted));font-weight:600}.luthor-preset-extensive table[data-lexical-table-selection]{box-shadow:0 0 0 2px var(--luthor-accent)}.luthor-preset-extensive table td[data-lexical-table-cell-selection]{background-color:#3b82f61a}.luthor-table-bubble-menu{display:flex;align-items:center;gap:6px;padding:8px;border:1px solid var(--luthor-border);border-radius:10px;background:var(--luthor-bg);box-shadow:0 8px 24px var(--luthor-shadow);pointer-events:auto;white-space:nowrap}.luthor-table-bubble-button{height:30px;min-width:30px;padding:0 10px;display:inline-flex;align-items:center;justify-content:center;border-radius:6px;border:1px solid var(--luthor-border);background:var(--luthor-muted);color:var(--luthor-fg);font-size:12px;font-weight:600;line-height:1;cursor:pointer;transition:all .16s ease}.luthor-table-bubble-button svg{display:block}.luthor-table-bubble-button-icon{width:30px;padding:0}.luthor-table-bubble-button:hover{border-color:var(--luthor-border-hover);background:color-mix(in srgb,var(--luthor-muted) 58%,var(--luthor-accent) 42%);color:var(--luthor-bg)}.luthor-table-bubble-button-active{background:var(--luthor-accent);border-color:var(--luthor-accent);color:var(--luthor-bg)}.luthor-table-bubble-button-danger:hover{background:#dc2626;border-color:#dc2626;color:#fff}.luthor-table-bubble-checkbox{display:inline-flex;align-items:center;gap:6px;padding:0 6px;height:28px;font-size:12px;font-weight:600;color:var(--luthor-fg);user-select:none}.luthor-table-bubble-checkbox input{margin:0;accent-color:var(--luthor-accent)}.luthor-context-menu{position:fixed;background:var(--luthor-bg);border:1px solid var(--luthor-border);border-radius:8px;box-shadow:0 10px 30px var(--luthor-shadow);z-index:var(--luthor-z-menu, 460);min-width:160px;padding:6px 0;font-size:13px}.luthor-context-menu-item{padding:8px 14px;cursor:pointer;user-select:none}.luthor-context-menu-item:hover{background-color:var(--luthor-muted)}.luthor-context-menu-item-disabled{opacity:.5;cursor:not-allowed}.luthor-floating-toolbar{--luthor-floating-bg: #ffffff;--luthor-floating-fg: #0f172a;--luthor-floating-border: #e2e8f0;--luthor-floating-shadow: rgba(0, 0, 0, .08);--luthor-floating-muted: #f8fafc;--luthor-floating-border-hover: #cbd5e1;--luthor-floating-border-active: #94a3b8;--luthor-floating-accent: #0f172a;--luthor-floating-accent-fg: #ffffff;display:flex;align-items:center;gap:4px;padding:6px;background-color:var(--luthor-floating-bg);color:var(--luthor-floating-fg);border:1px solid var(--luthor-floating-border);border-radius:8px;box-shadow:0 8px 24px var(--luthor-floating-shadow)}.luthor-floating-toolbar[data-theme=dark]{--luthor-floating-bg: #0a0a0a;--luthor-floating-fg: #ededed;--luthor-floating-border: #262626;--luthor-floating-shadow: rgba(0, 0, 0, .5);--luthor-floating-muted: #171717;--luthor-floating-border-hover: #404040;--luthor-floating-border-active: #525252;--luthor-floating-accent: #ededed;--luthor-floating-accent-fg: #0a0a0a}.luthor-floating-toolbar .luthor-toolbar-button{color:var(--luthor-floating-fg);border-color:transparent}.luthor-floating-toolbar .luthor-toolbar-button:hover{background-color:var(--luthor-floating-muted);border-color:var(--luthor-floating-border-hover)}.luthor-floating-toolbar .luthor-toolbar-button.active{background-color:var(--luthor-floating-accent);border-color:var(--luthor-floating-accent);color:var(--luthor-floating-accent-fg)}.luthor-floating-toolbar-separator{width:1px;height:18px;background-color:var(--luthor-floating-border);margin:0 4px}.luthor-floating-toolbar-input{height:30px;min-width:140px;max-width:220px;padding:4px 8px;font-size:12px;color:var(--luthor-floating-fg);background-color:var(--luthor-floating-bg);border:1px solid var(--luthor-floating-border);border-radius:6px;outline:none}.luthor-floating-toolbar-fields{display:flex;flex-direction:column;gap:6px}.luthor-floating-toolbar-field-row{display:flex;align-items:center;gap:6px}.luthor-floating-toolbar-action{height:30px;min-width:30px;width:auto;padding:0 10px;font-size:12px;font-weight:600;border-color:var(--luthor-floating-border);background:var(--luthor-floating-muted);color:var(--luthor-floating-fg);transform:none;box-shadow:none}.luthor-floating-toolbar .luthor-floating-toolbar-action:hover{border-color:var(--luthor-floating-border-hover);background:var(--luthor-floating-muted);color:var(--luthor-floating-fg);transform:none;box-shadow:none}.luthor-floating-toolbar-action-primary,.luthor-floating-toolbar .luthor-floating-toolbar-action-primary:hover{border-color:var(--luthor-floating-accent);background:var(--luthor-floating-accent);color:var(--luthor-floating-accent-fg)}.luthor-floating-toolbar-action-danger:hover{border-color:#dc2626;background:#dc2626;color:#fff}.luthor-floating-toolbar-input:focus{border-color:var(--luthor-floating-border-active);box-shadow:0 0 0 2px color-mix(in srgb,var(--luthor-floating-accent) 18%,transparent)}.luthor-floating-toolbar-input.is-error{border-color:#dc2626}.luthor-link-hover-bubble{gap:6px;max-width:min(680px,calc(100vw - 20px));border-radius:10px;box-shadow:0 8px 24px var(--luthor-floating-shadow)}.luthor-link-hover-bubble-url{min-width:160px;max-width:360px;padding:0 4px;font-size:12px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.luthor-link-hover-bubble-button{height:30px;min-width:30px;padding:0 10px;width:auto;font-size:12px;font-weight:600;border-color:var(--luthor-floating-border);background:var(--luthor-floating-muted);transform:none;box-shadow:none}.luthor-link-hover-bubble .luthor-link-hover-bubble-button:hover{border-color:var(--luthor-floating-border-hover);background:var(--luthor-floating-muted);transform:none;box-shadow:none}.luthor-link-hover-bubble-button-primary,.luthor-link-hover-bubble .luthor-link-hover-bubble-button-primary:hover{border-color:var(--luthor-floating-accent);background:var(--luthor-floating-accent);color:var(--luthor-floating-accent-fg)}.luthor-link-hover-bubble-button-danger:hover{border-color:#dc2626;background:#dc2626;color:#fff}.luthor-link-hover-bubble-input{height:28px;min-width:220px;max-width:360px;padding:4px 8px;font-size:12px;border:1px solid var(--luthor-floating-border);border-radius:6px;color:var(--luthor-floating-fg);background:var(--luthor-floating-bg);outline:none}.luthor-link-hover-bubble-input:focus{border-color:var(--luthor-floating-border-active);box-shadow:0 0 0 2px color-mix(in srgb,var(--luthor-floating-accent) 18%,transparent)}.luthor-link-hover-bubble-input.is-error{border-color:#dc2626}.luthor-media-embed-shell{position:relative;border:2px solid var(--luthor-border);border-radius:12px;overflow:hidden;background:var(--luthor-bg);transition:border-color var(--luthor-theme-transition),box-shadow var(--luthor-theme-transition),background-color var(--luthor-theme-transition)}.luthor-media-embed-shell:hover{border-color:var(--luthor-border-active)}.luthor-media-embed-shell.is-selected{border-color:var(--luthor-accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--luthor-accent) 28%,transparent)}.luthor-media-embed-shell.is-resizing{user-select:none}.luthor-media-embed-controls{position:absolute;top:8px;right:8px;display:inline-flex;gap:4px;padding:4px;border:1px solid var(--luthor-border-hover);border-radius:8px;background:color-mix(in srgb,var(--luthor-bg) 92%,black 8%);z-index:2}.luthor-media-embed-control{border:1px solid var(--luthor-border);background:var(--luthor-muted);color:var(--luthor-fg);border-radius:6px;padding:2px 8px;font-size:11px;line-height:1.4;cursor:pointer}.luthor-media-embed-control:hover{border-color:var(--luthor-border-hover)}.luthor-media-embed-control.is-active{background:var(--luthor-accent);border-color:var(--luthor-accent);color:var(--luthor-bg)}.luthor-media-embed-resize-handle-width,.luthor-media-embed-resize-handle-height{position:absolute;border:1px solid var(--luthor-accent);background:color-mix(in srgb,var(--luthor-muted) 85%,var(--luthor-bg) 15%);border-radius:999px;z-index:2;opacity:.95;transition:background-color var(--luthor-theme-transition),border-color var(--luthor-theme-transition),transform .12s ease}.luthor-media-embed-resize-handle-width{top:50%;right:-7px;transform:translateY(-50%);width:14px;height:30px;cursor:ew-resize;border-radius:999px}.luthor-media-embed-resize-handle-height{left:50%;bottom:-7px;transform:translate(-50%);width:30px;height:14px;cursor:ns-resize;border-radius:999px}.luthor-media-embed-resize-handle-width:hover,.luthor-media-embed-resize-handle-height:hover{transform:translateY(-50%) scale(1.06)}.luthor-media-embed-resize-handle-height:hover{transform:translate(-50%) scale(1.06)}.luthor-media-embed-shell.is-resizing .luthor-media-embed-resize-handle-width,.luthor-media-embed-shell.is-resizing .luthor-media-embed-resize-handle-height{background:color-mix(in srgb,var(--luthor-accent) 28%,var(--luthor-bg) 72%);border:1px solid var(--luthor-accent)}.luthor-draggable-handle,.luthor-draggable-add-button{width:24px;height:24px;border-radius:0;border:none;background:transparent;color:var(--luthor-muted-fg);fill:currentColor;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:color .16s ease,transform .16s ease;outline:none}.luthor-draggable-add-button{width:20px;height:20px;font-size:14px;line-height:1;font-weight:500;padding:0}.luthor-draggable-handle svg{width:14px;height:14px;stroke:currentColor;fill:none}.luthor-draggable-handle:hover,.luthor-draggable-add-button:hover{color:var(--luthor-fg);transform:scale(1.04)}.luthor-draggable-handle:active,.luthor-draggable-add-button:active,.luthor-draggable-handle-active{background:transparent;color:var(--luthor-accent);transform:scale(.96)}.luthor-draggable-button-stack{display:flex;flex-direction:column;gap:6px;align-items:center;padding:0;border:none;background:transparent}.luthor-draggable-drop-indicator{height:3px;background:var(--luthor-accent);border-radius:999px}.luthor-draggable-block-dragging,.luthor-draggable-block-is-dragging{opacity:.6}.luthor-editor--draggable-disabled .luthor-draggable-button-stack,.luthor-editor--draggable-disabled .luthor-draggable-handle,.luthor-editor--draggable-disabled .luthor-draggable-add-button,.luthor-editor--draggable-disabled .luthor-draggable-drop-indicator{display:none!important}@media(max-width:768px){.luthor-preset-extensive.luthor-editor-wrapper{min-height:400px}.luthor-toolbar{padding:6px}.luthor-toolbar--align-right{justify-content:flex-start}.luthor-toolbar-button{width:32px;height:32px;font-size:14px}.luthor-toolbar-section{padding:0 2px}.luthor-toolbar-section:not(:last-child){margin-right:6px;padding-right:6px}.luthor-richtext-container{--luthor-editor-content-padding-y: 16px;--luthor-editor-content-padding-x: 16px}.luthor-content-editable{font-size:16px}.luthor-select-trigger{min-width:100px;font-size:13px}.luthor-mode-tab{padding:8px 12px;font-size:13px}}.luthor-extensive-feature-card{border:1px solid var(--luthor-border-active);border-radius:12px;padding:12px;margin:10px 0;background-color:var(--luthor-muted)}.luthor-extensive-feature-card.is-selected{box-shadow:0 0 0 2px var(--luthor-accent)}.luthor-extensive-feature-card__tag{display:inline-flex;align-items:center;font-size:10px;letter-spacing:.04em;text-transform:uppercase;color:var(--luthor-accent);border:1px solid var(--luthor-border-active);background-color:var(--luthor-bg);border-radius:999px;padding:2px 8px;margin-bottom:8px}.luthor-extensive-feature-card__title{margin:0;font-size:14px;color:var(--luthor-fg);line-height:1.35}.luthor-extensive-feature-card__description{margin:6px 0 0;font-size:12px;line-height:1.45;color:var(--luthor-muted-fg)}.luthor-preset-compose{display:flex;flex-direction:column;gap:10px}.luthor-compose-shell{border:1px solid var(--luthor-border);border-radius:8px;overflow:hidden}.luthor-compose-row{display:grid;grid-template-columns:72px 1fr;align-items:center;gap:8px;padding:8px 12px;border-bottom:1px solid var(--luthor-border);background:var(--luthor-bg);color:var(--luthor-fg)}.luthor-compose-row:last-child{border-bottom:0}.luthor-compose-row input{border:0;outline:none;background:transparent}.luthor-preset-compose .luthor-editor{min-height:220px}.luthor-preset-compose--compact .luthor-toolbar,.luthor-preset-compose__toolbar--compact{padding:4px;gap:2px}.luthor-preset-compose__toolbar--compact .luthor-toolbar-button{width:30px;height:30px}.luthor-preset-composer{display:flex;flex-direction:column;gap:8px;width:100%;min-width:var(--luthor-composer-min-width, 240px);max-width:var(--luthor-composer-max-width, 100%)}.luthor-composer-row{display:flex;align-items:flex-end;gap:8px;width:100%}.luthor-composer-shell{position:relative;width:100%;min-width:var(--luthor-composer-min-width, 240px);max-width:var(--luthor-composer-max-width, 100%)}.luthor-preset-composer .luthor-preset-extensive.luthor-editor-wrapper{min-height:var(--luthor-composer-min-height, 56px);max-height:var(--luthor-composer-max-height, 220px);height:var(--luthor-composer-current-height, var(--luthor-composer-min-height, 56px));min-width:var(--luthor-composer-min-width, 240px);max-width:var(--luthor-composer-max-width, 100%);border-radius:16px}.luthor-preset-composer .luthor-editor-header{display:none}.luthor-preset-composer .luthor-editor{min-height:0;height:100%}.luthor-preset-composer .luthor-editor-visual-shell{min-height:0}.luthor-preset-composer .luthor-richtext-container{min-height:0;overflow-y:auto;scrollbar-width:thin;--luthor-editor-content-padding-y: 12px;--luthor-editor-content-padding-x: 14px;--luthor-first-block-offset: 0px}.luthor-preset-composer .luthor-content-editable{padding:var(--luthor-editor-content-padding-y) var(--luthor-editor-content-padding-x);min-height:100%;box-sizing:border-box;line-height:1.45}.luthor-preset-composer--send-inside .luthor-content-editable{padding-right:84px;padding-bottom:48px}.luthor-preset-composer .luthor-placeholder{top:var(--luthor-editor-content-padding-y);left:var(--luthor-editor-content-padding-x);line-height:1.45}.luthor-composer-bottom-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:8px 10px 10px;border-top:1px solid var(--luthor-border);background:var(--luthor-bg)}.luthor-composer-action{border:1px solid var(--luthor-border);background:var(--luthor-muted);color:var(--luthor-fg);border-radius:10px;height:32px;padding:0 12px;cursor:pointer}.luthor-composer-action-send{border-color:var(--luthor-accent);background:var(--luthor-accent);color:var(--luthor-bg)}.luthor-composer-action-send--inside{position:absolute;right:10px;bottom:10px}.luthor-composer-action-send--right{align-self:flex-end}@media(max-width:640px){.luthor-composer-row{flex-wrap:wrap}.luthor-composer-action-send--right{margin-left:auto}}.luthor-preset-md-friendly{display:flex;flex-direction:column;gap:8px}.luthor-md-friendly-tabs{display:flex;gap:4px}.luthor-md-friendly-tabs button{border:1px solid var(--luthor-border);background:var(--luthor-muted);color:var(--luthor-fg);border-radius:6px;height:30px;padding:0 10px}.luthor-md-friendly-tabs button.active{border-color:var(--luthor-accent);background:var(--luthor-accent);color:var(--luthor-bg)}.luthor-md-friendly-source{width:100%;min-height:240px;border:1px solid var(--luthor-border);border-radius:8px;padding:12px;font-family:ui-monospace,Menlo,Consolas,monospace}.luthor-md-friendly-error{margin:6px 0 0;color:#dc2626;font-size:12px}.luthor-preset-notion-like .luthor-editor{min-height:280px}.luthor-headless-preset{border:1px solid #cbd5e1;border-radius:8px;padding:12px;display:grid;gap:10px}.luthor-headless-controls{display:flex;flex-wrap:wrap;gap:6px}.luthor-headless-controls button{height:30px;border:1px solid #cbd5e1;border-radius:6px;background:#f8fafc;color:#0f172a;text-transform:lowercase;padding:0 10px}.luthor-headless-editor-content{min-height:160px;border:1px solid #e2e8f0;border-radius:8px;padding:12px}
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export { E as EditorPreset, p as presetRegistry } from './index-BtdZVw3X.js';
2
- import { C as CoreEditorCommands, a as CoreEditorActiveStates, b as CoreTheme, c as CoreEditorMode, d as CoreToolbarClassNames, T as ToolbarStyleVars, e as ToolbarLayout, f as ToolbarVisibility, B as BlockHeadingLevel, g as ToolbarItemType, D as DefaultSettings } from './ExtensiveEditor-B25Uedf2.js';
3
- export { h as BLOCK_HEADING_LEVELS, i as BlockFormat, j as CommandConfig, k as CommandGenerationOptions, l as DEFAULT_TOOLBAR_LAYOUT, E as EditorThemeOverrides, m as ExtensiveEditor, n as ExtensiveEditorMode, o as ExtensiveEditorProps, p as ExtensiveEditorRef, q as ExtensiveExtensionsConfig, F as FeatureFlag, r as FeatureFlagOverrides, s as FeatureFlags, I as ImageAlignment, t as InsertImageConfig, u as InsertTableConfig, K as KeyboardShortcut, Q as QuoteStyleVars, S as ShortcutBindingOverride, v as ShortcutConfig, w as SlashCommandVisibility, x as SlashCommandVisibilityFilters, y as SlashCommandVisibilitySelection, z as TRADITIONAL_TOOLBAR_LAYOUT, A as TextAlignment, G as ToolbarAlignment, H as ToolbarPosition, J as ToolbarSection, L as commandsToCommandPaletteItems, M as commandsToSlashCommandItems, N as createExtensiveExtensions, O as extensiveExtensions, P as generateCommands, R as registerKeyboardShortcuts } from './ExtensiveEditor-B25Uedf2.js';
2
+ import { C as CoreEditorCommands, a as CoreEditorActiveStates, b as CoreTheme, c as CoreEditorMode, d as CoreToolbarClassNames, T as ToolbarStyleVars, e as ToolbarLayout, f as ToolbarVisibility, B as BlockHeadingLevel, g as ToolbarItemType, D as DefaultSettings } from './ExtensiveEditor-6OT-Dmr1.js';
3
+ export { h as BLOCK_HEADING_LEVELS, i as BlockFormat, j as CommandConfig, k as CommandGenerationOptions, l as DEFAULT_TOOLBAR_LAYOUT, E as EditorThemeOverrides, m as ExtensiveEditor, n as ExtensiveEditorMode, o as ExtensiveEditorProps, p as ExtensiveEditorRef, q as ExtensiveExtensionsConfig, F as FeatureFlag, r as FeatureFlagOverrides, s as FeatureFlags, I as ImageAlignment, t as InsertImageConfig, u as InsertTableConfig, K as KeyboardShortcut, Q as QuoteStyleVars, S as ShortcutBindingOverride, v as ShortcutConfig, w as SlashCommandVisibility, x as SlashCommandVisibilityFilters, y as SlashCommandVisibilitySelection, z as TRADITIONAL_TOOLBAR_LAYOUT, A as TextAlignment, G as ToolbarAlignment, H as ToolbarPosition, J as ToolbarSection, L as commandsToCommandPaletteItems, M as commandsToSlashCommandItems, N as createExtensiveExtensions, O as extensiveExtensions, P as generateCommands, R as registerKeyboardShortcuts } from './ExtensiveEditor-6OT-Dmr1.js';
4
4
  import { CommandPaletteItem, EmojiCatalogItem, SlashCommandItem, FloatingToolbarExtension, LexicalEditor, EditorConfig } from '@lyfie/luthor-headless';
5
5
  import * as luthorHeadless from '@lyfie/luthor-headless';
6
6
  export { luthorHeadless as headless };
@@ -8,16 +8,13 @@ export { CodeIntelligenceCommands, CodeIntelligenceConfig, CodeIntelligenceExten
8
8
  import * as react_jsx_runtime from 'react/jsx-runtime';
9
9
  import * as react from 'react';
10
10
  import { ForwardRefExoticComponent, SVGProps, RefAttributes, ReactNode } from 'react';
11
- export { ChatWindowEditor, ChatWindowEditorProps, ChatWindowEditorSendPayload, chatWindowPreset } from './presets/chat-window/index.js';
12
- export { EmailComposeEditor, EmailComposeEditorProps, emailComposePreset } from './presets/email-compose/index.js';
13
- import { S as StyleVarRecord, a as StyleVarValueRecord, F as FeatureFlagsLike, b as FeatureShortcutSpec, T as ToolbarFeatureMap, P as PresetModeCache } from './index-CUB1ColU.js';
14
- export { E as ExtensivePresetConfig, c as createExtensivePreset, e as extensivePreset } from './index-CUB1ColU.js';
11
+ export { ComposeEditor, ComposeEditorProps, composePreset } from './presets/compose/index.js';
12
+ export { ComposerEditor, ComposerEditorProps, ComposerEditorSendPayload, ComposerFormattingOptions, ComposerOutputFormat, ComposerToolbarButton, composerPreset } from './presets/composer/index.js';
13
+ import { S as StyleVarRecord, a as StyleVarValueRecord, F as FeatureFlagsLike, b as FeatureShortcutSpec, T as ToolbarFeatureMap, P as PresetModeCache } from './index-DZPcit31.js';
14
+ export { E as ExtensivePresetConfig, c as createExtensivePreset, e as extensivePreset } from './index-DZPcit31.js';
15
15
  export { HeadlessEditorPreset, HeadlessEditorPresetProps, headlessEditorPreset } from './presets/headless-editor/index.js';
16
- export { MDTextEditor, MDTextEditorMode, MDTextEditorProps, mdTextPreset } from './presets/md-text/index.js';
17
- export { NotesEditor, NotesEditorProps, notesPreset } from './presets/notes/index.js';
16
+ export { MDFriendlyEditor, MDFriendlyEditorMode, MDFriendlyEditorProps, mdFriendlyPreset } from './presets/md-friendly/index.js';
18
17
  export { NotionLikeEditor, NotionLikeEditorProps, notionLikePreset } from './presets/notion-like/index.js';
19
- export { RichTextBoxEditor, RichTextBoxEditorProps, richTextBoxPreset } from './presets/rich-text-box/index.js';
20
- export { SimpleTextEditor, SimpleTextEditorProps, simpleTextPreset } from './presets/simple-text/index.js';
21
18
 
22
19
  declare function CommandPalette({ isOpen, onClose, commands, }: {
23
20
  isOpen: boolean;
@@ -25,25 +22,27 @@ declare function CommandPalette({ isOpen, onClose, commands, }: {
25
22
  commands: CommandPaletteItem[];
26
23
  }): react_jsx_runtime.JSX.Element | null;
27
24
 
28
- declare function EmojiSuggestionMenu({ isOpen, query, position, suggestions, onClose, onExecute, }: {
25
+ declare function EmojiSuggestionMenu({ isOpen, query, position, portalContainer, suggestions, onClose, onExecute, }: {
29
26
  isOpen: boolean;
30
27
  query: string;
31
28
  position: {
32
29
  x: number;
33
30
  y: number;
34
31
  } | null;
32
+ portalContainer?: HTMLElement | null;
35
33
  suggestions: EmojiCatalogItem[];
36
34
  onClose: () => void;
37
35
  onExecute: (emoji: string) => void;
38
36
  }): react_jsx_runtime.JSX.Element | null;
39
37
 
40
- declare function SlashCommandMenu({ isOpen, query, position, commands, onClose, onExecute, }: {
38
+ declare function SlashCommandMenu({ isOpen, query, position, portalContainer, commands, onClose, onExecute, }: {
41
39
  isOpen: boolean;
42
40
  query: string;
43
41
  position: {
44
42
  x: number;
45
43
  y: number;
46
44
  } | null;
45
+ portalContainer?: HTMLElement | null;
47
46
  commands: SlashCommandItem[];
48
47
  onClose: () => void;
49
48
  onExecute: (commandId: string) => void;
@@ -240,17 +239,19 @@ declare function ModeTabs({ mode, onModeChange, labels, availableModes, isConver
240
239
  availableModes?: readonly CoreEditorMode[];
241
240
  isConverting?: CoreEditorMode | null;
242
241
  }): react_jsx_runtime.JSX.Element;
243
- declare function SourceView({ value, onChange, placeholder, className, }: {
242
+ declare function SourceView({ value, onChange, placeholder, className, wrap, }: {
244
243
  value: string;
245
244
  onChange: (value: string) => void;
246
245
  placeholder: string;
247
246
  className?: string;
247
+ wrap?: "soft" | "hard" | "off";
248
248
  }): react_jsx_runtime.JSX.Element;
249
249
 
250
250
  declare function createPresetEditorConfig(presetId: string, placeholder: string): EditorConfig;
251
251
 
252
252
  declare function formatJSONSource(input: string): string;
253
253
  declare function formatMarkdownSource(input: string): string;
254
+ declare function formatHTMLSource(input: string): string;
254
255
 
255
256
  declare function isToolbarItemSupported(itemType: ToolbarItemType, hasExtension: (name: string) => boolean): boolean;
256
257
  declare function isToolbarItemVisible(itemType: ToolbarItemType, hasExtension: (name: string) => boolean, toolbarVisibility?: ToolbarVisibility): boolean;
@@ -323,4 +324,4 @@ declare function invalidateModeCache<TMode extends string>(cache: PresetModeCach
323
324
  declare function isModeCached<TMode extends string>(cache: PresetModeCache<TMode>, mode: TMode): boolean;
324
325
  declare function markModeCached<TMode extends string>(cache: PresetModeCache<TMode>, mode: TMode): void;
325
326
 
326
- export { AlignCenterIcon, AlignJustifyIcon, AlignLeftIcon, AlignRightIcon, BlockHeadingLevel, BoldIcon, Button, ChevronDownIcon, CloseIcon, CodeBlockIcon, CodeIcon, CommandIcon, CommandPalette, CoreEditorActiveStates, CoreEditorCommands, CoreEditorMode, CoreTheme, CoreToolbarClassNames, DefaultSettings, Dialog, Dropdown, EmojiIcon, EmojiSuggestionMenu, EyeIcon, FeatureFlagsLike, FeatureShortcutSpec, FileCodeIcon, FloatingToolbar, type FloatingToolbarProps, HighlighterIcon, IconButton, ImageIcon, IndentIcon, ItalicIcon, LinkHoverBubble, type LinkHoverBubbleProps, LinkIcon, ListCheckIcon, ListIcon, ListOrderedIcon, MinusIcon, ModeTabs, MoonIcon, OutdentIcon, PaletteIcon, PencilIcon, PresetModeCache, QuoteIcon, RedoIcon, SearchIcon, Select, SlashCommandMenu, SourceView, StrikethroughIcon, StyleVarRecord, StyleVarValueRecord, SubscriptIcon, SunIcon, SuperscriptIcon, TableIcon, Toolbar, ToolbarFeatureMap, ToolbarItemType, ToolbarLayout, type ToolbarProps, ToolbarStyleVars, ToolbarVisibility, TypeIcon, UnderlineIcon, UndoIcon, UnlinkIcon, UploadIcon, createDefaultSettingsStyleVarRecord, createFeatureGuardedCommands, createFloatingToolbarExtension, createModeCache, createPresetEditorConfig, filterToolbarLayout, formatJSONSource, formatMarkdownSource, invalidateModeCache, isEditableCommandTarget, isModeCached, isShortcutMatch, isToolbarItemSupported, isToolbarItemVisible, markModeCached, mergeToolbarVisibilityWithFeatures, normalizeStyleVarsKey, setFloatingToolbarContext };
327
+ export { AlignCenterIcon, AlignJustifyIcon, AlignLeftIcon, AlignRightIcon, BlockHeadingLevel, BoldIcon, Button, ChevronDownIcon, CloseIcon, CodeBlockIcon, CodeIcon, CommandIcon, CommandPalette, CoreEditorActiveStates, CoreEditorCommands, CoreEditorMode, CoreTheme, CoreToolbarClassNames, DefaultSettings, Dialog, Dropdown, EmojiIcon, EmojiSuggestionMenu, EyeIcon, FeatureFlagsLike, FeatureShortcutSpec, FileCodeIcon, FloatingToolbar, type FloatingToolbarProps, HighlighterIcon, IconButton, ImageIcon, IndentIcon, ItalicIcon, LinkHoverBubble, type LinkHoverBubbleProps, LinkIcon, ListCheckIcon, ListIcon, ListOrderedIcon, MinusIcon, ModeTabs, MoonIcon, OutdentIcon, PaletteIcon, PencilIcon, PresetModeCache, QuoteIcon, RedoIcon, SearchIcon, Select, SlashCommandMenu, SourceView, StrikethroughIcon, StyleVarRecord, StyleVarValueRecord, SubscriptIcon, SunIcon, SuperscriptIcon, TableIcon, Toolbar, ToolbarFeatureMap, ToolbarItemType, ToolbarLayout, type ToolbarProps, ToolbarStyleVars, ToolbarVisibility, TypeIcon, UnderlineIcon, UndoIcon, UnlinkIcon, UploadIcon, createDefaultSettingsStyleVarRecord, createFeatureGuardedCommands, createFloatingToolbarExtension, createModeCache, createPresetEditorConfig, filterToolbarLayout, formatHTMLSource, formatJSONSource, formatMarkdownSource, invalidateModeCache, isEditableCommandTarget, isModeCached, isShortcutMatch, isToolbarItemSupported, isToolbarItemVisible, markModeCached, mergeToolbarVisibilityWithFeatures, normalizeStyleVarsKey, setFloatingToolbarContext };
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import {b as b$6}from'./chunk-HSXFJCQA.js';export{a as RichTextBoxEditor,b as richTextBoxPreset}from'./chunk-HSXFJCQA.js';import {b as b$7}from'./chunk-QR6IHW2C.js';export{a as SimpleTextEditor,b as simpleTextPreset}from'./chunk-QR6IHW2C.js';import {b as b$5}from'./chunk-RLHHVHV7.js';export{a as ChatWindowEditor,b as chatWindowPreset}from'./chunk-RLHHVHV7.js';import {b as b$4}from'./chunk-U3MVQLAN.js';export{a as EmailComposeEditor,b as emailComposePreset}from'./chunk-U3MVQLAN.js';import {b as b$1}from'./chunk-YI6UVUPP.js';export{a as HeadlessEditorPreset,b as headlessEditorPreset}from'./chunk-YI6UVUPP.js';import {b as b$3}from'./chunk-TID3K24V.js';export{a as MDTextEditor,b as mdTextPreset}from'./chunk-TID3K24V.js';import {b}from'./chunk-DOJY2XR6.js';export{a as NotesEditor,b as notesPreset}from'./chunk-DOJY2XR6.js';import {b as b$2}from'./chunk-TTLFSMFF.js';export{a as NotionLikeEditor,b as notionLikePreset}from'./chunk-TTLFSMFF.js';import {Da}from'./chunk-WU54BL4Y.js';export{w as AlignCenterIcon,x as AlignJustifyIcon,v as AlignLeftIcon,y as AlignRightIcon,a as BLOCK_HEADING_LEVELS,h as BoldIcon,Y as Button,S as ChevronDownIcon,T as CloseIcon,m as CodeBlockIcon,l as CodeIcon,G as CommandIcon,U as CommandPalette,b as DEFAULT_TOOLBAR_LAYOUT,$ as Dialog,_ as Dropdown,P as EmojiIcon,V as EmojiSuggestionMenu,Ba as ExtensiveEditor,D as EyeIcon,C as FileCodeIcon,aa as FloatingToolbar,E as HighlighterIcon,X as IconButton,u as ImageIcon,K as IndentIcon,i as ItalicIcon,da as LinkHoverBubble,n as LinkIcon,q as ListCheckIcon,p as ListIcon,r as ListOrderedIcon,A as MinusIcon,ea as ModeTabs,N as MoonIcon,L as OutdentIcon,H as PaletteIcon,F as PencilIcon,J as QuoteIcon,t as RedoIcon,O as SearchIcon,Z as Select,W as SlashCommandMenu,fa as SourceView,k as StrikethroughIcon,Q as SubscriptIcon,M as SunIcon,R as SuperscriptIcon,c as TRADITIONAL_TOOLBAR_LAYOUT,B as TableIcon,la as Toolbar,I as TypeIcon,j as UnderlineIcon,s as UndoIcon,o as UnlinkIcon,z as UploadIcon,e as commandsToCommandPaletteItems,f as commandsToSlashCommandItems,sa as createDefaultSettingsStyleVarRecord,pa as createExtensiveExtensions,Ea as createExtensivePreset,wa as createFeatureGuardedCommands,ca as createFloatingToolbarExtension,xa as createModeCache,qa as extensiveExtensions,Da as extensivePreset,ka as filterToolbarLayout,ga as formatJSONSource,ha as formatMarkdownSource,d as generateCommands,ya as invalidateModeCache,ta as isEditableCommandTarget,za as isModeCached,ua as isShortcutMatch,ia as isToolbarItemSupported,ja as isToolbarItemVisible,Aa as markModeCached,va as mergeToolbarVisibilityWithFeatures,ra as normalizeStyleVarsKey,g as registerKeyboardShortcuts,ba as setFloatingToolbarContext}from'./chunk-WU54BL4Y.js';export{a as createPresetEditorConfig}from'./chunk-MDSRHDWB.js';import*as luthorHeadless from'@lyfie/luthor-headless';export{luthorHeadless as headless };export{CodeIntelligenceExtension,codeIntelligenceExtension}from'@lyfie/luthor-headless';var it={extensive:Da,"simple-text":b$7,"rich-text-box":b$6,"chat-window":b$5,"email-compose":b$4,"md-text":b$3,"notion-like":b$2,"headless-editor":b$1,notes:b};export{it as presetRegistry};
1
+ import {b as b$4}from'./chunk-TRGIRBLU.js';export{a as ComposeEditor,b as composePreset}from'./chunk-TRGIRBLU.js';import {b as b$3}from'./chunk-MGWT45KA.js';export{a as ComposerEditor,b as composerPreset}from'./chunk-MGWT45KA.js';import {b}from'./chunk-AHHU2IZS.js';export{a as HeadlessEditorPreset,b as headlessEditorPreset}from'./chunk-AHHU2IZS.js';import {b as b$2}from'./chunk-42NSZXCX.js';export{a as MDFriendlyEditor,b as mdFriendlyPreset}from'./chunk-42NSZXCX.js';import {b as b$1}from'./chunk-VITE7CVN.js';export{a as NotionLikeEditor,b as notionLikePreset}from'./chunk-VITE7CVN.js';import {Ea}from'./chunk-ONBHJIZQ.js';export{w as AlignCenterIcon,x as AlignJustifyIcon,v as AlignLeftIcon,y as AlignRightIcon,a as BLOCK_HEADING_LEVELS,h as BoldIcon,Y as Button,S as ChevronDownIcon,T as CloseIcon,m as CodeBlockIcon,l as CodeIcon,G as CommandIcon,U as CommandPalette,b as DEFAULT_TOOLBAR_LAYOUT,$ as Dialog,_ as Dropdown,P as EmojiIcon,V as EmojiSuggestionMenu,Ca as ExtensiveEditor,D as EyeIcon,C as FileCodeIcon,aa as FloatingToolbar,E as HighlighterIcon,X as IconButton,u as ImageIcon,K as IndentIcon,i as ItalicIcon,da as LinkHoverBubble,n as LinkIcon,q as ListCheckIcon,p as ListIcon,r as ListOrderedIcon,A as MinusIcon,ea as ModeTabs,N as MoonIcon,L as OutdentIcon,H as PaletteIcon,F as PencilIcon,J as QuoteIcon,t as RedoIcon,O as SearchIcon,Z as Select,W as SlashCommandMenu,fa as SourceView,k as StrikethroughIcon,Q as SubscriptIcon,M as SunIcon,R as SuperscriptIcon,c as TRADITIONAL_TOOLBAR_LAYOUT,B as TableIcon,ma as Toolbar,I as TypeIcon,j as UnderlineIcon,s as UndoIcon,o as UnlinkIcon,z as UploadIcon,e as commandsToCommandPaletteItems,f as commandsToSlashCommandItems,ta as createDefaultSettingsStyleVarRecord,qa as createExtensiveExtensions,Fa as createExtensivePreset,xa as createFeatureGuardedCommands,ca as createFloatingToolbarExtension,ya as createModeCache,ra as extensiveExtensions,Ea as extensivePreset,la as filterToolbarLayout,ia as formatHTMLSource,ga as formatJSONSource,ha as formatMarkdownSource,d as generateCommands,za as invalidateModeCache,ua as isEditableCommandTarget,Aa as isModeCached,va as isShortcutMatch,ja as isToolbarItemSupported,ka as isToolbarItemVisible,Ba as markModeCached,wa as mergeToolbarVisibilityWithFeatures,sa as normalizeStyleVarsKey,g as registerKeyboardShortcuts,ba as setFloatingToolbarContext}from'./chunk-ONBHJIZQ.js';export{a as createPresetEditorConfig}from'./chunk-MDSRHDWB.js';import*as luthorHeadless from'@lyfie/luthor-headless';export{luthorHeadless as headless };export{CodeIntelligenceExtension,codeIntelligenceExtension}from'@lyfie/luthor-headless';var Ze={extensive:Ea,compose:b$4,composer:b$3,"md-friendly":b$2,"notion-like":b$1,"headless-editor":b};export{Ze as presetRegistry};
@@ -0,0 +1,27 @@
1
+ import * as react from 'react';
2
+ import { o as ExtensiveEditorProps, r as FeatureFlagOverrides, p as ExtensiveEditorRef } from '../../ExtensiveEditor-6OT-Dmr1.js';
3
+ import { E as EditorPreset } from '../../index-BtdZVw3X.js';
4
+ import '@lyfie/luthor-headless';
5
+
6
+ type ComposeEditorProps = Omit<ExtensiveEditorProps, "featureFlags"> & {
7
+ featureFlags?: FeatureFlagOverrides;
8
+ compactToolbar?: boolean;
9
+ showRecipients?: boolean;
10
+ showTo?: boolean;
11
+ showCc?: boolean;
12
+ showBcc?: boolean;
13
+ showSubject?: boolean;
14
+ };
15
+ declare const ComposeEditor: react.ForwardRefExoticComponent<Omit<ExtensiveEditorProps, "featureFlags"> & {
16
+ featureFlags?: FeatureFlagOverrides;
17
+ compactToolbar?: boolean;
18
+ showRecipients?: boolean;
19
+ showTo?: boolean;
20
+ showCc?: boolean;
21
+ showBcc?: boolean;
22
+ showSubject?: boolean;
23
+ } & react.RefAttributes<ExtensiveEditorRef>>;
24
+
25
+ declare const composePreset: EditorPreset;
26
+
27
+ export { ComposeEditor, type ComposeEditorProps, composePreset };
@@ -0,0 +1 @@
1
+ export{a as ComposeEditor,b as composePreset}from'../../chunk-TRGIRBLU.js';import'../../chunk-ONBHJIZQ.js';import'../../chunk-MDSRHDWB.js';
@@ -0,0 +1,64 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { ReactNode, CSSProperties } from 'react';
3
+ import { LuthorTheme } from '@lyfie/luthor-headless';
4
+ import { o as ExtensiveEditorProps } from '../../ExtensiveEditor-6OT-Dmr1.js';
5
+ import { E as EditorPreset } from '../../index-BtdZVw3X.js';
6
+
7
+ type SizeValue = number | string;
8
+ type ComposerOutputFormat = "md" | "json";
9
+ type ComposerEditorSendPayload = {
10
+ format: ComposerOutputFormat;
11
+ text: string;
12
+ markdown: string;
13
+ json: string;
14
+ };
15
+ type ComposerFormattingOptions = {
16
+ bold?: boolean;
17
+ italic?: boolean;
18
+ strikethrough?: boolean;
19
+ };
20
+ type ComposerToolbarButton = {
21
+ id: string;
22
+ content: ReactNode;
23
+ ariaLabel: string;
24
+ onClick?: () => void;
25
+ disabled?: boolean;
26
+ title?: string;
27
+ className?: string;
28
+ };
29
+ type ComposerEditorProps = {
30
+ className?: string;
31
+ variantClassName?: string;
32
+ initialTheme?: "light" | "dark";
33
+ onThemeChange?: (theme: "light" | "dark") => void;
34
+ theme?: Partial<LuthorTheme>;
35
+ defaultContent?: string;
36
+ showDefaultContent?: boolean;
37
+ placeholder?: ExtensiveEditorProps["placeholder"];
38
+ formattingOptions?: ComposerFormattingOptions;
39
+ onSend?: (payload: ComposerEditorSendPayload) => void;
40
+ outputFormat?: ComposerOutputFormat;
41
+ clearOnSend?: boolean;
42
+ allowEmptySend?: boolean;
43
+ submitOnEnter?: boolean;
44
+ allowShiftEnter?: boolean;
45
+ minHeight?: SizeValue;
46
+ maxHeight?: SizeValue;
47
+ minWidth?: SizeValue;
48
+ maxWidth?: SizeValue;
49
+ showBottomToolbar?: boolean;
50
+ toolbarButtons?: readonly ComposerToolbarButton[];
51
+ toolbarClassName?: string;
52
+ toolbarStyle?: CSSProperties;
53
+ showSendButton?: boolean;
54
+ sendButtonPlacement?: "inside" | "right";
55
+ sendButtonContent?: ReactNode;
56
+ sendButtonAriaLabel?: string;
57
+ sendButtonClassName?: string;
58
+ scrollAreaClassName?: string;
59
+ };
60
+ declare function ComposerEditor({ className, variantClassName, initialTheme, onThemeChange, theme, defaultContent, showDefaultContent, placeholder, formattingOptions, onSend, outputFormat, clearOnSend, allowEmptySend, submitOnEnter, allowShiftEnter, minHeight, maxHeight, minWidth, maxWidth, showBottomToolbar, toolbarButtons, toolbarClassName, toolbarStyle, showSendButton, sendButtonPlacement, sendButtonContent, sendButtonAriaLabel, sendButtonClassName, scrollAreaClassName, }: ComposerEditorProps): react_jsx_runtime.JSX.Element;
61
+
62
+ declare const composerPreset: EditorPreset;
63
+
64
+ export { ComposerEditor, type ComposerEditorProps, type ComposerEditorSendPayload, type ComposerFormattingOptions, type ComposerOutputFormat, type ComposerToolbarButton, composerPreset };
@@ -0,0 +1 @@
1
+ export{a as ComposerEditor,b as composerPreset}from'../../chunk-MGWT45KA.js';import'../../chunk-ONBHJIZQ.js';import'../../chunk-MDSRHDWB.js';
@@ -1,5 +1,5 @@
1
- export { E as ExtensivePresetConfig, b as FeatureShortcutSpec, T as ToolbarFeatureMap, c as createExtensivePreset, e as extensivePreset, d as extensiveToolbar } from '../../index-CUB1ColU.js';
2
- export { U as DEFAULT_FEATURE_FLAGS, m as ExtensiveEditor, n as ExtensiveEditorMode, o as ExtensiveEditorProps, p as ExtensiveEditorRef, q as ExtensiveExtensionsConfig, F as FeatureFlag, r as FeatureFlagOverrides, s as FeatureFlags, N as createExtensiveExtensions, O as extensiveExtensions, V as isFeatureEnabled, W as resolveFeatureFlags } from '../../ExtensiveEditor-B25Uedf2.js';
1
+ export { E as ExtensivePresetConfig, b as FeatureShortcutSpec, T as ToolbarFeatureMap, c as createExtensivePreset, e as extensivePreset, d as extensiveToolbar } from '../../index-DZPcit31.js';
2
+ export { U as DEFAULT_FEATURE_FLAGS, m as ExtensiveEditor, n as ExtensiveEditorMode, o as ExtensiveEditorProps, p as ExtensiveEditorRef, q as ExtensiveExtensionsConfig, F as FeatureFlag, r as FeatureFlagOverrides, s as FeatureFlags, N as createExtensiveExtensions, O as extensiveExtensions, V as isFeatureEnabled, W as resolveFeatureFlags } from '../../ExtensiveEditor-6OT-Dmr1.js';
3
3
  import '../../index-BtdZVw3X.js';
4
4
  import '@lyfie/luthor-headless';
5
5
  import 'react';
@@ -1 +1 @@
1
- export{ma as DEFAULT_FEATURE_FLAGS,Ba as ExtensiveEditor,pa as createExtensiveExtensions,Ea as createExtensivePreset,qa as extensiveExtensions,Da as extensivePreset,Ca as extensiveToolbar,oa as isFeatureEnabled,na as resolveFeatureFlags}from'../../chunk-WU54BL4Y.js';import'../../chunk-MDSRHDWB.js';
1
+ export{na as DEFAULT_FEATURE_FLAGS,Ca as ExtensiveEditor,qa as createExtensiveExtensions,Fa as createExtensivePreset,ra as extensiveExtensions,Ea as extensivePreset,Da as extensiveToolbar,pa as isFeatureEnabled,oa as resolveFeatureFlags}from'../../chunk-ONBHJIZQ.js';import'../../chunk-MDSRHDWB.js';
@@ -1 +1 @@
1
- export{a as HeadlessEditorPreset,b as headlessEditorPreset}from'../../chunk-YI6UVUPP.js';import'../../chunk-MDSRHDWB.js';
1
+ export{a as HeadlessEditorPreset,b as headlessEditorPreset}from'../../chunk-AHHU2IZS.js';import'../../chunk-MDSRHDWB.js';
@@ -0,0 +1,19 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { o as ExtensiveEditorProps } from '../../ExtensiveEditor-6OT-Dmr1.js';
3
+ import { E as EditorPreset } from '../../index-BtdZVw3X.js';
4
+ import 'react';
5
+ import '@lyfie/luthor-headless';
6
+
7
+ type MDFriendlyEditorMode = "visual" | "markdown";
8
+ type MDFriendlyEditorView = "visual" | "json" | "markdown" | "html";
9
+ type MDFriendlyEditorProps = Omit<ExtensiveEditorProps, "availableModes" | "initialMode"> & {
10
+ initialMode?: MDFriendlyEditorMode;
11
+ defaultEditorView?: MDFriendlyEditorView;
12
+ isEditorViewTabsVisible?: boolean;
13
+ isEditorViewsTabVisible?: boolean;
14
+ };
15
+ declare function MDFriendlyEditor({ className, variantClassName, initialMode, defaultEditorView, isEditorViewTabsVisible, isEditorViewsTabVisible, ...props }: MDFriendlyEditorProps): react_jsx_runtime.JSX.Element;
16
+
17
+ declare const mdFriendlyPreset: EditorPreset;
18
+
19
+ export { MDFriendlyEditor, type MDFriendlyEditorMode, type MDFriendlyEditorProps, mdFriendlyPreset };
@@ -0,0 +1 @@
1
+ export{a as MDFriendlyEditor,b as mdFriendlyPreset}from'../../chunk-42NSZXCX.js';import'../../chunk-ONBHJIZQ.js';import'../../chunk-MDSRHDWB.js';
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { o as ExtensiveEditorProps, w as SlashCommandVisibility, r as FeatureFlagOverrides } from '../../ExtensiveEditor-B25Uedf2.js';
2
+ import { o as ExtensiveEditorProps, w as SlashCommandVisibility, r as FeatureFlagOverrides } from '../../ExtensiveEditor-6OT-Dmr1.js';
3
3
  import { E as EditorPreset } from '../../index-BtdZVw3X.js';
4
4
  import 'react';
5
5
  import '@lyfie/luthor-headless';
@@ -1 +1 @@
1
- export{a as NotionLikeEditor,b as notionLikePreset}from'../../chunk-TTLFSMFF.js';import'../../chunk-WU54BL4Y.js';import'../../chunk-MDSRHDWB.js';
1
+ export{a as NotionLikeEditor,b as notionLikePreset}from'../../chunk-VITE7CVN.js';import'../../chunk-ONBHJIZQ.js';import'../../chunk-MDSRHDWB.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lyfie/luthor",
3
- "version": "2.3.6",
3
+ "version": "2.4.0",
4
4
  "description": "Luthor presets and plug-and-play configuration for the headless editor",
5
5
  "type": "module",
6
6
  "private": false,
@@ -48,6 +48,7 @@
48
48
  "homepage": "https://github.com/lyfie-org/luthor#readme",
49
49
  "dependencies": {
50
50
  "@lexical/code": "^0.40.0",
51
+ "@lexical/html": "^0.40.0",
51
52
  "@lexical/link": "^0.40.0",
52
53
  "@lexical/list": "^0.40.0",
53
54
  "@lexical/markdown": "^0.40.0",
@@ -57,7 +58,7 @@
57
58
  "@lexical/table": "^0.40.0",
58
59
  "@lexical/utils": "^0.40.0",
59
60
  "lexical": "^0.40.0",
60
- "@lyfie/luthor-headless": "2.3.6"
61
+ "@lyfie/luthor-headless": "2.4.0"
61
62
  },
62
63
  "devDependencies": {
63
64
  "@types/node": "^20.19.33",
@@ -70,8 +71,8 @@
70
71
  "tsup": "^8.0.0",
71
72
  "typescript": "^5.7.3",
72
73
  "vitest": "^3.2.4",
73
- "@repo/eslint-config": "0.0.0",
74
- "@repo/typescript-config": "0.0.0"
74
+ "@repo/typescript-config": "0.0.0",
75
+ "@repo/eslint-config": "0.0.0"
75
76
  },
76
77
  "peerDependencies": {
77
78
  "react": "^18.0.0 || ^19.0.0",
@@ -79,9 +80,9 @@
79
80
  },
80
81
  "scripts": {
81
82
  "build": "tsup",
82
- "lint": "eslint . --max-warnings 0",
83
+ "lint": "node ../../node_modules/eslint/bin/eslint.js . --max-warnings 0",
83
84
  "dev": "tsup --watch",
84
- "test": "vitest run",
85
+ "test": "node ../../node_modules/vitest/vitest.mjs run",
85
86
  "check:rule-contracts": "node ../../tools/check-rule-contracts.mjs --scope=luthor"
86
87
  }
87
88
  }