@hamster-note/notes 2.0.0 → 3.0.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.
- package/README.md +205 -59
- package/dist/index.cjs +227 -57
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +42042 -22960
- package/dist/index.js.map +1 -1
- package/dist/lib/editor/HnnDataDrawer.d.ts +18 -0
- package/dist/lib/editor/HnnDataDrawer.d.ts.map +1 -0
- package/dist/lib/editor/HostReferenceUI.d.ts +22 -0
- package/dist/lib/editor/HostReferenceUI.d.ts.map +1 -0
- package/dist/lib/editor/MarkdownExport.d.ts +29 -0
- package/dist/lib/editor/MarkdownExport.d.ts.map +1 -0
- package/dist/lib/editor/NoteEditor.d.ts +19 -0
- package/dist/lib/editor/NoteEditor.d.ts.map +1 -0
- package/dist/lib/editor/NoteSaveStatus.d.ts +22 -0
- package/dist/lib/editor/NoteSaveStatus.d.ts.map +1 -0
- package/dist/lib/editor/blockMenu.d.ts +19 -0
- package/dist/lib/editor/blockMenu.d.ts.map +1 -0
- package/dist/lib/editor/blockReorder.d.ts +77 -0
- package/dist/lib/editor/blockReorder.d.ts.map +1 -0
- package/dist/lib/editor/hostReferenceInteractions.d.ts +34 -0
- package/dist/lib/editor/hostReferenceInteractions.d.ts.map +1 -0
- package/dist/lib/editor/hostReferences.d.ts +40 -0
- package/dist/lib/editor/hostReferences.d.ts.map +1 -0
- package/dist/lib/editor/nativeClipboard.d.ts +8 -0
- package/dist/lib/editor/nativeClipboard.d.ts.map +1 -0
- package/dist/lib/editor/pictureUpload.d.ts +27 -0
- package/dist/lib/editor/pictureUpload.d.ts.map +1 -0
- package/dist/lib/editor/session.d.ts +71 -0
- package/dist/lib/editor/session.d.ts.map +1 -0
- package/dist/lib/editor/sessionKey.d.ts +6 -0
- package/dist/lib/editor/sessionKey.d.ts.map +1 -0
- package/dist/lib/editor/types.d.ts +143 -0
- package/dist/lib/editor/types.d.ts.map +1 -0
- package/dist/lib/hnn/budgetedTransaction.d.ts +44 -0
- package/dist/lib/hnn/budgetedTransaction.d.ts.map +1 -0
- package/dist/lib/hnn/cardPayload.d.ts +48 -0
- package/dist/lib/hnn/cardPayload.d.ts.map +1 -0
- package/dist/lib/hnn/codec.d.ts +21 -0
- package/dist/lib/hnn/codec.d.ts.map +1 -0
- package/dist/lib/hnn/directoryEntries.d.ts +12 -0
- package/dist/lib/hnn/directoryEntries.d.ts.map +1 -0
- package/dist/lib/hnn/drawingPayload.d.ts +26 -0
- package/dist/lib/hnn/drawingPayload.d.ts.map +1 -0
- package/dist/lib/hnn/extensions.d.ts +50 -0
- package/dist/lib/hnn/extensions.d.ts.map +1 -0
- package/dist/lib/hnn/limits.d.ts +30 -0
- package/dist/lib/hnn/limits.d.ts.map +1 -0
- package/dist/lib/hnn/markdown.d.ts +29 -0
- package/dist/lib/hnn/markdown.d.ts.map +1 -0
- package/dist/lib/hnn/menuPopover.d.ts +46 -0
- package/dist/lib/hnn/menuPopover.d.ts.map +1 -0
- package/dist/lib/hnn/nodeId.d.ts +20 -0
- package/dist/lib/hnn/nodeId.d.ts.map +1 -0
- package/dist/lib/hnn/persistedStringBudget.d.ts +21 -0
- package/dist/lib/hnn/persistedStringBudget.d.ts.map +1 -0
- package/dist/lib/hnn/schema.d.ts +6 -0
- package/dist/lib/hnn/schema.d.ts.map +1 -0
- package/dist/lib/hnn/stringBytes.d.ts +29 -0
- package/dist/lib/hnn/stringBytes.d.ts.map +1 -0
- package/dist/lib/hnn/tableEdgeControls.d.ts +39 -0
- package/dist/lib/hnn/tableEdgeControls.d.ts.map +1 -0
- package/dist/lib/hnn/urlPolicy.d.ts +8 -0
- package/dist/lib/hnn/urlPolicy.d.ts.map +1 -0
- package/dist/lib/index.d.ts +6 -6
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +13 -8
- package/dist/lib/BlockActionMenu.d.ts +0 -55
- package/dist/lib/BlockActionMenu.d.ts.map +0 -1
- package/dist/lib/BlockActionMenuTypes.d.ts +0 -23
- package/dist/lib/BlockActionMenuTypes.d.ts.map +0 -1
- package/dist/lib/BottomBlockControls.d.ts +0 -17
- package/dist/lib/BottomBlockControls.d.ts.map +0 -1
- package/dist/lib/CardInspector.d.ts +0 -10
- package/dist/lib/CardInspector.d.ts.map +0 -1
- package/dist/lib/CardLinkOverlay.d.ts +0 -13
- package/dist/lib/CardLinkOverlay.d.ts.map +0 -1
- package/dist/lib/LinkMentionMenu.d.ts +0 -9
- package/dist/lib/LinkMentionMenu.d.ts.map +0 -1
- package/dist/lib/NoteBlockEditingControls.d.ts +0 -20
- package/dist/lib/NoteBlockEditingControls.d.ts.map +0 -1
- package/dist/lib/NoteBlockFocus.d.ts +0 -15
- package/dist/lib/NoteBlockFocus.d.ts.map +0 -1
- package/dist/lib/NoteCalloutBlock.d.ts +0 -10
- package/dist/lib/NoteCalloutBlock.d.ts.map +0 -1
- package/dist/lib/NoteCardBlock.d.ts +0 -10
- package/dist/lib/NoteCardBlock.d.ts.map +0 -1
- package/dist/lib/NoteChecklistBlock.d.ts +0 -10
- package/dist/lib/NoteChecklistBlock.d.ts.map +0 -1
- package/dist/lib/NoteCodeEditorBlock.d.ts +0 -10
- package/dist/lib/NoteCodeEditorBlock.d.ts.map +0 -1
- package/dist/lib/NoteCollapsibleBlock.d.ts +0 -10
- package/dist/lib/NoteCollapsibleBlock.d.ts.map +0 -1
- package/dist/lib/NoteContent.d.ts +0 -9
- package/dist/lib/NoteContent.d.ts.map +0 -1
- package/dist/lib/NoteContentBlocks.d.ts +0 -6
- package/dist/lib/NoteContentBlocks.d.ts.map +0 -1
- package/dist/lib/NoteContentEditing.d.ts +0 -58
- package/dist/lib/NoteContentEditing.d.ts.map +0 -1
- package/dist/lib/NoteDirectoryBlock.d.ts +0 -10
- package/dist/lib/NoteDirectoryBlock.d.ts.map +0 -1
- package/dist/lib/NoteDrawingBlock.d.ts +0 -10
- package/dist/lib/NoteDrawingBlock.d.ts.map +0 -1
- package/dist/lib/NoteFormulaBlock.d.ts +0 -10
- package/dist/lib/NoteFormulaBlock.d.ts.map +0 -1
- package/dist/lib/NoteListBlock.d.ts +0 -12
- package/dist/lib/NoteListBlock.d.ts.map +0 -1
- package/dist/lib/NoteParagraphBlock.d.ts +0 -12
- package/dist/lib/NoteParagraphBlock.d.ts.map +0 -1
- package/dist/lib/NotePictureBlock.d.ts +0 -10
- package/dist/lib/NotePictureBlock.d.ts.map +0 -1
- package/dist/lib/NoteQuoteBlock.d.ts +0 -11
- package/dist/lib/NoteQuoteBlock.d.ts.map +0 -1
- package/dist/lib/NoteTableBlock.d.ts +0 -5
- package/dist/lib/NoteTableBlock.d.ts.map +0 -1
- package/dist/lib/NoteTextBlockLayouts.d.ts +0 -27
- package/dist/lib/NoteTextBlockLayouts.d.ts.map +0 -1
- package/dist/lib/NoteTextBlocks.d.ts +0 -11
- package/dist/lib/NoteTextBlocks.d.ts.map +0 -1
- package/dist/lib/NoteTodoBlock.d.ts +0 -11
- package/dist/lib/NoteTodoBlock.d.ts.map +0 -1
- package/dist/lib/PictureUploadMenuItem.d.ts +0 -9
- package/dist/lib/PictureUploadMenuItem.d.ts.map +0 -1
- package/dist/lib/SelectionPopover.d.ts +0 -28
- package/dist/lib/SelectionPopover.d.ts.map +0 -1
- package/dist/lib/TableDragHandle.d.ts +0 -15
- package/dist/lib/TableDragHandle.d.ts.map +0 -1
- package/dist/lib/TableOperationMenu.d.ts +0 -16
- package/dist/lib/TableOperationMenu.d.ts.map +0 -1
- package/dist/lib/blockContainerDom.d.ts +0 -11
- package/dist/lib/blockContainerDom.d.ts.map +0 -1
- package/dist/lib/blockContainerMove.d.ts +0 -17
- package/dist/lib/blockContainerMove.d.ts.map +0 -1
- package/dist/lib/blockConversion.d.ts +0 -57
- package/dist/lib/blockConversion.d.ts.map +0 -1
- package/dist/lib/blockDowngrade.d.ts +0 -21
- package/dist/lib/blockDowngrade.d.ts.map +0 -1
- package/dist/lib/blockDragBindingKey.d.ts +0 -3
- package/dist/lib/blockDragBindingKey.d.ts.map +0 -1
- package/dist/lib/blockDragDesktop.d.ts +0 -13
- package/dist/lib/blockDragDesktop.d.ts.map +0 -1
- package/dist/lib/blockDragDom.d.ts +0 -24
- package/dist/lib/blockDragDom.d.ts.map +0 -1
- package/dist/lib/blockDragTarget.d.ts +0 -15
- package/dist/lib/blockDragTarget.d.ts.map +0 -1
- package/dist/lib/blockDragTouch.d.ts +0 -17
- package/dist/lib/blockDragTouch.d.ts.map +0 -1
- package/dist/lib/blockEditing.d.ts +0 -36
- package/dist/lib/blockEditing.d.ts.map +0 -1
- package/dist/lib/blockSourceConversion.d.ts +0 -41
- package/dist/lib/blockSourceConversion.d.ts.map +0 -1
- package/dist/lib/blockSourceInsertion.d.ts +0 -17
- package/dist/lib/blockSourceInsertion.d.ts.map +0 -1
- package/dist/lib/blockSourceMove.d.ts +0 -39
- package/dist/lib/blockSourceMove.d.ts.map +0 -1
- package/dist/lib/blockSourceOperations.d.ts +0 -37
- package/dist/lib/blockSourceOperations.d.ts.map +0 -1
- package/dist/lib/blockSourceSplit.d.ts +0 -4
- package/dist/lib/blockSourceSplit.d.ts.map +0 -1
- package/dist/lib/cardData.d.ts +0 -6
- package/dist/lib/cardData.d.ts.map +0 -1
- package/dist/lib/cardGeometry.d.ts +0 -14
- package/dist/lib/cardGeometry.d.ts.map +0 -1
- package/dist/lib/drawingData.d.ts +0 -37
- package/dist/lib/drawingData.d.ts.map +0 -1
- package/dist/lib/editableSelection.d.ts +0 -6
- package/dist/lib/editableSelection.d.ts.map +0 -1
- package/dist/lib/externalNoteDrag.d.ts +0 -55
- package/dist/lib/externalNoteDrag.d.ts.map +0 -1
- package/dist/lib/externalNoteDropTarget.d.ts +0 -11
- package/dist/lib/externalNoteDropTarget.d.ts.map +0 -1
- package/dist/lib/inlineFormulaRendering.d.ts +0 -37
- package/dist/lib/inlineFormulaRendering.d.ts.map +0 -1
- package/dist/lib/inlineMarkdownShortcut.d.ts +0 -75
- package/dist/lib/inlineMarkdownShortcut.d.ts.map +0 -1
- package/dist/lib/inlineSelectionFormatting.d.ts +0 -164
- package/dist/lib/inlineSelectionFormatting.d.ts.map +0 -1
- package/dist/lib/markdownShortcut.d.ts +0 -71
- package/dist/lib/markdownShortcut.d.ts.map +0 -1
- package/dist/lib/noteAtomicMutation.d.ts +0 -5
- package/dist/lib/noteAtomicMutation.d.ts.map +0 -1
- package/dist/lib/noteBoundarySplice.d.ts +0 -6
- package/dist/lib/noteBoundarySplice.d.ts.map +0 -1
- package/dist/lib/noteClipboardBlockCodec.d.ts +0 -4
- package/dist/lib/noteClipboardBlockCodec.d.ts.map +0 -1
- package/dist/lib/noteClipboardLimits.d.ts +0 -4
- package/dist/lib/noteClipboardLimits.d.ts.map +0 -1
- package/dist/lib/noteClipboardRegionSlice.d.ts +0 -4
- package/dist/lib/noteClipboardRegionSlice.d.ts.map +0 -1
- package/dist/lib/noteClipboardSlices.d.ts +0 -35
- package/dist/lib/noteClipboardSlices.d.ts.map +0 -1
- package/dist/lib/noteContentUndoRedo.d.ts +0 -34
- package/dist/lib/noteContentUndoRedo.d.ts.map +0 -1
- package/dist/lib/noteId.d.ts +0 -3
- package/dist/lib/noteId.d.ts.map +0 -1
- package/dist/lib/noteNestedMutation.d.ts +0 -7
- package/dist/lib/noteNestedMutation.d.ts.map +0 -1
- package/dist/lib/notePointerSelection.d.ts +0 -6
- package/dist/lib/notePointerSelection.d.ts.map +0 -1
- package/dist/lib/noteRegionCodec.d.ts +0 -9
- package/dist/lib/noteRegionCodec.d.ts.map +0 -1
- package/dist/lib/noteSelectAll.d.ts +0 -2
- package/dist/lib/noteSelectAll.d.ts.map +0 -1
- package/dist/lib/noteSelectionRestore.d.ts +0 -14
- package/dist/lib/noteSelectionRestore.d.ts.map +0 -1
- package/dist/lib/noteSnapshotMutation.d.ts +0 -8
- package/dist/lib/noteSnapshotMutation.d.ts.map +0 -1
- package/dist/lib/noteStructuredClipboard.d.ts +0 -17
- package/dist/lib/noteStructuredClipboard.d.ts.map +0 -1
- package/dist/lib/noteStructuredPaste.d.ts +0 -10
- package/dist/lib/noteStructuredPaste.d.ts.map +0 -1
- package/dist/lib/noteStructuredTail.d.ts +0 -3
- package/dist/lib/noteStructuredTail.d.ts.map +0 -1
- package/dist/lib/noteTextFlow.d.ts +0 -23
- package/dist/lib/noteTextFlow.d.ts.map +0 -1
- package/dist/lib/noteTextOffset.d.ts +0 -4
- package/dist/lib/noteTextOffset.d.ts.map +0 -1
- package/dist/lib/noteTransferReplacement.d.ts +0 -10
- package/dist/lib/noteTransferReplacement.d.ts.map +0 -1
- package/dist/lib/quoteLineEditing.d.ts +0 -5
- package/dist/lib/quoteLineEditing.d.ts.map +0 -1
- package/dist/lib/restrictedHtml.d.ts +0 -7
- package/dist/lib/restrictedHtml.d.ts.map +0 -1
- package/dist/lib/syntaxHighlight.d.ts +0 -9
- package/dist/lib/syntaxHighlight.d.ts.map +0 -1
- package/dist/lib/tableDragPreview.d.ts +0 -15
- package/dist/lib/tableDragPreview.d.ts.map +0 -1
- package/dist/lib/tableDragTarget.d.ts +0 -13
- package/dist/lib/tableDragTarget.d.ts.map +0 -1
- package/dist/lib/tableEditing.d.ts +0 -35
- package/dist/lib/tableEditing.d.ts.map +0 -1
- package/dist/lib/tableKeyboardNavigation.d.ts +0 -14
- package/dist/lib/tableKeyboardNavigation.d.ts.map +0 -1
- package/dist/lib/tableMoveFocus.d.ts +0 -11
- package/dist/lib/tableMoveFocus.d.ts.map +0 -1
- package/dist/lib/types.d.ts +0 -302
- package/dist/lib/types.d.ts.map +0 -1
- package/dist/lib/useBlockDrag.d.ts +0 -11
- package/dist/lib/useBlockDrag.d.ts.map +0 -1
- package/dist/lib/useBlockEditing.d.ts +0 -9
- package/dist/lib/useBlockEditing.d.ts.map +0 -1
- package/dist/lib/useDraggedTouchClickSuppression.d.ts +0 -7
- package/dist/lib/useDraggedTouchClickSuppression.d.ts.map +0 -1
- package/dist/lib/useExternalNoteDrag.d.ts +0 -15
- package/dist/lib/useExternalNoteDrag.d.ts.map +0 -1
- package/dist/lib/useTableMoveFocus.d.ts +0 -11
- package/dist/lib/useTableMoveFocus.d.ts.map +0 -1
- package/dist/lib/useTableOperationMenus.d.ts +0 -19
- package/dist/lib/useTableOperationMenus.d.ts.map +0 -1
- package/dist/lib/utils.d.ts +0 -10
- package/dist/lib/utils.d.ts.map +0 -1
package/dist/styles.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@property --hn-row-leading{syntax: "<length>"; initial-value: 0px; inherits: true;}.hn-note-shell{--hn-theme: #3b82f6;--hn-theme-soft: color-mix(in srgb, var(--hn-theme) 12%, white);--hn-theme-border: color-mix(in srgb, var(--hn-theme) 30%, transparent);--hn-theme-text: color-mix(in srgb, var(--hn-theme) 75%, #1e293b);--hn-bg: #ffffff;--hn-surface: #f8fafc;--hn-surface-hover: #f1f5f9;--hn-border: rgba(15, 23, 42, .08);--hn-border-strong: rgba(15, 23, 42, .14);--hn-text: #1e293b;--hn-text-muted: rgba(51, 65, 85, .65);--hn-text-soft: rgba(51, 65, 85, .85);--hn-radius: 24px;--hn-code-font: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;position:relative;color-scheme:light;color:var(--hn-text)}.hn-note-shell--dark{--hn-theme-soft: color-mix(in srgb, var(--hn-theme) 18%, #111827);--hn-theme-border: color-mix(in srgb, var(--hn-theme) 48%, transparent);--hn-theme-text: color-mix(in srgb, var(--hn-theme) 55%, #f8fafc);--hn-bg: #0f172a;--hn-surface: #172033;--hn-surface-hover: #202b3f;--hn-border: rgba(226, 232, 240, .12);--hn-border-strong: rgba(226, 232, 240, .22);--hn-text: #f1f5f9;--hn-text-muted: rgba(203, 213, 225, .72);--hn-text-soft: rgba(226, 232, 240, .88);color-scheme:dark}.hn-note-hero,.hn-note-body{position:relative;z-index:1}.hn-note-hero{padding:calc(2rem + var(--hn-top-padding, 0px)) 3.5rem 1.25rem;border-bottom:1px solid var(--hn-border)}.hn-note-badge,.hn-note-chip{display:inline-flex;align-items:center;gap:.35rem;padding:.4rem .7rem;border-radius:999px;background:var(--hn-theme-soft);color:var(--hn-theme-text);font-size:.75rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase}.hn-note-chip--strong{background:var(--hn-surface-hover);color:var(--hn-text)}.hn-note-hero h1,.hn-note-heading{margin:0;font-family:Iowan Old Style,Palatino Linotype,Book Antiqua,Palatino,serif}.hn-note-hero h1{margin-top:1rem;font-size:clamp(2.2rem,4vw,3.5rem);line-height:1.02}.hn-note-summary{max-width:56ch;margin-top:1rem;color:var(--hn-text-muted);font-size:1.04rem;line-height:1.8}.hn-note-body{display:grid;grid-template-columns:minmax(0,1fr);gap:.625rem;padding:1.5rem var(--hn-body-padding-x, 4rem) calc(2rem + var(--hn-bottom-padding, 0px))}.hn-note-body-tail{width:100%;min-height:33vh;padding:0;border:none;background:transparent;cursor:text;text-align:left}.hn-note-bottom-toolbar{max-width:calc(100vw - 2rem);justify-content:flex-start;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;white-space:nowrap}.hn-note-bottom-toolbar::-webkit-scrollbar{display:none}.hn-note-shell--bottom-toolbar .hn-note-body{padding-bottom:calc(5rem + var(--hn-bottom-padding, 0px) + env(safe-area-inset-bottom,0px))}.hn-note-bottom-control,.hn-note-selection-actions>*{flex:0 0 auto}.hn-note-bottom-control svg{width:1rem;height:1rem}.hn-note-selection-actions{display:contents}@media(max-width:480px){.hn-note-bottom-toolbar{width:calc(100vw - 1.5rem);max-width:calc(100vw - 1.5rem);flex-wrap:wrap;justify-content:center;overflow-x:visible}.hn-note-shell--bottom-toolbar .hn-note-body{padding-bottom:calc(8rem + var(--hn-bottom-padding, 0px) + env(safe-area-inset-bottom,0px))}}.hn-note-block,.hn-note-quote,.hn-note-code-card,.hn-note-callout{margin:0}.hn-note-block{position:relative;min-width:0;--hn-row-leading: 1lh}.hn-note-sortable-block{position:relative}.hn-note-selectable-block{min-width:0;border-radius:8px;outline:none;cursor:pointer;transition:background-color .15s ease,box-shadow .15s ease}.hn-note-sortable-block--dragging{cursor:grabbing}.hn-note-block-drop-before:after,.hn-note-block-drop-after:after,.hn-note-external-drop-before:after,.hn-note-external-drop-after:after{content:"";position:absolute;left:0;right:0;z-index:3;height:3px;background:var(--hn-theme);box-shadow:0 0 0 1px var(--hn-theme-soft);pointer-events:none}.hn-note-block-drop-before:after,.hn-note-external-drop-before:after{top:-.4rem}.hn-note-block-drop-after:after,.hn-note-external-drop-after:after{bottom:-.4rem}.hn-note-external-item--clickable{border-radius:4px;color:var(--hn-theme-text);cursor:pointer;text-decoration-color:var(--hn-theme-border);text-decoration-line:underline;text-decoration-style:dashed;text-underline-offset:.18em}.hn-note-external-item--clickable:focus-visible{outline:2px solid var(--hn-theme);outline-offset:3px}.hn-note-selectable-block:hover{background-color:color-mix(in srgb,var(--hn-theme) 6%,transparent)}.hn-note-selectable-block:focus-visible,.hn-note-selectable-block[aria-selected=true]{background-color:var(--hn-theme-soft);box-shadow:0 0 0 2px var(--hn-theme)}[data-note-atomic-selected=true]{border-radius:8px;background-color:var(--hn-theme-soft);box-shadow:0 0 0 2px var(--hn-theme)}.hn-note-eyebrow{display:inline-block;margin-bottom:.65rem;color:var(--hn-theme);font-size:.8rem;font-weight:700;line-height:1.5;letter-spacing:.18em;text-transform:uppercase}.hn-note-block:has(>.hn-note-eyebrow){--hn-row-offset: 1.85rem }.hn-note-heading--1{font-size:clamp(1.8rem,3vw,2.6rem)}.hn-note-heading--2{font-size:1.4rem}.hn-note-heading--3{font-size:1.1rem}.hn-note-heading--4,.hn-heading-level-4{color:var(--hn-text);font-size:1rem}.hn-note-heading--5,.hn-heading-level-5{color:var(--hn-text-soft);font-size:.9rem}.hn-note-text{display:block;max-width:66ch;color:var(--hn-text-soft);line-height:1.85}.hn-note-text--muted{color:var(--hn-text-muted)}.hn-note-text--accent{color:var(--hn-text);font-size:1.05rem}.hn-note-section-header{display:flex;flex-wrap:wrap;align-items:center;gap:.8rem;margin-bottom:1rem}.hn-note-section-header h3{margin:0;font-size:1.1rem}.hn-note-todo-item{position:relative}.hn-note-todo-content{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:.75rem;row-gap:.25rem;align-items:flex-start;padding:.95rem 1rem;border:1px solid var(--hn-border);border-radius:18px;background:var(--hn-surface)}.hn-note-todo-title{margin-bottom:.5rem}.hn-note-todo-empty{min-height:3rem}.hn-note-checkbox{flex-shrink:0;padding:0;border:none;background:none;font-size:1rem;line-height:1.5;color:color-mix(in srgb,var(--hn-theme) 35%,var(--hn-text-muted));cursor:default;-webkit-user-select:none;user-select:none}.hn-note-checkbox--checked{color:var(--hn-theme)}.hn-note-checkbox--editable{cursor:pointer}.hn-note-checkbox--editable:hover{color:var(--hn-theme)}.hn-note-checkbox--editable.hn-note-checkbox--checked:hover{color:color-mix(in srgb,var(--hn-theme) 85%,black)}.hn-note-unordered-list,.hn-note-ordered-list{margin:0;padding:.6rem 1rem .6rem 2.2rem;border:1px solid var(--hn-border);border-radius:18px;background:var(--hn-surface);list-style-position:outside}.hn-note-unordered-list{list-style-type:disc}.hn-note-ordered-list{list-style-type:decimal}.hn-note-list-item{position:relative;padding:.35rem 0;line-height:1.6}.hn-note-list-item-content{display:block;min-height:1.5rem}.hn-note-unordered-list .hn-note-list-item::marker,.hn-note-ordered-list .hn-note-list-item::marker{color:color-mix(in srgb,var(--hn-theme) 70%,var(--hn-text-muted))}.hn-note-list-empty{min-height:3rem}.hn-note-list-block{--hn-row-offset: .95rem }.hn-note-quote{position:relative}.hn-note-quote-content{padding:1.25rem 1.35rem;border-left:4px solid var(--hn-theme);border-radius:0 20px 20px 0;background:var(--hn-theme-soft)}.hn-note-quote-content:not(.hn-note-quote-line--final){padding-bottom:.5rem;border-bottom-right-radius:0}.hn-note-quote-content.hn-note-quote-line--continuation{margin-top:-.625rem;padding-top:.5rem;border-top-right-radius:0}.hn-note-quote-content.hn-note-quote-line--final{border-bottom-right-radius:20px}.hn-note-quote-content p{margin:0;font-size:1.1rem;line-height:1.7}.hn-note-quote-content footer{margin-top:.8rem;color:var(--hn-theme-text);font-weight:600}.hn-note-code-card{border:1px solid var(--hn-border-strong);border-radius:var(--hn-radius);background:#0f172a}.hn-note-code-meta{display:flex;justify-content:space-between;align-items:center;gap:.8rem;padding:.9rem 1rem;border-bottom:1px solid rgba(255,255,255,.08);color:var(--hn-theme);font-size:.9rem;font-weight:600}.hn-note-code-lang-select{padding:.2rem .4rem;border:1px solid rgba(255,255,255,.15);border-radius:6px;background:#ffffff0f;color:#e2e8f0;font-family:inherit;font-size:.85rem;font-weight:600;cursor:pointer}.hn-note-code-lang-select:focus{outline:2px solid var(--hn-theme);outline-offset:0}.hn-note-code-filename-input{flex:0 0 auto;width:auto;min-width:12px;padding:.2rem .5rem;border:1px solid rgba(255,255,255,.15);border-radius:6px;background:#ffffff0f;color:#e2e8f0;font-family:var(--hn-code-font);font-size:.85rem;font-weight:600;text-align:right}.hn-note-code-filename-input::placeholder{color:#e2e8f066}.hn-note-code-filename-input:focus{outline:2px solid var(--hn-theme);outline-offset:0}.hn-note-code-card pre,.hn-note-code-editor,.hn-note-code-preview,.hn-note-code-highlight{display:block;width:100%;overflow-x:auto;padding:1rem;margin:0;border:0;background:transparent;color:#e2e8f0;font-family:var(--hn-code-font);font-size:.9rem;line-height:1.7;text-align:left;white-space:pre}.hn-note-code-card code{font-family:var(--hn-code-font)}.hn-note-code-editing{display:grid}.hn-note-code-editor,.hn-note-code-highlight{grid-area:1 / 1}.hn-note-code-highlight{overflow:hidden;pointer-events:none}.hn-note-code-editor{z-index:1;overflow:auto;box-sizing:border-box;min-height:calc(1.7em + 2rem);resize:none;color:transparent;caret-color:#e2e8f0}.hn-note-code-card .hljs-keyword,.hn-note-code-card .hljs-selector-tag,.hn-note-code-card .hljs-literal{color:#c084fc}.hn-note-code-card .hljs-string,.hn-note-code-card .hljs-attr,.hn-note-code-card .hljs-template-tag,.hn-note-code-card .hljs-template-variable{color:#86efac}.hn-note-code-card .hljs-title,.hn-note-code-card .hljs-section,.hn-note-code-card .hljs-type,.hn-note-code-card .hljs-built_in{color:#7dd3fc}.hn-note-code-card .hljs-number,.hn-note-code-card .hljs-symbol,.hn-note-code-card .hljs-variable,.hn-note-code-card .hljs-params{color:#fbbf24}.hn-note-code-card .hljs-comment,.hn-note-code-card .hljs-quote{color:#94a3b8;font-style:italic}.hn-note-callout{padding:1.1rem 1.2rem;border-radius:22px;background:var(--hn-surface)}.hn-note-callout--info{border:1px solid var(--hn-theme-border)}.hn-note-callout--success{border:1px solid rgba(22,163,74,.28)}.hn-note-callout--warning{border:1px solid rgba(217,119,6,.28)}.hn-note-callout-title-row{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center}.hn-note-callout p{margin:.75rem 0 0;color:var(--hn-text-soft);line-height:1.7}.hn-note-collapsible{border:1px solid var(--hn-border);border-radius:14px;background:var(--hn-surface);overflow:hidden}.hn-note-collapsible-header{display:flex;align-items:center;gap:.5rem;padding:.75rem 1rem}.hn-note-collapsible-toggle{display:inline-flex;align-items:center;justify-content:center;width:1.1rem;height:1.1rem;padding:0;border:none;background:transparent;color:var(--hn-text-muted);cursor:pointer;flex-shrink:0}.hn-note-collapsible-toggle:hover{color:var(--hn-text)}.hn-note-collapsible-caret{display:inline-block;font-size:.7em;line-height:1;transition:transform .15s ease}.hn-note-collapsible:not(.hn-note-collapsible--collapsed) .hn-note-collapsible-caret{transform:rotate(90deg)}.hn-note-collapsible-title{flex:1;min-width:0;color:var(--hn-text);font-weight:500;line-height:1.5;outline:none;word-break:break-word}.hn-note-collapsible-body{display:grid;grid-template-columns:minmax(0,1fr);gap:.625rem;padding:0 1rem .75rem 3.5rem}.hn-note-directory{padding:1rem 1.15rem;border:1px solid var(--hn-border);border-radius:14px;background:var(--hn-surface)}.hn-note-directory-title{display:block;color:var(--hn-text);font-size:.9rem;letter-spacing:.02em}.hn-note-directory-list{display:grid;gap:.35rem;margin:.75rem 0 0;padding:0;list-style:none}.hn-note-directory-item a{display:inline-flex;min-width:0;max-width:100%;color:var(--hn-text-soft);line-height:1.55;overflow-wrap:anywhere;text-decoration:none}.hn-note-directory-item a>span{min-width:0;overflow-wrap:anywhere}.hn-note-directory-item a:hover{color:var(--hn-theme-text);text-decoration:underline;text-underline-offset:.2em}.hn-note-directory-item a:focus-visible{border-radius:4px;box-shadow:0 0 0 2px var(--hn-theme-soft);outline:2px solid var(--hn-theme);outline-offset:2px}.hn-note-directory-item--2{padding-inline-start:1rem}.hn-note-directory-item--3{padding-inline-start:2rem}.hn-note-directory-item--4{padding-inline-start:3rem}.hn-note-directory-item--5{padding-inline-start:4rem}.hn-note-directory-empty{margin:.65rem 0 0;color:var(--hn-text-soft);font-size:.9rem}.hn-note-editable{display:block;flex:1 1 auto;max-width:none;outline:none}.hn-note-editable:empty,.hn-note-editable:has(>br:only-child){min-height:1lh}.hn-note-mention-menu{position:fixed;z-index:10000;display:grid;width:min(260px,calc(100vw - 24px));max-height:min(18rem,calc(100vh - 24px));gap:.15rem;padding:.3rem;overflow-y:auto;border-radius:10px;background:#1e293b;box-shadow:0 8px 24px #0f172a47;animation:hn-popover-in .12s ease}.hn-note-mention-option{display:flex;width:100%;align-items:center;gap:.55rem;padding:.5rem .65rem;border:0;border-radius:7px;background:transparent;color:#e2e8f0;font:inherit;text-align:left;cursor:pointer}.hn-note-mention-option:hover,.hn-note-mention-option[aria-selected=true]{background:#ffffff24;color:#fff}.hn-note-mention-option:focus-visible{outline:2px solid var(--hn-theme);outline-offset:-2px}.hn-note-mention-mark{font-weight:700}.hn-note-mention-empty{padding:.5rem .65rem;color:#e2e8f099;font-size:.8rem;text-align:left;cursor:default}.hn-note-link-mention{padding:0 .2em;border-radius:999px;background:var(--hn-theme-soft);color:var(--hn-theme-text);white-space:nowrap;cursor:pointer}@media(max-width:840px){.hn-note-hero{padding-right:3.5rem;padding-left:3.5rem}}.hn-note-popover{position:fixed;z-index:9999;display:flex;align-items:center;gap:.15rem;padding:.3rem;border-radius:10px;background:#1e293b;box-shadow:0 8px 24px #0f172a47;animation:hn-popover-in .12s ease}.hn-note-popover-btn{min-width:30px;padding-inline:.55rem}.hn-note-popover-btn--copy{min-width:auto;font-size:.78rem}.hn-note-popover-glyph{display:inline-block;line-height:1;font-size:.85rem}.hn-note-popover-glyph--bold{font-weight:800}.hn-note-popover-glyph--italic{font-style:italic;font-family:Georgia,Times New Roman,serif}.hn-note-popover-glyph--underline{text-decoration:underline}.hn-note-popover-glyph--strikethrough{text-decoration:line-through}.hn-note-popover-glyph--code{font-family:var(--hn-code-font, ui-monospace, monospace)}.hn-note-popover-glyph--formula{font-family:Georgia,Times New Roman,serif;font-style:italic}.hn-note-popover-glyph--clear{display:inline-flex;align-items:center;justify-content:center;text-decoration:line-through;text-decoration-thickness:2px;opacity:.85}.hn-note-popover-btn--clear{color:#fca5a5}.hn-note-popover-btn--clear:hover{color:#f87171}@keyframes hn-popover-in{0%{opacity:0}to{opacity:1}}.hn-note-popover-divider{width:1px;height:20px;align-self:center;background:#ffffff2e}.hn-note-popover-color{width:24px;height:24px;padding:0;border:3px solid rgba(255,255,255,.25);box-shadow:inset 0 0 0 2px #1e293b;border-radius:50%;cursor:pointer;transition:transform .12s ease,border-color .12s ease}.hn-note-popover-color:hover{transform:scale(1.12);border-color:#ffffff8c}.hn-note-popover-color--active{border-color:#fff}[data-hn-color="#ef4444"]{color:#ef4444}[data-hn-color="#3b82f6"]{color:#3b82f6}[data-hn-color="#22c55e"]{color:#22c55e}[data-hn-color="#000000"]{color:#000}[data-hn-color="#6b7280"]{color:#6b7280}.hn-note-popover-btn--link{min-width:auto}.hn-note-popover-glyph--link{display:inline-flex;align-items:center;justify-content:center}.hn-note-popover-link-form{display:flex;align-items:center;gap:.3rem}.hn-note-popover-link-input{width:200px;padding:.35rem .55rem;border:none;border-radius:6px;background:#0f172a8c;color:#f1f5f9;font-size:.8rem;outline:none;transition:background .12s ease,box-shadow .12s ease}.hn-note-popover-link-input:focus{background:#0f172acc;box-shadow:0 0 0 2px #3b82f680}.hn-note-popover-link-input:disabled{opacity:.6;cursor:not-allowed}.hn-note-popover-link-input::placeholder{color:#e2e8f073}.hn-note-popover-btn--magic{white-space:nowrap;font-size:.78rem}.hn-note-popover-btn--confirm{min-width:auto;font-size:.95rem}.hn-note-popover-btn--cancel{min-width:auto;color:#fca5a5;font-size:.9rem}.hn-note-popover-btn--cancel:hover{color:#f87171}.hn-note-shell a[href^="hnmagic://"]{color:var(--hn-theme, #3b82f6);text-decoration:underline;text-decoration-style:dashed;text-underline-offset:3px;cursor:pointer}.hn-note-shell a[href^="hnmagic://"]:hover{filter:brightness(1.1)}.hn-note-block:has(>.hn-note-block-handle):before{content:"";position:absolute;top:0;right:100%;width:60px;height:100%;background:transparent;pointer-events:auto;z-index:0}.hn-note-block-handle{position:absolute;top:0;z-index:1;display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;border:none;border-radius:6px;background:transparent;color:var(--hn-text-muted);font-size:.9rem;line-height:1;cursor:pointer;-webkit-user-select:none;user-select:none;opacity:0;pointer-events:none;margin-top:calc(var(--hn-row-offset, 0px) + var(--hn-row-leading, 0px) / 2 - 12px);transition:background .15s ease,color .15s ease,box-shadow .15s ease,opacity .15s ease}.hn-note-block-handle--convert{right:calc(100% + 4px)}.hn-note-block-handle--add{right:calc(100% + 32px);font-size:1rem;font-weight:500}.hn-note-block-handle-glyph{display:inline-flex;align-items:center;justify-content:center;letter-spacing:-.18em;transform:translate(-.03em)}.hn-note-block:hover>.hn-note-block-handle,.hn-note-block:focus-within>.hn-note-block-handle,.hn-note-block-handle:hover,.hn-note-block-handle:focus,.hn-note-block-handle--open{opacity:1;pointer-events:auto}.hn-note-block-handle:hover{background:var(--hn-surface-hover);color:var(--hn-text)}.hn-note-block-handle:focus{box-shadow:0 0 0 2px var(--hn-theme);outline:none}.hn-note-block-handle--open{background:var(--hn-theme-soft);color:var(--hn-theme-text)}.hn-note-todo-item>.hn-note-block-handle{margin-top:calc(.95rem + 1px)}.hn-note-block:has(>.hn-note-callout)>.hn-note-block-handle{margin-top:1.1rem}.hn-note-block:has(>.hn-note-collapsible)>.hn-note-block-handle{margin-top:.75rem}.hn-note-block:has(>.hn-note-code-card)>.hn-note-block-handle{margin-top:.9rem}.hn-note-quote-line{--hn-row-leading: 1.7rem}.hn-note-quote-line:has(>.hn-note-quote-content:not(.hn-note-quote-line--continuation)){--hn-row-offset: 1.25rem}.hn-note-quote-line:has(>.hn-note-quote-line--continuation){--hn-row-offset: -.125rem }.hn-note-block:has(>.hn-note-table-wrapper)>.hn-note-block-handle{margin-top:.35rem}.hn-note-block:has(>.hn-note-formula)>.hn-note-block-handle{margin-top:.7rem}.hn-note-block:has(>.hn-note-picture)>.hn-note-block-handle{margin-top:.35rem}@media(max-width:839px){.hn-note-block:has(>.hn-note-block-handle):before,.hn-note-block-handle{display:none}.hn-note-collapsible-body{padding-left:1.5rem}}.hn-note-shell--mobile .hn-note-block:has(>.hn-note-block-handle):before,.hn-note-shell--mobile .hn-note-block-handle{display:none}.hn-note-picture{margin:0}.hn-note-picture img{display:block;max-width:100%;height:auto;border:1px solid var(--hn-border);border-radius:8px}.hn-note-picture-input{display:none}.hn-note-block:has(>.hn-note-heading--1){--hn-row-leading: calc(clamp(1.8rem, 3vw, 2.6rem)*1.5) }.hn-note-block:has(>.hn-note-heading--2){--hn-row-leading: calc(1.4rem * 1.5)}.hn-note-block:has(>.hn-note-heading--3){--hn-row-leading: calc(1.1rem * 1.5)}.hn-note-block:has(>.hn-note-heading--4){--hn-row-leading: 1.5rem }.hn-note-block:has(>.hn-note-heading--5){--hn-row-leading: 1.35rem }.hn-note-block-menu{position:fixed;z-index:9999;display:flex;flex-direction:column;gap:.1rem;width:160px;padding:4px;border-radius:10px;background:#1e293b;box-shadow:0 8px 24px #0f172a47;animation:hn-popover-in .12s ease}.hn-note-block-menu-item{display:flex;align-items:center;gap:.4rem;width:100%;padding:.4rem .55rem;border:none;border-radius:6px;background:transparent;color:#e2e8f0;font-size:.8rem;font-weight:600;text-align:left;cursor:pointer;transition:background .12s ease,color .12s ease}.hn-note-block-menu-item:hover,.hn-note-block-menu-item:focus{background:#ffffff24;color:#fff;outline:none}.hn-note-block-menu-item[aria-disabled=true]{cursor:wait;opacity:.7}.hn-note-block-menu-item[aria-disabled=true]:hover,.hn-note-block-menu-item[aria-disabled=true]:focus{background:transparent;color:#e2e8f0}.hn-note-block-menu-item--active,.hn-note-block-menu-item--active:hover,.hn-note-block-menu-item--active:focus{background:transparent;color:#e2e8f080;cursor:default}.hn-note-block-menu-check{display:inline-flex;flex-shrink:0;font-size:.75rem;line-height:1}.hn-note-block-menu-item-label{flex:1 1 0%;min-width:0}.hn-note-block-menu-submenu{width:160px}.hn-note-block-menu-item--has-submenu{position:relative}.hn-note-block-menu-submenu-arrow{display:inline-flex;flex-shrink:0;margin-left:auto;padding-left:.25rem;color:#e2e8f099;font-size:.9rem;line-height:1}.hn-note-block-menu-item--has-submenu[aria-expanded=true],.hn-note-block-menu-item--has-submenu[aria-expanded=true]:hover,.hn-note-block-menu-item--has-submenu[aria-expanded=true]:focus{background:#ffffff24;color:#fff}.hn-note-formula-preview{display:flex;align-items:center;justify-content:center;width:100%;min-height:3.25rem;padding:.65rem .9rem;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--hn-text);overflow-x:auto}.hn-note-formula-preview--editable{font:inherit;cursor:text;transition:background .15s ease,box-shadow .15s ease}.hn-note-formula-preview--editable:hover{background:color-mix(in srgb,var(--hn-theme) 5%,transparent);box-shadow:0 0 0 1px var(--hn-theme-border)}.hn-note-formula-preview--editable:focus{background:color-mix(in srgb,var(--hn-theme) 8%,transparent);box-shadow:0 0 0 2px var(--hn-theme);outline:none}.hn-note-formula-rendered{max-width:100%}.hn-note-formula-rendered .katex-display{margin:0}.hn-note-formula-placeholder{color:var(--hn-text-muted);font-family:Georgia,Times New Roman,serif;font-size:1.1rem;font-style:italic}.hn-note-formula-popover{display:block;gap:normal;width:min(520px,calc(100vw - 16px));z-index:9999;padding:8px;border-radius:10px;background:#1e293b;box-shadow:0 8px 24px #0f172a47}.hn-note-formula-textarea{display:block;box-sizing:border-box;width:100%;min-height:8rem;resize:vertical;padding:.7rem .8rem;border:1px solid rgba(226,232,240,.16);border-radius:6px;background:#0f172a8c;color:#f1f5f9;font-family:var(--hn-code-font, ui-monospace, monospace);font-size:.88rem;line-height:1.55;outline:none;transition:background .12s ease,border-color .12s ease,box-shadow .12s ease}.hn-note-formula-textarea:focus{border-color:var(--hn-theme);background:#0f172acc;box-shadow:0 0 0 2px var(--hn-theme)}.hn-note-formula-textarea::placeholder{color:#e2e8f073}.hn-note-drawing-preview{display:flex;align-items:center;justify-content:center;width:100%;min-height:3.25rem;padding:0;border:1px solid transparent;border-radius:6px;background:transparent}.hn-note-drawing-preview--editable{font:inherit;cursor:pointer;transition:background .15s ease,box-shadow .15s ease}.hn-note-drawing-preview--editable:hover{outline:2px solid var(--hn-theme)}.hn-note-drawing-preview--editable:focus{background:color-mix(in srgb,var(--hn-theme) 8%,transparent);box-shadow:0 0 0 2px var(--hn-theme);outline:none}.hn-note-drawing-thumbnail{display:block;width:100%;max-width:100%;height:auto;max-height:320px;border:1px solid var(--hn-border);border-radius:8px;background:#fff}.hn-note-drawing-placeholder{display:flex;align-items:center;justify-content:center;width:100%;min-height:3.25rem;border:1px dashed var(--hn-border-strong);border-radius:8px;color:var(--hn-text-muted);font-size:.85rem}.hn-note-drawing-drawer{display:flex;flex-direction:column;width:100%;padding:0;background:#1e293b;box-shadow:0 8px 24px #0f172a47;overflow:hidden}.hn-note-drawing-drawer .hn-drawer__content{display:flex;flex-direction:column;flex:1;min-height:0}.hn-note-drawing-toolbar{display:flex;align-items:center;gap:4px;padding:8px}.hn-note-drawing-tool{padding:.35rem .6rem;border:none;border-radius:6px;background:transparent;color:#e2e8f0;font-size:.8rem;font-weight:600;cursor:pointer;transition:background .12s ease,color .12s ease}.hn-note-drawing-tool:hover,.hn-note-drawing-tool:focus{background:#ffffff24;color:#fff;outline:none}.hn-note-drawing-tool[aria-pressed=true]{background:#fff3;color:#fff}.hn-note-drawing-close{margin-left:auto}.hn-note-drawing-canvas{flex:1;min-height:0;background:#fff}.hn-note-inline-formula{display:inline-block;padding:0 .2em;color:var(--hn-text);font-family:Georgia,Times New Roman,serif;font-style:italic}.hn-note-inline-formula--rendered{padding:0;font-family:inherit;font-style:normal}.hn-note-inline-code,[data-editable-block-id] code:not([class]){padding:.15em .35em;border:1px solid var(--hn-border-strong);border-radius:4px;background:var(--hn-surface);color:var(--hn-text);font-family:var(--hn-code-font);font-size:.88em}.hn-note-table-wrapper{width:100%;overflow:visible}.hn-note-table{width:100%;border-collapse:collapse;border:1px solid var(--hn-border-strong);font-size:.95rem;line-height:1.5;overflow:visible}.hn-note-table td{border:1px solid var(--hn-border-strong);padding:0;vertical-align:top;position:relative}.hn-note-table-header-row .hn-note-table-header-cell{background:var(--hn-surface);font-weight:600;border-bottom:2px solid var(--hn-border-strong)}.hn-note-table tbody tr:not(.hn-note-table-header-row):nth-child(2n){background:color-mix(in srgb,var(--hn-surface) 60%,transparent)}.hn-note-table tbody tr:hover{background:var(--hn-surface-hover)}.hn-note-table-cell{padding:.6rem .8rem;min-height:2.2rem;outline:none;word-break:break-word;border-radius:0}.hn-note-table-header-cell .hn-note-table-cell{overflow-wrap:normal;word-break:normal}.hn-note-table tbody tr[data-note-atomic-selected=true],.hn-note-table tbody tr[data-note-atomic-selected=true]:hover,.hn-note-table tbody tr[data-note-atomic-selected=true]>td{background:var(--hn-theme-soft)}.hn-note-table-row-op{position:absolute;left:0;top:50%;transform:translate(-50%,-50%);z-index:2;display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;padding:0;border:none;border-radius:4px;background:var(--hn-theme);color:#fff;font-size:.75rem;line-height:1;cursor:grab;touch-action:none;opacity:0;pointer-events:none;transition:opacity .15s ease}.hn-note-table-row-op--visible{opacity:1;pointer-events:auto}.hn-note-table-row-op:hover{background:color-mix(in srgb,var(--hn-theme) 85%,black)}.hn-note-table-col-op{position:absolute;top:0;left:50%;transform:translate(-50%,-50%);z-index:2;display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;padding:0;border:none;border-radius:4px;background:var(--hn-theme);color:#fff;font-size:.75rem;line-height:1;cursor:grab;touch-action:none;opacity:0;pointer-events:none;transition:opacity .15s ease}.hn-note-table-col-op--visible{opacity:1;pointer-events:auto}.hn-note-table-col-op:hover{background:color-mix(in srgb,var(--hn-theme) 85%,black)}.hn-note-table-drag-handle--dragging{cursor:grabbing;filter:brightness(.85)}.hn-note-table-drop-preview--row-before:after,.hn-note-table-drop-preview--row-after:after,.hn-note-table-drop-preview--column-before:after,.hn-note-table-drop-preview--column-after:after{content:"";position:absolute;z-index:3;background:var(--hn-theme);box-shadow:0 0 0 1px var(--hn-theme-soft);pointer-events:none}.hn-note-table-drop-preview--row-before:after,.hn-note-table-drop-preview--row-after:after{left:-1px;right:-1px;height:3px}.hn-note-table-drop-preview--row-before:after{top:-2px}.hn-note-table-drop-preview--row-after:after{bottom:-2px}.hn-note-table-drop-preview--column-before:after,.hn-note-table-drop-preview--column-after:after{top:-1px;bottom:-1px;width:3px}.hn-note-table-drop-preview--column-before:after{left:-2px}.hn-note-table-drop-preview--column-after:after{right:-2px}.hn-note-table-edge-btn{position:absolute;z-index:2;display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;padding:0;border:1px solid var(--hn-border-strong);border-radius:50%;background:var(--hn-bg);color:var(--hn-text-muted);font-size:.7rem;line-height:1;cursor:pointer;opacity:0;pointer-events:none;transition:opacity .15s ease,background .15s ease}.hn-note-table-edge-btn--left{left:0;top:50%;transform:translate(-50%,-50%)}.hn-note-table-edge-btn--right{right:0;top:50%;transform:translate(50%,-50%)}.hn-note-table-edge-btn--top{top:0;left:50%;transform:translate(-50%,-50%)}.hn-note-table-edge-btn--bottom{bottom:0;left:50%;transform:translate(-50%,50%)}td:hover>.hn-note-table-edge-btn{opacity:1;pointer-events:auto}.hn-note-table-edge-btn:hover{background:var(--hn-theme);color:#fff;border-color:var(--hn-theme)}.hn-note-block-menu-item--danger{color:#fca5a5}.hn-note-block-menu-item--danger:hover,.hn-note-block-menu-item--danger:focus{background:#ef444426;color:#fff}.hn-note-card{width:100%}.hn-note-card-preview{position:relative;width:100%;height:220px;overflow:hidden;border:1px solid var(--hn-border);border-radius:10px;background:var(--hn-surface);color:var(--hn-text);cursor:pointer;isolation:isolate}.hn-note-card-preview:hover{border-color:var(--hn-border-strong)}.hn-note-card-preview:focus-visible{outline:2px solid var(--hn-theme);outline-offset:3px}.hn-note-card-preview-stage{position:absolute;left:50%;top:50%;transform-origin:center;translate:-50% -50%;pointer-events:none}.hn-note-card-empty{display:grid;height:100%;place-items:center;color:var(--hn-text-muted)}.hn-note-card-preview-hint{position:absolute;right:12px;bottom:12px;padding:6px 9px;border:1px solid var(--hn-border);border-radius:999px;background:color-mix(in srgb,var(--hn-bg) 88%,transparent);color:var(--hn-text-muted);font-size:.75rem;line-height:1;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.hn-note-card-drawer{position:fixed;display:flex;flex-direction:column;width:100%;padding:0;overflow:hidden;border:1px solid var(--hn-border);border-radius:18px 18px 0 0;background:var(--hn-bg);color:var(--hn-text);box-shadow:0 24px 72px #0f172a57}.hn-note-card-drawer .hn-drawer__content{display:flex;flex-direction:column;flex:1;min-height:0}.hn-note-card-drawer-header{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:18px 20px;border-bottom:1px solid var(--hn-border)}.hn-note-card-drawer-header h2,.hn-note-card-drawer-header p{margin:0}.hn-note-card-drawer-header p{margin-top:3px;color:var(--hn-text-muted);font-size:.82rem}.hn-note-card-drawer-header button{padding:8px 14px;border:1px solid var(--hn-theme);border-radius:8px;background:var(--hn-theme);color:#fff;cursor:pointer}.hn-note-card-drawer-header button:focus-visible,.hn-note-card-inspector :is(input,textarea):focus-visible{outline:2px solid var(--hn-theme);outline-offset:2px}.hn-note-card-drawer-body{display:grid;grid-template-columns:minmax(0,1fr);min-height:0}.hn-note-card-drawer-body--with-inspector{grid-template-columns:minmax(0,1fr) 260px}.hn-note-card-drawer-canvas{min-height:520px;overflow:auto;background:var(--hn-surface)}.hn-note-card-drawer-stage{position:relative}.hn-note-card-canvas{--cards-card-selected-outline: var(--hn-card-theme);--cards-card-selected-shadow: 0 10px 15px -3px rgba(15, 23, 42, .2), 0 0 0 4px color-mix(in srgb, var(--hn-card-theme) 24%, transparent);--cards-link-button-color: var(--hn-card-theme);--hn-card-theme: var(--hn-theme);width:100%;height:100%}.hn-note-card-links{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:1}.hn-note-card-link{stroke:transparent;stroke-width:3;stroke-dasharray:4 4;pointer-events:none}.hn-note-card-link--selected{stroke:var(--hn-card-theme)}.hn-note-card-link-hit-area{stroke:transparent;stroke-width:18;pointer-events:stroke;cursor:pointer;outline:none}.hn-note-card-link-hit-area:focus-visible{stroke:color-mix(in srgb,var(--hn-card-theme) 28%,transparent)}.hn-note-card-link-popover{overflow:visible;pointer-events:auto}.hn-note-card-link-popover .hn-popover{position:relative;z-index:1000;width:max-content}.hn-note-card-link-delete{width:36px;padding:0;color:var(--hn-color-danger)}.hn-note-card-inspector{display:flex;flex-direction:column;gap:16px;padding:18px;border-left:1px solid var(--hn-border);background:var(--hn-bg)}.hn-note-card-inspector label{display:grid;gap:7px;color:var(--hn-text-muted);font-size:.78rem;font-weight:600}.hn-note-card-inspector :is(input,textarea){width:100%;box-sizing:border-box;padding:9px 10px;border:1px solid var(--hn-border);border-radius:8px;background:var(--hn-surface);color:var(--hn-text);font:inherit;font-weight:400}.hn-note-card-inspector textarea{min-height:132px;resize:vertical}@media(max-width:720px){.hn-note-card-drawer-body{display:flex;flex-direction:column;overflow:auto}.hn-note-card-drawer-canvas{min-height:420px}.hn-note-card-inspector{border-top:1px solid var(--hn-border);border-left:0}}@layer hamster-note.tokens{:root{--hn-color-surface:#111114;--hn-color-surface-hover:#17171b;--hn-color-text:#f4f4f5;--hn-color-text-muted:#92929d;--hn-color-border:#ffffff1a;--hn-color-border-strong:#ffffff2b;--hn-color-accent:#7c83ff;--hn-color-accent-hover:#9197ff;--hn-color-danger:#fb7185;--hn-color-success:#4ade80;--hn-color-warning:#fbbf24;--hn-font-sans:"IBM Plex Sans", "Noto Sans SC", sans-serif;--hn-font-mono:"IBM Plex Mono", monospace;--hn-radius-sm:6px;--hn-radius-md:8px;--hn-radius-lg:12px;--hn-focus-ring:0 0 0 3px #9197ff6b;--hn-transition:.14s cubic-bezier(.2, .8, .2, 1)}}@layer hamster-note.components{.hn-badge{border:1px solid var(--hn-color-border);border-radius:var(--hn-radius-sm);min-height:22px;font-family:var(--hn-font-mono);color:var(--hn-color-text-muted);background:#ffffff0a;align-items:center;gap:6px;padding:2px 8px;font-size:11px;font-weight:550;line-height:1.2;display:inline-flex}.hn-badge:before{content:"";background:currentColor;border-radius:50%;width:5px;height:5px}.hn-badge--accent{color:#aeb2ff;background:#7c83ff1a;border-color:#7c83ff3d}.hn-badge--success{color:var(--hn-color-success);background:#4ade8017;border-color:#4ade8038}.hn-badge--warning{color:var(--hn-color-warning);background:#fbbf2417;border-color:#fbbf2438}.hn-badge--danger{color:var(--hn-color-danger);background:#fb718517;border-color:#fb718538}.hn-button{border-radius:var(--hn-radius-md);min-height:36px;font-family:var(--hn-font-sans);color:var(--hn-color-text);cursor:pointer;transition:background-color var(--hn-transition),border-color var(--hn-transition),color var(--hn-transition),opacity var(--hn-transition);border:1px solid #0000;justify-content:center;align-items:center;gap:8px;padding:0 14px;font-size:13px;font-weight:600;line-height:1;display:inline-flex}.hn-button:focus-visible{box-shadow:var(--hn-focus-ring);outline:none}.hn-button:disabled{cursor:not-allowed;opacity:.42}.hn-button--primary{background:var(--hn-color-accent);color:#09090b}.hn-button--primary:hover:not(:disabled){background:var(--hn-color-accent-hover)}.hn-button--secondary{border-color:var(--hn-color-border);background:var(--hn-color-surface)}.hn-button--secondary:hover:not(:disabled){border-color:var(--hn-color-border-strong);background:var(--hn-color-surface-hover)}.hn-button--ghost{color:var(--hn-color-text-muted);background:0 0}.hn-button--ghost:hover:not(:disabled){background:var(--hn-color-surface-hover);color:var(--hn-color-text)}.hn-button--small{min-height:30px;padding:0 11px;font-size:12px}.hn-button--large{min-height:42px;padding:0 18px;font-size:14px}@media(prefers-reduced-motion:reduce){.hn-button{transition-duration:.01ms}}.hn-dialog__backdrop{z-index:1100;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#00000073;transition:opacity .14s cubic-bezier(.2,.8,.2,1);position:fixed;inset:0}.hn-dialog__backdrop[data-state=enter]{opacity:1}.hn-dialog__backdrop[data-state=exit]{opacity:0}.hn-dialog__panel{z-index:1100;border:1px solid var(--hn-color-border);border-radius:var(--hn-radius-lg);background:var(--hn-color-surface);width:auto;min-width:320px;max-width:calc(100vw - 32px);max-height:calc(100vh - 64px);color:var(--hn-color-text);font-family:var(--hn-font-sans);flex-direction:column;padding:20px 24px;transition:opacity .14s cubic-bezier(.2,.8,.2,1),transform .18s cubic-bezier(.2,.8,.2,1);display:flex;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);box-shadow:0 16px 48px #00000052}.hn-dialog__panel[data-state=enter]{opacity:1;transform:translate(-50%,-50%)}.hn-dialog__panel[data-state=exit],.hn-dialog__panel{opacity:0;transform:translate(-50%,calc(8px - 50%))}.hn-dialog__panel:focus-visible{box-shadow:var(--hn-focus-ring),0 16px 48px #00000052;outline:none}.hn-dialog__title{letter-spacing:-.01em;color:var(--hn-color-text);margin:0 0 4px;font-size:18px;font-weight:550;line-height:1.45}.hn-dialog__description{color:var(--hn-color-text-muted);margin:0;font-size:13px;line-height:1.65}.hn-dialog__content{margin-top:16px}.hn-dialog__panel:not(:has(.hn-dialog__title)) .hn-dialog__content{margin-top:0}@media(prefers-reduced-motion:reduce){.hn-dialog__backdrop,.hn-dialog__panel{transition-duration:.01ms}}.hn-confirm__footer{justify-content:flex-end;gap:8px;margin-top:20px;display:flex}.hn-confirm__footer[data-tone=danger] .hn-button--primary{background:var(--hn-color-danger);color:#09090b}.hn-confirm__footer[data-tone=danger] .hn-button--primary:hover:not(:disabled){background:color-mix(in srgb,var(--hn-color-danger) 88%,white)}.hn-drawer__backdrop{z-index:1200;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#00000073;transition:opacity .14s cubic-bezier(.2,.8,.2,1);position:fixed;inset:0}.hn-drawer__backdrop[data-state=enter]{opacity:1}.hn-drawer__backdrop[data-state=exit]{opacity:0}.hn-drawer__panel{z-index:1200;border:1px solid var(--hn-color-border);background:var(--hn-color-surface);max-width:100vw;max-height:100vh;color:var(--hn-color-text);font-family:var(--hn-font-sans);opacity:0;flex-direction:column;padding:20px 24px;transition:opacity .14s cubic-bezier(.2,.8,.2,1),transform .18s cubic-bezier(.2,.8,.2,1);display:flex;position:fixed;box-shadow:0 16px 48px #00000052}.hn-drawer__panel:focus-visible{box-shadow:var(--hn-focus-ring),0 16px 48px #00000052;outline:none}.hn-drawer__panel--left,.hn-drawer__panel--right{width:var(--hn-drawer-size,360px);max-width:100vw;height:100vh;top:0;bottom:0}.hn-drawer__panel--left{border-radius:0 var(--hn-radius-lg) var(--hn-radius-lg) 0;left:0;transform:translate(-100%)}.hn-drawer__panel--right{border-radius:var(--hn-radius-lg) 0 0 var(--hn-radius-lg);right:0;transform:translate(100%)}.hn-drawer__panel--left[data-state=enter],.hn-drawer__panel--right[data-state=enter]{opacity:1;transform:translate(0)}.hn-drawer__panel--left[data-state=exit]{opacity:0;transform:translate(-100%)}.hn-drawer__panel--right[data-state=exit]{opacity:0;transform:translate(100%)}.hn-drawer__panel--top,.hn-drawer__panel--bottom{width:100vw;height:var(--hn-drawer-size,280px);max-height:100vh;left:0;right:0}.hn-drawer__panel--top{border-radius:0 0 var(--hn-radius-lg) var(--hn-radius-lg);top:0;transform:translateY(-100%)}.hn-drawer__panel--bottom{border-radius:var(--hn-radius-lg) var(--hn-radius-lg) 0 0;bottom:0;transform:translateY(100%)}.hn-drawer__panel--top[data-state=enter],.hn-drawer__panel--bottom[data-state=enter]{opacity:1;transform:translateY(0)}.hn-drawer__panel--top[data-state=exit]{opacity:0;transform:translateY(-100%)}.hn-drawer__panel--bottom[data-state=exit]{opacity:0;transform:translateY(100%)}.hn-drawer__title{letter-spacing:-.01em;color:var(--hn-color-text);margin:0 0 4px;font-size:18px;font-weight:550;line-height:1.45}.hn-drawer__description{color:var(--hn-color-text-muted);margin:0;font-size:13px;line-height:1.65}.hn-drawer__content{flex:auto;margin-top:16px;overflow:auto}.hn-drawer__panel:not(:has(.hn-drawer__title)) .hn-drawer__content{margin-top:0}@media(prefers-reduced-motion:reduce){.hn-drawer__backdrop,.hn-drawer__panel{transition-duration:.01ms}}.hn-icon{vertical-align:-.125em;pointer-events:none;flex-shrink:0;justify-content:center;align-items:center;line-height:0;display:inline-flex}.hn-kbd{font-family:var(--hn-font-mono);color:var(--hn-color-text);white-space:nowrap;vertical-align:baseline;align-items:center;gap:4px;font-size:11px;line-height:1;display:inline-flex}.hn-kbd__key{border:1px solid color-mix(in srgb,var(--hn-color-text) 22%,transparent);border-radius:var(--hn-radius-sm);background:var(--hn-color-surface-hover);min-width:18px;color:var(--hn-color-text);vertical-align:baseline;white-space:nowrap;-webkit-user-select:none;user-select:none;justify-content:center;align-items:center;padding:2px 6px;font-family:inherit;font-size:11px;font-weight:500;line-height:1;display:inline-flex;box-shadow:inset 0 -1px #0000001f}.hn-kbd__plus{color:var(--hn-color-text-muted);-webkit-user-select:none;user-select:none;font-family:inherit;font-size:11px;font-weight:400;line-height:1}.hn-loading{color:var(--hn-color-accent);font-family:var(--hn-font-sans);justify-content:center;align-items:center;gap:8px;line-height:0;display:inline-flex}.hn-loading__spinner{animation:hn-loading-spin var(--hn-loading-duration,.9s) linear infinite;transform-origin:50%;flex-shrink:0;display:block}.hn-loading__text{color:var(--hn-color-text-muted);white-space:nowrap;font-size:13px;line-height:1.5}.hn-loading--small .hn-loading__text{font-size:12px}.hn-loading--large .hn-loading__text{font-size:14px}.hn-loading--cover{background:color-mix(in srgb,var(--hn-color-surface) 72%,transparent);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);border-radius:inherit;color:var(--hn-color-accent);flex-direction:column;gap:12px;position:absolute;inset:0}.hn-loading--cover .hn-loading__text{color:var(--hn-color-text)}.hn-loading-overlay{z-index:1200;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);color:var(--hn-color-accent);font-family:var(--hn-font-sans);background:#00000073;flex-direction:column;justify-content:center;align-items:center;gap:14px;animation:.14s cubic-bezier(.2,.8,.2,1) hn-loading-overlay-fade;display:flex;position:fixed;inset:0}.hn-loading-overlay .hn-loading__text{color:var(--hn-color-text);font-size:14px}@keyframes hn-loading-spin{to{transform:rotate(360deg)}}@keyframes hn-loading-overlay-fade{0%{opacity:0}to{opacity:1}}@media(prefers-reduced-motion:reduce){.hn-loading__spinner{animation-duration:2.4s;animation-timing-function:steps(12,end)}.hn-loading-overlay{animation-duration:.01ms}}.hn-popover{--hn-popover-background:#1e293bcc;--hn-popover-border:#ffffff1a;--hn-popover-separator:#ffffff2e;--hn-color-surface:#111114;--hn-color-surface-hover:#ffffff1a;--hn-color-text:#f8fafc;--hn-color-text-muted:#cbd5e1;--hn-color-border:#ffffff1a;--hn-color-border-strong:#ffffff2b;--hn-popover-padding:5px;max-width:100%;padding:var(--hn-popover-padding);border:1px solid var(--hn-popover-border);border-radius:calc(var(--hn-radius-md) + var(--hn-popover-padding));background:var(--hn-popover-background);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);color:var(--hn-color-text);font-family:var(--hn-font-sans);align-items:center;gap:3px;display:inline-flex;box-shadow:0 8px 24px #0f172a47}.hn-popover[data-theme=light]{--hn-popover-background:#fffc;--hn-popover-border:#0f172a1f;--hn-popover-separator:#0f172a29;--hn-color-surface:#fff;--hn-color-surface-hover:#f1f5f9;--hn-color-text:#1e293b;--hn-color-text-muted:#64748b;--hn-color-border:#0000001a;--hn-color-border-strong:#0000002e;box-shadow:0 8px 24px #0f172a29}.hn-popover--floating{z-index:1000}.hn-popover[data-orientation=vertical]{flex-direction:column}.hn-popover__separator{background:var(--hn-popover-separator);border:0;flex:0 0 1px;width:1px;height:20px;margin:0 4px;padding:0}.hn-popover[data-orientation=vertical] .hn-popover__separator{flex:0 0 1px;width:20px;height:1px;margin:4px 0}.hn-menu{min-width:180px;font-family:var(--hn-font-sans);color:var(--hn-color-text);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-radius:var(--hn-radius-md);background:#1e293bcc;flex-direction:column;gap:2px;padding:4px;display:flex}.hn-menu__item{border-radius:var(--hn-radius-md);width:100%;min-height:32px;color:var(--hn-color-text);cursor:pointer;text-align:left;transition:background-color var(--hn-transition),color var(--hn-transition);background:0 0;border:0;justify-content:space-between;align-items:center;gap:12px;padding:0 10px;font-size:13px;line-height:1;display:flex}.hn-menu__item:hover:not(:disabled){background:var(--hn-color-surface-hover)}.hn-menu__item:focus-visible{box-shadow:var(--hn-focus-ring);outline:none}.hn-menu__item:disabled{cursor:not-allowed;opacity:.42}.hn-menu__item--danger{color:var(--hn-color-danger)}.hn-menu__item-label{flex:auto;min-width:0}.hn-menu__shortcut{font:400 11px/1 var(--hn-font-mono);color:var(--hn-color-text-muted);flex-shrink:0;align-items:center;display:inline-flex}.hn-menu__separator{background:var(--hn-popover-separator,var(--hn-color-border));border:0;height:1px;margin:4px 2px}.hn-menu__label{color:var(--hn-color-text-muted);-webkit-user-select:none;user-select:none;padding:4px 10px 2px;font-size:11px;line-height:1}.hn-menu__submenu{display:block}.hn-menu__submenu--open>.hn-menu__submenu-trigger{background:var(--hn-color-surface-hover)}.hn-menu__submenu-chevron{font:400 11px/1 var(--hn-font-sans);color:var(--hn-color-text-muted);transition:transform var(--hn-transition);flex-shrink:0;align-items:center;display:inline-flex}.hn-menu__submenu--open>.hn-menu__submenu-trigger .hn-menu__submenu-chevron{transform:rotate(90deg)}.hn-menu__submenu-panel{z-index:1000}.hn-menu__submenu-panel .hn-menu{min-width:160px}@media(prefers-reduced-motion:reduce){.hn-menu__item,.hn-menu__submenu-chevron{transition-duration:.01ms}}.hn-note-card{box-sizing:border-box;border:1px solid var(--hn-color-border);border-radius:var(--hn-radius-lg);background:var(--hn-color-surface);width:100%;font-family:var(--hn-font-sans);color:var(--hn-color-text);text-align:left;transition:background-color var(--hn-transition),border-color var(--hn-transition),transform .18s cubic-bezier(.2,.8,.2,1);gap:14px;padding:18px;display:grid;position:relative}.hn-note-card__action{z-index:1;border-radius:inherit;cursor:pointer;background:0 0;border:0;position:absolute;inset:0}.hn-note-card--interactive:has(.hn-note-card__action:hover){border-color:var(--hn-color-border-strong);background:var(--hn-color-surface-hover);transform:translateY(-1px)}.hn-note-card--interactive:has(.hn-note-card__action:focus-visible){box-shadow:var(--hn-focus-ring);outline:none}.hn-note-card__action:focus-visible{outline:none}.hn-note-card--selected{background:#7c83ff14;border-color:#7c83ff73}.hn-note-card__heading{gap:5px;display:grid}.hn-note-card__title,.hn-note-card__excerpt,.hn-note-card__meta{margin:0}.hn-note-card__title{letter-spacing:-.01em;font-size:15px;font-weight:600;line-height:1.35}.hn-note-card__excerpt{color:var(--hn-color-text-muted);text-wrap:pretty;font-size:13px;line-height:1.6}.hn-note-card__meta{font-family:var(--hn-font-mono);color:#70707b;font-size:11px;line-height:1.4}@media(prefers-reduced-motion:reduce){.hn-note-card{transition-duration:.01ms}}.hn-text-field{width:100%;font-family:var(--hn-font-sans);gap:7px;display:grid}.hn-text-field__label{color:var(--hn-color-text);font-size:12px;font-weight:600;line-height:1.3}.hn-text-field__control{box-sizing:border-box;border:1px solid var(--hn-color-border);border-radius:var(--hn-radius-md);background:var(--hn-color-surface);width:100%;min-height:38px;font:400 14px/1.4 var(--hn-font-sans);color:var(--hn-color-text);transition:border-color var(--hn-transition),background-color var(--hn-transition),box-shadow var(--hn-transition);outline:none;padding:8px 11px}.hn-text-field__control::placeholder{color:#666670}.hn-text-field__control:hover:not(:disabled){border-color:var(--hn-color-border-strong)}.hn-text-field__control:focus-visible{border-color:var(--hn-color-accent);background:var(--hn-color-surface-hover);box-shadow:var(--hn-focus-ring);outline:none}.hn-text-field__control:disabled{cursor:not-allowed;opacity:.48}.hn-text-field--invalid .hn-text-field__control{border-color:#fb718599}.hn-text-field__message{color:var(--hn-color-text-muted);margin:0;font-size:12px;line-height:1.4}.hn-text-field--invalid .hn-text-field__message{color:var(--hn-color-danger)}@media(prefers-reduced-motion:reduce){.hn-text-field__control{transition-duration:.01ms}}.hn-theme{display:contents}.hn-theme[data-accent=custom]{--hn-color-accent-hover:color-mix(in srgb, var(--hn-color-accent), #fff 16%);--hn-focus-ring:0 0 0 3px color-mix(in srgb, var(--hn-color-accent) 42%, transparent)}}.hn-theme[data-mode=light]{--hn-color-surface:#fff;--hn-color-surface-hover:#f4f4f6;--hn-color-text:#18181b;--hn-color-text-muted:#63636d;--hn-color-border:#0000001a;--hn-color-border-strong:#0000002e;--hn-color-danger:#e11d48;--hn-color-success:#16a34a;--hn-color-warning:#d97706}.hn-theme[data-mode=dark]{--hn-color-surface:#111114;--hn-color-surface-hover:#17171b;--hn-color-text:#f4f4f5;--hn-color-text-muted:#92929d;--hn-color-border:#ffffff1a;--hn-color-border-strong:#ffffff2b;--hn-color-danger:#fb7185;--hn-color-success:#4ade80;--hn-color-warning:#fbbf24}.cards-button{cursor:pointer;border:1px solid #0000;border-radius:9999px;justify-content:center;align-items:center;gap:.5rem;font-weight:500;line-height:1;transition:transform .15s cubic-bezier(.32,.72,0,1),box-shadow .15s cubic-bezier(.32,.72,0,1),background-color .15s cubic-bezier(.32,.72,0,1);display:inline-flex}.cards-button:hover{transform:translateY(-1px)}.cards-button:active{transform:translateY(0)}.cards-button:focus-visible{outline-offset:2px;outline:2px solid}.cards-button--sm{padding:.5rem 1rem;font-size:.875rem}.cards-button--md{padding:.75rem 1.5rem;font-size:1rem}.cards-button--lg{padding:1rem 2rem;font-size:1.125rem}.cards-button{--cards-button-filled-bg:#0f0f0f;--cards-button-filled-color:#fff;--cards-button-filled-hover-bg:#262626;--cards-button-filled-shadow:0 1px 2px #00000014;--cards-button-filled-hover-shadow:0 4px 12px #0000001f;--cards-button-outlined-color:#0f0f0f;--cards-button-outlined-border:#00000029;--cards-button-outlined-hover-bg:#0000000a;--cards-button-ghost-color:#0f0f0f;--cards-button-ghost-hover-bg:#0000000a}.cards-button[data-theme=dark]{--cards-button-filled-bg:#fff;--cards-button-filled-color:#0f0f0f;--cards-button-filled-hover-bg:#e5e7eb;--cards-button-filled-shadow:0 1px 2px #0000004d;--cards-button-filled-hover-shadow:0 4px 12px #0006;--cards-button-outlined-color:#fff;--cards-button-outlined-border:#ffffff3d;--cards-button-outlined-hover-bg:#ffffff14;--cards-button-ghost-color:#fff;--cards-button-ghost-hover-bg:#ffffff14}.cards-button--filled{background-color:var(--cards-button-filled-bg);color:var(--cards-button-filled-color);box-shadow:var(--cards-button-filled-shadow)}.cards-button--filled:hover{background-color:var(--cards-button-filled-hover-bg);box-shadow:var(--cards-button-filled-hover-shadow)}.cards-button--outlined{color:var(--cards-button-outlined-color);border-color:var(--cards-button-outlined-border);background-color:#0000}.cards-button--outlined:hover{background-color:var(--cards-button-outlined-hover-bg)}.cards-button--ghost{color:var(--cards-button-ghost-color);background-color:#0000}.cards-button--ghost:hover{background-color:var(--cards-button-ghost-hover-bg)}.cards-card-canvas__wrapper{--cards-card-bg:#fff;--cards-card-border:#0000001f;--cards-card-shadow:0 4px 6px -1px #0000001a, 0 2px 4px -1px #0000000f;--cards-card-selected-shadow:0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a, 0 0 0 4px #3b82f626;--cards-card-parent-candidate-shadow:0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a, 0 0 0 4px #10b98126;--cards-card-link-source-shadow:0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a, 0 0 0 4px #6366f126;--cards-card-link-target-shadow:0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a, 0 0 0 4px #2563eb33;--cards-connector-stroke:#d1d5db;--cards-parent-connector-stroke:#9ca3af;--cards-link-drag-line-stroke:#9ca3af;--cards-link-drag-line-active-stroke:#2563eb;--cards-link-drag-circle-border:#2563eb;--cards-link-drag-circle-bg:#fff;--cards-link-drag-circle-color:#000;--cards-card-header-bg:#f9fafb;--cards-card-header-color:#0f0f0f;--cards-card-header-border:#00000014;--cards-card-content-color:#374151;--cards-resize-handle-border:#0003;--cards-link-button-color:#2563eb;--cards-card-footer-border:#00000014;--cards-card-selected-outline:#3b82f699;--cards-card-parent-candidate-outline:#10b98199;--cards-card-link-source-outline:#6366f1b3;--cards-card-link-target-outline:#2563ebcc;--cards-link-drag-circle-shadow:0 2px 8px #00000026;width:100%;height:100%;position:relative;overflow:visible}.cards-card-canvas__wrapper[data-theme=dark]{--cards-card-bg:#1f2937;--cards-card-border:#ffffff1f;--cards-card-shadow:0 4px 6px -1px #0006, 0 2px 4px -1px #0000004d;--cards-card-selected-shadow:0 10px 15px -3px #0006, 0 4px 6px -4px #0000004d, 0 0 0 4px #3b82f640;--cards-card-parent-candidate-shadow:0 10px 15px -3px #0006, 0 4px 6px -4px #0000004d, 0 0 0 4px #10b98140;--cards-card-link-source-shadow:0 10px 15px -3px #0006, 0 4px 6px -4px #0000004d, 0 0 0 4px #6366f140;--cards-card-link-target-shadow:0 10px 15px -3px #0006, 0 4px 6px -4px #0000004d, 0 0 0 4px #2563eb4d;--cards-connector-stroke:#4b5563;--cards-parent-connector-stroke:#6b7280;--cards-link-drag-line-stroke:#6b7280;--cards-link-drag-line-active-stroke:#60a5fa;--cards-link-drag-circle-border:#60a5fa;--cards-link-drag-circle-bg:#1f2937;--cards-link-drag-circle-color:#fff;--cards-card-header-bg:#374151;--cards-card-header-color:#e5e7eb;--cards-card-header-border:#ffffff14;--cards-card-content-color:#e5e7eb;--cards-resize-handle-border:#ffffff40;--cards-link-button-color:#60a5fa;--cards-card-footer-border:#ffffff14;--cards-card-selected-outline:#3b82f6b3;--cards-card-parent-candidate-outline:#10b981b3;--cards-card-link-source-outline:#818cf8cc;--cards-card-link-target-outline:#60a5fae6;--cards-link-drag-circle-shadow:0 2px 8px #0006}.cards-card-canvas__container{width:100%;height:100%;position:relative;overflow:visible}.cards-card-canvas__connectors{pointer-events:none;width:100%;height:100%;position:absolute;top:0;left:0;overflow:visible}.cards-card-canvas__connectors line{stroke:var(--cards-connector-stroke);stroke-width:2px;stroke-dasharray:4 4}.cards-card-canvas__parent-child-connector{fill:none;stroke:var(--cards-parent-connector-stroke);stroke-width:2px}.cards-card-canvas__card--drag-pending-detach{transform:none!important}.cards-card-canvas__popover{z-index:1;pointer-events:none;position:absolute}.cards-card-canvas__popover>*{pointer-events:auto}.cards-card-canvas__card{background-color:var(--cards-card-bg);border:1px solid var(--cards-card-border);box-shadow:var(--cards-card-shadow);-webkit-user-select:none;user-select:none;border-radius:8px;flex-direction:column;transition:border-color .2s,outline-color .2s,box-shadow .2s;display:flex;position:absolute;overflow:hidden}.cards-card-canvas__card--selected{outline:2px solid var(--cards-card-selected-outline);outline-offset:2px;box-shadow:var(--cards-card-selected-shadow)}.cards-card-canvas__card--parent-candidate{outline:2px dashed var(--cards-card-parent-candidate-outline);outline-offset:2px;box-shadow:var(--cards-card-parent-candidate-shadow)}.cards-card-canvas__card--link-source{outline:2px solid var(--cards-card-link-source-outline);outline-offset:2px;box-shadow:var(--cards-card-link-source-shadow);transform:none!important}.cards-card-canvas__card--link-target{outline:2px solid var(--cards-card-link-target-outline);outline-offset:2px;box-shadow:var(--cards-card-link-target-shadow)}.cards-card-canvas__link-drag-overlay{pointer-events:none;z-index:9999;width:100%;height:100%;position:absolute;top:0;left:0;overflow:visible}.cards-card-canvas__link-drag-line{stroke:var(--cards-link-drag-line-stroke);stroke-width:2px;stroke-dasharray:6 4}.cards-card-canvas__link-drag-line--active{stroke:var(--cards-link-drag-line-active-stroke);stroke-width:2.5px}.cards-card-canvas__link-drag-circle{border:2px solid var(--cards-link-drag-circle-border);background-color:var(--cards-link-drag-circle-bg);width:40px;height:40px;color:var(--cards-link-drag-circle-color);pointer-events:none;z-index:10000;box-shadow:var(--cards-link-drag-circle-shadow);border-radius:50%;justify-content:center;align-items:center;transition:none;display:flex;position:absolute}.cards-card-canvas__card-header{border-bottom:1px solid var(--cards-card-header-border);background-color:var(--cards-card-header-bg);color:var(--cards-card-header-color);cursor:default;padding:8px 12px;font-size:14px;font-weight:500}.cards-card-canvas__card-content{appearance:none;text-align:left;color:var(--cards-card-content-color);word-wrap:break-word;background:0 0;border:0;flex:1;padding:12px;font-family:inherit;font-size:14px;overflow:auto}.cards-card-canvas__resize-handle{cursor:se-resize;touch-action:none;justify-content:center;align-items:center;width:20px;height:20px;display:flex;position:absolute;bottom:0;right:0}.cards-card-canvas__resize-handle:after{content:"";border-right:2px solid var(--cards-resize-handle-border);border-bottom:2px solid var(--cards-resize-handle-border);width:6px;height:6px}.cards-card-canvas__resize-handle--hidden{display:none}.cards-card-canvas__link-button{appearance:none;font:inherit;color:var(--cards-link-button-color);cursor:pointer;background:0 0;border:none;align-items:center;gap:4px;margin:0;padding:0;text-decoration:underline;display:flex}.cards-card-canvas__card-footer{border-top:1px solid var(--cards-card-footer-border);flex-direction:column;flex-shrink:0;gap:4px;padding:12px;display:flex}
|
|
1
|
+
:root{--hn-theme: #3b82f6;--hn-theme-soft: color-mix(in srgb, var(--hn-theme) 12%, white);--hn-theme-border: color-mix(in srgb, var(--hn-theme) 30%, transparent);--hn-theme-text: color-mix(in srgb, var(--hn-theme) 75%, #1e293b);--hn-bg: #ffffff;--hn-surface: #f8fafc;--hn-surface-hover: #f1f5f9;--hn-border: rgba(15, 23, 42, .08);--hn-border-strong: rgba(15, 23, 42, .14);--hn-text: #1e293b;--hn-text-muted: rgba(51, 65, 85, .65);--hn-text-soft: rgba(51, 65, 85, .85);--hn-radius: 24px;--hn-code-font: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace}@keyframes hn-popover-in{0%{opacity:0}to{opacity:1}}@media(prefers-reduced-motion:reduce){.hn-editor-mini-popover,.hn-editor-menu{animation:none}}.hn-editor{position:relative;box-sizing:border-box;padding:1.5rem 4rem 2rem;color:var(--hn-text, #1e293b)}.hn-editor--light{--hn-theme-soft: color-mix(in srgb, var(--hn-theme, #3b82f6) 12%, white);--hn-theme-border: color-mix(in srgb, var(--hn-theme, #3b82f6) 30%, transparent);--hn-theme-text: color-mix(in srgb, var(--hn-theme, #3b82f6) 75%, #1e293b);--hn-bg: #ffffff;--hn-surface: #f8fafc;--hn-surface-hover: #f1f5f9;--hn-border: rgba(15, 23, 42, .08);--hn-border-strong: rgba(15, 23, 42, .14);--hn-text: #1e293b;--hn-text-muted: rgba(51, 65, 85, .65);--hn-text-soft: rgba(51, 65, 85, .85);--hn-danger: #dc2626;--hn-code-font: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;color-scheme:light}.hn-editor--dark{--hn-theme-soft: color-mix(in srgb, var(--hn-theme, #3b82f6) 18%, #111827);--hn-theme-border: color-mix(in srgb, var(--hn-theme, #3b82f6) 48%, transparent);--hn-theme-text: color-mix(in srgb, var(--hn-theme, #3b82f6) 55%, #f8fafc);--hn-bg: #0f172a;--hn-surface: #172033;--hn-surface-hover: #202b3f;--hn-border: rgba(226, 232, 240, .12);--hn-border-strong: rgba(226, 232, 240, .22);--hn-text: #f1f5f9;--hn-text-muted: rgba(203, 213, 225, .72);--hn-text-soft: rgba(226, 232, 240, .88);--hn-danger: #f87171;--hn-code-font: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;color-scheme:dark}.hn-editor .hn-editor-content{outline:none;min-height:8rem;caret-color:var(--hn-text, #1e293b);font-size:1rem;line-height:1.85;color:var(--hn-text-soft, rgba(51, 65, 85, .85));word-break:break-word}.hn-editor-content>*+*{margin-top:.625rem}.hn-editor-content p{margin:0}.hn-editor-content h1,.hn-editor-content h2,.hn-editor-content h3,.hn-editor-content h4,.hn-editor-content h5,.hn-editor-content h6{margin:0;font-family:Iowan Old Style,Palatino Linotype,Book Antiqua,Palatino,serif;color:var(--hn-text, #1e293b);line-height:1.3}.hn-editor-content *+h1,.hn-editor-content *+h2,.hn-editor-content *+h3,.hn-editor-content *+h4,.hn-editor-content *+h5,.hn-editor-content *+h6{margin-top:1.1rem}.hn-editor-content h1{font-size:clamp(1.8rem,3vw,2.6rem)}.hn-editor-content h2{font-size:1.4rem}.hn-editor-content h3{font-size:1.1rem}.hn-editor-content h4{font-size:1rem}.hn-editor-content h5{font-size:.95rem}.hn-editor-content h6{font-size:.9rem}.hn-editor-content ul:not([data-type=taskList]),.hn-editor-content ol{margin:0;padding-left:1.5rem}.hn-editor-content li{margin:.15rem 0}.hn-editor-content li::marker{color:var(--hn-text-muted, rgba(51, 65, 85, .65))}.hn-editor-content li>ul,.hn-editor-content li>ol{margin-top:.15rem}.hn-editor-content ul[data-type=taskList]{list-style:none;margin:0;padding-left:.25rem}.hn-editor-content li[data-checked]{display:flex;align-items:flex-start;gap:.6rem}.hn-editor-content li[data-checked]>label{margin-top:.45rem;cursor:pointer}.hn-editor-content li[data-checked] input[type=checkbox]{width:1rem;height:1rem;margin:0;accent-color:var(--hn-theme, #3b82f6);cursor:pointer}.hn-editor-content li[data-checked] input[type=checkbox]:focus-visible{outline:2px solid var(--hn-theme, #3b82f6);outline-offset:2px}.hn-editor-content li[data-checked][data-checked=true]>div{color:var(--hn-text-muted, rgba(51, 65, 85, .65))}.hn-editor-content blockquote{margin:0;padding:1.25rem 1.35rem;border-left:4px solid var(--hn-theme, #3b82f6);border-radius:0 20px 20px 0;background:var(--hn-theme-soft, color-mix(in srgb, var(--hn-theme, #3b82f6) 12%, white))}.hn-editor-content blockquote p{font-size:1.1rem;line-height:1.7}.hn-editor-content blockquote *+*{margin-top:.5rem}.hn-editor-content .hn-editor-quote-footer{margin-top:.8rem}.hn-editor-content .hn-editor-quote-author{width:100%;padding:.15rem 0;border:none;border-radius:4px;background:transparent;color:var(--hn-theme-text, color-mix(in srgb, var(--hn-theme, #3b82f6) 75%, #1e293b));font:inherit;font-size:.95rem;font-weight:600}.hn-editor-content .hn-editor-quote-author::placeholder{color:var(--hn-text-muted, rgba(51, 65, 85, .65));font-weight:400}.hn-editor-content .hn-editor-quote-author:focus-visible{outline:2px solid var(--hn-theme, #3b82f6);outline-offset:2px}.hn-editor-content .hn-editor-code-card{border:1px solid var(--hn-border-strong, rgba(15, 23, 42, .14));border-radius:var(--hn-radius, 24px);background:#0f172a;overflow:hidden}.hn-editor-content .hn-editor-code-meta{display:flex;justify-content:space-between;align-items:center;gap:.8rem;padding:.9rem 1rem;border-bottom:1px solid rgba(255,255,255,.08)}.hn-editor-content .hn-editor-code-lang{padding:.2rem .4rem;border:1px solid rgba(255,255,255,.15);border-radius:6px;background:#ffffff0f;color:#e2e8f0;font-family:inherit;font-size:.85rem;font-weight:600;cursor:pointer}.hn-editor-content .hn-editor-code-filename{flex:0 1 auto;width:10rem;min-width:12px;padding:.2rem .5rem;border:1px solid rgba(255,255,255,.15);border-radius:6px;background:#ffffff0f;color:#e2e8f0;font-family:var(--hn-code-font, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-size:.85rem;font-weight:600;text-align:right}.hn-editor-content .hn-editor-code-filename::placeholder{color:#e2e8f066}.hn-editor-content .hn-editor-code-lang:focus-visible,.hn-editor-content .hn-editor-code-filename:focus-visible{outline:2px solid var(--hn-theme, #3b82f6);outline-offset:0}.hn-editor-content .hn-editor-code-editing{display:grid}.hn-editor-content .hn-editor-code-highlight,.hn-editor-content .hn-editor-code-editor{grid-area:1 / 1;margin:0;padding:1rem;border:0;border-radius:0;background:transparent;font-family:var(--hn-code-font, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-size:.9rem;line-height:1.7;text-align:left;white-space:pre-wrap;overflow-wrap:anywhere}.hn-editor-content .hn-editor-code-highlight{color:#e2e8f0;overflow:hidden;pointer-events:none}.hn-editor-content .hn-editor-code-editor{color:transparent;caret-color:#e2e8f0}.hn-editor-content .hn-editor-code-editor ::selection,.hn-editor-content .hn-editor-code-editor::selection{background:color-mix(in srgb,var(--hn-theme, #3b82f6) 35%,transparent)}.hn-editor-content .hn-editor-code-card code{padding:0;border-radius:0;background:transparent;font-family:inherit;font-size:inherit}.hn-editor-content .hn-editor-code-highlight .hljs-comment{color:#94a3b8;font-style:italic}.hn-editor-content .hn-editor-code-highlight .hljs-string{color:#86efac}.hn-editor-content .hn-editor-code-highlight .hljs-number{color:#fbbf24}.hn-editor-content .hn-editor-code-highlight .hljs-keyword{color:#c084fc}.hn-editor-content :not(pre)>code{padding:.1em .35em;border-radius:6px;background:var(--hn-surface, #f8fafc);font-family:var(--hn-code-font, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-size:.9em}.hn-editor-content .hn-editor-table-wrapper{position:relative;margin:0;padding:.9rem}.hn-editor-content .hn-editor-table-edge,.hn-editor-content .hn-editor-table-op{position:absolute;z-index:3;display:none;align-items:center;justify-content:center;padding:0;border:1px solid var(--hn-border-strong, rgba(15, 23, 42, .14));background:var(--hn-bg, #ffffff);color:var(--hn-text-muted, rgba(51, 65, 85, .65));font-size:.85rem;font-weight:600;line-height:1;cursor:pointer}.hn-editor-content .hn-editor-table-edge.is-visible,.hn-editor-content .hn-editor-table-op.is-visible{display:flex}.hn-editor-content .hn-editor-table-edge{width:20px;height:20px;border-radius:999px;transform:translate(-50%,-50%);box-shadow:0 1px 3px #0f172a1f}.hn-editor-content .hn-editor-table-op{min-width:20px;height:20px;border-radius:6px;transform:translate(-50%,-50%);box-shadow:0 1px 3px #0f172a1f;letter-spacing:1px;touch-action:none}.hn-editor-content .hn-editor-table-edge:hover,.hn-editor-content .hn-editor-table-op:hover{border-color:var(--hn-theme, #3b82f6);color:var(--hn-theme, #3b82f6)}.hn-editor-content .hn-editor-table-edge:focus-visible,.hn-editor-content .hn-editor-table-op:focus-visible{outline:2px solid var(--hn-theme, #3b82f6);outline-offset:1px}.hn-editor-content .hn-editor-table-op.is-dragging,.hn-editor-content .hn-editor-table-op.is-menu-open{border-color:var(--hn-theme, #3b82f6);background:var(--hn-theme-soft, color-mix(in srgb, var(--hn-theme, #3b82f6) 12%, white));color:var(--hn-theme, #3b82f6)}.hn-editor-content .hn-editor-table-preview--row-before{box-shadow:inset 0 2px 0 0 var(--hn-theme, #3b82f6)}.hn-editor-content .hn-editor-table-preview--row-after{box-shadow:inset 0 -2px 0 0 var(--hn-theme, #3b82f6)}.hn-editor-content .hn-editor-table-preview--col-before{box-shadow:inset 2px 0 0 0 var(--hn-theme, #3b82f6)}.hn-editor-content .hn-editor-table-preview--col-after{box-shadow:inset -2px 0 0 0 var(--hn-theme, #3b82f6)}.hn-editor-content .hn-editor-table-wrapper--reordering .hn-editor-table-edge,.hn-editor-content .hn-editor-table-wrapper--reordering .hn-editor-table-op{pointer-events:none}.hn-editor-content[contenteditable=false] .hn-editor-table-edge,.hn-editor-content[contenteditable=false] .hn-editor-table-op{display:none}.hn-editor-content table{width:100%;border-collapse:collapse;border:1px solid var(--hn-border-strong, rgba(15, 23, 42, .14));font-size:.95rem;line-height:1.5}.hn-editor-content th,.hn-editor-content td{position:relative;padding:.6rem .8rem;border:1px solid var(--hn-border-strong, rgba(15, 23, 42, .14));vertical-align:top}.hn-editor-content th{background:var(--hn-surface, #f8fafc);font-weight:600;text-align:left}.hn-editor-content th p,.hn-editor-content td p{line-height:1.5}.hn-editor-content .selectedCell:after{content:"";position:absolute;inset:0;z-index:2;background:var(--hn-theme-soft, color-mix(in srgb, var(--hn-theme, #3b82f6) 12%, white));pointer-events:none}.hn-editor-content hr{margin:0;border:none;border-top:1px solid var(--hn-border-strong, rgba(15, 23, 42, .14))}.hn-editor-content a{color:var(--hn-theme-text, color-mix(in srgb, var(--hn-theme, #3b82f6) 75%, #1e293b));text-decoration:underline;text-decoration-color:var(--hn-theme-border, color-mix(in srgb, var(--hn-theme, #3b82f6) 30%, transparent))}.hn-editor-content .ProseMirror-selectednode{outline:2px solid var(--hn-theme, #3b82f6);outline-offset:2px;border-radius:8px}.hn-editor-content .hn-editor-callout-tone,.hn-editor-content .hn-editor-callout-title,.hn-editor-content .hn-editor-collapsible-title,.hn-editor-content .hn-editor-picture-alt{font:inherit;font-size:.85rem;color:var(--hn-text, #1e293b);background:transparent;border:1px solid transparent;border-radius:6px;padding:.2rem .45rem}.hn-editor-content .hn-editor-callout-tone:hover,.hn-editor-content .hn-editor-callout-title:hover,.hn-editor-content .hn-editor-collapsible-title:hover,.hn-editor-content .hn-editor-picture-alt:hover{border-color:var(--hn-border, rgba(15, 23, 42, .08))}.hn-editor-content .hn-editor-callout-tone:focus-visible,.hn-editor-content .hn-editor-callout-title:focus-visible,.hn-editor-content .hn-editor-collapsible-title:focus-visible,.hn-editor-content .hn-editor-picture-alt:focus-visible{outline:2px solid var(--hn-theme, #3b82f6);outline-offset:1px;background:var(--hn-surface, #f8fafc)}.hn-editor-content .hn-editor-field-error{align-self:flex-start;max-width:100%;font-size:.78rem;line-height:1.4;color:var(--hn-danger, #dc2626);overflow-wrap:anywhere}.hn-editor-content .hn-editor-field-error:empty{display:none}.hn-editor-content .hn-editor-inline-formula .hn-editor-field-error{margin-left:.3rem}.hn-editor-content .hn-editor-callout{display:flex;flex-direction:column;gap:.6rem;padding:1.1rem 1.2rem;border:1px solid var(--hn-theme-border, color-mix(in srgb, var(--hn-theme, #3b82f6) 30%, transparent));border-radius:22px;background:var(--hn-surface, #f8fafc)}.hn-editor-content .hn-editor-callout--success{border-color:#16a34a47}.hn-editor-content .hn-editor-callout--warning{border-color:#d9770647}.hn-editor-content .hn-editor-callout-header{display:flex;align-items:center;gap:.6rem}.hn-editor-content .hn-editor-callout-title{flex:1;font-weight:600}.hn-editor-content .hn-editor-collapsible{border:1px solid var(--hn-border, rgba(15, 23, 42, .08));border-radius:14px;background:var(--hn-surface, #f8fafc)}.hn-editor-content .hn-editor-collapsible-header{display:flex;align-items:center;gap:.5rem;padding:.6rem .8rem}.hn-editor-content .hn-editor-collapsible-toggle{display:inline-flex;align-items:center;justify-content:center;width:1.6rem;height:1.6rem;padding:0;border:none;border-radius:6px;background:transparent;color:var(--hn-text-muted, rgba(51, 65, 85, .65));cursor:pointer}.hn-editor-content .hn-editor-collapsible-toggle:hover{background:var(--hn-surface-hover, rgba(15, 23, 42, .04))}.hn-editor-content .hn-editor-collapsible-toggle:focus-visible{outline:2px solid var(--hn-theme, #3b82f6);outline-offset:1px}.hn-editor-content .hn-editor-collapsible-caret{display:inline-block;font-size:.7rem;transform:rotate(90deg);transition:transform .15s ease}.hn-editor-content .hn-editor-collapsible.is-collapsed .hn-editor-collapsible-caret{transform:rotate(0)}.hn-editor-content .hn-editor-collapsible-title{flex:1}.hn-editor-content .hn-editor-collapsible-body{padding:0 1rem .75rem 3rem}.hn-editor-content .hn-editor-collapsible.is-collapsed .hn-editor-collapsible-body{display:none}.hn-editor-content .hn-editor-formula-preview{display:flex;align-items:center;justify-content:center;width:100%;min-height:3.25rem;padding:.5rem .75rem;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--hn-text, #1e293b);font:inherit;cursor:pointer}.hn-editor-content .hn-editor-formula-preview:hover{background:color-mix(in srgb,var(--hn-theme, #3b82f6) 5%,transparent)}.hn-editor-content .hn-editor-formula-preview:focus-visible{outline:2px solid var(--hn-theme, #3b82f6);outline-offset:2px}.hn-editor-content .hn-editor-formula-rendered .katex-display{margin:0}.hn-editor-content .hn-editor-inline-formula{display:inline-block;padding:0 .2em;border:none;border-radius:4px;background:transparent;color:var(--hn-text, #1e293b);font-family:Georgia,Times New Roman,serif;font-style:italic;font-size:inherit;cursor:pointer}.hn-editor-content .hn-editor-inline-formula:hover{background:color-mix(in srgb,var(--hn-theme, #3b82f6) 6%,transparent)}.hn-editor-content .hn-editor-inline-formula:focus-visible{outline:2px solid var(--hn-theme, #3b82f6);outline-offset:1px}.hn-editor-mini-popover{position:fixed;z-index:60;width:min(520px,calc(100vw - 16px));padding:8px;border-radius:10px;background:#1e293b;box-shadow:0 8px 24px #0f172a47;animation:hn-popover-in .12s ease}.hn-editor-mini-textarea{display:block;width:100%;box-sizing:border-box;resize:vertical;padding:.5rem .6rem;border:1px solid rgba(255,255,255,.15);border-radius:6px;background:#ffffff0f;color:#e2e8f0;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.85rem;line-height:1.5}.hn-editor-mini-textarea:focus-visible{outline:2px solid var(--hn-theme, #3b82f6);outline-offset:1px}.hn-editor-menu{position:fixed;z-index:60;min-width:168px;padding:6px;border-radius:10px;background:#1e293b;box-shadow:0 8px 24px #0f172a47;animation:hn-popover-in .12s ease}.hn-editor-menu--scroll{overflow-y:auto;overscroll-behavior:contain}.hn-editor-menu-item{display:block;width:100%;box-sizing:border-box;padding:.45rem .7rem;border:none;border-radius:6px;background:transparent;color:#e2e8f0;font-size:.85rem;line-height:1.4;text-align:left;cursor:pointer;white-space:nowrap}.hn-editor-menu-item:hover,.hn-editor-menu-item:focus-visible{background:#ffffff24;color:#fff;outline:none}.hn-editor-menu-item:disabled{color:#e2e8f061;cursor:default}.hn-editor-menu-item:disabled:hover{background:transparent}.hn-editor-menu-item--danger{color:#fca5a5}.hn-editor-menu-item--danger:hover,.hn-editor-menu-item--danger:focus-visible{background:#dc262638;color:#fecaca}.hn-editor-menu-item.is-confirming{background:var(--hn-danger, #dc2626);color:#fff}.hn-editor-menu-divider{height:1px;margin:4px 6px;background:#ffffff1f}.hn-editor-content .hn-editor-picture{display:flex;flex-direction:column;gap:.4rem;margin:0}.hn-editor-content .hn-editor-picture-img{display:block;max-width:100%;height:auto;border:1px solid var(--hn-border, rgba(15, 23, 42, .08));border-radius:8px}.hn-editor-content .hn-editor-picture-placeholder{padding:1.5rem;border:1px dashed var(--hn-border-strong, rgba(15, 23, 42, .14));border-radius:8px;color:var(--hn-text-muted, rgba(51, 65, 85, .65));font-size:.85rem;text-align:center}.hn-editor-content .hn-editor-picture-alt{width:100%;box-sizing:border-box;color:var(--hn-text-muted, rgba(51, 65, 85, .65))}.hn-editor-content .hn-editor-data-preview{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.25rem;width:100%;min-height:160px;padding:1rem;border:1px solid var(--hn-border, rgba(15, 23, 42, .08));border-radius:10px;background:var(--hn-surface, #f8fafc);color:var(--hn-text, #1e293b);font:inherit;cursor:pointer}.hn-editor-content .hn-editor-data-block--drawing .hn-editor-data-preview{border-style:dashed}.hn-editor-content .hn-editor-data-preview:hover{border-color:var(--hn-border-strong, rgba(15, 23, 42, .14))}.hn-editor-content .hn-editor-data-preview:focus-visible{outline:2px solid var(--hn-theme, #3b82f6);outline-offset:3px}.hn-editor-content .hn-editor-data-title{font-weight:600}.hn-editor-content .hn-editor-data-meta{font-size:.8rem;color:var(--hn-text-muted, rgba(51, 65, 85, .65))}.hn-editor-content .hn-editor-data-hint{position:absolute;right:.75rem;bottom:.75rem;padding:.15rem .6rem;border:1px solid var(--hn-border, rgba(15, 23, 42, .08));border-radius:999px;background:var(--hn-surface, #f8fafc);color:var(--hn-text-muted, rgba(51, 65, 85, .65));font-size:.72rem}.hn-editor-content .hn-editor-directory{display:flex;flex-direction:column;gap:.3rem;padding:1rem 1.15rem;border:1px solid var(--hn-border, rgba(15, 23, 42, .08));border-radius:14px;background:var(--hn-surface, #f8fafc)}.hn-editor-content .hn-editor-directory-title{font-size:.95rem;font-weight:600;color:var(--hn-text, #1e293b)}.hn-editor-content .hn-editor-directory-config{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.8rem;color:var(--hn-text-muted, rgba(51, 65, 85, .65))}.hn-editor-content .hn-editor-mention{display:inline-block;padding:0 .2em;border-radius:999px;background:var(--hn-theme-soft, color-mix(in srgb, var(--hn-theme, #3b82f6) 12%, white));color:var(--hn-theme-text, color-mix(in srgb, var(--hn-theme, #3b82f6) 75%, #1e293b));font-weight:700;white-space:nowrap}.hn-editor-content .hn-editor-resource{display:inline-block;padding:0 .45em;border:1px solid var(--hn-border, rgba(15, 23, 42, .08));border-radius:999px;background:var(--hn-surface, #f8fafc);color:var(--hn-text-soft, rgba(51, 65, 85, .85));font-size:.92em;white-space:nowrap}.hn-editor-content .hn-editor-external-item{padding:.35rem .5rem}.hn-editor-content .hn-editor-external-item-name{color:var(--hn-theme-text, color-mix(in srgb, var(--hn-theme, #3b82f6) 75%, #1e293b));text-decoration:underline dashed;text-decoration-color:var(--hn-theme-border, color-mix(in srgb, var(--hn-theme, #3b82f6) 30%, transparent));text-underline-offset:3px;border-radius:4px}.hn-editor-content{position:relative}.hn-editor-content>*{position:relative}.hn-editor-content>.hn-editor-block-handle:first-child+*{margin-top:0}.hn-editor-block-handle{position:absolute;left:-2.5rem;z-index:2;display:flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;border:none;border-radius:6px;background:transparent;color:var(--hn-text-muted, rgba(51, 65, 85, .65));font-size:.9rem;line-height:1;cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none;opacity:0;pointer-events:none;transform:translateY(calc(.925rem - 12px));transition:background .15s ease,color .15s ease,box-shadow .15s ease,opacity .15s ease}.hn-editor-block-handle-glyph{display:inline-flex;align-items:center;justify-content:center;letter-spacing:-.18em;transform:translate(-.03em)}.hn-editor-content>.hn-editor-block-handle+*:before{content:"";position:absolute;top:0;right:100%;width:2.5rem;height:100%;background:transparent;pointer-events:auto}.hn-editor-block-handle:has(+:hover),.hn-editor-block-handle:has(+:focus-within),.hn-editor-block-handle:hover,.hn-editor-block-handle:focus-visible,.hn-editor-block-handle--dragging,.hn-editor-block-handle--menu-open{opacity:1;pointer-events:auto}.hn-editor-content[contenteditable=false] .hn-editor-block-handle{display:none}.hn-editor-block-handle:hover{background:var(--hn-surface-hover, #f1f5f9);color:var(--hn-text, #1e293b)}.hn-editor-block-handle:focus-visible{box-shadow:0 0 0 2px var(--hn-theme, #3b82f6);outline:none}.hn-editor-block-handle--dragging{cursor:grabbing;background:var(--hn-theme-soft, color-mix(in srgb, #3b82f6 12%, white));color:var(--hn-theme-text, color-mix(in srgb, #3b82f6 75%, #1e293b))}.hn-editor-block-handle--menu-open{background:var(--hn-theme-soft, color-mix(in srgb, #3b82f6 12%, white));color:var(--hn-theme-text, color-mix(in srgb, #3b82f6 75%, #1e293b))}.hn-editor-block-dragging{cursor:grabbing}.hn-editor-block-drop-before:after,.hn-editor-block-drop-after:after{content:"";position:absolute;left:0;right:0;z-index:3;height:3px;background:var(--hn-theme, #3b82f6);box-shadow:0 0 0 1px var(--hn-theme-soft, color-mix(in srgb, #3b82f6 12%, white));pointer-events:none}.hn-editor-block-drop-before:after{top:-.4rem}.hn-editor-block-drop-after:after{bottom:-.4rem}@media(max-width:840px){.hn-editor{padding:1.5rem 1.5rem 2rem}.hn-editor-content>.hn-editor-block-handle{left:-1.375rem;width:20px;height:20px;opacity:.55;pointer-events:auto;transform:translateY(calc(.925rem - 10px))}.hn-editor-content>.hn-editor-block-handle+*:before{content:none}.hn-editor-content>.hn-editor-block-handle--menu-open,.hn-editor-content>.hn-editor-block-handle--dragging{opacity:1}.hn-editor-content blockquote{padding:1rem 1.1rem}.hn-editor-content .hn-editor-code-card{border-radius:16px}.hn-editor-content .hn-editor-callout{padding:1rem}.hn-editor-content .hn-editor-collapsible-body{padding-left:2.5rem}.hn-editor-content .hn-editor-data-preview{min-height:140px}.hn-editor-content .hn-editor-directory{padding:.85rem 1rem}}.hn-editor-controls{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem .75rem;margin-top:1rem;padding-top:.75rem;border-top:1px solid var(--hn-border, rgba(15, 23, 42, .08))}.hn-editor-uploads{display:contents}.hn-editor-uploads__picker,.hn-editor-uploads__retry,.hn-editor-uploads__cancel{appearance:none;margin:0;padding:.22rem .85rem;border:1px solid var(--hn-border-strong, rgba(15, 23, 42, .14));border-radius:999px;background:transparent;color:var(--hn-text-soft, rgba(51, 65, 85, .85));font:inherit;font-size:.8rem;font-weight:600;line-height:1.5;cursor:pointer;white-space:nowrap}.hn-editor-uploads__picker:hover,.hn-editor-uploads__retry:hover,.hn-editor-uploads__cancel:hover{background:var(--hn-surface-hover, #f1f5f9);color:var(--hn-text, #1e293b)}.hn-editor-uploads__picker:focus-visible,.hn-editor-uploads__retry:focus-visible,.hn-editor-uploads__cancel:focus-visible{outline:none;box-shadow:0 0 0 2px var(--hn-theme, #3b82f6)}.hn-editor-uploads__list{flex-basis:100%;display:flex;flex-direction:column;gap:.375rem;margin:.25rem 0 0;padding:0;list-style:none}.hn-editor-uploads__item{display:flex;flex-wrap:wrap;align-items:center;gap:.375rem .5rem;font-size:.8rem;line-height:1.5;color:var(--hn-text-soft, rgba(51, 65, 85, .85))}.hn-editor-uploads__name{max-width:16rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}.hn-editor-uploads__status{color:var(--hn-text-muted, rgba(51, 65, 85, .65))}.hn-editor-uploads__error{color:var(--hn-danger, #dc2626)}@media(max-width:840px){.hn-editor-controls{gap:.375rem .5rem;margin-top:.75rem}.hn-editor-uploads__name{max-width:10rem}}.hn-editor-data-drawer{--hn-color-surface: var(--hn-bg, #ffffff);--hn-color-surface-hover: var(--hn-surface-hover, #f1f5f9);--hn-color-text: var(--hn-text, #1e293b);--hn-color-text-muted: var(--hn-text-muted, rgba(51, 65, 85, .65));--hn-color-border: var(--hn-border, rgba(15, 23, 42, .08));--hn-color-border-strong: var(--hn-border-strong, rgba(15, 23, 42, .14));--hn-color-accent: var(--hn-theme, #3b82f6);--hn-color-accent-hover: var(--hn-theme-text, #1d4ed8);--hn-color-danger: var(--hn-danger, #dc2626)}.hn-editor-data-drawer .hn-drawer__content{display:flex;flex-direction:column}.hn-editor-data-drawer-body{display:flex;flex:1;flex-direction:column;gap:.75rem;min-height:0}.hn-editor-data-drawer-error{margin:0;font-size:.8rem;line-height:1.5;color:var(--hn-danger, #dc2626);overflow-wrap:anywhere}.hn-editor-data-drawer-error[hidden]{display:none}.hn-editor-data-drawer-note{margin:0;font-size:.82rem;line-height:1.6;color:var(--hn-text-muted, rgba(51, 65, 85, .65))}.hn-editor-data-drawer-raw{box-sizing:border-box;width:100%;resize:vertical;padding:.6rem .75rem;border:1px solid var(--hn-border, rgba(15, 23, 42, .08));border-radius:8px;background:var(--hn-surface, #f8fafc);color:var(--hn-text-soft, rgba(51, 65, 85, .85));font-family:var(--hn-code-font, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);font-size:.78rem;line-height:1.6}.hn-editor-card-list{display:flex;flex-direction:column;gap:.75rem;margin:0;padding:0;list-style:none;overflow-y:auto}.hn-editor-card-item{display:flex;flex-direction:column;gap:.45rem;padding:.75rem .85rem;border:1px solid var(--hn-border, rgba(15, 23, 42, .08));border-radius:10px;background:var(--hn-surface, #f8fafc)}.hn-editor-card-item-head{display:flex;flex-direction:column;align-items:stretch;gap:.4rem}.hn-editor-card-title{flex:1;min-width:0;padding:.3rem .5rem;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--hn-text, #1e293b);font:inherit;font-weight:600}.hn-editor-card-title:hover{border-color:var(--hn-border, rgba(15, 23, 42, .08))}.hn-editor-card-title:focus-visible{outline:2px solid var(--hn-theme, #3b82f6);outline-offset:1px;background:var(--hn-bg, #ffffff)}.hn-editor-card-meta{align-self:center;color:var(--hn-text-muted, rgba(51, 65, 85, .65));font-family:var(--hn-code-font, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);font-size:.72rem}.hn-editor-card-content{box-sizing:border-box;width:100%;resize:vertical;padding:.45rem .6rem;border:1px solid var(--hn-border, rgba(15, 23, 42, .08));border-radius:8px;background:var(--hn-bg, #ffffff);color:var(--hn-text-soft, rgba(51, 65, 85, .85));font:inherit;font-size:.85rem;line-height:1.6}.hn-editor-card-content:focus-visible{outline:2px solid var(--hn-theme, #3b82f6);outline-offset:1px;border-color:transparent}.hn-editor-drawing-toolbar{display:flex;flex-wrap:wrap;gap:.35rem}.hn-editor-drawing-tool{padding:.3rem .8rem;border:1px solid var(--hn-border, rgba(15, 23, 42, .08));border-radius:999px;background:var(--hn-surface, #f8fafc);color:var(--hn-text-soft, rgba(51, 65, 85, .85));font:inherit;font-size:.8rem;cursor:pointer}.hn-editor-drawing-tool:hover{border-color:var(--hn-border-strong, rgba(15, 23, 42, .14))}.hn-editor-drawing-tool[aria-pressed=true]{border-color:var(--hn-theme-border, color-mix(in srgb, var(--hn-theme, #3b82f6) 30%, transparent));background:var(--hn-theme-soft, color-mix(in srgb, var(--hn-theme, #3b82f6) 12%, white));color:var(--hn-theme-text, color-mix(in srgb, var(--hn-theme, #3b82f6) 75%, #1e293b))}.hn-editor-drawing-tool:focus-visible{outline:2px solid var(--hn-theme, #3b82f6);outline-offset:2px}.hn-editor-drawing-canvas{flex:1;min-height:240px;overflow:hidden;border:1px solid var(--hn-border, rgba(15, 23, 42, .08));border-radius:10px;background:var(--hn-bg, #ffffff)}.hn-editor-data-drawer-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.5rem .75rem;margin-top:auto;padding-top:.5rem;border-top:1px solid var(--hn-border, rgba(15, 23, 42, .08))}.hn-editor-data-drawer-budget{color:var(--hn-text-muted, rgba(51, 65, 85, .65));font-family:var(--hn-code-font, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);font-size:.72rem}.hn-editor-data-drawer-budget--over{color:var(--hn-danger, #dc2626)}.hn-editor-data-drawer-actions{display:inline-flex;gap:.5rem;margin-left:auto}@media(max-width:840px){.hn-editor-data-drawer-footer{flex-direction:column;align-items:stretch}.hn-editor-data-drawer-actions{justify-content:flex-end;margin-left:0}}@media(min-width:841px){.hn-editor-card-item-head{flex-direction:row;align-items:center}}.hn-editor-content .hn-editor-directory-list{display:flex;flex-direction:column;gap:.15rem;margin:.2rem 0 0;padding:0;list-style:none}.hn-editor-content .hn-editor-directory-item{display:block}.hn-editor-content .hn-editor-directory-item[data-level="2"]{padding-left:1rem}.hn-editor-content .hn-editor-directory-item[data-level="3"]{padding-left:2rem}.hn-editor-content .hn-editor-directory-item[data-level="4"]{padding-left:3rem}.hn-editor-content .hn-editor-directory-item[data-level="5"]{padding-left:4rem}.hn-editor-content .hn-editor-directory-item[data-level="6"]{padding-left:5rem}.hn-editor-content .hn-editor-directory-entry{display:block;width:100%;padding:.35rem .6rem;border:none;border-radius:8px;background:transparent;font:inherit;font-size:.9rem;text-align:left;color:var(--hn-text, #1e293b);cursor:pointer}.hn-editor-content .hn-editor-directory-entry:hover{background:var(--hn-surface-hover, #f1f5f9)}.hn-editor-content .hn-editor-directory-entry:focus-visible{outline:2px solid var(--hn-theme, #3b82f6);outline-offset:1px}.hn-editor-content .hn-editor-directory-empty{padding:.35rem .6rem;font-size:.85rem;color:var(--hn-text-muted, rgba(51, 65, 85, .65))}.hn-editor-content .hn-editor-directory-target{background:var(--hn-surface-hover, #f1f5f9);border-radius:6px;transition:background .3s ease}@media(max-width:840px){.hn-editor-content .hn-editor-directory-item[data-level="2"]{padding-left:.5rem}.hn-editor-content .hn-editor-directory-item[data-level="3"]{padding-left:1rem}.hn-editor-content .hn-editor-directory-item[data-level="4"]{padding-left:1.5rem}.hn-editor-content .hn-editor-directory-item[data-level="5"]{padding-left:2rem}.hn-editor-content .hn-editor-directory-item[data-level="6"]{padding-left:2.5rem}}@layer hamster-note.tokens{:root{--hn-color-surface:#111114;--hn-color-surface-hover:#17171b;--hn-color-text:#f4f4f5;--hn-color-text-muted:#92929d;--hn-color-border:#ffffff1a;--hn-color-border-strong:#ffffff2b;--hn-color-accent:#7c83ff;--hn-color-accent-hover:#9197ff;--hn-color-danger:#fb7185;--hn-color-success:#4ade80;--hn-color-warning:#fbbf24;--hn-font-sans:"IBM Plex Sans", "Noto Sans SC", sans-serif;--hn-font-mono:"IBM Plex Mono", monospace;--hn-radius-sm:6px;--hn-radius-md:8px;--hn-radius-lg:12px;--hn-focus-ring:0 0 0 3px #9197ff6b;--hn-transition:.14s cubic-bezier(.2, .8, .2, 1)}}@layer hamster-note.components{.hn-badge{border:1px solid var(--hn-color-border);border-radius:var(--hn-radius-sm);min-height:22px;font-family:var(--hn-font-mono);color:var(--hn-color-text-muted);background:#ffffff0a;align-items:center;gap:6px;padding:2px 8px;font-size:11px;font-weight:550;line-height:1.2;display:inline-flex}.hn-badge:before{content:"";background:currentColor;border-radius:50%;width:5px;height:5px}.hn-badge--accent{color:#aeb2ff;background:#7c83ff1a;border-color:#7c83ff3d}.hn-badge--success{color:var(--hn-color-success);background:#4ade8017;border-color:#4ade8038}.hn-badge--warning{color:var(--hn-color-warning);background:#fbbf2417;border-color:#fbbf2438}.hn-badge--danger{color:var(--hn-color-danger);background:#fb718517;border-color:#fb718538}.hn-button{border-radius:var(--hn-radius-md);min-height:36px;font-family:var(--hn-font-sans);color:var(--hn-color-text);cursor:pointer;transition:background-color var(--hn-transition),border-color var(--hn-transition),color var(--hn-transition),opacity var(--hn-transition);border:1px solid #0000;justify-content:center;align-items:center;gap:8px;padding:0 14px;font-size:13px;font-weight:600;line-height:1;display:inline-flex}.hn-button:focus-visible{box-shadow:var(--hn-focus-ring);outline:none}.hn-button:disabled{cursor:not-allowed;opacity:.42}.hn-button--primary{background:var(--hn-color-accent);color:#09090b}.hn-button--primary:hover:not(:disabled){background:var(--hn-color-accent-hover)}.hn-button--secondary{border-color:var(--hn-color-border);background:var(--hn-color-surface)}.hn-button--secondary:hover:not(:disabled){border-color:var(--hn-color-border-strong);background:var(--hn-color-surface-hover)}.hn-button--ghost{color:var(--hn-color-text-muted);background:0 0}.hn-button--ghost:hover:not(:disabled){background:var(--hn-color-surface-hover);color:var(--hn-color-text)}.hn-button--small{min-height:30px;padding:0 11px;font-size:12px}.hn-button--large{min-height:42px;padding:0 18px;font-size:14px}@media(prefers-reduced-motion:reduce){.hn-button{transition-duration:.01ms}}.hn-dialog__backdrop{z-index:1100;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#00000073;transition:opacity .14s cubic-bezier(.2,.8,.2,1);position:fixed;inset:0}.hn-dialog__backdrop[data-state=enter]{opacity:1}.hn-dialog__backdrop[data-state=exit]{opacity:0}.hn-dialog__panel{z-index:1100;border:1px solid var(--hn-color-border);border-radius:var(--hn-radius-lg);background:var(--hn-color-surface);width:auto;min-width:320px;max-width:calc(100vw - 32px);max-height:calc(100vh - 64px);color:var(--hn-color-text);font-family:var(--hn-font-sans);flex-direction:column;padding:20px 24px;transition:opacity .14s cubic-bezier(.2,.8,.2,1),transform .18s cubic-bezier(.2,.8,.2,1);display:flex;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);box-shadow:0 16px 48px #00000052}.hn-dialog__panel[data-state=enter]{opacity:1;transform:translate(-50%,-50%)}.hn-dialog__panel[data-state=exit],.hn-dialog__panel{opacity:0;transform:translate(-50%,calc(8px - 50%))}.hn-dialog__panel:focus-visible{box-shadow:var(--hn-focus-ring),0 16px 48px #00000052;outline:none}.hn-dialog__title{letter-spacing:-.01em;color:var(--hn-color-text);margin:0 0 4px;font-size:18px;font-weight:550;line-height:1.45}.hn-dialog__description{color:var(--hn-color-text-muted);margin:0;font-size:13px;line-height:1.65}.hn-dialog__content{margin-top:16px}.hn-dialog__panel:not(:has(.hn-dialog__title)) .hn-dialog__content{margin-top:0}@media(prefers-reduced-motion:reduce){.hn-dialog__backdrop,.hn-dialog__panel{transition-duration:.01ms}}.hn-confirm__footer{justify-content:flex-end;gap:8px;margin-top:20px;display:flex}.hn-confirm__footer[data-tone=danger] .hn-button--primary{background:var(--hn-color-danger);color:#09090b}.hn-confirm__footer[data-tone=danger] .hn-button--primary:hover:not(:disabled){background:color-mix(in srgb,var(--hn-color-danger) 88%,white)}.hn-drawer__backdrop{z-index:1200;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#00000073;transition:opacity .14s cubic-bezier(.2,.8,.2,1);position:fixed;inset:0}.hn-drawer__backdrop[data-state=enter]{opacity:1}.hn-drawer__backdrop[data-state=exit]{opacity:0}.hn-drawer__panel{z-index:1200;border:1px solid var(--hn-color-border);background:var(--hn-color-surface);max-width:100vw;max-height:100vh;color:var(--hn-color-text);font-family:var(--hn-font-sans);opacity:0;flex-direction:column;padding:20px 24px;transition:opacity .14s cubic-bezier(.2,.8,.2,1),transform .18s cubic-bezier(.2,.8,.2,1);display:flex;position:fixed;box-shadow:0 16px 48px #00000052}.hn-drawer__panel:focus-visible{box-shadow:var(--hn-focus-ring),0 16px 48px #00000052;outline:none}.hn-drawer__panel--left,.hn-drawer__panel--right{width:var(--hn-drawer-size,360px);max-width:100vw;height:100vh;top:0;bottom:0}.hn-drawer__panel--left{border-radius:0 var(--hn-radius-lg) var(--hn-radius-lg) 0;left:0;transform:translate(-100%)}.hn-drawer__panel--right{border-radius:var(--hn-radius-lg) 0 0 var(--hn-radius-lg);right:0;transform:translate(100%)}.hn-drawer__panel--left[data-state=enter],.hn-drawer__panel--right[data-state=enter]{opacity:1;transform:translate(0)}.hn-drawer__panel--left[data-state=exit]{opacity:0;transform:translate(-100%)}.hn-drawer__panel--right[data-state=exit]{opacity:0;transform:translate(100%)}.hn-drawer__panel--top,.hn-drawer__panel--bottom{width:100vw;height:var(--hn-drawer-size,280px);max-height:100vh;left:0;right:0}.hn-drawer__panel--top{border-radius:0 0 var(--hn-radius-lg) var(--hn-radius-lg);top:0;transform:translateY(-100%)}.hn-drawer__panel--bottom{border-radius:var(--hn-radius-lg) var(--hn-radius-lg) 0 0;bottom:0;transform:translateY(100%)}.hn-drawer__panel--top[data-state=enter],.hn-drawer__panel--bottom[data-state=enter]{opacity:1;transform:translateY(0)}.hn-drawer__panel--top[data-state=exit]{opacity:0;transform:translateY(-100%)}.hn-drawer__panel--bottom[data-state=exit]{opacity:0;transform:translateY(100%)}.hn-drawer__title{letter-spacing:-.01em;color:var(--hn-color-text);margin:0 0 4px;font-size:18px;font-weight:550;line-height:1.45}.hn-drawer__description{color:var(--hn-color-text-muted);margin:0;font-size:13px;line-height:1.65}.hn-drawer__content{flex:auto;margin-top:16px;overflow:auto}.hn-drawer__panel:not(:has(.hn-drawer__title)) .hn-drawer__content{margin-top:0}@media(prefers-reduced-motion:reduce){.hn-drawer__backdrop,.hn-drawer__panel{transition-duration:.01ms}}.hn-icon{vertical-align:-.125em;pointer-events:none;flex-shrink:0;justify-content:center;align-items:center;line-height:0;display:inline-flex}.hn-kbd{font-family:var(--hn-font-mono);color:var(--hn-color-text);white-space:nowrap;vertical-align:baseline;align-items:center;gap:4px;font-size:11px;line-height:1;display:inline-flex}.hn-kbd__key{border:1px solid color-mix(in srgb,var(--hn-color-text) 22%,transparent);border-radius:var(--hn-radius-sm);background:var(--hn-color-surface-hover);min-width:18px;color:var(--hn-color-text);vertical-align:baseline;white-space:nowrap;-webkit-user-select:none;user-select:none;justify-content:center;align-items:center;padding:2px 6px;font-family:inherit;font-size:11px;font-weight:500;line-height:1;display:inline-flex;box-shadow:inset 0 -1px #0000001f}.hn-kbd__plus{color:var(--hn-color-text-muted);-webkit-user-select:none;user-select:none;font-family:inherit;font-size:11px;font-weight:400;line-height:1}.hn-loading{color:var(--hn-color-accent);font-family:var(--hn-font-sans);justify-content:center;align-items:center;gap:8px;line-height:0;display:inline-flex}.hn-loading__spinner{animation:hn-loading-spin var(--hn-loading-duration,.9s) linear infinite;transform-origin:50%;flex-shrink:0;display:block}.hn-loading__text{color:var(--hn-color-text-muted);white-space:nowrap;font-size:13px;line-height:1.5}.hn-loading--small .hn-loading__text{font-size:12px}.hn-loading--large .hn-loading__text{font-size:14px}.hn-loading--cover{background:color-mix(in srgb,var(--hn-color-surface) 72%,transparent);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);border-radius:inherit;color:var(--hn-color-accent);flex-direction:column;gap:12px;position:absolute;inset:0}.hn-loading--cover .hn-loading__text{color:var(--hn-color-text)}.hn-loading-overlay{z-index:1200;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);color:var(--hn-color-accent);font-family:var(--hn-font-sans);background:#00000073;flex-direction:column;justify-content:center;align-items:center;gap:14px;animation:.14s cubic-bezier(.2,.8,.2,1) hn-loading-overlay-fade;display:flex;position:fixed;inset:0}.hn-loading-overlay .hn-loading__text{color:var(--hn-color-text);font-size:14px}@keyframes hn-loading-spin{to{transform:rotate(360deg)}}@keyframes hn-loading-overlay-fade{0%{opacity:0}to{opacity:1}}@media(prefers-reduced-motion:reduce){.hn-loading__spinner{animation-duration:2.4s;animation-timing-function:steps(12,end)}.hn-loading-overlay{animation-duration:.01ms}}.hn-popover{--hn-popover-background:#1e293bcc;--hn-popover-border:#ffffff1a;--hn-popover-separator:#ffffff2e;--hn-color-surface:#111114;--hn-color-surface-hover:#ffffff1a;--hn-color-text:#f8fafc;--hn-color-text-muted:#cbd5e1;--hn-color-border:#ffffff1a;--hn-color-border-strong:#ffffff2b;--hn-popover-padding:5px;max-width:100%;padding:var(--hn-popover-padding);border:1px solid var(--hn-popover-border);border-radius:calc(var(--hn-radius-md) + var(--hn-popover-padding));background:var(--hn-popover-background);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);color:var(--hn-color-text);font-family:var(--hn-font-sans);align-items:center;gap:3px;display:inline-flex;box-shadow:0 8px 24px #0f172a47}.hn-popover[data-theme=light]{--hn-popover-background:#fffc;--hn-popover-border:#0f172a1f;--hn-popover-separator:#0f172a29;--hn-color-surface:#fff;--hn-color-surface-hover:#f1f5f9;--hn-color-text:#1e293b;--hn-color-text-muted:#64748b;--hn-color-border:#0000001a;--hn-color-border-strong:#0000002e;box-shadow:0 8px 24px #0f172a29}.hn-popover--floating{z-index:1000}.hn-popover[data-orientation=vertical]{flex-direction:column}.hn-popover__separator{background:var(--hn-popover-separator);border:0;flex:0 0 1px;width:1px;height:20px;margin:0 4px;padding:0}.hn-popover[data-orientation=vertical] .hn-popover__separator{flex:0 0 1px;width:20px;height:1px;margin:4px 0}.hn-menu{min-width:180px;font-family:var(--hn-font-sans);color:var(--hn-color-text);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-radius:var(--hn-radius-md);background:#1e293bcc;flex-direction:column;gap:2px;padding:4px;display:flex}.hn-menu__item{border-radius:var(--hn-radius-md);width:100%;min-height:32px;color:var(--hn-color-text);cursor:pointer;text-align:left;transition:background-color var(--hn-transition),color var(--hn-transition);background:0 0;border:0;justify-content:space-between;align-items:center;gap:12px;padding:0 10px;font-size:13px;line-height:1;display:flex}.hn-menu__item:hover:not(:disabled){background:var(--hn-color-surface-hover)}.hn-menu__item:focus-visible{box-shadow:var(--hn-focus-ring);outline:none}.hn-menu__item:disabled{cursor:not-allowed;opacity:.42}.hn-menu__item--danger{color:var(--hn-color-danger)}.hn-menu__item-label{flex:auto;min-width:0}.hn-menu__shortcut{font:400 11px/1 var(--hn-font-mono);color:var(--hn-color-text-muted);flex-shrink:0;align-items:center;display:inline-flex}.hn-menu__separator{background:var(--hn-popover-separator,var(--hn-color-border));border:0;height:1px;margin:4px 2px}.hn-menu__label{color:var(--hn-color-text-muted);-webkit-user-select:none;user-select:none;padding:4px 10px 2px;font-size:11px;line-height:1}.hn-menu__submenu{display:block}.hn-menu__submenu--open>.hn-menu__submenu-trigger{background:var(--hn-color-surface-hover)}.hn-menu__submenu-chevron{font:400 11px/1 var(--hn-font-sans);color:var(--hn-color-text-muted);transition:transform var(--hn-transition);flex-shrink:0;align-items:center;display:inline-flex}.hn-menu__submenu--open>.hn-menu__submenu-trigger .hn-menu__submenu-chevron{transform:rotate(90deg)}.hn-menu__submenu-panel{z-index:1000}.hn-menu__submenu-panel .hn-menu{min-width:160px}@media(prefers-reduced-motion:reduce){.hn-menu__item,.hn-menu__submenu-chevron{transition-duration:.01ms}}.hn-note-card{box-sizing:border-box;border:1px solid var(--hn-color-border);border-radius:var(--hn-radius-lg);background:var(--hn-color-surface);width:100%;font-family:var(--hn-font-sans);color:var(--hn-color-text);text-align:left;transition:background-color var(--hn-transition),border-color var(--hn-transition),transform .18s cubic-bezier(.2,.8,.2,1);gap:14px;padding:18px;display:grid;position:relative}.hn-note-card__action{z-index:1;border-radius:inherit;cursor:pointer;background:0 0;border:0;position:absolute;inset:0}.hn-note-card--interactive:has(.hn-note-card__action:hover){border-color:var(--hn-color-border-strong);background:var(--hn-color-surface-hover);transform:translateY(-1px)}.hn-note-card--interactive:has(.hn-note-card__action:focus-visible){box-shadow:var(--hn-focus-ring);outline:none}.hn-note-card__action:focus-visible{outline:none}.hn-note-card--selected{background:#7c83ff14;border-color:#7c83ff73}.hn-note-card__heading{gap:5px;display:grid}.hn-note-card__title,.hn-note-card__excerpt,.hn-note-card__meta{margin:0}.hn-note-card__title{letter-spacing:-.01em;font-size:15px;font-weight:600;line-height:1.35}.hn-note-card__excerpt{color:var(--hn-color-text-muted);text-wrap:pretty;font-size:13px;line-height:1.6}.hn-note-card__meta{font-family:var(--hn-font-mono);color:#70707b;font-size:11px;line-height:1.4}@media(prefers-reduced-motion:reduce){.hn-note-card{transition-duration:.01ms}}.hn-text-field{width:100%;font-family:var(--hn-font-sans);gap:7px;display:grid}.hn-text-field__label{color:var(--hn-color-text);font-size:12px;font-weight:600;line-height:1.3}.hn-text-field__control{box-sizing:border-box;border:1px solid var(--hn-color-border);border-radius:var(--hn-radius-md);background:var(--hn-color-surface);width:100%;min-height:38px;font:400 14px/1.4 var(--hn-font-sans);color:var(--hn-color-text);transition:border-color var(--hn-transition),background-color var(--hn-transition),box-shadow var(--hn-transition);outline:none;padding:8px 11px}.hn-text-field__control::placeholder{color:#666670}.hn-text-field__control:hover:not(:disabled){border-color:var(--hn-color-border-strong)}.hn-text-field__control:focus-visible{border-color:var(--hn-color-accent);background:var(--hn-color-surface-hover);box-shadow:var(--hn-focus-ring);outline:none}.hn-text-field__control:disabled{cursor:not-allowed;opacity:.48}.hn-text-field--invalid .hn-text-field__control{border-color:#fb718599}.hn-text-field__message{color:var(--hn-color-text-muted);margin:0;font-size:12px;line-height:1.4}.hn-text-field--invalid .hn-text-field__message{color:var(--hn-color-danger)}@media(prefers-reduced-motion:reduce){.hn-text-field__control{transition-duration:.01ms}}.hn-theme{display:contents}.hn-theme[data-accent=custom]{--hn-color-accent-hover:color-mix(in srgb, var(--hn-color-accent), #fff 16%);--hn-focus-ring:0 0 0 3px color-mix(in srgb, var(--hn-color-accent) 42%, transparent)}}.hn-theme[data-mode=light]{--hn-color-surface:#fff;--hn-color-surface-hover:#f4f4f6;--hn-color-text:#18181b;--hn-color-text-muted:#63636d;--hn-color-border:#0000001a;--hn-color-border-strong:#0000002e;--hn-color-danger:#e11d48;--hn-color-success:#16a34a;--hn-color-warning:#d97706}.hn-theme[data-mode=dark]{--hn-color-surface:#111114;--hn-color-surface-hover:#17171b;--hn-color-text:#f4f4f5;--hn-color-text-muted:#92929d;--hn-color-border:#ffffff1a;--hn-color-border-strong:#ffffff2b;--hn-color-danger:#fb7185;--hn-color-success:#4ade80;--hn-color-warning:#fbbf24}.hn-reference-menu{position:fixed;z-index:10000;display:grid;width:min(260px,calc(100vw - 24px));max-height:min(18rem,calc(100vh - 24px));gap:.15rem;padding:.3rem;overflow-y:auto;border-radius:10px;background:#1e293b;box-shadow:0 8px 24px #0f172a47;animation:hn-reference-popover-in .12s ease}@keyframes hn-reference-popover-in{0%{opacity:0}to{opacity:1}}.hn-reference-option{display:flex;width:100%;align-items:center;gap:.55rem;padding:.5rem .65rem;border:0;border-radius:7px;background:transparent;color:#e2e8f0;font:inherit;text-align:left;cursor:pointer;-webkit-user-select:none;user-select:none}.hn-reference-option:hover,.hn-reference-option[aria-selected=true]{background:#ffffff24;color:#fff}.hn-reference-option:focus-visible{outline:2px solid var(--hn-theme);outline-offset:-2px}.hn-reference-option-mark{font-weight:700}.hn-reference-empty{padding:.5rem .65rem;color:#e2e8f099;font-size:.8rem;text-align:left;cursor:default}@media(max-width:840px){.hn-reference-menu{width:min(240px,calc(100vw - 24px))}}@media(prefers-reduced-motion:reduce){.hn-reference-menu{animation:none}}.hn-editor-content .hn-editor-mention[data-hnn-resolve-status=loading],.hn-editor-content .hn-editor-resource[data-hnn-resolve-status=loading],.hn-editor-content .hn-editor-external-item[data-hnn-resolve-status=loading]{opacity:.55}.hn-editor-content .hn-editor-mention[data-hnn-resolve-status=missing],.hn-editor-content .hn-editor-resource[data-hnn-resolve-status=missing],.hn-editor-content .hn-editor-external-item[data-hnn-resolve-status=missing]{opacity:.7}.hn-editor-content .hn-editor-mention[data-hnn-resolve-status=missing]:after,.hn-editor-content .hn-editor-resource[data-hnn-resolve-status=missing]:after,.hn-editor-content .hn-editor-external-item[data-hnn-resolve-status=missing]:after{content:"?";color:var(--hn-text-muted, rgba(51, 65, 85, .65))}.hn-editor-content .hn-editor-mention[data-hnn-resolve-status=error]:after,.hn-editor-content .hn-editor-resource[data-hnn-resolve-status=error]:after,.hn-editor-content .hn-editor-external-item[data-hnn-resolve-status=error]:after{content:"!";color:var(--hn-text-muted, rgba(51, 65, 85, .65))}.hn-editor-content [data-hnn-node][role=link]{cursor:pointer}.hn-editor-content [data-hnn-node][role=link]:focus-visible{outline:2px solid var(--hn-theme, #3b82f6);outline-offset:1px;border-radius:4px}.hn-editor-content .hn-editor-external-item[role=link]:hover .hn-editor-external-item-name,.hn-editor-content .hn-editor-external-item[role=link]:focus-visible .hn-editor-external-item-name{text-decoration-color:var(--hn-theme-text, color-mix(in srgb, var(--hn-theme, #3b82f6) 75%, #1e293b))}.hn-markdown-export{display:inline-flex;flex-wrap:wrap;align-items:center;gap:.3rem .75rem;box-sizing:border-box;background:transparent;font-size:.85rem;line-height:1.55}.hn-markdown-export--light{--hn-theme-soft: color-mix(in srgb, var(--hn-theme, #3b82f6) 12%, white);--hn-theme-border: color-mix(in srgb, var(--hn-theme, #3b82f6) 30%, transparent);--hn-theme-text: color-mix(in srgb, var(--hn-theme, #3b82f6) 75%, #1e293b);--hn-bg: #ffffff;--hn-surface: #f8fafc;--hn-surface-hover: #f1f5f9;--hn-border: rgba(15, 23, 42, .08);--hn-border-strong: rgba(15, 23, 42, .14);--hn-text: #1e293b;--hn-text-muted: rgba(51, 65, 85, .65);--hn-text-soft: rgba(51, 65, 85, .85);color-scheme:light}.hn-markdown-export--dark{--hn-theme-soft: color-mix(in srgb, var(--hn-theme, #3b82f6) 18%, #111827);--hn-theme-border: color-mix(in srgb, var(--hn-theme, #3b82f6) 48%, transparent);--hn-theme-text: color-mix(in srgb, var(--hn-theme, #3b82f6) 55%, #f8fafc);--hn-bg: #0f172a;--hn-surface: #172033;--hn-surface-hover: #202b3f;--hn-border: rgba(226, 232, 240, .12);--hn-border-strong: rgba(226, 232, 240, .22);--hn-text: #f1f5f9;--hn-text-muted: rgba(203, 213, 225, .72);--hn-text-soft: rgba(226, 232, 240, .88);color-scheme:dark}.hn-markdown-export__trigger{appearance:none;margin:0;padding:.22rem .85rem;border:1px solid var(--hn-border-strong, rgba(15, 23, 42, .14));border-radius:999px;background:transparent;color:var(--hn-text-soft, rgba(51, 65, 85, .85));font:inherit;font-size:.8rem;font-weight:600;line-height:1.5;cursor:pointer;white-space:nowrap}.hn-markdown-export__trigger:hover:not(:disabled){background:var(--hn-surface-hover, #f1f5f9);color:var(--hn-text, #1e293b)}.hn-markdown-export__trigger:focus-visible{outline:none;box-shadow:0 0 0 2px var(--hn-theme, #3b82f6)}.hn-markdown-export__trigger:disabled{opacity:.55;cursor:default}.hn-markdown-export__status{color:var(--hn-text-muted, rgba(51, 65, 85, .65))}.hn-markdown-export__status:empty{display:none}.hn-markdown-export__error{margin:0;flex:1 1 100%;color:var(--hn-text, #1e293b);overflow-wrap:break-word}.hn-markdown-export-drawer-body{display:flex;flex-direction:column;gap:.75rem;min-height:0;color:var(--hn-text-soft, rgba(51, 65, 85, .85));font-size:.9rem;line-height:1.6}.hn-markdown-export-drawer-error{margin:0;color:var(--hn-text, #1e293b);font-weight:600}.hn-markdown-export-drawer-error[hidden]{display:none}.hn-markdown-export-drawer-lead{margin:0}.hn-markdown-export-diagnostics{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:.5rem;overflow:auto;min-height:0}.hn-markdown-export-diagnostic{display:flex;flex-direction:column;gap:.1rem;padding-left:.6rem;border-left:3px solid var(--hn-theme-border, rgba(59, 130, 246, .3))}.hn-markdown-export-diagnostic-message{color:var(--hn-text, #1e293b);overflow-wrap:break-word}.hn-markdown-export-diagnostic-meta{color:var(--hn-text-muted, rgba(51, 65, 85, .65));font-size:.78rem;overflow-wrap:break-word}.hn-markdown-export-preview{margin:0;padding:.75rem .9rem;border:1px solid var(--hn-border, rgba(15, 23, 42, .08));border-radius:10px;background:var(--hn-surface, #f8fafc);color:var(--hn-text-soft, rgba(51, 65, 85, .85));font-family:var(--hn-code-font, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-size:.8rem;line-height:1.7;white-space:pre-wrap;overflow-wrap:break-word;overflow:auto;max-height:22vh}.hn-markdown-export-preview:focus-visible{outline:none;box-shadow:0 0 0 2px var(--hn-theme, #3b82f6)}.hn-markdown-export-drawer-footer{display:flex;justify-content:flex-end}.hn-markdown-export-drawer-actions{display:inline-flex;flex-wrap:wrap;gap:.5rem}@media(prefers-reduced-motion:reduce){.hn-markdown-export__trigger{transition:none}}.hn-save-status{display:flex;flex-wrap:wrap;align-items:center;gap:.3rem .75rem;box-sizing:border-box;background:transparent;font-size:.85rem;line-height:1.55}.hn-save-status--light{--hn-theme-soft: color-mix(in srgb, var(--hn-theme, #3b82f6) 12%, white);--hn-theme-border: color-mix(in srgb, var(--hn-theme, #3b82f6) 30%, transparent);--hn-theme-text: color-mix(in srgb, var(--hn-theme, #3b82f6) 75%, #1e293b);--hn-bg: #ffffff;--hn-surface: #f8fafc;--hn-surface-hover: #f1f5f9;--hn-border: rgba(15, 23, 42, .08);--hn-border-strong: rgba(15, 23, 42, .14);--hn-text: #1e293b;--hn-text-muted: rgba(51, 65, 85, .65);--hn-text-soft: rgba(51, 65, 85, .85);color-scheme:light}.hn-save-status--dark{--hn-theme-soft: color-mix(in srgb, var(--hn-theme, #3b82f6) 18%, #111827);--hn-theme-border: color-mix(in srgb, var(--hn-theme, #3b82f6) 48%, transparent);--hn-theme-text: color-mix(in srgb, var(--hn-theme, #3b82f6) 55%, #f8fafc);--hn-bg: #0f172a;--hn-surface: #172033;--hn-surface-hover: #202b3f;--hn-border: rgba(226, 232, 240, .12);--hn-border-strong: rgba(226, 232, 240, .22);--hn-text: #f1f5f9;--hn-text-muted: rgba(203, 213, 225, .72);--hn-text-soft: rgba(226, 232, 240, .88);color-scheme:dark}.hn-save-status__message{margin:0;display:inline-flex;align-items:baseline;gap:.4rem;flex:1 1 14ch;min-width:0;overflow-wrap:break-word}.hn-save-status--clean{color:var(--hn-text-muted, rgba(51, 65, 85, .65))}.hn-save-status--dirty{color:var(--hn-text-soft, rgba(51, 65, 85, .85))}.hn-save-status--attention{color:var(--hn-text, #1e293b)}.hn-save-status__glyph{flex:none}.hn-save-status__text{min-width:0}.hn-save-status__detail{display:block;margin-top:.1rem;color:var(--hn-text-muted, rgba(51, 65, 85, .65));font-size:.8rem}.hn-save-status__spinner{flex:none;align-self:center;width:.75em;height:.75em;border:2px solid var(--hn-theme-border, rgba(59, 130, 246, .3));border-top-color:var(--hn-theme, #3b82f6);border-radius:50%;animation:hn-save-status-spin .8s linear infinite}@keyframes hn-save-status-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.hn-save-status__spinner{animation:none}}.hn-save-status__button{flex:none;appearance:none;margin:0;padding:.22rem .85rem;border:1px solid var(--hn-border-strong, rgba(15, 23, 42, .14));border-radius:999px;background:transparent;color:var(--hn-text-soft, rgba(51, 65, 85, .85));font:inherit;font-size:.8rem;font-weight:600;line-height:1.5;cursor:pointer;white-space:nowrap}.hn-save-status__button:hover:not(:disabled){background:var(--hn-surface-hover, #f1f5f9);color:var(--hn-text, #1e293b)}.hn-save-status__button:focus-visible{outline:none;box-shadow:0 0 0 2px var(--hn-theme, #3b82f6)}.hn-save-status__button:disabled{opacity:.55;cursor:default}
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hamster-note/notes",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "React components for note content rendering and presentation.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
|
+
"homepage": "https://hamsternote.github.io/notes/",
|
|
7
8
|
"repository": {
|
|
8
9
|
"type": "git",
|
|
9
10
|
"url": "https://github.com/HamsterNote/notes"
|
|
@@ -57,16 +58,17 @@
|
|
|
57
58
|
"lint:fix": "eslint . --fix",
|
|
58
59
|
"format": "prettier . --write",
|
|
59
60
|
"release:prepare": "node ./scripts/prepare-release.mjs",
|
|
60
|
-
"test": "vitest run"
|
|
61
|
+
"test": "vitest run",
|
|
62
|
+
"verify:tiptap-deps": "node ./scripts/verify-tiptap-deps.mjs",
|
|
63
|
+
"verify:legacy-api": "node ./scripts/scan-legacy-public-api.mjs",
|
|
64
|
+
"verify:phase1-scope": "node ./scripts/verify-phase1-scope.mjs"
|
|
61
65
|
},
|
|
62
66
|
"peerDependencies": {
|
|
63
|
-
"@system-ui-js/multi-drag": "^0.4.0",
|
|
64
67
|
"react": "^19.0.0",
|
|
65
68
|
"react-dom": "^19.0.0"
|
|
66
69
|
},
|
|
67
70
|
"devDependencies": {
|
|
68
71
|
"@eslint/js": "^9.31.0",
|
|
69
|
-
"@hamster-note/cards": "0.3.2",
|
|
70
72
|
"@testing-library/dom": "^10.4.0",
|
|
71
73
|
"@testing-library/react": "^16.3.2",
|
|
72
74
|
"@types/mdast": "^4.0.4",
|
|
@@ -74,7 +76,6 @@
|
|
|
74
76
|
"@types/react": "^19.1.8",
|
|
75
77
|
"@types/react-dom": "^19.1.6",
|
|
76
78
|
"@types/unist": "^3.0.3",
|
|
77
|
-
"@system-ui-js/multi-drag": "^0.4.0",
|
|
78
79
|
"@vitejs/plugin-react": "^5.0.0",
|
|
79
80
|
"eslint": "^9.31.0",
|
|
80
81
|
"eslint-config-prettier": "^10.1.5",
|
|
@@ -98,8 +99,12 @@
|
|
|
98
99
|
"dependencies": {
|
|
99
100
|
"@hamster-note/components": "^0.2.1-beta.2",
|
|
100
101
|
"@hamster-note/painting": "0.2.0",
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
"
|
|
102
|
+
"@tiptap/core": "3.31.3",
|
|
103
|
+
"@tiptap/extension-list": "3.31.3",
|
|
104
|
+
"@tiptap/extension-table": "3.31.3",
|
|
105
|
+
"@tiptap/pm": "3.31.3",
|
|
106
|
+
"@tiptap/react": "3.31.3",
|
|
107
|
+
"@tiptap/starter-kit": "3.31.3",
|
|
108
|
+
"katex": "^0.17.0"
|
|
104
109
|
}
|
|
105
110
|
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { BlockConvertTarget } from './BlockActionMenuTypes';
|
|
2
|
-
import { NoteBlock } from './types';
|
|
3
|
-
export type { BlockConvertTarget } from './BlockActionMenuTypes';
|
|
4
|
-
export type PictureUploadPayload = {
|
|
5
|
-
readonly base64: string;
|
|
6
|
-
readonly filename: string;
|
|
7
|
-
readonly width: number | undefined;
|
|
8
|
-
readonly height: number | undefined;
|
|
9
|
-
};
|
|
10
|
-
export type BlockActionMenuProps = {
|
|
11
|
-
/** 菜单是否打开,由父组件统一控制,便于和 SelectionPopover 互斥 */
|
|
12
|
-
readonly open: boolean;
|
|
13
|
-
/** 受控开闭回调:handle、Escape、外部点击、格式选择都会通过它关闭菜单 */
|
|
14
|
-
readonly onOpenChange: (open: boolean) => void;
|
|
15
|
-
/** 所属区块 ID(渲染为 data-block-id 供 Wave 4.2 定位) */
|
|
16
|
-
readonly blockId: string;
|
|
17
|
-
/** 当前区块类型 */
|
|
18
|
-
readonly kind: NoteBlock["kind"];
|
|
19
|
-
/** 标题层级,kind === "heading" 时由父组件传入 */
|
|
20
|
-
readonly headingLevel?: 1 | 2 | 3 | 4 | 5;
|
|
21
|
-
/**
|
|
22
|
-
* 菜单项选择回调。
|
|
23
|
-
* convert 模式下用于转换当前块格式,add 模式下用于在当前块下方插入新块。
|
|
24
|
-
* 返回值是操作完成后需要聚焦的编辑元素 ID。
|
|
25
|
-
*/
|
|
26
|
-
readonly onSelect: (target: BlockConvertTarget) => string;
|
|
27
|
-
readonly onPictureUpload?: (picture: PictureUploadPayload) => Promise<void>;
|
|
28
|
-
/** 菜单模式:convert(默认)表示转换当前块,add 表示插入新块 */
|
|
29
|
-
readonly mode?: "convert" | "add";
|
|
30
|
-
/**
|
|
31
|
-
* convert 模式专用:点击主菜单"删除"项时触发。
|
|
32
|
-
* 返回需要被聚焦的编辑元素 ID;无返回值则不主动改变焦点。
|
|
33
|
-
*/
|
|
34
|
-
readonly onDelete?: () => string | undefined;
|
|
35
|
-
/**
|
|
36
|
-
* convert 模式专用:点击主菜单"创建副本"项时触发。
|
|
37
|
-
* 返回新副本块的 id,组件会自动把焦点切到此 id 的可编辑起点。
|
|
38
|
-
*/
|
|
39
|
-
readonly onDuplicate?: () => string | undefined;
|
|
40
|
-
};
|
|
41
|
-
export declare const triggerBlockActionMenu: (handle: HTMLButtonElement, anchor: HTMLElement) => void;
|
|
42
|
-
/**
|
|
43
|
-
* 区块操作菜单:左侧 handle 按钮 + portal 菜单。
|
|
44
|
-
*
|
|
45
|
-
* - handle 点击/Enter 切换菜单开闭。
|
|
46
|
-
* - 菜单通过 createPortal 渲染到 document.body,脱离 overflow 容器。
|
|
47
|
-
* - 宽屏定位在 handle 右侧;窄屏水平居中。
|
|
48
|
-
* - 支持 ↑/↓ 键盘导航、Enter/Space 激活、Escape / 外部点击关闭。
|
|
49
|
-
* - add 模式:扁平的 blockMenuItems 列表(与历史行为一致)。
|
|
50
|
-
* - convert 模式:主菜单含"转换成 / 删除 / 创建副本"三项;
|
|
51
|
-
* "转换成"项点击或 Enter 后展开右侧子菜单,子菜单内含原 blockMenuItems + 图片上传。
|
|
52
|
-
* Escape 优先关子菜单,再次 Escape 关主菜单。
|
|
53
|
-
*/
|
|
54
|
-
export declare const BlockActionMenu: ({ open, onOpenChange, blockId, kind, headingLevel, onSelect, onPictureUpload, mode, onDelete, onDuplicate }: BlockActionMenuProps) => import("react").JSX.Element;
|
|
55
|
-
//# sourceMappingURL=BlockActionMenu.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BlockActionMenu.d.ts","sourceRoot":"","sources":["../../src/lib/BlockActionMenu.tsx"],"names":[],"mappings":"AAYA,OAAO,cAAc,CAAA;AAErB,OAAO,EACL,KAAK,kBAAkB,EAMxB,MAAM,wBAAwB,CAAA;AAE/B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAKxC,YAAY,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AAEhE,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;IAClC,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;CACpC,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG;IACjC,8CAA8C;IAC9C,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAA;IACtB,8CAA8C;IAC9C,QAAQ,CAAC,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IAC9C,+CAA+C;IAC/C,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,aAAa;IACb,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC,MAAM,CAAC,CAAA;IAChC,sCAAsC;IACtC,QAAQ,CAAC,YAAY,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;IACzC;;;;OAIG;IACH,QAAQ,CAAC,QAAQ,EAAE,CAAC,MAAM,EAAE,kBAAkB,KAAK,MAAM,CAAA;IACzD,QAAQ,CAAC,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,oBAAoB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;IAC3E,yCAAyC;IACzC,QAAQ,CAAC,IAAI,CAAC,EAAE,SAAS,GAAG,KAAK,CAAA;IACjC;;;OAGG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,MAAM,GAAG,SAAS,CAAA;IAC5C;;;OAGG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,MAAM,GAAG,SAAS,CAAA;CAChD,CAAA;AAmBD,eAAO,MAAM,sBAAsB,GACjC,QAAQ,iBAAiB,EACzB,QAAQ,WAAW,KAClB,IAIF,CAAA;AAID;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,eAAe,GAAI,6GAW7B,oBAAoB,gCA8gBtB,CAAA"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { BlockConvertTarget } from './blockConversion';
|
|
2
|
-
import { NoteBlock, NoteBlockKind } from './types';
|
|
3
|
-
export type { BlockConvertTarget } from './blockConversion';
|
|
4
|
-
export type HeadingMenuItem = {
|
|
5
|
-
readonly kind: "heading";
|
|
6
|
-
readonly level: 1 | 2 | 3 | 4 | 5;
|
|
7
|
-
readonly label: string;
|
|
8
|
-
};
|
|
9
|
-
export type StructuralMenuItem = {
|
|
10
|
-
readonly kind: "paragraph" | "todo" | "unorderedList" | "orderedList" | "quote" | "code" | "callout" | "table" | "formula" | "directory" | "collapsible" | "card" | "drawing";
|
|
11
|
-
readonly label: string;
|
|
12
|
-
};
|
|
13
|
-
export type MenuItem = HeadingMenuItem | StructuralMenuItem;
|
|
14
|
-
export declare const blockMenuItems: readonly MenuItem[];
|
|
15
|
-
export declare const isCurrentBlockMenuItem: (item: MenuItem, kind: NoteBlockKind, headingLevel?: 1 | 2 | 3 | 4 | 5) => boolean;
|
|
16
|
-
export declare const blockMenuItemTarget: (item: MenuItem) => BlockConvertTarget;
|
|
17
|
-
/**
|
|
18
|
-
* 返回某种 block kind 的人类可读标签。
|
|
19
|
-
* 接受 NoteBlock["kind"](包含 todo / unorderedList / orderedList 等列表类型),
|
|
20
|
-
* 以便列表块也能复用同一份标签逻辑。
|
|
21
|
-
*/
|
|
22
|
-
export declare const blockKindLabel: (kind: NoteBlock["kind"], headingLevel?: 1 | 2 | 3 | 4 | 5) => string;
|
|
23
|
-
//# sourceMappingURL=BlockActionMenuTypes.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BlockActionMenuTypes.d.ts","sourceRoot":"","sources":["../../src/lib/BlockActionMenuTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAGvD,YAAY,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA;AAE3D,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAA;IACxB,QAAQ,CAAC,KAAK,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;IACjC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CACvB,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC/B,QAAQ,CAAC,IAAI,EACT,WAAW,GACX,MAAM,GACN,eAAe,GACf,aAAa,GACb,OAAO,GACP,MAAM,GACN,SAAS,GACT,OAAO,GACP,SAAS,GACT,WAAW,GACX,aAAa,GACb,MAAM,GACN,SAAS,CAAA;IACb,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CACvB,CAAA;AAED,MAAM,MAAM,QAAQ,GAAG,eAAe,GAAG,kBAAkB,CAAA;AAE3D,eAAO,MAAM,cAAc,EAAE,SAAS,QAAQ,EAmB0B,CAAA;AAExE,eAAO,MAAM,sBAAsB,GACjC,MAAM,QAAQ,EACd,MAAM,aAAa,EACnB,eAAe,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,KAC/B,OAGqB,CAAA;AAExB,eAAO,MAAM,mBAAmB,GAAI,MAAM,QAAQ,KAAG,kBAqBpD,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,cAAc,GACzB,MAAM,SAAS,CAAC,MAAM,CAAC,EACvB,eAAe,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,KAC/B,MAqCF,CAAA"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { RefObject } from 'react';
|
|
2
|
-
export type BottomBlockTarget = {
|
|
3
|
-
readonly sourceId: string;
|
|
4
|
-
readonly addLabel: string;
|
|
5
|
-
readonly convertLabel: string;
|
|
6
|
-
readonly addExpanded: boolean;
|
|
7
|
-
readonly convertExpanded: boolean;
|
|
8
|
-
};
|
|
9
|
-
export declare const resolveBottomBlockTarget: (target: EventTarget | null, body: HTMLElement) => BottomBlockTarget | null;
|
|
10
|
-
export declare const resolveBottomBlockTargetBySource: (body: HTMLElement, sourceId: string | null) => BottomBlockTarget | null;
|
|
11
|
-
type BottomBlockControlsProps = {
|
|
12
|
-
readonly shellRef: RefObject<HTMLElement | null>;
|
|
13
|
-
readonly target: BottomBlockTarget | null;
|
|
14
|
-
};
|
|
15
|
-
export declare const BottomBlockControls: ({ shellRef, target }: BottomBlockControlsProps) => import("react").JSX.Element;
|
|
16
|
-
export {};
|
|
17
|
-
//# sourceMappingURL=BottomBlockControls.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BottomBlockControls.d.ts","sourceRoot":"","sources":["../../src/lib/BottomBlockControls.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAMtC,MAAM,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAA;IAC7B,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAA;IAC7B,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAA;CAClC,CAAA;AAUD,eAAO,MAAM,wBAAwB,GACnC,QAAQ,WAAW,GAAG,IAAI,EAC1B,MAAM,WAAW,KAChB,iBAAiB,GAAG,IAgBtB,CAAA;AAED,eAAO,MAAM,gCAAgC,GAC3C,MAAM,WAAW,EACjB,UAAU,MAAM,GAAG,IAAI,KACtB,iBAAiB,GAAG,IAStB,CAAA;AAED,KAAK,wBAAwB,GAAG;IAC9B,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAA;IAChD,QAAQ,CAAC,MAAM,EAAE,iBAAiB,GAAG,IAAI,CAAA;CAC1C,CAAA;AAED,eAAO,MAAM,mBAAmB,GAAI,sBAGjC,wBAAwB,gCAmD1B,CAAA"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
2
|
-
import { NoteCardData } from './types';
|
|
3
|
-
type CardInspectorProps = {
|
|
4
|
-
readonly card: NoteCardData;
|
|
5
|
-
readonly cards: readonly NoteCardData[];
|
|
6
|
-
readonly onCardsChange: (cards: readonly NoteCardData[]) => void;
|
|
7
|
-
};
|
|
8
|
-
export declare const CardInspector: ({ card, cards, onCardsChange }: CardInspectorProps) => ReactElement;
|
|
9
|
-
export {};
|
|
10
|
-
//# sourceMappingURL=CardInspector.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CardInspector.d.ts","sourceRoot":"","sources":["../../src/lib/CardInspector.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAEzC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAE3C,KAAK,kBAAkB,GAAG;IACxB,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAA;IAC3B,QAAQ,CAAC,KAAK,EAAE,SAAS,YAAY,EAAE,CAAA;IACvC,QAAQ,CAAC,aAAa,EAAE,CAAC,KAAK,EAAE,SAAS,YAAY,EAAE,KAAK,IAAI,CAAA;CACjE,CAAA;AAED,eAAO,MAAM,aAAa,GAAI,gCAI3B,kBAAkB,KAAG,YAmCvB,CAAA"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
2
|
-
import { NoteCardData, NoteTheme } from './types';
|
|
3
|
-
type CardLinkOverlayProps = {
|
|
4
|
-
readonly cards: readonly NoteCardData[];
|
|
5
|
-
readonly editable: boolean;
|
|
6
|
-
readonly selectedLinkId: string | undefined;
|
|
7
|
-
readonly theme: NoteTheme;
|
|
8
|
-
readonly onDelete: (sourceId: string, targetId: string) => void;
|
|
9
|
-
readonly onSelect: (linkId: string | undefined) => void;
|
|
10
|
-
};
|
|
11
|
-
export declare const CardLinkOverlay: ({ cards, editable, selectedLinkId, theme, onDelete, onSelect }: CardLinkOverlayProps) => ReactElement;
|
|
12
|
-
export {};
|
|
13
|
-
//# sourceMappingURL=CardLinkOverlay.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CardLinkOverlay.d.ts","sourceRoot":"","sources":["../../src/lib/CardLinkOverlay.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAEzC,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAYtD,KAAK,oBAAoB,GAAG;IAC1B,QAAQ,CAAC,KAAK,EAAE,SAAS,YAAY,EAAE,CAAA;IACvC,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAA;IAC1B,QAAQ,CAAC,cAAc,EAAE,MAAM,GAAG,SAAS,CAAA;IAC3C,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAA;IACzB,QAAQ,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;IAC/D,QAAQ,CAAC,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI,CAAA;CACxD,CAAA;AAoCD,eAAO,MAAM,eAAe,GAAI,gEAO7B,oBAAoB,KAAG,YA6DzB,CAAA"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { RefObject } from 'react';
|
|
2
|
-
import { NoteLink } from './types';
|
|
3
|
-
type MentionMenuProps = {
|
|
4
|
-
readonly containerRef: RefObject<HTMLElement | null>;
|
|
5
|
-
readonly links: readonly NoteLink[];
|
|
6
|
-
};
|
|
7
|
-
export declare const LinkMentionMenu: ({ containerRef, links }: MentionMenuProps) => import('react').ReactPortal | null;
|
|
8
|
-
export {};
|
|
9
|
-
//# sourceMappingURL=LinkMentionMenu.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LinkMentionMenu.d.ts","sourceRoot":"","sources":["../../src/lib/LinkMentionMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,SAAS,EAKf,MAAM,OAAO,CAAA;AAGd,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAEvC,KAAK,gBAAgB,GAAG;IACtB,QAAQ,CAAC,YAAY,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAA;IACpD,QAAQ,CAAC,KAAK,EAAE,SAAS,QAAQ,EAAE,CAAA;CACpC,CAAA;AAwJD,eAAO,MAAM,eAAe,GAAI,yBAG7B,gBAAgB,uCAiRlB,CAAA"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { ReactElement, KeyboardEvent as ReactKeyboardEvent } from 'react';
|
|
2
|
-
import { BlockSource } from './blockSourceConversion';
|
|
3
|
-
import { EditContext } from './NoteContentEditing';
|
|
4
|
-
import { NoteBlock } from './types';
|
|
5
|
-
/**
|
|
6
|
-
* 生成受控菜单 open 状态使用的稳定 key,避免 source id 与 add 后缀冲突。
|
|
7
|
-
* 这个 key 只用于 openBlockMenuId 内部状态,不暴露给用户/持久化数据。
|
|
8
|
-
*/
|
|
9
|
-
export declare const blockMenuStateKey: (mode: "add" | "convert", source: BlockSource) => string;
|
|
10
|
-
type EditableContentMode = "rich-text" | "plain-text";
|
|
11
|
-
type KeyDownInput = {
|
|
12
|
-
readonly ctx: EditContext;
|
|
13
|
-
readonly event: ReactKeyboardEvent<HTMLElement>;
|
|
14
|
-
readonly mode: EditableContentMode;
|
|
15
|
-
readonly sourceId: string;
|
|
16
|
-
};
|
|
17
|
-
export declare const handleEditableBlockKeyDown: ({ ctx, event, mode, sourceId }: KeyDownInput) => void;
|
|
18
|
-
export declare const renderBlockActionMenu: (block: NoteBlock, ctx: EditContext, source?: BlockSource) => ReactElement | null;
|
|
19
|
-
export {};
|
|
20
|
-
//# sourceMappingURL=NoteBlockEditingControls.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NoteBlockEditingControls.d.ts","sourceRoot":"","sources":["../../src/lib/NoteBlockEditingControls.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,IAAI,kBAAkB,EAAE,MAAM,OAAO,CAAA;AAgB9E,OAAO,EACL,KAAK,WAAW,EAGjB,MAAM,yBAAyB,CAAA;AAOhC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAEvD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC;;;GAGG;AACH,eAAO,MAAM,iBAAiB,GAC5B,MAAM,KAAK,GAAG,SAAS,EACvB,QAAQ,WAAW,KAClB,MAQF,CAAA;AAED,KAAK,mBAAmB,GAAG,WAAW,GAAG,YAAY,CAAA;AAErD,KAAK,YAAY,GAAG;IAClB,QAAQ,CAAC,GAAG,EAAE,WAAW,CAAA;IACzB,QAAQ,CAAC,KAAK,EAAE,kBAAkB,CAAC,WAAW,CAAC,CAAA;IAC/C,QAAQ,CAAC,IAAI,EAAE,mBAAmB,CAAA;IAClC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;CAC1B,CAAA;AAWD,eAAO,MAAM,0BAA0B,GAAI,gCAKxC,YAAY,KAAG,IA8GjB,CAAA;AAED,eAAO,MAAM,qBAAqB,GAChC,OAAO,SAAS,EAChB,KAAK,WAAW,EAChB,SAAQ,WAAkD,KACzD,YAAY,GAAG,IA+GjB,CAAA"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { NoteBlock } from './types';
|
|
2
|
-
type FocusPosition = "start" | "end";
|
|
3
|
-
type DeletionFocusInput = {
|
|
4
|
-
readonly after: readonly NoteBlock[];
|
|
5
|
-
readonly before: readonly NoteBlock[];
|
|
6
|
-
readonly sourceId: string;
|
|
7
|
-
};
|
|
8
|
-
export type DeletionFocusTarget = {
|
|
9
|
-
readonly id: string;
|
|
10
|
-
readonly position: FocusPosition;
|
|
11
|
-
};
|
|
12
|
-
export declare const resolveDeletionFocus: ({ after, before, sourceId }: DeletionFocusInput) => DeletionFocusTarget | undefined;
|
|
13
|
-
export declare const resolveBackspaceFocus: ({ after, before, sourceId }: DeletionFocusInput) => DeletionFocusTarget | undefined;
|
|
14
|
-
export {};
|
|
15
|
-
//# sourceMappingURL=NoteBlockFocus.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NoteBlockFocus.d.ts","sourceRoot":"","sources":["../../src/lib/NoteBlockFocus.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAiB,MAAM,SAAS,CAAA;AAGvD,KAAK,aAAa,GAAG,OAAO,GAAG,KAAK,CAAA;AAEpC,KAAK,kBAAkB,GAAG;IACxB,QAAQ,CAAC,KAAK,EAAE,SAAS,SAAS,EAAE,CAAA;IACpC,QAAQ,CAAC,MAAM,EAAE,SAAS,SAAS,EAAE,CAAA;IACrC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;CAC1B,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,QAAQ,EAAE,aAAa,CAAA;CACjC,CAAA;AAkCD,eAAO,MAAM,oBAAoB,GAAI,6BAIlC,kBAAkB,KAAG,mBAAmB,GAAG,SAY7C,CAAA;AAMD,eAAO,MAAM,qBAAqB,GAAI,6BAInC,kBAAkB,KAAG,mBAAmB,GAAG,SAY7C,CAAA"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
2
|
-
import { EditContext } from './NoteContentEditing';
|
|
3
|
-
import { NoteCalloutBlock as NoteCalloutBlockData } from './types';
|
|
4
|
-
type NoteCalloutBlockProps = {
|
|
5
|
-
readonly block: NoteCalloutBlockData;
|
|
6
|
-
readonly ctx: EditContext;
|
|
7
|
-
};
|
|
8
|
-
export declare const NoteCalloutBlock: ({ block, ctx }: NoteCalloutBlockProps) => ReactElement;
|
|
9
|
-
export {};
|
|
10
|
-
//# sourceMappingURL=NoteCalloutBlock.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NoteCalloutBlock.d.ts","sourceRoot":"","sources":["../../src/lib/NoteCalloutBlock.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAMzC,OAAO,EACL,KAAK,WAAW,EAKjB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,gBAAgB,IAAI,oBAAoB,EAAE,MAAM,SAAS,CAAA;AAGvE,KAAK,qBAAqB,GAAG;IAC3B,QAAQ,CAAC,KAAK,EAAE,oBAAoB,CAAA;IACpC,QAAQ,CAAC,GAAG,EAAE,WAAW,CAAA;CAC1B,CAAA;AAED,eAAO,MAAM,gBAAgB,GAAI,gBAG9B,qBAAqB,KAAG,YAyD1B,CAAA"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
2
|
-
import { EditContext } from './NoteContentEditing';
|
|
3
|
-
import { NoteCardBlock as NoteCardBlockData } from './types';
|
|
4
|
-
type NoteCardBlockProps = {
|
|
5
|
-
readonly block: NoteCardBlockData;
|
|
6
|
-
readonly ctx: EditContext;
|
|
7
|
-
};
|
|
8
|
-
export declare const NoteCardBlock: ({ block, ctx }: NoteCardBlockProps) => ReactElement;
|
|
9
|
-
export {};
|
|
10
|
-
//# sourceMappingURL=NoteCardBlock.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NoteCardBlock.d.ts","sourceRoot":"","sources":["../../src/lib/NoteCardBlock.tsx"],"names":[],"mappings":"AACA,OAAO,gCAAgC,CAAA;AAEvC,OAAO,qCAAqC,CAAA;AAC5C,OAAO,EAEL,KAAK,YAAY,EAOlB,MAAM,OAAO,CAAA;AAad,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AACvD,OAAO,KAAK,EAEV,aAAa,IAAI,iBAAiB,EAEnC,MAAM,SAAS,CAAA;AAEhB,KAAK,kBAAkB,GAAG;IAAE,QAAQ,CAAC,KAAK,EAAE,iBAAiB,CAAC;IAAC,QAAQ,CAAC,GAAG,EAAE,WAAW,CAAA;CAAE,CAAA;AAmB1F,eAAO,MAAM,aAAa,GAAI,gBAG3B,kBAAkB,KAAG,YAkNvB,CAAA"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
2
|
-
import { EditContext } from './NoteContentEditing';
|
|
3
|
-
import { NoteChecklistBlock as NoteChecklistBlockData } from './types';
|
|
4
|
-
type NoteChecklistBlockProps = {
|
|
5
|
-
readonly block: NoteChecklistBlockData;
|
|
6
|
-
readonly ctx: EditContext;
|
|
7
|
-
};
|
|
8
|
-
export declare const NoteChecklistBlock: ({ block, ctx }: NoteChecklistBlockProps) => ReactElement;
|
|
9
|
-
export {};
|
|
10
|
-
//# sourceMappingURL=NoteChecklistBlock.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NoteChecklistBlock.d.ts","sourceRoot":"","sources":["../../src/lib/NoteChecklistBlock.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAMzC,OAAO,EACL,KAAK,WAAW,EAKjB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EACV,kBAAkB,IAAI,sBAAsB,EAE7C,MAAM,SAAS,CAAA;AA0HhB,KAAK,uBAAuB,GAAG;IAC7B,QAAQ,CAAC,KAAK,EAAE,sBAAsB,CAAA;IACtC,QAAQ,CAAC,GAAG,EAAE,WAAW,CAAA;CAC1B,CAAA;AAED,eAAO,MAAM,kBAAkB,GAAI,gBAGhC,uBAAuB,KAAG,YAsD5B,CAAA"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
2
|
-
import { EditContext } from './NoteContentEditing';
|
|
3
|
-
import { NoteCodeBlock as NoteCodeBlockData } from './types';
|
|
4
|
-
type NoteCodeBlockProps = {
|
|
5
|
-
readonly block: NoteCodeBlockData;
|
|
6
|
-
readonly ctx: EditContext;
|
|
7
|
-
};
|
|
8
|
-
export declare const NoteCodeBlock: ({ block, ctx }: NoteCodeBlockProps) => ReactElement;
|
|
9
|
-
export {};
|
|
10
|
-
//# sourceMappingURL=NoteCodeEditorBlock.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NoteCodeEditorBlock.d.ts","sourceRoot":"","sources":["../../src/lib/NoteCodeEditorBlock.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,YAAY,EAIlB,MAAM,OAAO,CAAA;AAGd,OAAO,EACL,KAAK,WAAW,EAKjB,MAAM,sBAAsB,CAAA;AAE7B,OAAO,KAAK,EAAE,aAAa,IAAI,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAKjE,KAAK,kBAAkB,GAAG;IACxB,QAAQ,CAAC,KAAK,EAAE,iBAAiB,CAAA;IACjC,QAAQ,CAAC,GAAG,EAAE,WAAW,CAAA;CAC1B,CAAA;AAOD,eAAO,MAAM,aAAa,GAAI,gBAG3B,kBAAkB,KAAG,YAwHvB,CAAA"}
|