.note-editor,.note-editor__field{min-width:0}.note-editor__body{min-width:0;position:relative}.note-editor--fill,.note-editor--fill .note-editor__field,.note-editor--fill .note-editor__body{height:100%;min-height:0}.note-editor--fill .note-editor__field{flex-direction:column;display:flex}.note-editor--fill .note-editor__body{flex:1}.note-editor__control{width:100%;height:var(--space-48);min-height:var(--space-48);border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--paper);box-shadow:inset var(--ring-1) var(--control-hint);resize:vertical;transition:border-color var(--motion-quick) var(--ease-standard), background-color var(--motion-quick) var(--ease-standard), box-shadow var(--motion-quick) var(--ease-standard);overflow:hidden}.note-editor__control:focus-within{border-color:var(--focus-ring);box-shadow:var(--ring-2) var(--focus-ring)}.note-editor__control .cm-editor{background:var(--transparent);height:100%;min-height:100%;color:var(--ink)}.note-editor__control .cm-editor.cm-focused{outline:0}.note-editor__control .cm-scroller{min-height:0;font-family:var(--prose);font-size:var(--font-size-body);line-height:1.5;overflow:auto}.note-editor__control .cm-content{box-sizing:border-box;min-height:100%;padding:var(--spacing-transition-field-control-block) var(--spacing-transition-field-control-inline);caret-color:var(--ink)}.note-editor__control .cm-line{padding:0}.note-editor__control .cm-placeholder{color:var(--muted)}.note-editor__control .cm-selectionBackground{background:var(--selection-surface)}.note-editor__control .cm-content ::selection{background:var(--selection-surface)}.note-editor__control .note-reference{border-bottom:1px solid var(--annotation-border);border-radius:var(--radius-xs);background:var(--annotation-bg);cursor:pointer;transition:background var(--motion-fast) var(--ease-standard), border-color var(--motion-fast) var(--ease-standard)}.note-editor__control .note-reference:hover{border-bottom-color:var(--accent-primary)}.note-editor--comfortable .note-editor__control{height:var(--space-88);min-height:var(--space-88)}.note-editor__body[style] .note-editor__control{height:calc(var(--note-editor-rows) * 1.5em + var(--space-20));min-height:calc(var(--note-editor-rows) * 1.5em + var(--space-20))}.note-editor__focus{flex:none}.note-format-actions{align-items:center;gap:var(--space-2);flex:none;min-width:0;display:flex}.note-editor__control .note-mark--bold{font-weight:600}.note-editor__control .note-mark--italic{font-style:italic}.note-editor__control .note-mark--heading{color:var(--ink);font-family:var(--prose);font-weight:600}.note-editor__control .note-mark--heading-1{font-size:var(--font-size-prose-heading-1);line-height:1.3}.note-editor__control .note-mark--heading-2{font-size:var(--font-size-prose-heading-2);line-height:1.35}.note-editor__control .note-mark--heading-3{font-size:var(--font-size-prose-heading-3);line-height:1.4}@media (width<=760px){.note-format-actions{gap:0}}.note-reference-popover{z-index:calc(var(--z-modal) + var(--z-local));width:min(var(--popover-max), calc(100vw - var(--space-24)));padding:var(--space-5)}.note-reference-options{gap:var(--space-2);max-height:min(320px,45vh);display:grid;overflow:auto}.note-reference-option{text-align:left;justify-content:flex-start;width:100%;min-width:0}.note-reference-option[aria-selected=true]{background:var(--selection-surface);color:var(--selection-text)}.note-reference-option__copy{gap:var(--space-2);min-width:0;display:grid}.note-reference-option__copy strong,.note-reference-option__copy small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.note-reference-option__copy small,.note-reference-options__empty{color:var(--muted);font-size:var(--font-size-metadata-legacy-compact)}.note-reference-options__empty{padding:var(--space-8) var(--space-10);margin:0}.note-reference-links{gap:var(--space-4);min-width:0;padding-top:var(--space-5);border:0;flex-wrap:wrap;margin:0;display:flex}.note-reference-link{min-height:var(--control-compact);color:var(--link)}.note-focus-mode__body,.note-focus-mode__field,.note-focus-mode__body .note-editor__body{flex-direction:column;flex:1;width:100%;min-height:0;display:flex}.note-focus-mode__field{margin:0}.note-focus-mode__control{resize:none;flex:1;height:100%;min-height:100%}.note-focus-mode__control .cm-scroller{font-size:var(--font-size-body-emphasis);line-height:1.55}.note-focus-mode__control .cm-content{padding:var(--spacing-section-tight)}
