joplin-plugin-theme-studio 1.3.0 → 1.3.2
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
CHANGED
|
@@ -4,16 +4,23 @@
|
|
|
4
4
|
[](#-installation)
|
|
5
5
|
[](https://opensource.org/licenses/MIT)
|
|
6
6
|
|
|
7
|
-
Theme Studio is a modular palette and typography engine for Joplin. It applies unified color schemes and typography across the **Markdown Viewer**, the **Markdown Editor** (CodeMirror 6 & 5),
|
|
7
|
+
Theme Studio is a modular palette and typography engine for Joplin. It applies unified color schemes and typography across the **Markdown Viewer**, the **Markdown Editor** (CodeMirror 6 & 5), the **Rich Text Editor** (TinyMCE), and the **Desktop Application Shell** (Sidebar, Note List, and Toolbars)—eliminating manual edits to `userstyle.css` and `userchrome.css`.
|
|
8
8
|
|
|
9
9
|
---
|
|
10
10
|
|
|
11
11
|
## ✨ Features
|
|
12
12
|
|
|
13
|
-
- **Universal
|
|
13
|
+
- **Universal Interface & Editor Theming:** Applies the selected theme across:
|
|
14
|
+
- Note Viewer (`#rendered-md`).
|
|
15
|
+
- CodeMirror Markdown Editor (gutters, syntax highlighting, active line, caret, selection).
|
|
16
|
+
- TinyMCE Rich Text Editor (iframe document and toolbar).
|
|
17
|
+
- Desktop Application Shell (Sidebar, Note List, Header, Search Bar, Splitters, and Sync Panel).
|
|
14
18
|
- **12 Integrated Color Schemes:** Switch between dark and light palettes (Tokyo Night, Everforest, Catppuccin, Nord, Dracula, Gruvbox, Atom One) without restarting Joplin.
|
|
15
|
-
- **
|
|
19
|
+
- **Third-Party Plugin Panel Synchronization:** Propagates theme variables, background colors, and font styles into webview panels created by third-party plugins (such as *Outline* and *Note Tabs*).
|
|
20
|
+
- **Configurable Heading Typography Scales:** Choose between balanced, large editorial, compact dense, or custom comma-separated typographic scales for H1 through H6 headings.
|
|
21
|
+
- **Smart BiDi Locale Detection:** Queries Joplin's interface language on launch. Automatically defaults to LTR with Inter for global locales, and RTL with Vazirmatn for Persian, Arabic, and Hebrew interfaces.
|
|
16
22
|
- **Auto-BiDi Direction Mode:** Includes an `Auto-Detect (Per-Paragraph BiDi)` mode utilizing `unicode-bidi: plaintext` and CSS Logical Properties to align individual paragraphs based on their script direction.
|
|
23
|
+
- **Tree Indentation & Toolbar Geometry Preservation:** Maintains Joplin's native nested notebook tree indentation (`padding-left: 16px, 32px, 48px`) while keeping toolbar coordinate layouts intact during RTL mode.
|
|
17
24
|
- **International Web Font Engine:** Loads open-source typefaces via CDN on demand (with `display=swap` to eliminate FOIT). Enables custom typography on Joplin Mobile without requiring local OS font installation.
|
|
18
25
|
- **Performance Optimized Rendering:** Features an in-memory memoization cache in the Markdown-It parser. Generates compiled CSS once per configuration change, reducing keystroke re-rendering to O(1) memory retrieval.
|
|
19
26
|
- **High-Fidelity PDF & Print Export:** Preserves theme backgrounds, syntax colors, and borders using `print-color-adjust: exact`. Tables automatically wrap cells to prevent margin clipping, and code blocks wrap long lines (`pre-wrap`).
|
|
@@ -27,6 +34,24 @@ Theme Studio is a modular palette and typography engine for Joplin. It applies u
|
|
|
27
34
|
|
|
28
35
|
---
|
|
29
36
|
|
|
37
|
+
## 📸 Screenshots
|
|
38
|
+
|
|
39
|
+
<p align="center">
|
|
40
|
+
<img src="screenshots/01-hero-tokyo-night.png" alt="Tokyo Night Palette" width="100%">
|
|
41
|
+
</p>
|
|
42
|
+
|
|
43
|
+
### RTL Typography & Auto-BiDi
|
|
44
|
+
<p align="center">
|
|
45
|
+
<img src="screenshots/02-persian-arabic-rtl.png" alt="Persian & Arabic RTL Typography" width="100%">
|
|
46
|
+
</p>
|
|
47
|
+
|
|
48
|
+
### Light Palettes (Everforest Light)
|
|
49
|
+
<p align="center">
|
|
50
|
+
<img src="screenshots/03-arabic-everforest-light.png" alt="Everforest Light Mode" width="100%">
|
|
51
|
+
</p>
|
|
52
|
+
|
|
53
|
+
---
|
|
54
|
+
|
|
30
55
|
## 🌍 International Font Presets
|
|
31
56
|
|
|
32
57
|
| Script / Target | Font Preset | Technical Description |
|
|
@@ -94,15 +119,18 @@ Access the settings panel under **Tools > Options > Theme Studio** (on Mobile: *
|
|
|
94
119
|
|
|
95
120
|
| Setting Key | Options / Inputs | Default | Description |
|
|
96
121
|
| :--- | :--- | :--- | :--- |
|
|
97
|
-
| **Color Theme** | 12 built-in palettes | `Atom One Dark` | Sets document and
|
|
122
|
+
| **Color Theme** | 12 built-in palettes | `Atom One Dark` | Sets document, editor, and UI chrome color tokens |
|
|
98
123
|
| **Layout Direction** | `LTR`, `Auto-Detect (BiDi)`, `RTL` | Auto-detected | Primary text direction and border alignment |
|
|
99
124
|
| **Apply Theme to Markdown Editor** | `true` / `false` | `true` | Styles CodeMirror 6/5 and TinyMCE editors |
|
|
125
|
+
| **Theme Application Shell** | `true` / `false` | `true` | Applies palette to Joplin sidebar, note list, and toolbars (Desktop only) |
|
|
100
126
|
| **International Font Preset** | 11 font presets | Auto-detected | On-demand web font loaded via CDN |
|
|
101
127
|
| **Custom Font Stack** | CSS `font-family` string | System Stack | Active when preset is set to *Custom* |
|
|
102
128
|
| **Code Font Preset** | `Fira Code`, `JetBrains Mono`, `System`, `Custom` | `Fira Code` | Monospace font for code blocks and editor |
|
|
103
129
|
| **Custom Code Font Stack** | CSS `font-family` string | Cascadia / Consolas | Active when code preset is set to *Custom* |
|
|
104
130
|
| **Font Size** | Text string (e.g., `16px`, `18px`) | `16px` | Scales base text size across desktop & mobile |
|
|
105
131
|
| **Line Height** | Numeric string (e.g., `1.6`, `1.75`) | `1.75` | Sets body reading line spacing |
|
|
132
|
+
| **Heading Sizes Preset** | `Balanced`, `Large`, `Compact`, `Custom` | `Balanced` | Typographic scale applied to H1 through H6 headings |
|
|
133
|
+
| **Custom Heading Sizes** | Comma-separated sizes string | `1.75em, 1.42em, ...` | Custom sizes for H1 to H6 (e.g., `28px, 24px, 20px, ...`) |
|
|
106
134
|
| **Reading Width (Focus Mode)** | `Full Width`, `Comfortable (920px)`, `Compact (760px)` | `Full Width` | Constrains note container width on wide monitors |
|
|
107
135
|
| **PDF Export Appearance** | `Exact Match`, `Paper Friendly` | `Exact Match` | Controls background retention in exported PDFs |
|
|
108
136
|
|
|
@@ -124,7 +152,7 @@ When **Layout Direction** is set to `RTL`, left-to-right code explanations, Engl
|
|
|
124
152
|
</div>
|
|
125
153
|
```
|
|
126
154
|
|
|
127
|
-
*Tip: Selecting `Auto-Detect (Per-Paragraph BiDi)` handles mixed
|
|
155
|
+
*Tip: Selecting `Auto-Detect (Per-Paragraph BiDi)` handles mixed-language paragraphs automatically without requiring manual `div` tags.*
|
|
128
156
|
|
|
129
157
|
---
|
|
130
158
|
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var t={998(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default="undefined"!=typeof joplin?joplin:global.joplin},143(t,n){var o,e;n.SettingItemType=n.ContentScriptType=void 0,function(t){t.MarkdownItPlugin="markdownItPlugin",t.CodeMirrorPlugin="codeMirrorPlugin"}(o||(n.ContentScriptType=o={})),function(t){t[t.Int=1]="Int",t[t.String=2]="String",t[t.Bool=3]="Bool",t[t.Array=4]="Array",t[t.Object=5]="Object",t[t.Button=6]="Button"}(e||(n.SettingItemType=e={}))},156(t,n,o){var e=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});const r=e(o(998)),i=o(143),a=o(800);r.default.plugins.register({onStart:async function(){let t="ltr",n="inter";try{const o=await r.default.settings.globalValue("locale");o&&["fa","ar","he","ur","ug","ps","yi"].some(t=>o.toLowerCase().startsWith(t))&&(t="rtl",n="vazirmatn")}catch(o){t="ltr",n="inter"}await r.default.settings.registerSection("themeStudioSection",{label:"Theme Studio",iconName:"fas fa-palette"}),await r.default.settings.registerSettings({theme:{value:"atom-one-dark",type:i.SettingItemType.String,section:"themeStudioSection",isEnum:!0,public:!0,label:"Color Theme",description:"Choose your desired color scheme.",options:{"atom-one-dark":"Atom One Dark","atom-one-light":"Atom One Light","tokyo-night":"Tokyo Night","tokyo-night-storm":"Tokyo Night Storm","everforest-dark":"Everforest Dark","everforest-light":"Everforest Light","catppuccin-mocha":"Catppuccin Mocha","catppuccin-latte":"Catppuccin Latte",nord:"Nord",dracula:"Dracula","gruvbox-dark":"Gruvbox Dark","gruvbox-light":"Gruvbox Light"}},direction:{value:t,type:i.SettingItemType.String,section:"themeStudioSection",isEnum:!0,public:!0,label:"Layout Direction",description:"Primary text orientation. LTR is standard; Auto adjusts per paragraph.",options:{ltr:"Left-to-Right (LTR - English / Latin / CJK / Global)",auto:"Auto-Detect (Per-Paragraph BiDi)",rtl:"Right-to-Left (RTL - Persian / Arabic / Hebrew)"}},enableEditorTheme:{value:!0,type:i.SettingItemType.Bool,section:"themeStudioSection",public:!0,label:"Apply Theme to Markdown Editor",description:"Styles the CodeMirror editor (background, colors, line numbers, headings) to match the viewer."},themeApplicationShell:{value:!0,type:i.SettingItemType.Bool,section:"themeStudioSection",public:!0,label:"Theme Application Shell (Sidebar & Note List)",description:"Applies the active palette to Joplin's desktop sidebar, note list, and header (Desktop only)."},fontPreset:{value:n,type:i.SettingItemType.String,section:"themeStudioSection",isEnum:!0,public:!0,label:"International Font Preset",description:"Web fonts loaded on the fly (ideal for Mobile without local font installs).",options:{inter:"Inter (Global English, Latin, European, Cyrillic)",roboto:"Roboto (Modern Clean Sans)",system:"System Default (OS Native, Zero Network Overhead)",vazirmatn:"Vazirmatn (Persian, Arabic, Kurdish, Urdu)","noto-arabic":"Noto Sans Arabic (Modern Arabic)","noto-cjk-sc":"Noto Sans SC (Simplified Chinese)","noto-cjk-jp":"Noto Sans JP (Japanese)",heebo:"Heebo (Hebrew & Latin)","noto-devanagari":"Noto Sans Devanagari (Hindi, Sanskrit)",lora:"Lora (Editorial Serif for Books & Long Articles)",custom:"Custom Font Stack (use field below)"}},fontFamily:{value:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif",type:i.SettingItemType.String,section:"themeStudioSection",public:!0,label:"Custom Font Stack",description:'Active only when "Custom Font Stack" is selected above.'},codeFontPreset:{value:"fira-code",type:i.SettingItemType.String,section:"themeStudioSection",isEnum:!0,public:!0,label:"Code Font Preset",description:"Monospace font for inline code and code blocks.",options:{"fira-code":"Fira Code (Modern Tech Monospace)","jetbrains-mono":"JetBrains Mono (Developer Favorite)","system-mono":"System Monospace (Cascadia/Consolas/Courier)",custom:"Custom Code Font (use field below)"}},codeFont:{value:"'Cascadia Code', 'Fira Code', 'Consolas', monospace",type:i.SettingItemType.String,section:"themeStudioSection",public:!0,label:"Custom Code Font Stack",description:'Active only when "Custom Code Font" is selected above.'},fontSize:{value:"16px",type:i.SettingItemType.String,section:"themeStudioSection",public:!0,label:"Font Size",description:"Base font size (e.g., 14px, 16px, 18px, 20px). Works across Desktop & Mobile."},lineHeight:{value:"1.75",type:i.SettingItemType.String,section:"themeStudioSection",public:!0,label:"Line Height",description:"Reading line spacing (e.g., 1.6, 1.75, 1.9)."},headingSizePreset:{value:"balanced",type:i.SettingItemType.String,section:"themeStudioSection",isEnum:!0,public:!0,label:"Heading Sizes Preset",description:"Typographic scale applied to H1 through H6 headings.",options:{balanced:"Balanced / Standard (H1: 1.75em, H2: 1.42em, H3: 1.25em...)",large:"Large / Editorial (H1: 2.15em, H2: 1.7em, H3: 1.4em...)",compact:"Compact / Dense (H1: 1.5em, H2: 1.3em, H3: 1.18em...)",custom:"Custom Sizes (Configured below)"}},customHeadingSizes:{value:"1.75em, 1.42em, 1.25em, 1.12em, 1.05em, 1.0em",type:i.SettingItemType.String,section:"themeStudioSection",public:!0,label:"Custom Heading Sizes (H1 - H6)",description:'Active only when "Custom Sizes" is selected. Comma-separated sizes from H1 to H6 (e.g., 28px, 24px, 20px, 18px, 16px, 14px or 2.2em, 1.7em, 1.4em, 1.2em, 1.1em, 1.0em).'},contentMaxWidth:{value:"full",type:i.SettingItemType.String,section:"themeStudioSection",isEnum:!0,public:!0,label:"Reading Width (Focus Mode)",description:"Constrain line length on wide desktop monitors for comfortable reading.",options:{full:"Full Width (100%)",comfortable:"Comfortable Reading (920px Centered)",compact:"Compact Focus (760px Centered)"}},pdfExportStyle:{value:"exact",type:i.SettingItemType.String,section:"themeStudioSection",isEnum:!0,public:!0,label:"PDF Export Appearance",description:"Controls layout and background fidelity when exporting to PDF.",options:{exact:"Exact Match (100% Identical to Screen Layout & Theme)",paper:"Paper Friendly (White Page Background with Themed Accents)"}}}),await r.default.contentScripts.register(i.ContentScriptType.CodeMirrorPlugin,"themeStudioCodeMirror","./codeMirrorTheme.js"),await r.default.contentScripts.onMessage("themeStudioCodeMirror",async t=>{if(t&&("getAllStyles"===t.type||"getEditorStyles"===t.type)){const t=await r.default.settings.value("enableEditorTheme"),n=await r.default.settings.value("themeApplicationShell"),o=await async function(){return{themeKey:await r.default.settings.value("theme"),direction:await r.default.settings.value("direction"),fontPreset:await r.default.settings.value("fontPreset"),fontFamily:await r.default.settings.value("fontFamily"),codeFontPreset:await r.default.settings.value("codeFontPreset"),codeFont:await r.default.settings.value("codeFont"),fontSize:await r.default.settings.value("fontSize"),lineHeight:await r.default.settings.value("lineHeight"),contentMaxWidth:await r.default.settings.value("contentMaxWidth"),pdfExportStyle:await r.default.settings.value("pdfExportStyle"),headingSizePreset:await r.default.settings.value("headingSizePreset"),customHeadingSizes:await r.default.settings.value("customHeadingSizes")}}();return await async function(t,n){try{if(r.default.window&&"function"==typeof r.default.window.loadChromeCssFile){const o=r.default.require("fs-extra"),e=`${await r.default.plugins.dataDir()}/theme-studio-chrome.css`,i=n?(0,a.buildChromeCss)(t):"";await o.writeFile(e,i,"utf8"),await r.default.window.loadChromeCssFile(e)}}catch(t){}}(o,n),{editorCss:t?(0,a.buildEditorCss)(o):"",viewerCss:(0,a.buildThemeCss)(o),chromeCss:n?(0,a.buildChromeCss)(o):""}}return null}),await r.default.contentScripts.register(i.ContentScriptType.MarkdownItPlugin,"themeStudioMarkdownIt","./markdownTheme.js")}})},800(t,n,o){n.buildEditorCss=function(t){const n=e.themes[t.themeKey]||e.themes["atom-one-dark"],{fontImport:o,resolvedFont:i,resolvedCodeFont:a}=r(t);let d=":root {\n";for(const[t,o]of Object.entries(n.variables))d+=` ${t}: ${o};\n`;d+="}\n";let l="";return l="rtl"===t.direction?"\n .cm-content, .CodeMirror-lines, body#tinymce {\n direction: rtl !important;\n text-align: right !important;\n }\n ":"auto"===t.direction?"\n .cm-content, .CodeMirror-lines, body#tinymce {\n unicode-bidi: plaintext !important;\n text-align: start !important;\n }\n ":"\n .cm-content, .CodeMirror-lines, body#tinymce {\n direction: ltr !important;\n text-align: left !important;\n }\n ",`\n${o}\n${d}\n\n/* Outer editor container & scroller get the theme background */\nhtml body div.cm-editor,\nhtml body div.cm-editor .cm-scroller,\nhtml body div.CodeMirror,\nhtml body .r-markdown-editor {\n background-color: var(--od-bg) !important;\n color: var(--od-fg) !important;\n font-family: ${i} !important;\n}\n\n/* Content and lines MUST remain transparent so CodeMirror's selection layer is visible */\n.cm-content,\n.cm-line,\n.CodeMirror-lines,\n.CodeMirror-sizer {\n background-color: transparent !important;\n}\n\n.cm-content, .CodeMirror-lines {\n font-size: ${t.fontSize} !important;\n line-height: ${t.lineHeight} !important;\n caret-color: var(--od-link) !important;\n}\n\n${l}\n\n/* Gutters & Line Numbers */\n.cm-gutters, .CodeMirror-gutters {\n background-color: var(--od-bg-alt) !important;\n color: var(--od-comment) !important;\n border-right: 1px solid var(--od-border) !important;\n}\n.cm-activeLineGutter {\n background-color: var(--od-bg-alt) !important;\n color: var(--od-h2) !important;\n font-weight: bold !important;\n}\n.cm-activeLine, .CodeMirror-activeline-background {\n background-color: rgba(127, 127, 127, 0.08) !important;\n}\n\n/* Cursor & Selection (Fully unmasked for CodeMirror 6 and CodeMirror 5) */\n.CodeMirror-cursor {\n border-left: 2px solid var(--od-link) !important;\n}\n.cm-selectionBackground,\n.cm-editor .cm-selectionLayer .cm-selectionBackground,\n.cm-content ::selection,\n.cm-line ::selection,\n.CodeMirror-selected,\n.CodeMirror-focused .CodeMirror-selected,\n::selection {\n background-color: var(--od-selection) !important;\n}\n\n/* Syntax Highlighting in Markdown Editor */\n.cm-header-1, .tok-heading-1 { color: var(--od-h1) !important; font-weight: 700 !important; }\n.cm-header-2, .tok-heading-2 { color: var(--od-h2) !important; font-weight: 700 !important; }\n.cm-header-3, .tok-heading-3 { color: var(--od-h3) !important; font-weight: 600 !important; }\n.cm-header-4, .tok-heading-4 { color: var(--od-h4) !important; font-weight: 600 !important; }\n.cm-header-5, .tok-heading-5 { color: var(--od-h5) !important; }\n.cm-header-6, .tok-heading-6 { color: var(--od-h6) !important; }\n\n.cm-link, .tok-link { color: var(--od-link) !important; text-decoration: underline !important; }\n.cm-url, .tok-url { color: var(--od-link-hover) !important; }\n.cm-strong, .tok-strong { font-weight: bold !important; color: var(--od-fg) !important; }\n.cm-em, .tok-emphasis { font-style: italic !important; }\n.cm-comment, .tok-comment { color: var(--od-comment) !important; }\n.cm-quote, .tok-quote { color: var(--od-comment) !important; font-style: italic !important; }\n\n.tok-monospace, .cm-inline-code, .cm-variable-2 {\n font-family: ${a} !important;\n background-color: var(--od-code-bg) !important;\n color: var(--od-code-fg) !important;\n border-radius: 3px !important;\n}\n\n/* TinyMCE (Rich Text Editor) Shell & Toolbar Theming */\n.tox-tinymce {\n border: 1px solid var(--od-border) !important;\n background-color: var(--od-bg) !important;\n}\n.tox .tox-toolbar,\n.tox .tox-toolbar__primary,\n.tox .tox-toolbar__overflow {\n background-color: var(--od-bg-alt) !important;\n border-bottom: none !important;\n}\n.tox .tox-tbtn {\n color: var(--od-fg) !important;\n}\n.tox .tox-tbtn:hover {\n background-color: var(--od-selection) !important;\n}\n.tox .tox-tbtn svg {\n fill: var(--od-fg) !important;\n}\n`},n.buildChromeCss=function(t){const n=e.themes[t.themeKey]||e.themes["atom-one-dark"],{fontImport:o,resolvedFont:i}=r(t);let a=":root {\n";for(const[t,o]of Object.entries(n.variables))a+=` ${t}: ${o};\n`;a+="}\n";let d="";return d="rtl"===t.direction?'\n /* Title input adheres to RTL */\n input.title-input {\n direction: rtl !important;\n text-align: right !important;\n }\n\n /* Note List item titles align naturally using Unicode BiDi */\n .note-list .title,\n .note-list-item-title,\n .note-list span,\n .note-list div {\n unicode-bidi: plaintext !important;\n text-align: start !important;\n }\n\n /* Active Note Indicator flips to right border in RTL */\n div.rli-noteList [aria-selected="true"],\n div.rli-noteList .selected,\n div.note-list [aria-selected="true"],\n div.note-list .selected {\n border-right: 4px solid var(--od-h2) !important;\n border-left: none !important;\n }\n\n /* Sidebar titles use BiDi without breaking tree indentation or flex order */\n .side-bar .title,\n .side-bar span.title,\n .folders a span:not(.note-count-label):not(.icon),\n .tags a span:not(.note-count-label):not(.icon) {\n unicode-bidi: plaintext !important;\n text-align: start !important;\n }\n ':"auto"===t.direction?"\n input.title-input,\n .note-list .title,\n .note-list-item-title,\n .side-bar .title,\n .side-bar span.title {\n unicode-bidi: plaintext !important;\n text-align: start !important;\n }\n ":'\n input.title-input {\n direction: ltr !important;\n text-align: left !important;\n }\n\n div.rli-noteList [aria-selected="true"],\n div.rli-noteList .selected,\n div.note-list [aria-selected="true"],\n div.note-list .selected {\n border-left: 4px solid var(--od-h2) !important;\n border-right: none !important;\n }\n ',`\n${o}\n${a}\n${d}\n\n/* =================================================================\n UNIFIED DESKTOP SHELL CASCADE (OVERRIDING JOPLIN CORE DARK/LIGHT)\n ================================================================= */\n\n/* --- 1. Resizer Splitters & Root Container --- */\ndiv[style*="col-resize"],\ndiv[style*="row-resize"],\ndiv[style*="cursor: col-resize"],\ndiv[style*="cursor: row-resize"],\n.rli-splitter,\n.splitter,\ndiv[class*="splitter"],\ndiv[class*="resizer"],\ndiv[class*="divider"] {\n background-color: var(--od-border) !important;\n background: var(--od-border) !important;\n border-color: var(--od-border) !important;\n opacity: 0.8 !important;\n}\n\n.rli-root,\n#joplin-plugin-content,\ndiv[class*="rli-"] {\n background-color: var(--od-bg) !important;\n color: var(--od-fg) !important;\n}\n\n/* --- 2. Primary Left Sidebar --- */\n.side-bar,\n.r-sidebar,\n.rli-sideBar,\ndiv[toggleblock="1"] {\n background-color: var(--od-bg-alt) !important;\n background: var(--od-bg-alt) !important;\n color: var(--od-fg) !important;\n font-family: ${i} !important;\n}\n\n.side-bar *,\n.r-sidebar *,\n.rli-sideBar *,\ndiv[toggleblock="1"] *,\n.folders *,\n.tags *,\na.list-item,\na.list-item *,\n.list-item-container * {\n color: var(--od-fg) !important;\n border-color: var(--od-fg) !important;\n}\n\n.side-bar svg,\n.side-bar path,\n.side-bar i,\n.r-sidebar svg,\n.r-sidebar path,\n.rli-sideBar svg,\n.rli-sideBar path {\n fill: var(--od-fg) !important;\n stroke: var(--od-fg) !important;\n color: var(--od-fg) !important;\n}\n\n.side-bar .list-item-container:hover,\n.side-bar .list-item:hover,\n.side-bar a:hover {\n background-color: var(--od-selection) !important;\n}\n\n/* Active Selected Notebook Item (Overrides Inline rgb(0, 95, 184)) */\n.side-bar .list-item-container.selected,\n.side-bar .list-item.selected,\n.side-bar a.selected,\n.side-bar .selected,\n.side-bar div[class*="selected"],\n.rli-sideBar .selected,\n.rli-sideBar div[class*="selected"],\n.folders .selected,\n.folders div[class*="selected"],\n.tags .selected {\n background-color: var(--od-selection) !important;\n background: var(--od-selection) !important;\n color: var(--od-link) !important;\n font-weight: 700 !important;\n}\n\n.side-bar .selected *,\n.side-bar div[class*="selected"] *,\n.rli-sideBar .selected *,\n.rli-sideBar div[class*="selected"] *,\n.folders .selected * {\n color: var(--od-link) !important;\n}\n\n.side-bar .header,\n.side-bar .header span,\n.side-bar div[style*="font-weight: bold"],\n.side-bar .section-header {\n color: var(--od-comment) !important;\n font-size: 0.85em !important;\n letter-spacing: 0.5px !important;\n opacity: 0.85 !important;\n}\n\n.side-bar .item-count,\n.folders span[style*="opacity"] {\n color: var(--od-comment) !important;\n opacity: 0.8 !important;\n}\n\n/* Ensure clean spacing between folder icons, emojis, and titles without breaking tree indentation */\n.side-bar .icon,\n.side-bar span.icon,\n.side-bar svg.icon,\n.side-bar span[role="img"],\n.folders a span[role="img"] {\n margin-left: 6px !important;\n margin-right: 6px !important;\n display: inline-block !important;\n}\n\n/* --- 2. Bottom Left: Synchronize Panel --- */\n.rli-sideBar > div:last-child,\n.rli-sideBar > div:nth-child(2),\n.rli-sideBar div[style*="border-top"],\n.rli-sideBar div[style*="background-color"],\n.rli-sideBar > div > div:last-child,\n.side-bar > div:last-child,\ndiv:has(> .synchronize-button),\ndiv:has(.synchronize-button),\ndiv:has(> button.synchronize-button),\ndiv:has(button[title*="Sync"]),\ndiv:has(button[title*="Synchronize"]),\n.synchronize-button,\n.sync-status-box,\ndiv.sync-report,\ndiv[class*="sync"],\ndiv[class*="Sync"] {\n background-color: var(--od-bg-alt) !important;\n background: var(--od-bg-alt) !important;\n border-top: 1px solid var(--od-border) !important;\n}\n\n.rli-sideBar > div:last-child *,\n.rli-sideBar > div:nth-child(2) *,\ndiv:has(.synchronize-button) *,\n.synchronize-button *,\n.sync-status-box *,\ndiv.sync-report * {\n background-color: transparent !important;\n color: var(--od-comment) !important;\n}\n\n.rli-sideBar > div:last-child button,\n.rli-sideBar > div:nth-child(2) button,\ndiv:has(.synchronize-button) button,\n.synchronize-button button,\n.sync-status-box button,\nbutton.synchronize-button,\nbutton[title*="Sync"],\nbutton[title*="Synchronize"] {\n background-color: var(--od-bg) !important;\n background: var(--od-bg) !important;\n color: var(--od-fg) !important;\n border: 1px solid var(--od-border) !important;\n border-color: var(--od-border) !important;\n box-shadow: none !important;\n outline: none !important;\n border-radius: 4px !important;\n font-weight: 600 !important;\n padding: 6px 12px !important;\n}\n\n.rli-sideBar > div:last-child button:hover,\n.synchronize-button button:hover,\n.synchronize-button button:focus {\n background-color: var(--od-selection) !important;\n border-color: var(--od-link) !important;\n color: var(--od-link) !important;\n box-shadow: none !important;\n outline: none !important;\n}\n\n.synchronize-button svg,\n.synchronize-button path,\n.synchronize-button i,\ndiv:has(.synchronize-button) svg,\ndiv:has(.synchronize-button) path {\n fill: var(--od-fg) !important;\n color: var(--od-fg) !important;\n}\n\n/* --- 3. Note List Panel & Active Item Selection --- */\n.note-list,\n.r-note-list,\n.item-list,\ndiv.rli-noteList,\ndiv.rli-noteList > div {\n background-color: var(--od-bg) !important;\n background: var(--od-bg) !important;\n border-right: 1px solid var(--od-border) !important;\n border-left: 1px solid var(--od-border) !important;\n font-family: ${i} !important;\n}\n\n.note-list .list-item-container,\n.note-list .list-item,\n.note-list-item,\ndiv.rli-noteList .list-item-container {\n background-color: var(--od-bg) !important;\n border-bottom: 1px solid var(--od-border) !important;\n}\n\n.note-list .list-item-container *,\n.note-list .title,\n.note-list-item-title,\n.note-list span {\n color: var(--od-fg) !important;\n}\n\n.note-list .list-item-container:hover,\n.note-list .list-item:hover,\n.note-list a:hover {\n background-color: var(--od-selection) !important;\n}\n\n/* Active Selected Note (Overrides Inline Dark Styles) */\ndiv.rli-noteList [aria-selected="true"],\ndiv.rli-noteList .selected,\ndiv.rli-noteList div[class*="selected"],\ndiv.rli-noteList .list-item-container.selected,\ndiv.rli-noteList .note-list-item.selected,\ndiv.note-list [aria-selected="true"],\ndiv.note-list .selected,\ndiv.note-list div[class*="selected"],\ndiv.note-list .list-item-container.selected,\ndiv.note-list .note-list-item.selected {\n background-color: var(--od-selection) !important;\n background: var(--od-selection) !important;\n}\n\ndiv.rli-noteList [aria-selected="true"] *,\ndiv.rli-noteList .selected *,\ndiv.note-list [aria-selected="true"] *,\ndiv.note-list .selected * {\n color: var(--od-link) !important;\n font-weight: 700 !important;\n}\n\n/* --- 4. Top Left: Note List Header Bar, Buttons & Search (Green Box) --- */\ndiv.rli-noteList > div > div > div:first-child,\ndiv.rli-noteList .note-list-top-bar,\n.note-list-top-bar,\n.note-list > div:first-child,\n.note-list .header,\n.search-bar,\ndiv.new-note-todo-buttons,\ndiv:has(> .new-note-button),\ndiv:has(> button.new-note-button) {\n background-color: var(--od-bg-alt) !important;\n background: var(--od-bg-alt) !important;\n border-bottom: none !important;\n}\n\n/* New note & New to-do Buttons: Dynamic contrast against --od-link */\nbutton.new-note-button,\nbutton.new-todo-button,\ndiv.rli-noteList button.new-note-button,\ndiv.rli-noteList button.new-todo-button,\ndiv.new-note-todo-buttons button,\ndiv.header a.button,\ndiv.header button,\n.note-list .header button,\n.note-list-top-bar button:not(.sort-order-reverse-button),\na.button[title="New note"],\na.button[title="New to-do"],\na[title="New note"],\na[title="New to-do"] {\n background-color: var(--od-link) !important;\n background: var(--od-link) !important;\n color: var(--od-bg) !important;\n border: none !important;\n border-radius: 4px !important;\n font-weight: 700 !important;\n box-shadow: none !important;\n}\n\nbutton.new-note-button *,\nbutton.new-todo-button *,\ndiv.new-note-todo-buttons button * {\n color: var(--od-bg) !important;\n fill: var(--od-bg) !important;\n}\n\nbutton.new-note-button:hover,\nbutton.new-todo-button:hover,\ndiv.rli-noteList button.new-note-button:hover,\ndiv.rli-noteList button.new-todo-button:hover,\ndiv.new-note-todo-buttons button:hover {\n background-color: var(--od-link-hover) !important;\n background: var(--od-link-hover) !important;\n}\n\n/* Search bar input */\ndiv.rli-noteList input,\ndiv.rli-noteList input[type="search"],\n.note-list-top-bar input,\n.note-list input[type="search"],\n.search-bar input,\ninput[type="search"] {\n background-color: var(--od-bg) !important;\n color: var(--od-fg) !important;\n border: 1px solid var(--od-border) !important;\n border-radius: 4px !important;\n}\n\n/* Sort, Reverse & Calendar Buttons in Search Row */\nbutton.sort-order-reverse-button,\ndiv.rli-noteList button.sort-order-reverse-button,\ndiv.rli-noteList button:not(.new-note-button):not(.new-todo-button),\n.note-list-top-bar button.sort-order-reverse-button {\n background-color: var(--od-bg) !important;\n background: var(--od-bg) !important;\n color: var(--od-fg) !important;\n border: 1px solid var(--od-border) !important;\n border-radius: 4px !important;\n}\n\ndiv.rli-noteList svg,\ndiv.rli-noteList path,\n.note-list-top-bar svg,\n.note-list-top-bar path,\n.search-bar svg,\n.search-bar path {\n fill: var(--od-fg) !important;\n color: var(--od-fg) !important;\n}\n\n/* --- 5. Top Right: Note Header & Unified Navbar (Blue Box) --- */\n.header,\n.r-header,\n.top-bar,\n.note-title-wrapper,\ndiv.note-title-wrapper {\n background-color: var(--od-bg-alt) !important;\n background: var(--od-bg-alt) !important;\n border-bottom: 1px solid var(--od-border) !important;\n border-top: none !important;\n border-left: none !important;\n border-right: none !important;\n box-sizing: border-box !important;\n min-height: 40px !important;\n}\n\n/* Seamless Title Input (Blends directly into the header bar without boxed borders) */\ninput.title-input {\n background-color: transparent !important;\n background: transparent !important;\n border: none !important;\n border-bottom: none !important;\n color: var(--od-fg) !important;\n font-family: ${i} !important;\n font-size: 1.2em !important;\n font-weight: 700 !important;\n padding: 6px 14px !important;\n outline: none !important;\n box-shadow: none !important;\n}\n\ninput.title-input:focus {\n border: none !important;\n outline: none !important;\n box-shadow: none !important;\n}\n\n/* Seamless Info Group (Eliminates disconnected borders and mismatched fills) */\n.note-title-info-group,\ndiv.note-title-info-group {\n background-color: transparent !important;\n background: transparent !important;\n border: none !important;\n border-bottom: none !important;\n border-left: none !important;\n border-right: none !important;\n box-shadow: none !important;\n}\n\n.note-title-info-group *,\n.header span,\n.header div {\n color: var(--od-fg) !important;\n border-bottom: none !important;\n}\n\n.note-title-info-group svg,\n.note-title-info-group path,\n.header svg,\n.header path {\n fill: var(--od-fg) !important;\n color: var(--od-fg) !important;\n}\n\n.header button,\n.header a,\n.header .button,\nbutton.toolbar-button {\n background-color: transparent !important;\n color: var(--od-fg) !important;\n border: none !important;\n}\n\n.header button:hover,\n.header a:hover,\nbutton.toolbar-button:hover {\n background-color: var(--od-selection) !important;\n border-radius: 4px !important;\n}\n\n/* --- 6. Markdown Editor Formatting Toolbar --- */\n.editor-toolbar,\ndiv.editor-toolbar,\ndiv[class*="editor-toolbar"],\n.r-editor-toolbar {\n background-color: var(--od-bg-alt) !important;\n background: var(--od-bg-alt) !important;\n border-bottom: none !important;\n}\n\n.editor-toolbar *,\n.editor-toolbar div,\n.editor-toolbar button,\n.editor-toolbar a,\n.editor-toolbar span {\n color: var(--od-fg) !important;\n background-color: transparent !important;\n}\n\n.editor-toolbar svg,\n.editor-toolbar path,\n.editor-toolbar .icon,\n.editor-toolbar [class*="icon"] {\n fill: var(--od-fg) !important;\n color: var(--od-fg) !important;\n}\n\n.editor-toolbar button:hover,\n.editor-toolbar a:hover {\n background-color: var(--od-selection) !important;\n border-radius: 4px !important;\n}\n\n/* --- 8. Bottom: Tag Bar & Notification Banners --- */\n.tag-bar,\ndiv.tag-bar,\n.tag-list,\ndiv[class*="tag"],\ndiv[class*="banner"],\ndiv.updated-feature-banner,\ndiv.alert,\ndiv.info-box,\n.rli-editor > div > div > div:has(.tag-bar),\n.rli-editor > div > div > div:has(div[class*="banner"]),\n.rli-editor > div > div > div:last-child {\n background-color: var(--od-bg-alt) !important;\n background: var(--od-bg-alt) !important;\n border-top: 1px solid var(--od-border) !important;\n color: var(--od-fg) !important;\n}\n\n.tag-bar *,\ndiv[class*="banner"] *,\ndiv.updated-feature-banner * {\n color: var(--od-fg) !important;\n}\n\n.tag-bar svg,\n.tag-bar path {\n fill: var(--od-fg) !important;\n}\n\n.tag-bar input,\n.tag-bar .tag-input {\n background-color: var(--od-bg) !important;\n color: var(--od-fg) !important;\n border: 1px solid var(--od-border) !important;\n}\n\n.tag-bar span,\n.tag-list span,\n.tag-list .tag-item {\n background-color: var(--od-selection) !important;\n color: var(--od-fg) !important;\n border-radius: 4px !important;\n padding: 2px 6px !important;\n}\n\ndiv[class*="banner"] a,\ndiv[class*="banner"] button,\ndiv.updated-feature-banner a,\ndiv.updated-feature-banner button {\n color: var(--od-link) !important;\n font-weight: 700 !important;\n}\n\n/* --- 9. Right: Plugin Panels Outer Shell (Outline, Note Tabs) --- */\n.r-panel,\ndiv.joplin-plugin-view,\ndiv.panel-container,\ndiv[class*="outline"] {\n background-color: var(--od-bg) !important;\n background: var(--od-bg) !important;\n border-left: 1px solid var(--od-border) !important;\n}\n\n.r-panel *,\ndiv.joplin-plugin-view * {\n color: var(--od-fg) !important;\n}\n\n.r-panel svg,\n.r-panel path {\n fill: var(--od-fg) !important;\n}\n\n.r-panel header,\n.r-panel .header,\n.r-panel > div:first-child {\n background-color: var(--od-bg-alt) !important;\n border-bottom: 1px solid var(--od-border) !important;\n}\n\n.r-panel iframe,\ndiv.joplin-plugin-view iframe {\n background-color: var(--od-bg) !important;\n}\n\n/* --- 10. App-wide Custom Scrollbars --- */\n.side-bar::-webkit-scrollbar,\n.note-list::-webkit-scrollbar,\n.r-panel::-webkit-scrollbar {\n width: 6px !important;\n}\n\n.side-bar::-webkit-scrollbar-track,\n.note-list::-webkit-scrollbar-track,\n.r-panel::-webkit-scrollbar-track {\n background: var(--od-scrollbar-track) !important;\n}\n\n.side-bar::-webkit-scrollbar-thumb,\n.note-list::-webkit-scrollbar-thumb,\n.r-panel::-webkit-scrollbar-thumb {\n background: var(--od-scrollbar-thumb) !important;\n border-radius: 3px !important;\n}\n`},n.buildThemeCss=function(t){const n=e.themes[t.themeKey]||e.themes["atom-one-dark"],{fontImport:o,resolvedFont:i,resolvedCodeFont:a}=r(t),d=function(t){const n={h1:"1.75em",h2:"1.42em",h3:"1.25em",h4:"1.12em",h5:"1.05em",h6:"1.0em"};if("large"===t.headingSizePreset)return{h1:"2.15em",h2:"1.7em",h3:"1.4em",h4:"1.22em",h5:"1.1em",h6:"1.0em"};if("compact"===t.headingSizePreset)return{h1:"1.5em",h2:"1.3em",h3:"1.18em",h4:"1.08em",h5:"1.02em",h6:"0.95em"};if("custom"===t.headingSizePreset&&t.customHeadingSizes){const o=t.customHeadingSizes.split(",").map(t=>t.replace(/h[1-6]:?/gi,"").trim()).filter(t=>t.length>0);return{h1:o[0]||n.h1,h2:o[1]||n.h2,h3:o[2]||n.h3,h4:o[3]||n.h4,h5:o[4]||n.h5,h6:o[5]||n.h6}}return n}(t);let l=":root {\n";for(const[t,o]of Object.entries(n.variables))l+=` ${t}: ${o};\n`;l+=` --mermaid-font-family: ${i} !important;\n`,l+="}\n";let m="";m="rtl"===t.direction?'\nbody#tinymce, body, #rendered-md { direction: rtl !important; text-align: right !important; }\nbody#tinymce h1, #rendered-md h1 { text-align: right !important; }\nbody#tinymce h2, #rendered-md h2 {\n border-right: 5px solid var(--od-h2) !important;\n border-left: none !important;\n padding-right: 12px !important;\n padding-left: 0 !important;\n text-align: right !important;\n}\nbody#tinymce :is(h3, h4, h5, h6), #rendered-md :is(h3, h4, h5, h6) { text-align: right !important; }\nbody#tinymce ul, body#tinymce ol, #rendered-md ul, #rendered-md ol {\n direction: rtl !important;\n text-align: right !important;\n padding-right: 1.6em !important;\n padding-left: 0 !important;\n}\n#rendered-md li, body#tinymce li { direction: rtl !important; text-align: right !important; }\n#rendered-md ul ul, #rendered-md ol ol, #rendered-md ul ol, #rendered-md ol ul,\nbody#tinymce ul ul, body#tinymce ol ol, body#tinymce ul ol, body#tinymce ol ul {\n padding-right: 1.4em !important;\n padding-left: 0 !important;\n}\n.md-checkbox input[type="checkbox"] { margin-left: 8px !important; margin-right: 0 !important; }\n\n/* RTL Blockquotes: 1px Right Border & No Left Border */\nbody#tinymce blockquote, #rendered-md blockquote {\n direction: rtl !important;\n text-align: right !important;\n border-right: 1px solid var(--od-comment) !important;\n border-left: 0 !important;\n}\nbody#tinymce th, #rendered-md th, body#tinymce td, #rendered-md td { text-align: right !important; }\n.mermaid .nodeLabel, .mermaid .edgeLabel, .mermaid .label, .mermaid text {\n direction: rtl !important;\n unicode-bidi: plaintext !important;\n}\n\n#rendered-md [dir="ltr"], body#tinymce [dir="ltr"],\n#rendered-md [dir="ltr"] :is(h1, h2, h3, h4, h5, h6, p, li, blockquote, dt, dd),\nbody#tinymce [dir="ltr"] :is(h1, h2, h3, h4, h5, h6, p, li, blockquote, dt, dd) {\n direction: ltr !important;\n text-align: left !important;\n}\n#rendered-md [dir="ltr"] h2, body#tinymce [dir="ltr"] h2 {\n border-right: none !important;\n border-left: 5px solid var(--od-h2) !important;\n padding-left: 12px !important;\n padding-right: 0 !important;\n}\n#rendered-md [dir="ltr"] blockquote, body#tinymce [dir="ltr"] blockquote {\n border-right: none !important;\n border-left: 1px solid var(--od-comment) !important;\n padding-left: 16px !important;\n padding-right: 12px !important;\n}\n#rendered-md [dir="ltr"] :is(ul, ol), body#tinymce [dir="ltr"] :is(ul, ol) {\n direction: ltr !important;\n text-align: left !important;\n padding-left: 1.6em !important;\n padding-right: 0 !important;\n}\n#rendered-md [dir="ltr"] :is(ul ul, ol ol, ul ol, ol ul), body#tinymce [dir="ltr"] :is(ul ul, ol ol, ul ol, ol ul) {\n padding-left: 1.4em !important;\n padding-right: 0 !important;\n}\n#rendered-md [dir="ltr"] .md-checkbox input[type="checkbox"], body#tinymce [dir="ltr"] .md-checkbox input[type="checkbox"] {\n margin-right: 8px !important;\n margin-left: 0 !important;\n}\n#rendered-md [dir="ltr"] table :is(th, td), body#tinymce [dir="ltr"] table :is(th, td) { text-align: left !important; }\n':"auto"===t.direction?"\nbody#tinymce, body, #rendered-md { direction: ltr !important; text-align: start !important; }\n#rendered-md :is(p, h1, h2, h3, h4, h5, h6, li, blockquote, dt, dd) {\n unicode-bidi: plaintext !important;\n text-align: start !important;\n}\nbody#tinymce h2, #rendered-md h2 { border-inline-start: 5px solid var(--od-h2) !important; padding-inline-start: 12px !important; }\nbody#tinymce ul, body#tinymce ol, #rendered-md ul, #rendered-md ol { padding-inline-start: 2em !important; }\n\n/* Auto-BiDi Blockquotes: 1px Border on Dynamic Inline Start */\nbody#tinymce blockquote, #rendered-md blockquote {\n border-inline-start: 1px solid var(--od-comment) !important;\n border-inline-end: 0 !important;\n padding-inline-start: 16px !important;\n}\nbody#tinymce th, #rendered-md th, body#tinymce td, #rendered-md td { text-align: start !important; }\n.mermaid .nodeLabel, .mermaid .edgeLabel, .mermaid .label, .mermaid text { unicode-bidi: plaintext !important; }\n":'\nbody#tinymce, body, #rendered-md { direction: ltr !important; text-align: left !important; }\nbody#tinymce h2, #rendered-md h2 {\n border-left: 5px solid var(--od-h2) !important;\n border-right: none !important;\n padding-left: 12px !important;\n padding-right: 0 !important;\n}\nbody#tinymce ul, body#tinymce ol, #rendered-md ul, #rendered-md ol { padding-left: 2em !important; }\n.md-checkbox input[type="checkbox"] { margin-right: 8px !important; margin-left: 0 !important; }\n\n/* LTR Blockquotes: 1px Left Border & No Right Border */\nbody#tinymce blockquote, #rendered-md blockquote {\n border-left: 1px solid var(--od-comment) !important;\n border-right: 0 !important;\n}\nbody#tinymce th, #rendered-md th, body#tinymce td, #rendered-md td { text-align: left !important; }\n.mermaid .nodeLabel, .mermaid .edgeLabel, .mermaid .label, .mermaid text { direction: ltr !important; }\n';let p="";"compact"===t.contentMaxWidth?p="max-width: 760px !important; margin: 0 auto !important;":"comfortable"===t.contentMaxWidth&&(p="max-width: 920px !important; margin: 0 auto !important;");const c="paper"===t.pdfExportStyle,b=c?"#ffffff":"var(--od-bg)",s=c?"#1e2227":"var(--od-fg)";return`${o}\n${l}\n${m}\n${`\n*, *::before, *::after { box-sizing: border-box !important; }\nhtml, body, #rendered-md { max-width: 100% !important; overflow-x: hidden !important; }\n::selection { background-color: var(--od-selection) !important; }\n\nbody#tinymce, body, #rendered-md {\n font-family: ${i} !important;\n line-height: ${t.lineHeight} !important;\n font-size: ${t.fontSize} !important;\n background-color: var(--od-bg) !important;\n color: var(--od-fg) !important;\n word-break: break-word !important;\n overflow-wrap: anywhere !important;\n -webkit-font-smoothing: antialiased !important;\n -moz-osx-font-smoothing: grayscale !important;\n}\n\n#rendered-md { ${p} }\n\nbody#tinymce h1, #rendered-md h1 {\n color: var(--od-h1) !important;\n font-size: ${d.h1} !important;\n font-weight: 800 !important;\n padding: 0 0 8px 0 !important;\n margin: 32px 0 20px 0 !important;\n border-bottom: 2px solid var(--od-h1) !important;\n}\n\nbody#tinymce h2, #rendered-md h2 {\n color: var(--od-h2) !important;\n font-size: ${d.h2} !important;\n font-weight: 700 !important;\n margin: 28px 0 18px 0 !important;\n}\n\nbody#tinymce h3, #rendered-md h3 { color: var(--od-h3) !important; font-size: ${d.h3} !important; font-weight: 600 !important; margin: 24px 0 14px 0 !important; }\nbody#tinymce h4, #rendered-md h4 { color: var(--od-h4) !important; font-size: ${d.h4} !important; font-weight: 600 !important; margin: 20px 0 12px 0 !important; }\nbody#tinymce h5, #rendered-md h5 { color: var(--od-h5) !important; font-size: ${d.h5} !important; font-weight: 600 !important; margin: 18px 0 10px 0 !important; }\nbody#tinymce h6, #rendered-md h6 { color: var(--od-h6) !important; font-size: ${d.h6} !important; font-weight: 700 !important; margin: 16px 0 10px 0 !important; }\n\n#rendered-md li, body#tinymce li { margin-bottom: 0.45em !important; line-height: ${t.lineHeight} !important; }\n#rendered-md li::marker, body#tinymce li::marker { color: var(--od-h2) !important; font-weight: bold !important; }\n\n.md-checkbox input[type="checkbox"] { vertical-align: middle !important; cursor: pointer !important; }\n#rendered-md li:has(input[type="checkbox"]:checked),\nbody#tinymce li:has(input[type="checkbox"]:checked) {\n opacity: 0.55 !important;\n text-decoration: line-through !important;\n transition: opacity 0.2s ease !important;\n}\n#rendered-md li:has(input[type="checkbox"]:checked) code,\nbody#tinymce li:has(input[type="checkbox"]:checked) code { opacity: 0.8 !important; text-decoration: none !important; }\n\n#rendered-md img, body#tinymce img {\n max-width: 100% !important;\n max-height: 520px !important;\n height: auto !important;\n object-fit: contain !important;\n display: block !important;\n margin: 18px auto !important;\n border-radius: 6px !important;\n box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08) !important;\n}\n\nbody#tinymce a, #rendered-md a { color: var(--od-link) !important; text-decoration: none !important; transition: color 0.15s ease !important; }\nbody#tinymce a:hover, #rendered-md a:hover { color: var(--od-link-hover) !important; text-decoration: underline !important; }\n\n#rendered-md a[href^=":/"], body#tinymce a[href^=":/"] {\n font-weight: 600 !important;\n border-bottom: 1.5px dashed var(--od-link) !important;\n text-decoration: none !important;\n}\n#rendered-md a[href^=":/"]:hover, body#tinymce a[href^=":/"]:hover { border-bottom-style: solid !important; }\n\n/* =================================================================\n BLOCKQUOTES: CLEAN MINIMAL 1PX STYLE (TRANSPARENT BG, NO RADIUS)\n ================================================================= */\nbody#tinymce blockquote, #rendered-md blockquote {\n padding: 10px 16px !important;\n margin: 18px 0 !important;\n background: transparent !important;\n border-radius: 0 !important;\n color: var(--od-fg) !important;\n}\n\nmark { background-color: var(--od-mark-bg) !important; color: var(--od-fg) !important; padding: 1px 4px !important; border-radius: 3px !important; }\nkbd {\n background-color: var(--od-kbd-bg) !important;\n border: 1px solid var(--od-border) !important;\n color: var(--od-fg) !important;\n padding: 2px 5px !important;\n border-radius: 4px !important;\n font-size: 0.85em !important;\n box-shadow: 0 1px 0 rgba(0,0,0,0.2) !important;\n}\n\nbody#tinymce .joplin-source, #rendered-md .joplin-source, pre.joplin-source, div.joplin-editable > pre.joplin-source {\n display: none !important; visibility: hidden !important; height: 0 !important; margin: 0 !important; padding: 0 !important; border: none !important;\n}\n\nbody#tinymce code, #rendered-md code {\n font-family: ${a} !important;\n background-color: var(--od-code-bg) !important;\n color: var(--od-code-fg) !important;\n padding: 2px 6px !important;\n border-radius: 4px !important;\n font-size: 0.9em !important;\n}\n\nbody#tinymce pre:not(.mermaid):not(.joplin-source),\n#rendered-md pre:not(.mermaid):not(.joplin-source) {\n direction: ltr !important;\n text-align: left !important;\n unicode-bidi: isolate !important;\n background-color: var(--od-pre-bg) !important;\n border: 1px solid var(--od-pre-border) !important;\n border-radius: 6px !important;\n padding: 14px !important;\n margin: 18px 0 !important;\n max-width: 100% !important;\n box-sizing: border-box !important;\n overflow-x: auto !important;\n overflow-y: hidden !important;\n white-space: pre !important;\n word-break: normal !important;\n word-wrap: normal !important;\n overflow-wrap: normal !important;\n -webkit-overflow-scrolling: touch !important;\n scrollbar-width: thin !important;\n scrollbar-color: var(--od-scrollbar-thumb) var(--od-scrollbar-track) !important;\n}\n\nbody#tinymce pre:not(.mermaid):not(.joplin-source) code,\n#rendered-md pre:not(.mermaid):not(.joplin-source) code {\n background-color: transparent !important;\n color: var(--od-fg) !important;\n padding: 0 !important;\n white-space: pre !important;\n display: inline-block !important;\n min-width: 100% !important;\n}\n\nbody#tinymce :is(p, li) code, #rendered-md :is(p, li) code {\n direction: ltr !important;\n display: inline-block !important;\n unicode-bidi: embed !important;\n vertical-align: baseline !important;\n white-space: normal !important;\n max-width: 100% !important;\n overflow-wrap: anywhere !important;\n word-break: break-word !important;\n}\n\n/* Explicit Table Font Inheritance */\nbody#tinymce table, #rendered-md table,\nbody#tinymce th, #rendered-md th,\nbody#tinymce td, #rendered-md td {\n font-family: ${i} !important;\n}\nbody#tinymce table :is(th, td) *:not(code):not(pre),\n#rendered-md table :is(th, td) *:not(code):not(pre) {\n font-family: ${i} !important;\n}\nbody#tinymce table :is(th, td) code,\n#rendered-md table :is(th, td) code {\n font-family: ${a} !important;\n}\n\nbody#tinymce table, #rendered-md table {\n border-collapse: collapse !important;\n width: 100% !important;\n max-width: 100% !important;\n margin: 20px 0 !important;\n border: 1px solid var(--od-border) !important;\n display: block !important;\n box-sizing: border-box !important;\n overflow-x: auto !important;\n -webkit-overflow-scrolling: touch !important;\n scrollbar-width: thin !important;\n scrollbar-color: var(--od-scrollbar-thumb) var(--od-scrollbar-track) !important;\n color: var(--od-fg) !important;\n}\n\nbody#tinymce th, #rendered-md th {\n background-color: var(--od-table-th) !important;\n color: var(--od-link) !important;\n font-weight: bold !important;\n border: 1px solid var(--od-border) !important;\n padding: 8px 12px !important;\n white-space: nowrap !important;\n}\n\nbody#tinymce td, #rendered-md td {\n border: 1px solid var(--od-border) !important;\n padding: 8px 12px !important;\n color: var(--od-fg) !important;\n}\n\n#rendered-md table td :not(code):not(pre):not(a),\nbody#tinymce table td :not(code):not(pre):not(a) { color: var(--od-fg) !important; }\nbody#tinymce tr:nth-child(even), #rendered-md tr:nth-child(even) { background-color: var(--od-table-even) !important; }\nbody#tinymce tr:nth-child(odd), #rendered-md tr:nth-child(odd) { background-color: var(--od-table-odd) !important; }\n\n/* Mermaid Diagrams */\n#rendered-md .mermaid, #rendered-md div.mermaid, #rendered-md pre.mermaid,\nbody#tinymce .mermaid, body#tinymce div.mermaid, body#tinymce pre.mermaid {\n display: block !important;\n text-align: center !important;\n width: 100% !important;\n max-width: 100% !important;\n box-sizing: border-box !important;\n margin: 24px 0 !important;\n padding: 20px 14px !important;\n direction: ltr !important;\n overflow-x: auto !important;\n overflow-y: hidden !important;\n -webkit-overflow-scrolling: touch !important;\n scrollbar-width: thin !important;\n background-color: var(--od-mermaid-bg) !important;\n border: 1px solid var(--od-mermaid-border) !important;\n border-radius: 8px !important;\n}\n\n#rendered-md .mermaid svg, #rendered-md div.mermaid svg, #rendered-md pre.mermaid svg {\n display: inline-block !important;\n vertical-align: middle !important;\n margin: 0 auto !important;\n height: auto !important;\n max-width: 100% !important;\n width: auto !important;\n}\n\n.mermaid foreignObject { overflow: visible !important; }\n.mermaid foreignObject div {\n display: flex !important;\n align-items: center !important;\n justify-content: center !important;\n white-space: normal !important;\n word-break: normal !important;\n line-height: 1.4 !important;\n text-align: center !important;\n padding: 3px 6px !important;\n}\n\n.mermaid, .mermaid svg, .mermaid text, .mermaid tspan,\n.mermaid .label, .mermaid .nodeLabel, .mermaid .edgeLabel, .mermaid .cluster-label {\n font-family: var(--mermaid-font-family) !important;\n}\n\n.mermaid .node rect, .mermaid .node polygon { rx: 6px !important; ry: 6px !important; }\n.mermaid .labelBkg, .mermaid rect.labelBkg, .mermaid span.labelBkg, .mermaid .edgeLabel rect {\n background-color: transparent !important; fill: transparent !important; opacity: 0 !important; border: none !important;\n}\n.mermaid .edgeLabel {\n background-color: var(--od-bg) !important;\n color: var(--od-fg) !important;\n border-radius: 4px !important;\n padding: 1px 6px !important;\n}\n\n.katex-display {\n max-width: 100% !important;\n overflow-x: auto !important;\n overflow-y: hidden !important;\n -webkit-overflow-scrolling: touch !important;\n box-sizing: border-box !important;\n padding: 6px 0 !important;\n}\n\n#rendered-md .table-of-contents, body#tinymce .table-of-contents {\n background-color: var(--od-bg-alt) !important;\n border: 1px solid var(--od-border) !important;\n border-radius: 6px !important;\n padding: 12px 18px !important;\n margin: 20px 0 !important;\n display: inline-block !important;\n min-width: min(100%, 300px) !important;\n}\n#rendered-md .table-of-contents ul { margin: 4px 0 !important; }\n\n#rendered-md .footnotes, body#tinymce .footnotes {\n margin-top: 40px !important;\n padding-top: 16px !important;\n border-top: 1px solid var(--od-border) !important;\n font-size: 0.88em !important;\n color: var(--od-comment) !important;\n}\n\n/* Mobile Responsiveness (< 768px) */\n@media screen and (max-width: 768px) {\n body#tinymce, body, #rendered-md {\n font-size: ${t.fontSize} !important;\n line-height: ${t.lineHeight} !important;\n max-width: 100% !important;\n overflow-x: hidden !important;\n }\n body#tinymce h1, #rendered-md h1 { font-size: calc(${d.h1} * 0.9) !important; margin: 20px 0 12px 0 !important; }\n body#tinymce h2, #rendered-md h2 { font-size: calc(${d.h2} * 0.92) !important; margin: 18px 0 10px 0 !important; }\n body#tinymce h3, #rendered-md h3 { font-size: ${d.h3} !important; margin: 16px 0 8px 0 !important; }\n #rendered-md img, body#tinymce img { max-height: 420px !important; }\n\n body#tinymce pre:not(.mermaid):not(.joplin-source),\n #rendered-md pre:not(.mermaid):not(.joplin-source) {\n font-size: 0.9em !important;\n padding: 10px 12px !important;\n white-space: pre !important;\n max-width: 100% !important;\n box-sizing: border-box !important;\n overflow-x: auto !important;\n -webkit-overflow-scrolling: touch !important;\n }\n body#tinymce table, #rendered-md table {\n font-size: 0.9em !important;\n max-width: 100% !important;\n box-sizing: border-box !important;\n overflow-x: auto !important;\n -webkit-overflow-scrolling: touch !important;\n }\n #rendered-md .mermaid, body#tinymce .mermaid {\n padding: 14px 8px !important;\n max-width: 100% !important;\n box-sizing: border-box !important;\n overflow-x: auto !important;\n }\n}\n\n/* =================================================================\n FLAWLESS PDF & PRINT EXPORT ENGINE\n ================================================================= */\n@page {\n margin: 12mm 15mm 12mm 15mm;\n size: auto;\n}\n\n@media print {\n *, *::before, *::after, html, body, #rendered-md {\n -webkit-print-color-adjust: exact !important;\n print-color-adjust: exact !important;\n }\n\n body, #rendered-md {\n background-color: ${b} !important;\n color: ${s} !important;\n max-width: 100% !important;\n margin: 0 !important;\n padding: 0 !important;\n font-size: 14px !important;\n line-height: ${t.lineHeight} !important;\n }\n\n body#tinymce table, #rendered-md table,\n body#tinymce th, #rendered-md th,\n body#tinymce td, #rendered-md td {\n font-family: ${i} !important;\n }\n\n body#tinymce table :is(th, td) code,\n #rendered-md table :is(th, td) code {\n font-family: ${a} !important;\n }\n\n .exported-note-title {\n color: var(--od-h1) !important;\n font-family: ${i} !important;\n font-size: 1.9em !important;\n font-weight: 800 !important;\n border-bottom: 2px solid var(--od-h1) !important;\n padding-bottom: 8px !important;\n margin-bottom: 24px !important;\n page-break-after: avoid !important;\n break-after: avoid !important;\n }\n\n body#tinymce h1, #rendered-md h1 { color: var(--od-h1) !important; page-break-after: avoid !important; break-after: avoid !important; }\n body#tinymce h2, #rendered-md h2 { color: var(--od-h2) !important; page-break-after: avoid !important; break-after: avoid !important; }\n body#tinymce h3, #rendered-md h3 { color: var(--od-h3) !important; page-break-after: avoid !important; break-after: avoid !important; }\n body#tinymce h4, #rendered-md h4 { color: var(--od-h4) !important; page-break-after: avoid !important; break-after: avoid !important; }\n body#tinymce h5, #rendered-md h5 { color: var(--od-h5) !important; page-break-after: avoid !important; break-after: avoid !important; }\n body#tinymce h6, #rendered-md h6 { color: var(--od-h6) !important; page-break-after: avoid !important; break-after: avoid !important; }\n\n body#tinymce table, #rendered-md table {\n display: table !important;\n width: 100% !important;\n max-width: 100% !important;\n table-layout: auto !important;\n overflow: visible !important;\n page-break-inside: auto !important;\n break-inside: auto !important;\n margin: 16px 0 !important;\n }\n\n body#tinymce tr, #rendered-md tr { page-break-inside: avoid !important; break-inside: avoid !important; }\n body#tinymce th, #rendered-md th, body#tinymce td, #rendered-md td {\n white-space: normal !important;\n word-break: break-word !important;\n overflow-wrap: break-word !important;\n padding: 6px 10px !important;\n }\n\n body#tinymce pre:not(.mermaid):not(.joplin-source),\n #rendered-md pre:not(.mermaid):not(.joplin-source) {\n white-space: pre-wrap !important;\n word-break: break-word !important;\n overflow-wrap: break-word !important;\n overflow: visible !important;\n page-break-inside: avoid !important;\n break-inside: avoid !important;\n background-color: var(--od-pre-bg) !important;\n border: 1px solid var(--od-pre-border) !important;\n padding: 12px !important;\n margin: 14px 0 !important;\n }\n\n body#tinymce pre:not(.mermaid):not(.joplin-source) code,\n #rendered-md pre:not(.mermaid):not(.joplin-source) code {\n white-space: pre-wrap !important;\n display: block !important;\n min-width: 100% !important;\n }\n\n #rendered-md .mermaid, body#tinymce .mermaid {\n page-break-inside: avoid !important;\n break-inside: avoid !important;\n overflow: visible !important;\n background-color: var(--od-mermaid-bg) !important;\n border: 1px solid var(--od-mermaid-border) !important;\n padding: 16px 10px !important;\n margin: 18px auto !important;\n }\n\n #rendered-md .mermaid svg, body#tinymce .mermaid svg {\n max-width: 100% !important;\n height: auto !important;\n display: block !important;\n margin: 0 auto !important;\n }\n\n #rendered-md img, body#tinymce img {\n page-break-inside: avoid !important;\n break-inside: avoid !important;\n max-width: 100% !important;\n height: auto !important;\n }\n\n body#tinymce blockquote, #rendered-md blockquote {\n page-break-inside: avoid !important;\n break-inside: avoid !important;\n background-color: transparent !important;\n }\n\n .katex-display {\n page-break-inside: avoid !important;\n break-inside: avoid !important;\n overflow: visible !important;\n }\n}\n\n::-webkit-scrollbar { width: 8px !important; height: 8px !important; }\n::-webkit-scrollbar-track { background: var(--od-scrollbar-track) !important; border-radius: 4px !important; }\n::-webkit-scrollbar-thumb { background: var(--od-scrollbar-thumb) !important; border-radius: 4px !important; }\n::-webkit-scrollbar-thumb:hover { background: var(--od-scrollbar-hover) !important; }\n`}`};const e=o(880);function r(t){let n="",o=t.fontFamily;switch(t.fontPreset){case"inter":n+="@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');\n",o="'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif";break;case"roboto":n+="@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');\n",o="'Roboto', -apple-system, BlinkMacSystemFont, sans-serif";break;case"vazirmatn":n+="@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');\n",o="'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif";break;case"noto-arabic":n+="@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@400;600;700&display=swap');\n",o="'Noto Sans Arabic', -apple-system, BlinkMacSystemFont, sans-serif";break;case"noto-cjk-sc":n+="@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&display=swap');\n",o="'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif";break;case"noto-cjk-jp":n+="@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');\n",o="'Noto Sans JP', 'Hiragino Sans', 'Meiryo', sans-serif";break;case"heebo":n+="@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@400;600;700&display=swap');\n",o="'Heebo', -apple-system, BlinkMacSystemFont, sans-serif";break;case"noto-devanagari":n+="@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@400;600;700&display=swap');\n",o="'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont, sans-serif";break;case"lora":n+="@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;0,700;1,400&display=swap');\n",o="'Lora', Georgia, serif";break;case"system":o="-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif";break;default:o=t.fontFamily||"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif"}let e=t.codeFont;switch(t.codeFontPreset){case"fira-code":n+="@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;600&display=swap');\n",e="'Fira Code', monospace";break;case"jetbrains-mono":n+="@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600&display=swap');\n",e="'JetBrains Mono', monospace";break;case"system-mono":e="'Cascadia Code', 'Consolas', 'Courier New', monospace";break;default:e=t.codeFont||"'Cascadia Code', 'Fira Code', 'Consolas', monospace"}return{fontImport:n,resolvedFont:o,resolvedCodeFont:e}}},880(t,n){n.themes=void 0,n.themes={"atom-one-dark":{name:"Atom One Dark",isDark:!0,variables:{"--od-bg":"#282c34","--od-fg":"#abb2bf","--od-bg-alt":"#2c313c","--od-border":"#3e4452","--od-comment":"#5c6370","--od-h1":"#e06c75","--od-h2":"#61afef","--od-h3":"#98c379","--od-h4":"#c678dd","--od-h5":"#56b6c2","--od-h6":"#d19a66","--od-link":"#61afef","--od-link-hover":"#56b6c2","--od-code-bg":"#3e4452","--od-code-fg":"#e06c75","--od-pre-bg":"#21252b","--od-pre-border":"#181a1f","--od-table-even":"#21252b","--od-table-odd":"#282c34","--od-table-th":"#2c313c","--od-scrollbar-track":"#1e2227","--od-scrollbar-thumb":"#4b5263","--od-scrollbar-hover":"#5c6370","--od-mermaid-bg":"#21252b","--od-mermaid-border":"#333842","--od-selection":"rgba(97, 175, 239, 0.25)","--od-mark-bg":"#634a17","--od-kbd-bg":"#353b45"}},"atom-one-light":{name:"Atom One Light",isDark:!1,variables:{"--od-bg":"#fafafa","--od-fg":"#383a42","--od-bg-alt":"#f0f0f1","--od-border":"#d0d0d0","--od-comment":"#a0a1a7","--od-h1":"#e45649","--od-h2":"#4078f2","--od-h3":"#50a14f","--od-h4":"#a626a4","--od-h5":"#0184bc","--od-h6":"#986801","--od-link":"#4078f2","--od-link-hover":"#0184bc","--od-code-bg":"#eaeaeb","--od-code-fg":"#e45649","--od-pre-bg":"#f4f4f5","--od-pre-border":"#d8d8d8","--od-table-even":"#f4f4f5","--od-table-odd":"#fafafa","--od-table-th":"#ebebeb","--od-scrollbar-track":"#e4e4e6","--od-scrollbar-thumb":"#b0b0b4","--od-scrollbar-hover":"#8e8e93","--od-mermaid-bg":"#fbfbfb","--od-mermaid-border":"#e4e4e6","--od-selection":"rgba(64, 120, 242, 0.2)","--od-mark-bg":"#ffeaa7","--od-kbd-bg":"#eaeaeb"}},"tokyo-night":{name:"Tokyo Night",isDark:!0,variables:{"--od-bg":"#1a1b26","--od-fg":"#c0caf5","--od-bg-alt":"#16161e","--od-border":"#292e42","--od-comment":"#565f89","--od-h1":"#f7768e","--od-h2":"#7aa2f7","--od-h3":"#9ece6a","--od-h4":"#bb9af7","--od-h5":"#7dcfff","--od-h6":"#e0af68","--od-link":"#7aa2f7","--od-link-hover":"#7dcfff","--od-code-bg":"#24283b","--od-code-fg":"#f7768e","--od-pre-bg":"#1f2335","--od-pre-border":"#292e42","--od-table-even":"#1f2335","--od-table-odd":"#1a1b26","--od-table-th":"#24283b","--od-scrollbar-track":"#16161e","--od-scrollbar-thumb":"#3b4261","--od-scrollbar-hover":"#565f89","--od-mermaid-bg":"#1f2335","--od-mermaid-border":"#292e42","--od-selection":"rgba(122, 162, 247, 0.25)","--od-mark-bg":"#3d3725","--od-kbd-bg":"#24283b"}},"tokyo-night-storm":{name:"Tokyo Night Storm",isDark:!0,variables:{"--od-bg":"#24283b","--od-fg":"#c0caf5","--od-bg-alt":"#1f2335","--od-border":"#3b4261","--od-comment":"#565f89","--od-h1":"#f7768e","--od-h2":"#7aa2f7","--od-h3":"#9ece6a","--od-h4":"#bb9af7","--od-h5":"#7dcfff","--od-h6":"#e0af68","--od-link":"#7aa2f7","--od-link-hover":"#7dcfff","--od-code-bg":"#2f354f","--od-code-fg":"#f7768e","--od-pre-bg":"#1a1b26","--od-pre-border":"#2f354f","--od-table-even":"#1f2335","--od-table-odd":"#24283b","--od-table-th":"#2f354f","--od-scrollbar-track":"#1f2335","--od-scrollbar-thumb":"#414868","--od-scrollbar-hover":"#565f89","--od-mermaid-bg":"#1f2335","--od-mermaid-border":"#3b4261","--od-selection":"rgba(122, 162, 247, 0.25)","--od-mark-bg":"#3d3725","--od-kbd-bg":"#2f354f"}},"everforest-dark":{name:"Everforest Dark",isDark:!0,variables:{"--od-bg":"#2d353b","--od-fg":"#d3c6aa","--od-bg-alt":"#232a2e","--od-border":"#475258","--od-comment":"#859289","--od-h1":"#e67e80","--od-h2":"#7fbbb3","--od-h3":"#a7c080","--od-h4":"#d699b6","--od-h5":"#83c092","--od-h6":"#dbbc7f","--od-link":"#7fbbb3","--od-link-hover":"#83c092","--od-code-bg":"#343f44","--od-code-fg":"#e67e80","--od-pre-bg":"#232a2e","--od-pre-border":"#3d484d","--od-table-even":"#232a2e","--od-table-odd":"#2d353b","--od-table-th":"#343f44","--od-scrollbar-track":"#232a2e","--od-scrollbar-thumb":"#475258","--od-scrollbar-hover":"#56635f","--od-mermaid-bg":"#232a2e","--od-mermaid-border":"#3d484d","--od-selection":"rgba(127, 187, 179, 0.25)","--od-mark-bg":"#494228","--od-kbd-bg":"#343f44"}},"everforest-light":{name:"Everforest Light",isDark:!1,variables:{"--od-bg":"#fdf6e3","--od-fg":"#5c6a72","--od-bg-alt":"#f4f0d9","--od-border":"#e0dcc7","--od-comment":"#939f91","--od-h1":"#f85552","--od-h2":"#3a94c5","--od-h3":"#8da101","--od-h4":"#df69ba","--od-h5":"#35a77c","--od-h6":"#dfa000","--od-link":"#3a94c5","--od-link-hover":"#35a77c","--od-code-bg":"#ece7cf","--od-code-fg":"#f85552","--od-pre-bg":"#f4f0d9","--od-pre-border":"#e0dcc7","--od-table-even":"#f4f0d9","--od-table-odd":"#fdf6e3","--od-table-th":"#ebe5c8","--od-scrollbar-track":"#f4f0d9","--od-scrollbar-thumb":"#cfc8ab","--od-scrollbar-hover":"#a7a083","--od-mermaid-bg":"#faf5e0","--od-mermaid-border":"#e0dcc7","--od-selection":"rgba(58, 148, 197, 0.2)","--od-mark-bg":"#fae3b0","--od-kbd-bg":"#ebe5c8"}},"catppuccin-mocha":{name:"Catppuccin Mocha",isDark:!0,variables:{"--od-bg":"#1e1e2e","--od-fg":"#cdd6f4","--od-bg-alt":"#181825","--od-border":"#45475a","--od-comment":"#6c7086","--od-h1":"#f38ba8","--od-h2":"#89b4fa","--od-h3":"#a6e3a1","--od-h4":"#cba6f7","--od-h5":"#89dceb","--od-h6":"#fab387","--od-link":"#89b4fa","--od-link-hover":"#89dceb","--od-code-bg":"#313244","--od-code-fg":"#f38ba8","--od-pre-bg":"#181825","--od-pre-border":"#313244","--od-table-even":"#181825","--od-table-odd":"#1e1e2e","--od-table-th":"#313244","--od-scrollbar-track":"#181825","--od-scrollbar-thumb":"#45475a","--od-scrollbar-hover":"#585b70","--od-mermaid-bg":"#181825","--od-mermaid-border":"#313244","--od-selection":"rgba(137, 180, 250, 0.25)","--od-mark-bg":"#453c24","--od-kbd-bg":"#313244"}},"catppuccin-latte":{name:"Catppuccin Latte",isDark:!1,variables:{"--od-bg":"#eff1f5","--od-fg":"#4c4f69","--od-bg-alt":"#e6e9ef","--od-border":"#ccd0da","--od-comment":"#8c8fa1","--od-h1":"#d20f39","--od-h2":"#1e66f5","--od-h3":"#40a02b","--od-h4":"#8839ef","--od-h5":"#04a5e5","--od-h6":"#fe640b","--od-link":"#1e66f5","--od-link-hover":"#04a5e5","--od-code-bg":"#e6e9ef","--od-code-fg":"#d20f39","--od-pre-bg":"#e6e9ef","--od-pre-border":"#ccd0da","--od-table-even":"#e6e9ef","--od-table-odd":"#eff1f5","--od-table-th":"#dce0e8","--od-scrollbar-track":"#e6e9ef","--od-scrollbar-thumb":"#bcc0cc","--od-scrollbar-hover":"#9ca0b0","--od-mermaid-bg":"#f2f4f8","--od-mermaid-border":"#ccd0da","--od-selection":"rgba(30, 102, 245, 0.2)","--od-mark-bg":"#feefc3","--od-kbd-bg":"#e6e9ef"}},nord:{name:"Nord",isDark:!0,variables:{"--od-bg":"#2e3440","--od-fg":"#d8dee9","--od-bg-alt":"#242933","--od-border":"#434c5e","--od-comment":"#616e88","--od-h1":"#bf616a","--od-h2":"#88c0d0","--od-h3":"#a3be8c","--od-h4":"#b48ead","--od-h5":"#81a1c1","--od-h6":"#ebcb8b","--od-link":"#88c0d0","--od-link-hover":"#8fbcbb","--od-code-bg":"#3b4252","--od-code-fg":"#bf616a","--od-pre-bg":"#242933","--od-pre-border":"#3b4252","--od-table-even":"#242933","--od-table-odd":"#2e3440","--od-table-th":"#3b4252","--od-scrollbar-track":"#242933","--od-scrollbar-thumb":"#434c5e","--od-scrollbar-hover":"#4c566a","--od-mermaid-bg":"#242933","--od-mermaid-border":"#3b4252","--od-selection":"rgba(136, 192, 208, 0.25)","--od-mark-bg":"#453e28","--od-kbd-bg":"#3b4252"}},dracula:{name:"Dracula",isDark:!0,variables:{"--od-bg":"#282a36","--od-fg":"#f8f8f2","--od-bg-alt":"#21222c","--od-border":"#44475a","--od-comment":"#6272a4","--od-h1":"#ff5555","--od-h2":"#8be9fd","--od-h3":"#50fa7b","--od-h4":"#ff79c6","--od-h5":"#bd93f9","--od-h6":"#f1fa8c","--od-link":"#8be9fd","--od-link-hover":"#ff79c6","--od-code-bg":"#44475a","--od-code-fg":"#ff5555","--od-pre-bg":"#1e1f29","--od-pre-border":"#44475a","--od-table-even":"#21222c","--od-table-odd":"#282a36","--od-table-th":"#44475a","--od-scrollbar-track":"#1e1f29","--od-scrollbar-thumb":"#44475a","--od-scrollbar-hover":"#6272a4","--od-mermaid-bg":"#1e1f29","--od-mermaid-border":"#44475a","--od-selection":"rgba(139, 233, 253, 0.25)","--od-mark-bg":"#4c4a22","--od-kbd-bg":"#44475a"}},"gruvbox-dark":{name:"Gruvbox Dark",isDark:!0,variables:{"--od-bg":"#282828","--od-fg":"#ebdbb2","--od-bg-alt":"#1d2021","--od-border":"#504945","--od-comment":"#928374","--od-h1":"#fb4934","--od-h2":"#83a598","--od-h3":"#b8bb26","--od-h4":"#d3869b","--od-h5":"#8ec07c","--od-h6":"#fabd2f","--od-link":"#83a598","--od-link-hover":"#8ec07c","--od-code-bg":"#3c3836","--od-code-fg":"#fb4934","--od-pre-bg":"#1d2021","--od-pre-border":"#3c3836","--od-table-even":"#1d2021","--od-table-odd":"#282828","--od-table-th":"#3c3836","--od-scrollbar-track":"#1d2021","--od-scrollbar-thumb":"#504945","--od-scrollbar-hover":"#665c54","--od-mermaid-bg":"#1d2021","--od-mermaid-border":"#3c3836","--od-selection":"rgba(131, 165, 152, 0.25)","--od-mark-bg":"#4c421e","--od-kbd-bg":"#3c3836"}},"gruvbox-light":{name:"Gruvbox Light",isDark:!1,variables:{"--od-bg":"#fbf1c7","--od-fg":"#3c3836","--od-bg-alt":"#f2e5bc","--od-border":"#d5c4a1","--od-comment":"#928374","--od-h1":"#cc241d","--od-h2":"#458588","--od-h3":"#98971a","--od-h4":"#b16286","--od-h5":"#689d6a","--od-h6":"#d79921","--od-link":"#458588","--od-link-hover":"#689d6a","--od-code-bg":"#ebdbb2","--od-code-fg":"#cc241d","--od-pre-bg":"#f2e5bc","--od-pre-border":"#d5c4a1","--od-table-even":"#f2e5bc","--od-table-odd":"#fbf1c7","--od-table-th":"#ebdbb2","--od-scrollbar-track":"#f2e5bc","--od-scrollbar-thumb":"#bdae93","--od-scrollbar-hover":"#a89984","--od-mermaid-bg":"#faf3d6","--od-mermaid-border":"#d5c4a1","--od-selection":"rgba(69, 133, 136, 0.2)","--od-mark-bg":"#fedba8","--od-kbd-bg":"#ebdbb2"}}}}};const n={};let o=function o(e){const r=n[e];if(void 0!==r)return r.exports;const i=n[e]={exports:{}};return t[e].call(i.exports,i,i.exports,o),i.exports}(156);const e=exports;for(var r in o)e[r]=o[r];o.__esModule&&Object.defineProperty(e,"__esModule",{value:!0})})();
|
|
1
|
+
(()=>{"use strict";var t={998(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default="undefined"!=typeof joplin?joplin:global.joplin},143(t,n){var o,e;n.SettingItemType=n.ContentScriptType=void 0,function(t){t.MarkdownItPlugin="markdownItPlugin",t.CodeMirrorPlugin="codeMirrorPlugin"}(o||(n.ContentScriptType=o={})),function(t){t[t.Int=1]="Int",t[t.String=2]="String",t[t.Bool=3]="Bool",t[t.Array=4]="Array",t[t.Object=5]="Object",t[t.Button=6]="Button"}(e||(n.SettingItemType=e={}))},156(t,n,o){var e=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});const r=e(o(998)),i=o(143),a=o(800);r.default.plugins.register({onStart:async function(){let t="ltr",n="inter",o=null;try{let o="";if("function"==typeof r.default.settings.globalValues){const t=await r.default.settings.globalValues(["locale"]);o=t&&t[0]?String(t[0]):""}else"function"==typeof r.default.settings.globalValue&&(o=await r.default.settings.globalValue("locale"));o&&["fa","ar","he","ur","ug","ps","yi"].some(t=>o.toLowerCase().startsWith(t))&&(t="rtl",n="vazirmatn")}catch(o){console.warn("[Theme Studio] Could not detect user locale. Defaulting to LTR / Inter:",o),t="ltr",n="inter"}await r.default.settings.registerSection("themeStudioSection",{label:"Theme Studio",iconName:"fas fa-palette"}),await r.default.settings.registerSettings({theme:{value:"atom-one-dark",type:i.SettingItemType.String,section:"themeStudioSection",isEnum:!0,public:!0,label:"Color Theme",description:"Choose your desired color scheme.",options:{"atom-one-dark":"Atom One Dark","atom-one-light":"Atom One Light","tokyo-night":"Tokyo Night","tokyo-night-storm":"Tokyo Night Storm","everforest-dark":"Everforest Dark","everforest-light":"Everforest Light","catppuccin-mocha":"Catppuccin Mocha","catppuccin-latte":"Catppuccin Latte",nord:"Nord",dracula:"Dracula","gruvbox-dark":"Gruvbox Dark","gruvbox-light":"Gruvbox Light"}},direction:{value:t,type:i.SettingItemType.String,section:"themeStudioSection",isEnum:!0,public:!0,label:"Layout Direction",description:"Primary text orientation. LTR is standard; Auto adjusts per paragraph.",options:{ltr:"Left-to-Right (LTR - English / Latin / CJK / Global)",auto:"Auto-Detect (Per-Paragraph BiDi)",rtl:"Right-to-Left (RTL - Persian / Arabic / Hebrew)"}},enableEditorTheme:{value:!0,type:i.SettingItemType.Bool,section:"themeStudioSection",public:!0,label:"Apply Theme to Markdown Editor",description:"Styles the CodeMirror editor (background, colors, line numbers, headings) to match the viewer."},themeApplicationShell:{value:!0,type:i.SettingItemType.Bool,section:"themeStudioSection",public:!0,label:"Theme Application Shell (Sidebar & Note List)",description:"Applies the active palette to Joplin's desktop sidebar, note list, and header (Desktop only)."},fontPreset:{value:n,type:i.SettingItemType.String,section:"themeStudioSection",isEnum:!0,public:!0,label:"International Font Preset",description:"Web fonts loaded on the fly (ideal for Mobile without local font installs).",options:{inter:"Inter (Global English, Latin, European, Cyrillic)",roboto:"Roboto (Modern Clean Sans)",system:"System Default (OS Native, Zero Network Overhead)",vazirmatn:"Vazirmatn (Persian, Arabic, Kurdish, Urdu)","noto-arabic":"Noto Sans Arabic (Modern Arabic)","noto-cjk-sc":"Noto Sans SC (Simplified Chinese)","noto-cjk-jp":"Noto Sans JP (Japanese)",heebo:"Heebo (Hebrew & Latin)","noto-devanagari":"Noto Sans Devanagari (Hindi, Sanskrit)",lora:"Lora (Editorial Serif for Books & Long Articles)",custom:"Custom Font Stack (use field below)"}},fontFamily:{value:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif",type:i.SettingItemType.String,section:"themeStudioSection",public:!0,label:"Custom Font Stack",description:'Active only when "Custom Font Stack" is selected above.'},codeFontPreset:{value:"fira-code",type:i.SettingItemType.String,section:"themeStudioSection",isEnum:!0,public:!0,label:"Code Font Preset",description:"Monospace font for inline code and code blocks.",options:{"fira-code":"Fira Code (Modern Tech Monospace)","jetbrains-mono":"JetBrains Mono (Developer Favorite)","system-mono":"System Monospace (Cascadia/Consolas/Courier)",custom:"Custom Code Font (use field below)"}},codeFont:{value:"'Cascadia Code', 'Fira Code', 'Consolas', monospace",type:i.SettingItemType.String,section:"themeStudioSection",public:!0,label:"Custom Code Font Stack",description:'Active only when "Custom Code Font" is selected above.'},fontSize:{value:"16px",type:i.SettingItemType.String,section:"themeStudioSection",public:!0,label:"Font Size",description:"Base font size (e.g., 14px, 16px, 18px, 20px). Works across Desktop & Mobile."},lineHeight:{value:"1.75",type:i.SettingItemType.String,section:"themeStudioSection",public:!0,label:"Line Height",description:"Reading line spacing (e.g., 1.6, 1.75, 1.9)."},headingSizePreset:{value:"balanced",type:i.SettingItemType.String,section:"themeStudioSection",isEnum:!0,public:!0,label:"Heading Sizes Preset",description:"Typographic scale applied to H1 through H6 headings.",options:{balanced:"Balanced / Standard (H1: 1.75em, H2: 1.42em, H3: 1.25em...)",large:"Large / Editorial (H1: 2.15em, H2: 1.7em, H3: 1.4em...)",compact:"Compact / Dense (H1: 1.5em, H2: 1.3em, H3: 1.18em...)",custom:"Custom Sizes (Configured below)"}},customHeadingSizes:{value:"1.75em, 1.42em, 1.25em, 1.12em, 1.05em, 1.0em",type:i.SettingItemType.String,section:"themeStudioSection",public:!0,label:"Custom Heading Sizes (H1 - H6)",description:'Active only when "Custom Sizes" is selected. Comma-separated sizes from H1 to H6 (e.g., 28px, 24px, 20px, 18px, 16px, 14px or 2.2em, 1.7em, 1.4em, 1.2em, 1.1em, 1.0em).'},contentMaxWidth:{value:"full",type:i.SettingItemType.String,section:"themeStudioSection",isEnum:!0,public:!0,label:"Reading Width (Focus Mode)",description:"Constrain line length on wide desktop monitors for comfortable reading.",options:{full:"Full Width (100%)",comfortable:"Comfortable Reading (920px Centered)",compact:"Compact Focus (760px Centered)"}},pdfExportStyle:{value:"exact",type:i.SettingItemType.String,section:"themeStudioSection",isEnum:!0,public:!0,label:"PDF Export Appearance",description:"Controls layout and background fidelity when exporting to PDF.",options:{exact:"Exact Match (100% Identical to Screen Layout & Theme)",paper:"Paper Friendly (White Page Background with Themed Accents)"}},pdfPageSize:{value:"a4",type:i.SettingItemType.String,section:"themeStudioSection",isEnum:!0,public:!0,label:"PDF Page Size",description:"Standard paper dimensions for PDF export.",options:{a4:"A4 (210 × 297 mm - Global Standard)",letter:"US Letter (8.5 × 11 in - North America)",a5:"A5 (148 × 210 mm - Compact)",a3:"A3 (297 × 420 mm - Large Format)",legal:"US Legal (8.5 × 14 in)",auto:"Auto (Printer / OS Default)"}},pdfPageMargin:{value:"standard",type:i.SettingItemType.String,section:"themeStudioSection",isEnum:!0,public:!0,label:"PDF Page Margins",description:"Page margin width when exporting to PDF.",options:{standard:"Standard Margins (15mm top/bottom, 18mm sides)",comfortable:"Comfortable / Wide Margins (20mm all sides)",compact:"Compact / Narrow Margins (8mm all sides)",none:"Zero Margins / Full Bleed (0mm - Edge to Edge)",custom:"Custom Margins (Configured below)"}},customPdfMargin:{value:"15mm 18mm",type:i.SettingItemType.String,section:"themeStudioSection",public:!0,label:"Custom PDF Page Margins",description:'Active only when "Custom Margins" is selected above (e.g., "15mm 18mm", "1in", "10mm 15mm 10mm 15mm").'}});const e=["theme","direction","enableEditorTheme","themeApplicationShell","fontPreset","fontFamily","codeFontPreset","codeFont","fontSize","lineHeight","headingSizePreset","customHeadingSizes","contentMaxWidth","pdfExportStyle","pdfPageSize","pdfPageMargin","customPdfMargin"];async function d(){var o,i;let a={};if("function"==typeof r.default.settings.values)a=await r.default.settings.values(e);else{const t=await Promise.all(e.map(t=>r.default.settings.value(t)));e.forEach((n,o)=>{a[n]=t[o]})}return{options:{themeKey:a.theme||"atom-one-dark",direction:a.direction||t,fontPreset:a.fontPreset||n,fontFamily:a.fontFamily||"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif",codeFontPreset:a.codeFontPreset||"fira-code",codeFont:a.codeFont||"'Cascadia Code', 'Fira Code', 'Consolas', monospace",fontSize:a.fontSize||"16px",lineHeight:a.lineHeight||"1.75",contentMaxWidth:a.contentMaxWidth||"full",pdfExportStyle:a.pdfExportStyle||"exact",headingSizePreset:a.headingSizePreset||"balanced",customHeadingSizes:a.customHeadingSizes||"1.75em, 1.42em, 1.25em, 1.12em, 1.05em, 1.0em",pdfPageSize:a.pdfPageSize||"a4",pdfPageMargin:a.pdfPageMargin||"standard",customPdfMargin:a.customPdfMargin||"15mm 18mm"},editorEnabled:null===(o=a.enableEditorTheme)||void 0===o||o,shellEnabled:null===(i=a.themeApplicationShell)||void 0===i||i}}async function l(t,n){try{if(r.default.window&&"function"==typeof r.default.window.loadChromeCssFile){const e=n?(0,a.buildChromeCss)(t):"";if(e===o)return;o=e;const i=r.default.require("fs-extra"),d=`${await r.default.plugins.dataDir()}/theme-studio-chrome.css`;await i.writeFile(d,e,"utf8"),await r.default.window.loadChromeCssFile(d)}}catch(t){console.warn("[Theme Studio] Could not synchronize desktop chrome stylesheet:",t)}}const m=await d();await l(m.options,m.shellEnabled),await r.default.settings.onChange(async t=>{if((null==t?void 0:t.keys)&&!t.keys.some(t=>e.includes(t)))return;const n=await d();await l(n.options,n.shellEnabled)}),await r.default.contentScripts.register(i.ContentScriptType.CodeMirrorPlugin,"themeStudioCodeMirror","./codeMirrorTheme.js"),await r.default.contentScripts.onMessage("themeStudioCodeMirror",async t=>{if(t&&("getAllStyles"===t.type||"getEditorStyles"===t.type)){const t=await d();return await l(t.options,t.shellEnabled),{editorCss:t.editorEnabled?(0,a.buildEditorCss)(t.options):"",viewerCss:(0,a.buildThemeCss)(t.options),chromeCss:t.shellEnabled?(0,a.buildChromeCss)(t.options):""}}return null}),await r.default.contentScripts.register(i.ContentScriptType.MarkdownItPlugin,"themeStudioMarkdownIt","./markdownTheme.js")}})},800(t,n,o){n.buildEditorCss=function(t){const n=e.themes[t.themeKey]||e.themes["atom-one-dark"],{fontImport:o,resolvedFont:i,resolvedCodeFont:a}=r(t);let d=":root {\n";for(const[t,o]of Object.entries(n.variables))d+=` ${t}: ${o};\n`;d+="}\n";let l="";return l="rtl"===t.direction?"\n .cm-content, .CodeMirror-lines, body#tinymce {\n direction: rtl !important;\n text-align: right !important;\n }\n ":"auto"===t.direction?"\n .cm-content, .CodeMirror-lines, body#tinymce {\n unicode-bidi: plaintext !important;\n text-align: start !important;\n }\n ":"\n .cm-content, .CodeMirror-lines, body#tinymce {\n direction: ltr !important;\n text-align: left !important;\n }\n ",`\n${o}\n${d}\n\n/* Outer editor container & scroller get the theme background */\nhtml body div.cm-editor,\nhtml body div.cm-editor .cm-scroller,\nhtml body div.CodeMirror,\nhtml body .r-markdown-editor {\n background-color: var(--od-bg) !important;\n color: var(--od-fg) !important;\n font-family: ${i} !important;\n}\n\n/* Content and lines MUST remain transparent so CodeMirror's selection layer is visible */\n.cm-content,\n.cm-line,\n.CodeMirror-lines,\n.CodeMirror-sizer {\n background-color: transparent !important;\n}\n\n.cm-content, .CodeMirror-lines {\n font-size: ${t.fontSize} !important;\n line-height: ${t.lineHeight} !important;\n caret-color: var(--od-link) !important;\n}\n\n${l}\n\n/* Gutters & Line Numbers */\n.cm-gutters, .CodeMirror-gutters {\n background-color: var(--od-bg-alt) !important;\n color: var(--od-comment) !important;\n border-right: 1px solid var(--od-border) !important;\n}\n.cm-activeLineGutter {\n background-color: var(--od-bg-alt) !important;\n color: var(--od-h2) !important;\n font-weight: bold !important;\n}\n.cm-activeLine, .CodeMirror-activeline-background {\n background-color: rgba(127, 127, 127, 0.08) !important;\n}\n\n/* Cursor & Selection (Fully unmasked for CodeMirror 6 and CodeMirror 5) */\n.CodeMirror-cursor,\n.cm-cursor,\n.cm-dropCursor {\n border-left: 2px solid var(--od-link) !important;\n border-left-color: var(--od-link) !important;\n}\n.cm-lineNumbers .cm-gutterElement {\n color: var(--od-comment) !important;\n}\n.cm-selectionBackground,\n.cm-editor .cm-selectionLayer .cm-selectionBackground,\n.cm-content ::selection,\n.cm-line ::selection,\n.CodeMirror-selected,\n.CodeMirror-focused .CodeMirror-selected,\n::selection {\n background-color: var(--od-selection) !important;\n}\n\n/* Syntax Highlighting in Markdown Editor */\n.cm-header-1, .tok-heading-1 { color: var(--od-h1) !important; font-weight: 700 !important; }\n.cm-header-2, .tok-heading-2 { color: var(--od-h2) !important; font-weight: 700 !important; }\n.cm-header-3, .tok-heading-3 { color: var(--od-h3) !important; font-weight: 600 !important; }\n.cm-header-4, .tok-heading-4 { color: var(--od-h4) !important; font-weight: 600 !important; }\n.cm-header-5, .tok-heading-5 { color: var(--od-h5) !important; }\n.cm-header-6, .tok-heading-6 { color: var(--od-h6) !important; }\n\n.cm-link, .tok-link { color: var(--od-link) !important; text-decoration: underline !important; }\n.cm-url, .tok-url { color: var(--od-link-hover) !important; }\n.cm-strong, .tok-strong { font-weight: bold !important; color: var(--od-fg) !important; }\n.cm-em, .tok-emphasis { font-style: italic !important; }\n.cm-comment, .tok-comment { color: var(--od-comment) !important; }\n.cm-quote, .tok-quote { color: var(--od-comment) !important; font-style: italic !important; }\n\n.tok-monospace, .cm-inline-code, .cm-variable-2 {\n font-family: ${a} !important;\n background-color: var(--od-code-bg) !important;\n color: var(--od-code-fg) !important;\n border-radius: 3px !important;\n}\n\n/* TinyMCE (Rich Text Editor) Shell & Toolbar Theming */\n.tox-tinymce {\n border: 1px solid var(--od-border) !important;\n background-color: var(--od-bg) !important;\n}\n.tox .tox-toolbar,\n.tox .tox-toolbar__primary,\n.tox .tox-toolbar__overflow {\n background-color: var(--od-bg-alt) !important;\n border-bottom: none !important;\n}\n.tox .tox-tbtn {\n color: var(--od-fg) !important;\n}\n.tox .tox-tbtn:hover {\n background-color: var(--od-selection) !important;\n}\n.tox .tox-tbtn svg {\n fill: var(--od-fg) !important;\n}\n`},n.buildChromeCss=function(t){const n=e.themes[t.themeKey]||e.themes["atom-one-dark"],{fontImport:o,resolvedFont:i}=r(t);let a=":root {\n";for(const[t,o]of Object.entries(n.variables))a+=` ${t}: ${o};\n`;a+="}\n";let d="";return d="rtl"===t.direction?'\n /* Title input adheres to RTL */\n input.title-input {\n direction: rtl !important;\n text-align: right !important;\n }\n\n /* Note List item titles align naturally using Unicode BiDi */\n .note-list .title,\n .note-list-item-title,\n .note-list span,\n .note-list div {\n unicode-bidi: plaintext !important;\n text-align: start !important;\n }\n\n /* Active Note Indicator flips to right border in RTL */\n div.rli-noteList [aria-selected="true"],\n div.rli-noteList .selected,\n div.note-list [aria-selected="true"],\n div.note-list .selected {\n border-right: 4px solid var(--od-h2) !important;\n border-left: none !important;\n }\n\n /* Sidebar titles use BiDi without breaking tree indentation or flex order */\n .side-bar .title,\n .side-bar span.title,\n .folders a span:not(.note-count-label):not(.icon),\n .tags a span:not(.note-count-label):not(.icon) {\n unicode-bidi: plaintext !important;\n text-align: start !important;\n }\n ':"auto"===t.direction?"\n input.title-input,\n .note-list .title,\n .note-list-item-title,\n .side-bar .title,\n .side-bar span.title {\n unicode-bidi: plaintext !important;\n text-align: start !important;\n }\n ":'\n input.title-input {\n direction: ltr !important;\n text-align: left !important;\n }\n\n div.rli-noteList [aria-selected="true"],\n div.rli-noteList .selected,\n div.note-list [aria-selected="true"],\n div.note-list .selected {\n border-left: 4px solid var(--od-h2) !important;\n border-right: none !important;\n }\n ',`\n${o}\n${a}\n${d}\n\n/* =================================================================\n UNIFIED DESKTOP SHELL CASCADE (OVERRIDING JOPLIN CORE DARK/LIGHT)\n ================================================================= */\n\n/* --- 1. Resizer Splitters & Root Container --- */\ndiv[style*="col-resize"],\ndiv[style*="row-resize"],\ndiv[style*="cursor: col-resize"],\ndiv[style*="cursor: row-resize"],\n.rli-splitter,\n.splitter,\ndiv[class*="splitter"],\ndiv[class*="resizer"],\ndiv[class*="divider"] {\n background-color: var(--od-border) !important;\n background: var(--od-border) !important;\n border-color: var(--od-border) !important;\n opacity: 0.8 !important;\n}\n\n.rli-root,\n#joplin-plugin-content,\ndiv[class*="rli-"] {\n background-color: var(--od-bg) !important;\n color: var(--od-fg) !important;\n}\n\n/* --- 2. Primary Left Sidebar --- */\n.side-bar,\n.r-sidebar,\n.rli-sideBar,\ndiv[toggleblock="1"] {\n background-color: var(--od-bg-alt) !important;\n background: var(--od-bg-alt) !important;\n color: var(--od-fg) !important;\n font-family: ${i} !important;\n}\n\n.side-bar *,\n.r-sidebar *,\n.rli-sideBar *,\ndiv[toggleblock="1"] *,\n.folders *,\n.tags *,\na.list-item,\na.list-item *,\n.list-item-container * {\n color: var(--od-fg) !important;\n border-color: var(--od-fg) !important;\n}\n\n.side-bar svg,\n.side-bar path,\n.side-bar i,\n.r-sidebar svg,\n.r-sidebar path,\n.rli-sideBar svg,\n.rli-sideBar path {\n fill: var(--od-fg) !important;\n stroke: var(--od-fg) !important;\n color: var(--od-fg) !important;\n}\n\n.side-bar .list-item-container:hover,\n.side-bar .list-item:hover,\n.side-bar a:hover {\n background-color: var(--od-selection) !important;\n}\n\n/* Active Selected Notebook Item (Overrides Inline rgb(0, 95, 184)) */\n.side-bar .list-item-container.selected,\n.side-bar .list-item.selected,\n.side-bar a.selected,\n.side-bar .selected,\n.side-bar div[class*="selected"],\n.rli-sideBar .selected,\n.rli-sideBar div[class*="selected"],\n.folders .selected,\n.folders div[class*="selected"],\n.tags .selected {\n background-color: var(--od-selection) !important;\n background: var(--od-selection) !important;\n color: var(--od-link) !important;\n font-weight: 700 !important;\n}\n\n.side-bar .selected *,\n.side-bar div[class*="selected"] *,\n.rli-sideBar .selected *,\n.rli-sideBar div[class*="selected"] *,\n.folders .selected * {\n color: var(--od-link) !important;\n}\n\n.side-bar .header,\n.side-bar .header span,\n.side-bar div[style*="font-weight: bold"],\n.side-bar .section-header {\n color: var(--od-comment) !important;\n font-size: 0.85em !important;\n letter-spacing: 0.5px !important;\n opacity: 0.85 !important;\n}\n\n.side-bar .item-count,\n.folders span[style*="opacity"] {\n color: var(--od-comment) !important;\n opacity: 0.8 !important;\n}\n\n/* Ensure clean spacing between folder icons, emojis, and titles without breaking tree indentation */\n.side-bar .icon,\n.side-bar span.icon,\n.side-bar svg.icon,\n.side-bar span[role="img"],\n.folders a span[role="img"] {\n margin-left: 6px !important;\n margin-right: 6px !important;\n display: inline-block !important;\n}\n\n/* --- 2. Bottom Left: Synchronize Panel --- */\n.rli-sideBar > div:last-child,\n.rli-sideBar > div:nth-child(2),\n.rli-sideBar div[style*="border-top"],\n.rli-sideBar div[style*="background-color"],\n.rli-sideBar > div > div:last-child,\n.side-bar > div:last-child,\ndiv:has(> .synchronize-button),\ndiv:has(.synchronize-button),\ndiv:has(> button.synchronize-button),\ndiv:has(button[title*="Sync"]),\ndiv:has(button[title*="Synchronize"]),\n.synchronize-button,\n.sync-status-box,\ndiv.sync-report,\ndiv[class*="sync"],\ndiv[class*="Sync"] {\n background-color: var(--od-bg-alt) !important;\n background: var(--od-bg-alt) !important;\n border-top: 1px solid var(--od-border) !important;\n}\n\n.rli-sideBar > div:last-child *,\n.rli-sideBar > div:nth-child(2) *,\ndiv:has(.synchronize-button) *,\n.synchronize-button *,\n.sync-status-box *,\ndiv.sync-report * {\n background-color: transparent !important;\n color: var(--od-comment) !important;\n}\n\n.rli-sideBar > div:last-child button,\n.rli-sideBar > div:nth-child(2) button,\ndiv:has(.synchronize-button) button,\n.synchronize-button button,\n.sync-status-box button,\nbutton.synchronize-button,\nbutton[title*="Sync"],\nbutton[title*="Synchronize"] {\n background-color: var(--od-bg) !important;\n background: var(--od-bg) !important;\n color: var(--od-fg) !important;\n border: 1px solid var(--od-border) !important;\n border-color: var(--od-border) !important;\n box-shadow: none !important;\n outline: none !important;\n border-radius: 4px !important;\n font-weight: 600 !important;\n padding: 6px 12px !important;\n}\n\n.rli-sideBar > div:last-child button:hover,\n.synchronize-button button:hover,\n.synchronize-button button:focus {\n background-color: var(--od-selection) !important;\n border-color: var(--od-link) !important;\n color: var(--od-link) !important;\n box-shadow: none !important;\n outline: none !important;\n}\n\n.synchronize-button svg,\n.synchronize-button path,\n.synchronize-button i,\ndiv:has(.synchronize-button) svg,\ndiv:has(.synchronize-button) path {\n fill: var(--od-fg) !important;\n color: var(--od-fg) !important;\n}\n\n/* --- 3. Note List Panel & Active Item Selection --- */\n.note-list,\n.r-note-list,\n.item-list,\ndiv.rli-noteList,\ndiv.rli-noteList > div {\n background-color: var(--od-bg) !important;\n background: var(--od-bg) !important;\n border-right: 1px solid var(--od-border) !important;\n border-left: 1px solid var(--od-border) !important;\n font-family: ${i} !important;\n}\n\n.note-list .list-item-container,\n.note-list .list-item,\n.note-list-item,\ndiv.rli-noteList .list-item-container {\n background-color: var(--od-bg) !important;\n border-bottom: 1px solid var(--od-border) !important;\n}\n\n.note-list .list-item-container *,\n.note-list .title,\n.note-list-item-title,\n.note-list span {\n color: var(--od-fg) !important;\n}\n\n.note-list .list-item-container:hover,\n.note-list .list-item:hover,\n.note-list a:hover {\n background-color: var(--od-selection) !important;\n}\n\n/* Active Selected Note (Overrides Inline Dark Styles) */\ndiv.rli-noteList [aria-selected="true"],\ndiv.rli-noteList .selected,\ndiv.rli-noteList div[class*="selected"],\ndiv.rli-noteList .list-item-container.selected,\ndiv.rli-noteList .note-list-item.selected,\ndiv.note-list [aria-selected="true"],\ndiv.note-list .selected,\ndiv.note-list div[class*="selected"],\ndiv.note-list .list-item-container.selected,\ndiv.note-list .note-list-item.selected {\n background-color: var(--od-selection) !important;\n background: var(--od-selection) !important;\n}\n\ndiv.rli-noteList [aria-selected="true"] *,\ndiv.rli-noteList .selected *,\ndiv.note-list [aria-selected="true"] *,\ndiv.note-list .selected * {\n color: var(--od-link) !important;\n font-weight: 700 !important;\n}\n\n/* --- 4. Top Left: Note List Header Bar, Buttons & Search (Green Box) --- */\ndiv.rli-noteList > div > div > div:first-child,\ndiv.rli-noteList .note-list-top-bar,\n.note-list-top-bar,\n.note-list > div:first-child,\n.note-list .header,\n.search-bar,\ndiv.new-note-todo-buttons,\ndiv:has(> .new-note-button),\ndiv:has(> button.new-note-button) {\n background-color: var(--od-bg-alt) !important;\n background: var(--od-bg-alt) !important;\n border-bottom: none !important;\n}\n\n/* New note & New to-do Buttons: Dynamic contrast against --od-link */\nbutton.new-note-button,\nbutton.new-todo-button,\ndiv.rli-noteList button.new-note-button,\ndiv.rli-noteList button.new-todo-button,\ndiv.new-note-todo-buttons button,\ndiv.header a.button,\ndiv.header button,\n.note-list .header button,\n.note-list-top-bar button:not(.sort-order-reverse-button),\na.button[title="New note"],\na.button[title="New to-do"],\na[title="New note"],\na[title="New to-do"] {\n background-color: var(--od-link) !important;\n background: var(--od-link) !important;\n color: var(--od-bg) !important;\n border: none !important;\n border-radius: 4px !important;\n font-weight: 700 !important;\n box-shadow: none !important;\n}\n\nbutton.new-note-button *,\nbutton.new-todo-button *,\ndiv.new-note-todo-buttons button * {\n color: var(--od-bg) !important;\n fill: var(--od-bg) !important;\n}\n\nbutton.new-note-button:hover,\nbutton.new-todo-button:hover,\ndiv.rli-noteList button.new-note-button:hover,\ndiv.rli-noteList button.new-todo-button:hover,\ndiv.new-note-todo-buttons button:hover {\n background-color: var(--od-link-hover) !important;\n background: var(--od-link-hover) !important;\n}\n\n/* Search bar input */\ndiv.rli-noteList input,\ndiv.rli-noteList input[type="search"],\n.note-list-top-bar input,\n.note-list input[type="search"],\n.search-bar input,\ninput[type="search"] {\n background-color: var(--od-bg) !important;\n color: var(--od-fg) !important;\n border: 1px solid var(--od-border) !important;\n border-radius: 4px !important;\n}\n\n/* Sort, Reverse & Calendar Buttons in Search Row */\nbutton.sort-order-reverse-button,\ndiv.rli-noteList button.sort-order-reverse-button,\ndiv.rli-noteList button:not(.new-note-button):not(.new-todo-button),\n.note-list-top-bar button.sort-order-reverse-button {\n background-color: var(--od-bg) !important;\n background: var(--od-bg) !important;\n color: var(--od-fg) !important;\n border: 1px solid var(--od-border) !important;\n border-radius: 4px !important;\n}\n\ndiv.rli-noteList svg,\ndiv.rli-noteList path,\n.note-list-top-bar svg,\n.note-list-top-bar path,\n.search-bar svg,\n.search-bar path {\n fill: var(--od-fg) !important;\n color: var(--od-fg) !important;\n}\n\n/* --- 5. Top Right: Note Header & Unified Navbar (Blue Box) --- */\n.header,\n.r-header,\n.top-bar,\n.note-title-wrapper,\ndiv.note-title-wrapper {\n background-color: var(--od-bg-alt) !important;\n background: var(--od-bg-alt) !important;\n border-bottom: 1px solid var(--od-border) !important;\n border-top: none !important;\n border-left: none !important;\n border-right: none !important;\n box-sizing: border-box !important;\n min-height: 40px !important;\n}\n\n/* Seamless Title Input (Blends directly into the header bar without boxed borders) */\ninput.title-input {\n background-color: transparent !important;\n background: transparent !important;\n border: none !important;\n border-bottom: none !important;\n color: var(--od-fg) !important;\n font-family: ${i} !important;\n font-size: 1.2em !important;\n font-weight: 700 !important;\n padding: 6px 14px !important;\n outline: none !important;\n box-shadow: none !important;\n}\n\ninput.title-input:focus {\n border: none !important;\n outline: none !important;\n box-shadow: none !important;\n}\n\n/* Seamless Info Group (Eliminates disconnected borders and mismatched fills) */\n.note-title-info-group,\ndiv.note-title-info-group {\n background-color: transparent !important;\n background: transparent !important;\n border: none !important;\n border-bottom: none !important;\n border-left: none !important;\n border-right: none !important;\n box-shadow: none !important;\n}\n\n.note-title-info-group *,\n.header span,\n.header div {\n color: var(--od-fg) !important;\n border-bottom: none !important;\n}\n\n.note-title-info-group svg,\n.note-title-info-group path,\n.header svg,\n.header path {\n fill: var(--od-fg) !important;\n color: var(--od-fg) !important;\n}\n\n.header button,\n.header a,\n.header .button,\nbutton.toolbar-button {\n background-color: transparent !important;\n color: var(--od-fg) !important;\n border: none !important;\n}\n\n.header button:hover,\n.header a:hover,\nbutton.toolbar-button:hover {\n background-color: var(--od-selection) !important;\n border-radius: 4px !important;\n}\n\n/* --- 6. Markdown Editor Formatting Toolbar --- */\n.editor-toolbar,\ndiv.editor-toolbar,\ndiv[class*="editor-toolbar"],\n.r-editor-toolbar {\n background-color: var(--od-bg-alt) !important;\n background: var(--od-bg-alt) !important;\n border-bottom: none !important;\n}\n\n.editor-toolbar *,\n.editor-toolbar div,\n.editor-toolbar button,\n.editor-toolbar a,\n.editor-toolbar span {\n color: var(--od-fg) !important;\n background-color: transparent !important;\n}\n\n.editor-toolbar svg,\n.editor-toolbar path,\n.editor-toolbar .icon,\n.editor-toolbar [class*="icon"] {\n fill: var(--od-fg) !important;\n color: var(--od-fg) !important;\n}\n\n.editor-toolbar button:hover,\n.editor-toolbar a:hover {\n background-color: var(--od-selection) !important;\n border-radius: 4px !important;\n}\n\n/* --- 8. Bottom: Tag Bar & Notification Banners --- */\n.tag-bar,\ndiv.tag-bar,\n.tag-list,\ndiv[class*="tag"],\ndiv[class*="banner"],\ndiv.updated-feature-banner,\ndiv.alert,\ndiv.info-box,\n.rli-editor > div > div > div:has(.tag-bar),\n.rli-editor > div > div > div:has(div[class*="banner"]),\n.rli-editor > div > div > div:last-child {\n background-color: var(--od-bg-alt) !important;\n background: var(--od-bg-alt) !important;\n border-top: 1px solid var(--od-border) !important;\n color: var(--od-fg) !important;\n}\n\n.tag-bar *,\ndiv[class*="banner"] *,\ndiv.updated-feature-banner * {\n color: var(--od-fg) !important;\n}\n\n.tag-bar svg,\n.tag-bar path {\n fill: var(--od-fg) !important;\n}\n\n.tag-bar input,\n.tag-bar .tag-input {\n background-color: var(--od-bg) !important;\n color: var(--od-fg) !important;\n border: 1px solid var(--od-border) !important;\n}\n\n.tag-bar span,\n.tag-list span,\n.tag-list .tag-item {\n background-color: var(--od-selection) !important;\n color: var(--od-fg) !important;\n border-radius: 4px !important;\n padding: 2px 6px !important;\n}\n\ndiv[class*="banner"] a,\ndiv[class*="banner"] button,\ndiv.updated-feature-banner a,\ndiv.updated-feature-banner button {\n color: var(--od-link) !important;\n font-weight: 700 !important;\n}\n\n/* --- 9. Right: Plugin Panels Outer Shell (Outline, Note Tabs) --- */\n.r-panel,\ndiv.joplin-plugin-view,\ndiv.panel-container,\ndiv[class*="outline"] {\n background-color: var(--od-bg) !important;\n background: var(--od-bg) !important;\n border-left: 1px solid var(--od-border) !important;\n}\n\n.r-panel *,\ndiv.joplin-plugin-view * {\n color: var(--od-fg) !important;\n}\n\n.r-panel svg,\n.r-panel path {\n fill: var(--od-fg) !important;\n}\n\n.r-panel header,\n.r-panel .header,\n.r-panel > div:first-child {\n background-color: var(--od-bg-alt) !important;\n border-bottom: 1px solid var(--od-border) !important;\n}\n\n.r-panel iframe,\ndiv.joplin-plugin-view iframe {\n background-color: var(--od-bg) !important;\n}\n\n/* --- 10. App-wide Custom Scrollbars --- */\n.side-bar::-webkit-scrollbar,\n.note-list::-webkit-scrollbar,\n.r-panel::-webkit-scrollbar {\n width: 6px !important;\n}\n\n.side-bar::-webkit-scrollbar-track,\n.note-list::-webkit-scrollbar-track,\n.r-panel::-webkit-scrollbar-track {\n background: var(--od-scrollbar-track) !important;\n}\n\n.side-bar::-webkit-scrollbar-thumb,\n.note-list::-webkit-scrollbar-thumb,\n.r-panel::-webkit-scrollbar-thumb {\n background: var(--od-scrollbar-thumb) !important;\n border-radius: 3px !important;\n}\n`},n.buildThemeCss=function(t){const n=e.themes[t.themeKey]||e.themes["atom-one-dark"],{fontImport:o,resolvedFont:i,resolvedCodeFont:a}=r(t),d=function(t){const n={h1:"1.75em",h2:"1.42em",h3:"1.25em",h4:"1.12em",h5:"1.05em",h6:"1.0em"};if("large"===t.headingSizePreset)return{h1:"2.15em",h2:"1.7em",h3:"1.4em",h4:"1.22em",h5:"1.1em",h6:"1.0em"};if("compact"===t.headingSizePreset)return{h1:"1.5em",h2:"1.3em",h3:"1.18em",h4:"1.08em",h5:"1.02em",h6:"0.95em"};if("custom"===t.headingSizePreset&&t.customHeadingSizes){const o=t.customHeadingSizes.split(",").map(t=>t.replace(/h[1-6]:?/gi,"").trim()).filter(t=>t.length>0);return{h1:o[0]||n.h1,h2:o[1]||n.h2,h3:o[2]||n.h3,h4:o[3]||n.h4,h5:o[4]||n.h5,h6:o[5]||n.h6}}return n}(t);let l=":root {\n";for(const[t,o]of Object.entries(n.variables))l+=` ${t}: ${o};\n`;l+=` --mermaid-font-family: ${i} !important;\n`,l+="}\n";let m="";m="rtl"===t.direction?'\nbody#tinymce, body, #rendered-md { direction: rtl !important; text-align: right !important; }\nbody#tinymce h1, #rendered-md h1 { text-align: right !important; }\nbody#tinymce h2, #rendered-md h2 {\n border-right: 5px solid var(--od-h2) !important;\n border-left: none !important;\n padding-right: 12px !important;\n padding-left: 0 !important;\n text-align: right !important;\n}\nbody#tinymce :is(h3, h4, h5, h6), #rendered-md :is(h3, h4, h5, h6) { text-align: right !important; }\nbody#tinymce ul, body#tinymce ol, #rendered-md ul, #rendered-md ol {\n direction: rtl !important;\n text-align: right !important;\n padding-right: 2.2em !important;\n padding-left: 0 !important;\n}\n#rendered-md li, body#tinymce li {\n direction: rtl !important;\n text-align: right !important;\n}\n#rendered-md ul ul, #rendered-md ol ol, #rendered-md ul ol, #rendered-md ol ul,\nbody#tinymce ul ul, body#tinymce ol ol, body#tinymce ul ol, body#tinymce ol ul {\n padding-right: 1.6em !important;\n padding-left: 0 !important;\n}\n.md-checkbox input[type="checkbox"] { margin-left: 8px !important; margin-right: 0 !important; }\n\n/* RTL Blockquotes: 1px Right Border & No Left Border */\nbody#tinymce blockquote, #rendered-md blockquote {\n direction: rtl !important;\n text-align: right !important;\n border-right: 1px solid var(--od-comment) !important;\n border-left: 0 !important;\n}\nbody#tinymce th, #rendered-md th, body#tinymce td, #rendered-md td { text-align: right !important; }\n.mermaid .nodeLabel, .mermaid .edgeLabel, .mermaid .label, .mermaid text {\n direction: rtl !important;\n unicode-bidi: plaintext !important;\n}\n\n#rendered-md [dir="ltr"], body#tinymce [dir="ltr"],\n#rendered-md [dir="ltr"] :is(h1, h2, h3, h4, h5, h6, p, li, blockquote, dt, dd),\nbody#tinymce [dir="ltr"] :is(h1, h2, h3, h4, h5, h6, p, li, blockquote, dt, dd) {\n direction: ltr !important;\n text-align: left !important;\n}\n#rendered-md [dir="ltr"] h2, body#tinymce [dir="ltr"] h2 {\n border-right: none !important;\n border-left: 5px solid var(--od-h2) !important;\n padding-left: 12px !important;\n padding-right: 0 !important;\n}\n#rendered-md [dir="ltr"] blockquote, body#tinymce [dir="ltr"] blockquote {\n border-right: none !important;\n border-left: 1px solid var(--od-comment) !important;\n padding-left: 16px !important;\n padding-right: 12px !important;\n}\n#rendered-md [dir="ltr"] :is(ul, ol), body#tinymce [dir="ltr"] :is(ul, ol) {\n direction: ltr !important;\n text-align: left !important;\n padding-left: 1.6em !important;\n padding-right: 0 !important;\n}\n#rendered-md [dir="ltr"] :is(ul ul, ol ol, ul ol, ol ul), body#tinymce [dir="ltr"] :is(ul ul, ol ol, ul ol, ol ul) {\n padding-left: 1.4em !important;\n padding-right: 0 !important;\n}\n#rendered-md [dir="ltr"] .md-checkbox input[type="checkbox"], body#tinymce [dir="ltr"] .md-checkbox input[type="checkbox"] {\n margin-right: 8px !important;\n margin-left: 0 !important;\n}\n#rendered-md [dir="ltr"] table :is(th, td), body#tinymce [dir="ltr"] table :is(th, td) { text-align: left !important; }\n':"auto"===t.direction?'\nbody#tinymce, body, #rendered-md { direction: ltr !important; text-align: start !important; }\n#rendered-md :is(p, h1, h2, h3, h4, h5, h6, li, blockquote, dt, dd) {\n unicode-bidi: plaintext !important;\n text-align: start !important;\n}\n\n/* =================================================================\n NATIVE BIDI LIST & MARKER ENGINE (RTL / LTR AWARE)\n ================================================================= */\n/* Default list indentation in auto mode */\nbody#tinymce ul, body#tinymce ol,\n#rendered-md ul, #rendered-md ol {\n padding-left: 2em !important;\n padding-right: 0 !important;\n}\n\n/* Explicit RTL lists and items (attributes and pseudo-classes supported) */\n#rendered-md ul[dir="rtl"], #rendered-md ol[dir="rtl"],\nbody#tinymce ul[dir="rtl"], body#tinymce ol[dir="rtl"],\n#rendered-md ul:dir(rtl), #rendered-md ol:dir(rtl),\nbody#tinymce ul:dir(rtl), body#tinymce ol:dir(rtl) {\n direction: rtl !important;\n text-align: right !important;\n padding-right: 2.2em !important;\n padding-left: 0 !important;\n}\n\n#rendered-md li[dir="rtl"], body#tinymce li[dir="rtl"],\n#rendered-md li:dir(rtl), body#tinymce li:dir(rtl) {\n direction: rtl !important;\n text-align: right !important;\n}\n\n#rendered-md ul[dir="rtl"] :is(ul, ol), #rendered-md ol[dir="rtl"] :is(ul, ol),\nbody#tinymce ul[dir="rtl"] :is(ul, ol), body#tinymce ol[dir="rtl"] :is(ul, ol) {\n padding-right: 1.6em !important;\n padding-left: 0 !important;\n}\n\n/* Explicit LTR lists and items */\n#rendered-md ul[dir="ltr"], #rendered-md ol[dir="ltr"],\nbody#tinymce ul[dir="ltr"], body#tinymce ol[dir="ltr"],\n#rendered-md ul:dir(ltr), #rendered-md ol:dir(ltr),\nbody#tinymce ul:dir(ltr), body#tinymce ol:dir(ltr) {\n direction: ltr !important;\n text-align: left !important;\n padding-left: 2em !important;\n padding-right: 0 !important;\n}\n\n#rendered-md li[dir="ltr"], body#tinymce li[dir="ltr"],\n#rendered-md li:dir(ltr), body#tinymce li:dir(ltr) {\n direction: ltr !important;\n text-align: left !important;\n}\n\n#rendered-md ul[dir="ltr"] :is(ul, ol), #rendered-md ol[dir="ltr"] :is(ul, ol),\nbody#tinymce ul[dir="ltr"] :is(ul, ol), body#tinymce ol[dir="ltr"] :is(ul, ol) {\n padding-left: 1.6em !important;\n padding-right: 0 !important;\n}\n\n/* BiDi Checkboxes */\n#rendered-md li[dir="rtl"] input[type="checkbox"],\n#rendered-md li:dir(rtl) input[type="checkbox"],\nbody#tinymce li[dir="rtl"] input[type="checkbox"],\nbody#tinymce li:dir(rtl) input[type="checkbox"] {\n margin-left: 8px !important;\n margin-right: 0 !important;\n}\n\n#rendered-md li[dir="ltr"] input[type="checkbox"],\n#rendered-md li:dir(ltr) input[type="checkbox"],\nbody#tinymce li[dir="ltr"] input[type="checkbox"],\nbody#tinymce li:dir(ltr) input[type="checkbox"] {\n margin-right: 8px !important;\n margin-left: 0 !important;\n}\n\n/* BiDi H2 Headings */\n#rendered-md h2[dir="rtl"], body#tinymce h2[dir="rtl"],\n#rendered-md h2:dir(rtl), body#tinymce h2:dir(rtl) {\n border-right: 5px solid var(--od-h2) !important;\n border-left: none !important;\n padding-right: 12px !important;\n padding-left: 0 !important;\n text-align: right !important;\n}\n\n#rendered-md h2[dir="ltr"], body#tinymce h2[dir="ltr"],\n#rendered-md h2:dir(ltr), body#tinymce h2:dir(ltr) {\n border-left: 5px solid var(--od-h2) !important;\n border-right: none !important;\n padding-left: 12px !important;\n padding-right: 0 !important;\n text-align: left !important;\n}\n\n/* BiDi Blockquotes */\n#rendered-md blockquote[dir="rtl"], body#tinymce blockquote[dir="rtl"],\n#rendered-md blockquote:dir(rtl), body#tinymce blockquote:dir(rtl) {\n border-right: 1px solid var(--od-comment) !important;\n border-left: none !important;\n padding-right: 16px !important;\n padding-left: 10px !important;\n text-align: right !important;\n direction: rtl !important;\n}\n\n#rendered-md blockquote[dir="ltr"], body#tinymce blockquote[dir="ltr"],\n#rendered-md blockquote:dir(ltr), body#tinymce blockquote:dir(ltr) {\n border-left: 1px solid var(--od-comment) !important;\n border-right: none !important;\n padding-left: 16px !important;\n padding-right: 10px !important;\n text-align: left !important;\n direction: ltr !important;\n}\n\nbody#tinymce th, #rendered-md th, body#tinymce td, #rendered-md td { text-align: start !important; }\n.mermaid .nodeLabel, .mermaid .edgeLabel, .mermaid .label, .mermaid text { unicode-bidi: plaintext !important; }\n':'\nbody#tinymce, body, #rendered-md { direction: ltr !important; text-align: left !important; }\nbody#tinymce h2, #rendered-md h2 {\n border-left: 5px solid var(--od-h2) !important;\n border-right: none !important;\n padding-left: 12px !important;\n padding-right: 0 !important;\n}\nbody#tinymce ul, body#tinymce ol, #rendered-md ul, #rendered-md ol { padding-left: 2em !important; }\n.md-checkbox input[type="checkbox"] { margin-right: 8px !important; margin-left: 0 !important; }\n\n/* LTR Blockquotes: 1px Left Border & No Right Border */\nbody#tinymce blockquote, #rendered-md blockquote {\n border-left: 1px solid var(--od-comment) !important;\n border-right: 0 !important;\n}\nbody#tinymce th, #rendered-md th, body#tinymce td, #rendered-md td { text-align: left !important; }\n.mermaid .nodeLabel, .mermaid .edgeLabel, .mermaid .label, .mermaid text { direction: ltr !important; }\n';let p="";"compact"===t.contentMaxWidth?p="max-width: 760px !important; margin: 0 auto !important;":"comfortable"===t.contentMaxWidth&&(p="max-width: 920px !important; margin: 0 auto !important;");const c="paper"===t.pdfExportStyle,s=c?"#ffffff":"var(--od-bg)",b=c?"#1e2227":"var(--od-fg)",{pageSize:g,margin:h}=function(t){var n;let o="a4";switch(t.pdfPageSize){case"letter":o="letter";break;case"a5":o="a5";break;case"a3":o="a3";break;case"legal":o="legal";break;case"auto":o="auto";break;default:o="a4"}let e="15mm 18mm";switch(t.pdfPageMargin){case"comfortable":e="20mm 20mm";break;case"compact":e="8mm 10mm";break;case"none":e="0";break;case"custom":e=(null===(n=t.customPdfMargin)||void 0===n?void 0:n.trim())||"15mm 18mm";break;default:e="15mm 18mm"}return{pageSize:o,margin:e}}(t),u=c?h:"0",f=c?"0":h;return`${o}\n${l}\n${m}\n${`\n*, *::before, *::after { box-sizing: border-box !important; }\nhtml, body, #rendered-md { max-width: 100% !important; overflow-x: hidden !important; }\n::selection { background-color: var(--od-selection) !important; }\n\nbody#tinymce, body, #rendered-md {\n font-family: ${i} !important;\n line-height: ${t.lineHeight} !important;\n font-size: ${t.fontSize} !important;\n background-color: var(--od-bg) !important;\n color: var(--od-fg) !important;\n word-break: break-word !important;\n overflow-wrap: anywhere !important;\n -webkit-font-smoothing: antialiased !important;\n -moz-osx-font-smoothing: grayscale !important;\n}\n\n#rendered-md { ${p} }\n\nbody#tinymce h1, #rendered-md h1 {\n color: var(--od-h1) !important;\n font-size: ${d.h1} !important;\n font-weight: 800 !important;\n padding: 0 0 8px 0 !important;\n margin: 32px 0 20px 0 !important;\n border-bottom: 2px solid var(--od-h1) !important;\n}\n\nbody#tinymce h2, #rendered-md h2 {\n color: var(--od-h2) !important;\n font-size: ${d.h2} !important;\n font-weight: 700 !important;\n margin: 28px 0 18px 0 !important;\n}\n\nbody#tinymce h3, #rendered-md h3 { color: var(--od-h3) !important; font-size: ${d.h3} !important; font-weight: 600 !important; margin: 24px 0 14px 0 !important; }\nbody#tinymce h4, #rendered-md h4 { color: var(--od-h4) !important; font-size: ${d.h4} !important; font-weight: 600 !important; margin: 20px 0 12px 0 !important; }\nbody#tinymce h5, #rendered-md h5 { color: var(--od-h5) !important; font-size: ${d.h5} !important; font-weight: 600 !important; margin: 18px 0 10px 0 !important; }\nbody#tinymce h6, #rendered-md h6 { color: var(--od-h6) !important; font-size: ${d.h6} !important; font-weight: 700 !important; margin: 16px 0 10px 0 !important; }\n\n#rendered-md li, body#tinymce li { margin-bottom: 0.45em !important; line-height: ${t.lineHeight} !important; }\n#rendered-md li::marker, body#tinymce li::marker { color: var(--od-h2) !important; font-weight: bold !important; }\n\n.md-checkbox input[type="checkbox"] { vertical-align: middle !important; cursor: pointer !important; }\n#rendered-md li:has(input[type="checkbox"]:checked),\nbody#tinymce li:has(input[type="checkbox"]:checked) {\n opacity: 0.55 !important;\n text-decoration: line-through !important;\n transition: opacity 0.2s ease !important;\n}\n#rendered-md li:has(input[type="checkbox"]:checked) code,\nbody#tinymce li:has(input[type="checkbox"]:checked) code { opacity: 0.8 !important; text-decoration: none !important; }\n\n#rendered-md img, body#tinymce img {\n max-width: 100% !important;\n max-height: 520px !important;\n height: auto !important;\n object-fit: contain !important;\n display: block !important;\n margin: 18px auto !important;\n border-radius: 6px !important;\n box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08) !important;\n}\n\nbody#tinymce a, #rendered-md a { color: var(--od-link) !important; text-decoration: none !important; transition: color 0.15s ease !important; }\nbody#tinymce a:hover, #rendered-md a:hover { color: var(--od-link-hover) !important; text-decoration: underline !important; }\n\n#rendered-md a[href^=":/"], body#tinymce a[href^=":/"] {\n font-weight: 600 !important;\n border-bottom: 1.5px dashed var(--od-link) !important;\n text-decoration: none !important;\n}\n#rendered-md a[href^=":/"]:hover, body#tinymce a[href^=":/"]:hover { border-bottom-style: solid !important; }\n\n/* =================================================================\n BLOCKQUOTES: CLEAN MINIMAL 1PX STYLE (TRANSPARENT BG, NO RADIUS)\n ================================================================= */\nbody#tinymce blockquote, #rendered-md blockquote {\n padding: 10px 16px !important;\n margin: 18px 0 !important;\n background: transparent !important;\n border-radius: 0 !important;\n color: var(--od-fg) !important;\n}\n\nmark { background-color: var(--od-mark-bg) !important; color: var(--od-fg) !important; padding: 1px 4px !important; border-radius: 3px !important; }\nkbd {\n background-color: var(--od-kbd-bg) !important;\n border: 1px solid var(--od-border) !important;\n color: var(--od-fg) !important;\n padding: 2px 5px !important;\n border-radius: 4px !important;\n font-size: 0.85em !important;\n box-shadow: 0 1px 0 rgba(0,0,0,0.2) !important;\n}\n\nbody#tinymce .joplin-source, #rendered-md .joplin-source, pre.joplin-source, div.joplin-editable > pre.joplin-source {\n display: none !important; visibility: hidden !important; height: 0 !important; margin: 0 !important; padding: 0 !important; border: none !important;\n}\n\nbody#tinymce code, #rendered-md code {\n font-family: ${a} !important;\n background-color: var(--od-code-bg) !important;\n color: var(--od-code-fg) !important;\n padding: 2px 6px !important;\n border-radius: 4px !important;\n font-size: 0.9em !important;\n}\n\nbody#tinymce pre:not(.mermaid):not(.joplin-source),\n#rendered-md pre:not(.mermaid):not(.joplin-source) {\n direction: ltr !important;\n text-align: left !important;\n unicode-bidi: isolate !important;\n background-color: var(--od-pre-bg) !important;\n border: 1px solid var(--od-pre-border) !important;\n border-radius: 6px !important;\n padding: 14px !important;\n margin: 18px 0 !important;\n max-width: 100% !important;\n box-sizing: border-box !important;\n overflow-x: auto !important;\n overflow-y: hidden !important;\n white-space: pre !important;\n word-break: normal !important;\n word-wrap: normal !important;\n overflow-wrap: normal !important;\n -webkit-overflow-scrolling: touch !important;\n scrollbar-width: thin !important;\n scrollbar-color: var(--od-scrollbar-thumb) var(--od-scrollbar-track) !important;\n}\n\nbody#tinymce pre:not(.mermaid):not(.joplin-source) code,\n#rendered-md pre:not(.mermaid):not(.joplin-source) code {\n background-color: transparent !important;\n color: var(--od-fg) !important;\n padding: 0 !important;\n white-space: pre !important;\n display: inline-block !important;\n min-width: 100% !important;\n}\n\nbody#tinymce :is(p, li) code, #rendered-md :is(p, li) code {\n direction: ltr !important;\n display: inline-block !important;\n unicode-bidi: embed !important;\n vertical-align: baseline !important;\n white-space: normal !important;\n max-width: 100% !important;\n overflow-wrap: anywhere !important;\n word-break: break-word !important;\n}\n\n/* Explicit Table Font Inheritance */\nbody#tinymce table, #rendered-md table,\nbody#tinymce th, #rendered-md th,\nbody#tinymce td, #rendered-md td {\n font-family: ${i} !important;\n}\nbody#tinymce table :is(th, td) code,\n#rendered-md table :is(th, td) code {\n font-family: ${a} !important;\n}\n\nbody#tinymce table, #rendered-md table {\n border-collapse: collapse !important;\n width: 100% !important;\n max-width: 100% !important;\n margin: 20px 0 !important;\n border: 1px solid var(--od-border) !important;\n display: block !important;\n box-sizing: border-box !important;\n overflow-x: auto !important;\n -webkit-overflow-scrolling: touch !important;\n scrollbar-width: thin !important;\n scrollbar-color: var(--od-scrollbar-thumb) var(--od-scrollbar-track) !important;\n color: var(--od-fg) !important;\n}\n\nbody#tinymce th, #rendered-md th {\n background-color: var(--od-table-th) !important;\n color: var(--od-link) !important;\n font-weight: bold !important;\n border: 1px solid var(--od-border) !important;\n padding: 8px 12px !important;\n white-space: nowrap !important;\n}\n\nbody#tinymce td, #rendered-md td {\n border: 1px solid var(--od-border) !important;\n padding: 8px 12px !important;\n color: var(--od-fg) !important;\n}\n\n#rendered-md table td :not(code):not(pre):not(a),\nbody#tinymce table td :not(code):not(pre):not(a) { color: var(--od-fg) !important; }\nbody#tinymce tr:nth-child(even), #rendered-md tr:nth-child(even) { background-color: var(--od-table-even) !important; }\nbody#tinymce tr:nth-child(odd), #rendered-md tr:nth-child(odd) { background-color: var(--od-table-odd) !important; }\n\n/* Mermaid Diagrams */\n#rendered-md .mermaid, #rendered-md div.mermaid, #rendered-md pre.mermaid,\nbody#tinymce .mermaid, body#tinymce div.mermaid, body#tinymce pre.mermaid {\n display: block !important;\n text-align: center !important;\n width: 100% !important;\n max-width: 100% !important;\n box-sizing: border-box !important;\n margin: 24px 0 !important;\n padding: 20px 14px !important;\n direction: ltr !important;\n overflow-x: auto !important;\n overflow-y: hidden !important;\n -webkit-overflow-scrolling: touch !important;\n scrollbar-width: thin !important;\n background-color: var(--od-mermaid-bg) !important;\n border: 1px solid var(--od-mermaid-border) !important;\n border-radius: 8px !important;\n}\n\n#rendered-md .mermaid svg, #rendered-md div.mermaid svg, #rendered-md pre.mermaid svg {\n display: inline-block !important;\n vertical-align: middle !important;\n margin: 0 auto !important;\n height: auto !important;\n max-width: 100% !important;\n width: auto !important;\n}\n\n.mermaid foreignObject { overflow: visible !important; }\n.mermaid foreignObject div {\n display: flex !important;\n align-items: center !important;\n justify-content: center !important;\n white-space: normal !important;\n word-break: normal !important;\n line-height: 1.4 !important;\n text-align: center !important;\n padding: 3px 6px !important;\n}\n\n.mermaid, .mermaid svg, .mermaid text, .mermaid tspan,\n.mermaid .label, .mermaid .nodeLabel, .mermaid .edgeLabel, .mermaid .cluster-label {\n font-family: var(--mermaid-font-family) !important;\n}\n\n.mermaid .node rect, .mermaid .node polygon { rx: 6px !important; ry: 6px !important; }\n.mermaid .labelBkg, .mermaid rect.labelBkg, .mermaid span.labelBkg, .mermaid .edgeLabel rect {\n background-color: transparent !important; fill: transparent !important; opacity: 0 !important; border: none !important;\n}\n.mermaid .edgeLabel {\n background-color: var(--od-bg) !important;\n color: var(--od-fg) !important;\n border-radius: 4px !important;\n padding: 1px 6px !important;\n}\n\n.katex-display {\n max-width: 100% !important;\n overflow-x: auto !important;\n overflow-y: hidden !important;\n -webkit-overflow-scrolling: touch !important;\n box-sizing: border-box !important;\n padding: 6px 0 !important;\n}\n\n#rendered-md .table-of-contents, body#tinymce .table-of-contents {\n background-color: var(--od-bg-alt) !important;\n border: 1px solid var(--od-border) !important;\n border-radius: 6px !important;\n padding: 12px 18px !important;\n margin: 20px 0 !important;\n display: inline-block !important;\n min-width: min(100%, 300px) !important;\n}\n#rendered-md .table-of-contents ul { margin: 4px 0 !important; }\n\n#rendered-md .footnotes, body#tinymce .footnotes {\n margin-top: 40px !important;\n padding-top: 16px !important;\n border-top: 1px solid var(--od-border) !important;\n font-size: 0.88em !important;\n color: var(--od-comment) !important;\n}\n\n/* Mobile Responsiveness (< 768px) */\n@media screen and (max-width: 768px) {\n body#tinymce, body, #rendered-md {\n font-size: ${t.fontSize} !important;\n line-height: ${t.lineHeight} !important;\n max-width: 100% !important;\n overflow-x: hidden !important;\n }\n body#tinymce h1, #rendered-md h1 { font-size: calc(${d.h1} * 0.9) !important; margin: 20px 0 12px 0 !important; }\n body#tinymce h2, #rendered-md h2 { font-size: calc(${d.h2} * 0.92) !important; margin: 18px 0 10px 0 !important; }\n body#tinymce h3, #rendered-md h3 { font-size: ${d.h3} !important; margin: 16px 0 8px 0 !important; }\n #rendered-md img, body#tinymce img { max-height: 420px !important; }\n\n body#tinymce pre:not(.mermaid):not(.joplin-source),\n #rendered-md pre:not(.mermaid):not(.joplin-source) {\n font-size: 0.9em !important;\n padding: 10px 12px !important;\n white-space: pre !important;\n max-width: 100% !important;\n box-sizing: border-box !important;\n overflow-x: auto !important;\n -webkit-overflow-scrolling: touch !important;\n }\n body#tinymce table, #rendered-md table {\n font-size: 0.9em !important;\n max-width: 100% !important;\n box-sizing: border-box !important;\n overflow-x: auto !important;\n -webkit-overflow-scrolling: touch !important;\n }\n #rendered-md .mermaid, body#tinymce .mermaid {\n padding: 14px 8px !important;\n max-width: 100% !important;\n box-sizing: border-box !important;\n overflow-x: auto !important;\n }\n}\n\n/* =================================================================\n FLAWLESS PDF & PRINT EXPORT ENGINE\n ================================================================= */\n@page {\n size: ${g};\n margin: ${u};\n}\n\n@media print {\n *, *::before, *::after, :root, html, body, .exported-note, #rendered-md {\n -webkit-print-color-adjust: exact !important;\n print-color-adjust: exact !important;\n }\n\n :root, html, body, .exported-note {\n background-color: ${s} !important;\n color: ${b} !important;\n }\n\n body, #rendered-md {\n background-color: ${s} !important;\n color: ${b} !important;\n max-width: 100% !important;\n margin: 0 auto !important;\n padding: ${f} !important;\n box-sizing: border-box !important;\n font-size: 14px !important;\n line-height: ${t.lineHeight} !important;\n }\n\n body#tinymce table, #rendered-md table,\n body#tinymce th, #rendered-md th,\n body#tinymce td, #rendered-md td {\n font-family: ${i} !important;\n }\n\n body#tinymce table :is(th, td) code,\n #rendered-md table :is(th, td) code {\n font-family: ${a} !important;\n }\n\n .exported-note-title {\n color: var(--od-h1) !important;\n font-family: ${i} !important;\n font-size: 1.9em !important;\n font-weight: 800 !important;\n border-bottom: 2px solid var(--od-h1) !important;\n padding-bottom: 8px !important;\n margin-bottom: 24px !important;\n page-break-after: avoid !important;\n break-after: avoid !important;\n }\n\n body#tinymce h1, #rendered-md h1 { color: var(--od-h1) !important; page-break-after: avoid !important; break-after: avoid !important; }\n body#tinymce h2, #rendered-md h2 { color: var(--od-h2) !important; page-break-after: avoid !important; break-after: avoid !important; }\n body#tinymce h3, #rendered-md h3 { color: var(--od-h3) !important; page-break-after: avoid !important; break-after: avoid !important; }\n body#tinymce h4, #rendered-md h4 { color: var(--od-h4) !important; page-break-after: avoid !important; break-after: avoid !important; }\n body#tinymce h5, #rendered-md h5 { color: var(--od-h5) !important; page-break-after: avoid !important; break-after: avoid !important; }\n body#tinymce h6, #rendered-md h6 { color: var(--od-h6) !important; page-break-after: avoid !important; break-after: avoid !important; }\n\n body#tinymce table, #rendered-md table {\n display: table !important;\n width: 100% !important;\n max-width: 100% !important;\n table-layout: auto !important;\n overflow: visible !important;\n page-break-inside: auto !important;\n break-inside: auto !important;\n margin: 16px 0 !important;\n }\n\n body#tinymce tr, #rendered-md tr { page-break-inside: avoid !important; break-inside: avoid !important; }\n body#tinymce th, #rendered-md th, body#tinymce td, #rendered-md td {\n white-space: normal !important;\n word-break: break-word !important;\n overflow-wrap: break-word !important;\n padding: 6px 10px !important;\n }\n\n body#tinymce pre:not(.mermaid):not(.joplin-source),\n #rendered-md pre:not(.mermaid):not(.joplin-source) {\n white-space: pre-wrap !important;\n word-break: break-word !important;\n overflow-wrap: break-word !important;\n overflow: visible !important;\n page-break-inside: avoid !important;\n break-inside: avoid !important;\n background-color: var(--od-pre-bg) !important;\n border: 1px solid var(--od-pre-border) !important;\n padding: 12px !important;\n margin: 14px 0 !important;\n }\n\n body#tinymce pre:not(.mermaid):not(.joplin-source) code,\n #rendered-md pre:not(.mermaid):not(.joplin-source) code {\n white-space: pre-wrap !important;\n display: block !important;\n min-width: 100% !important;\n }\n\n #rendered-md .mermaid, body#tinymce .mermaid {\n page-break-inside: avoid !important;\n break-inside: avoid !important;\n overflow: visible !important;\n background-color: var(--od-mermaid-bg) !important;\n border: 1px solid var(--od-mermaid-border) !important;\n padding: 16px 10px !important;\n margin: 18px auto !important;\n }\n\n #rendered-md .mermaid svg, body#tinymce .mermaid svg {\n max-width: 100% !important;\n height: auto !important;\n display: block !important;\n margin: 0 auto !important;\n }\n\n #rendered-md img, body#tinymce img {\n page-break-inside: avoid !important;\n break-inside: avoid !important;\n max-width: 100% !important;\n height: auto !important;\n }\n\n body#tinymce blockquote, #rendered-md blockquote {\n page-break-inside: avoid !important;\n break-inside: avoid !important;\n background-color: transparent !important;\n }\n\n .katex-display {\n page-break-inside: avoid !important;\n break-inside: avoid !important;\n overflow: visible !important;\n }\n}\n\n::-webkit-scrollbar { width: 8px !important; height: 8px !important; }\n::-webkit-scrollbar-track { background: var(--od-scrollbar-track) !important; border-radius: 4px !important; }\n::-webkit-scrollbar-thumb { background: var(--od-scrollbar-thumb) !important; border-radius: 4px !important; }\n::-webkit-scrollbar-thumb:hover { background: var(--od-scrollbar-hover) !important; }\n`}`};const e=o(880);function r(t){let n="",o=t.fontFamily;switch(t.fontPreset){case"inter":n+="@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');\n",o="'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif";break;case"roboto":n+="@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');\n",o="'Roboto', -apple-system, BlinkMacSystemFont, sans-serif";break;case"vazirmatn":n+="@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');\n",o="'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif";break;case"noto-arabic":n+="@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@400;600;700&display=swap');\n",o="'Noto Sans Arabic', -apple-system, BlinkMacSystemFont, sans-serif";break;case"noto-cjk-sc":n+="@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&display=swap');\n",o="'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif";break;case"noto-cjk-jp":n+="@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');\n",o="'Noto Sans JP', 'Hiragino Sans', 'Meiryo', sans-serif";break;case"heebo":n+="@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@400;600;700&display=swap');\n",o="'Heebo', -apple-system, BlinkMacSystemFont, sans-serif";break;case"noto-devanagari":n+="@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@400;600;700&display=swap');\n",o="'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont, sans-serif";break;case"lora":n+="@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;0,700;1,400&display=swap');\n",o="'Lora', Georgia, serif";break;case"system":o="-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif";break;default:o=t.fontFamily||"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif"}let e=t.codeFont;switch(t.codeFontPreset){case"fira-code":n+="@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;600&display=swap');\n",e="'Fira Code', monospace";break;case"jetbrains-mono":n+="@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600&display=swap');\n",e="'JetBrains Mono', monospace";break;case"system-mono":e="'Cascadia Code', 'Consolas', 'Courier New', monospace";break;default:e=t.codeFont||"'Cascadia Code', 'Fira Code', 'Consolas', monospace"}return{fontImport:n,resolvedFont:o,resolvedCodeFont:e}}},880(t,n){n.themes=void 0,n.themes={"atom-one-dark":{name:"Atom One Dark",isDark:!0,variables:{"--od-bg":"#282c34","--od-fg":"#abb2bf","--od-bg-alt":"#2c313c","--od-border":"#3e4452","--od-comment":"#5c6370","--od-h1":"#e06c75","--od-h2":"#61afef","--od-h3":"#98c379","--od-h4":"#c678dd","--od-h5":"#56b6c2","--od-h6":"#d19a66","--od-link":"#61afef","--od-link-hover":"#56b6c2","--od-code-bg":"#3e4452","--od-code-fg":"#e06c75","--od-pre-bg":"#21252b","--od-pre-border":"#181a1f","--od-table-even":"#21252b","--od-table-odd":"#282c34","--od-table-th":"#2c313c","--od-scrollbar-track":"#1e2227","--od-scrollbar-thumb":"#4b5263","--od-scrollbar-hover":"#5c6370","--od-mermaid-bg":"#21252b","--od-mermaid-border":"#333842","--od-selection":"rgba(97, 175, 239, 0.25)","--od-mark-bg":"#634a17","--od-kbd-bg":"#353b45"}},"atom-one-light":{name:"Atom One Light",isDark:!1,variables:{"--od-bg":"#fafafa","--od-fg":"#383a42","--od-bg-alt":"#f0f0f1","--od-border":"#d0d0d0","--od-comment":"#a0a1a7","--od-h1":"#e45649","--od-h2":"#4078f2","--od-h3":"#50a14f","--od-h4":"#a626a4","--od-h5":"#0184bc","--od-h6":"#986801","--od-link":"#4078f2","--od-link-hover":"#0184bc","--od-code-bg":"#eaeaeb","--od-code-fg":"#e45649","--od-pre-bg":"#f4f4f5","--od-pre-border":"#d8d8d8","--od-table-even":"#f4f4f5","--od-table-odd":"#fafafa","--od-table-th":"#ebebeb","--od-scrollbar-track":"#e4e4e6","--od-scrollbar-thumb":"#b0b0b4","--od-scrollbar-hover":"#8e8e93","--od-mermaid-bg":"#fbfbfb","--od-mermaid-border":"#e4e4e6","--od-selection":"rgba(64, 120, 242, 0.2)","--od-mark-bg":"#ffeaa7","--od-kbd-bg":"#eaeaeb"}},"tokyo-night":{name:"Tokyo Night",isDark:!0,variables:{"--od-bg":"#1a1b26","--od-fg":"#c0caf5","--od-bg-alt":"#16161e","--od-border":"#292e42","--od-comment":"#565f89","--od-h1":"#f7768e","--od-h2":"#7aa2f7","--od-h3":"#9ece6a","--od-h4":"#bb9af7","--od-h5":"#7dcfff","--od-h6":"#e0af68","--od-link":"#7aa2f7","--od-link-hover":"#7dcfff","--od-code-bg":"#24283b","--od-code-fg":"#f7768e","--od-pre-bg":"#1f2335","--od-pre-border":"#292e42","--od-table-even":"#1f2335","--od-table-odd":"#1a1b26","--od-table-th":"#24283b","--od-scrollbar-track":"#16161e","--od-scrollbar-thumb":"#3b4261","--od-scrollbar-hover":"#565f89","--od-mermaid-bg":"#1f2335","--od-mermaid-border":"#292e42","--od-selection":"rgba(122, 162, 247, 0.25)","--od-mark-bg":"#3d3725","--od-kbd-bg":"#24283b"}},"tokyo-night-storm":{name:"Tokyo Night Storm",isDark:!0,variables:{"--od-bg":"#24283b","--od-fg":"#c0caf5","--od-bg-alt":"#1f2335","--od-border":"#3b4261","--od-comment":"#565f89","--od-h1":"#f7768e","--od-h2":"#7aa2f7","--od-h3":"#9ece6a","--od-h4":"#bb9af7","--od-h5":"#7dcfff","--od-h6":"#e0af68","--od-link":"#7aa2f7","--od-link-hover":"#7dcfff","--od-code-bg":"#2f354f","--od-code-fg":"#f7768e","--od-pre-bg":"#1a1b26","--od-pre-border":"#2f354f","--od-table-even":"#1f2335","--od-table-odd":"#24283b","--od-table-th":"#2f354f","--od-scrollbar-track":"#1f2335","--od-scrollbar-thumb":"#414868","--od-scrollbar-hover":"#565f89","--od-mermaid-bg":"#1f2335","--od-mermaid-border":"#3b4261","--od-selection":"rgba(122, 162, 247, 0.25)","--od-mark-bg":"#3d3725","--od-kbd-bg":"#2f354f"}},"everforest-dark":{name:"Everforest Dark",isDark:!0,variables:{"--od-bg":"#2d353b","--od-fg":"#d3c6aa","--od-bg-alt":"#232a2e","--od-border":"#475258","--od-comment":"#859289","--od-h1":"#e67e80","--od-h2":"#7fbbb3","--od-h3":"#a7c080","--od-h4":"#d699b6","--od-h5":"#83c092","--od-h6":"#dbbc7f","--od-link":"#7fbbb3","--od-link-hover":"#83c092","--od-code-bg":"#343f44","--od-code-fg":"#e67e80","--od-pre-bg":"#232a2e","--od-pre-border":"#3d484d","--od-table-even":"#232a2e","--od-table-odd":"#2d353b","--od-table-th":"#343f44","--od-scrollbar-track":"#232a2e","--od-scrollbar-thumb":"#475258","--od-scrollbar-hover":"#56635f","--od-mermaid-bg":"#232a2e","--od-mermaid-border":"#3d484d","--od-selection":"rgba(127, 187, 179, 0.25)","--od-mark-bg":"#494228","--od-kbd-bg":"#343f44"}},"everforest-light":{name:"Everforest Light",isDark:!1,variables:{"--od-bg":"#fdf6e3","--od-fg":"#5c6a72","--od-bg-alt":"#f4f0d9","--od-border":"#e0dcc7","--od-comment":"#939f91","--od-h1":"#f85552","--od-h2":"#3a94c5","--od-h3":"#8da101","--od-h4":"#df69ba","--od-h5":"#35a77c","--od-h6":"#dfa000","--od-link":"#3a94c5","--od-link-hover":"#35a77c","--od-code-bg":"#ece7cf","--od-code-fg":"#f85552","--od-pre-bg":"#f4f0d9","--od-pre-border":"#e0dcc7","--od-table-even":"#f4f0d9","--od-table-odd":"#fdf6e3","--od-table-th":"#ebe5c8","--od-scrollbar-track":"#f4f0d9","--od-scrollbar-thumb":"#cfc8ab","--od-scrollbar-hover":"#a7a083","--od-mermaid-bg":"#faf5e0","--od-mermaid-border":"#e0dcc7","--od-selection":"rgba(58, 148, 197, 0.2)","--od-mark-bg":"#fae3b0","--od-kbd-bg":"#ebe5c8"}},"catppuccin-mocha":{name:"Catppuccin Mocha",isDark:!0,variables:{"--od-bg":"#1e1e2e","--od-fg":"#cdd6f4","--od-bg-alt":"#181825","--od-border":"#45475a","--od-comment":"#6c7086","--od-h1":"#f38ba8","--od-h2":"#89b4fa","--od-h3":"#a6e3a1","--od-h4":"#cba6f7","--od-h5":"#89dceb","--od-h6":"#fab387","--od-link":"#89b4fa","--od-link-hover":"#89dceb","--od-code-bg":"#313244","--od-code-fg":"#f38ba8","--od-pre-bg":"#181825","--od-pre-border":"#313244","--od-table-even":"#181825","--od-table-odd":"#1e1e2e","--od-table-th":"#313244","--od-scrollbar-track":"#181825","--od-scrollbar-thumb":"#45475a","--od-scrollbar-hover":"#585b70","--od-mermaid-bg":"#181825","--od-mermaid-border":"#313244","--od-selection":"rgba(137, 180, 250, 0.25)","--od-mark-bg":"#453c24","--od-kbd-bg":"#313244"}},"catppuccin-latte":{name:"Catppuccin Latte",isDark:!1,variables:{"--od-bg":"#eff1f5","--od-fg":"#4c4f69","--od-bg-alt":"#e6e9ef","--od-border":"#ccd0da","--od-comment":"#8c8fa1","--od-h1":"#d20f39","--od-h2":"#1e66f5","--od-h3":"#40a02b","--od-h4":"#8839ef","--od-h5":"#04a5e5","--od-h6":"#fe640b","--od-link":"#1e66f5","--od-link-hover":"#04a5e5","--od-code-bg":"#e6e9ef","--od-code-fg":"#d20f39","--od-pre-bg":"#e6e9ef","--od-pre-border":"#ccd0da","--od-table-even":"#e6e9ef","--od-table-odd":"#eff1f5","--od-table-th":"#dce0e8","--od-scrollbar-track":"#e6e9ef","--od-scrollbar-thumb":"#bcc0cc","--od-scrollbar-hover":"#9ca0b0","--od-mermaid-bg":"#f2f4f8","--od-mermaid-border":"#ccd0da","--od-selection":"rgba(30, 102, 245, 0.2)","--od-mark-bg":"#feefc3","--od-kbd-bg":"#e6e9ef"}},nord:{name:"Nord",isDark:!0,variables:{"--od-bg":"#2e3440","--od-fg":"#d8dee9","--od-bg-alt":"#242933","--od-border":"#434c5e","--od-comment":"#616e88","--od-h1":"#bf616a","--od-h2":"#88c0d0","--od-h3":"#a3be8c","--od-h4":"#b48ead","--od-h5":"#81a1c1","--od-h6":"#ebcb8b","--od-link":"#88c0d0","--od-link-hover":"#8fbcbb","--od-code-bg":"#3b4252","--od-code-fg":"#bf616a","--od-pre-bg":"#242933","--od-pre-border":"#3b4252","--od-table-even":"#242933","--od-table-odd":"#2e3440","--od-table-th":"#3b4252","--od-scrollbar-track":"#242933","--od-scrollbar-thumb":"#434c5e","--od-scrollbar-hover":"#4c566a","--od-mermaid-bg":"#242933","--od-mermaid-border":"#3b4252","--od-selection":"rgba(136, 192, 208, 0.25)","--od-mark-bg":"#453e28","--od-kbd-bg":"#3b4252"}},dracula:{name:"Dracula",isDark:!0,variables:{"--od-bg":"#282a36","--od-fg":"#f8f8f2","--od-bg-alt":"#21222c","--od-border":"#44475a","--od-comment":"#6272a4","--od-h1":"#ff5555","--od-h2":"#8be9fd","--od-h3":"#50fa7b","--od-h4":"#ff79c6","--od-h5":"#bd93f9","--od-h6":"#f1fa8c","--od-link":"#8be9fd","--od-link-hover":"#ff79c6","--od-code-bg":"#44475a","--od-code-fg":"#ff5555","--od-pre-bg":"#1e1f29","--od-pre-border":"#44475a","--od-table-even":"#21222c","--od-table-odd":"#282a36","--od-table-th":"#44475a","--od-scrollbar-track":"#1e1f29","--od-scrollbar-thumb":"#44475a","--od-scrollbar-hover":"#6272a4","--od-mermaid-bg":"#1e1f29","--od-mermaid-border":"#44475a","--od-selection":"rgba(139, 233, 253, 0.25)","--od-mark-bg":"#4c4a22","--od-kbd-bg":"#44475a"}},"gruvbox-dark":{name:"Gruvbox Dark",isDark:!0,variables:{"--od-bg":"#282828","--od-fg":"#ebdbb2","--od-bg-alt":"#1d2021","--od-border":"#504945","--od-comment":"#928374","--od-h1":"#fb4934","--od-h2":"#83a598","--od-h3":"#b8bb26","--od-h4":"#d3869b","--od-h5":"#8ec07c","--od-h6":"#fabd2f","--od-link":"#83a598","--od-link-hover":"#8ec07c","--od-code-bg":"#3c3836","--od-code-fg":"#fb4934","--od-pre-bg":"#1d2021","--od-pre-border":"#3c3836","--od-table-even":"#1d2021","--od-table-odd":"#282828","--od-table-th":"#3c3836","--od-scrollbar-track":"#1d2021","--od-scrollbar-thumb":"#504945","--od-scrollbar-hover":"#665c54","--od-mermaid-bg":"#1d2021","--od-mermaid-border":"#3c3836","--od-selection":"rgba(131, 165, 152, 0.25)","--od-mark-bg":"#4c421e","--od-kbd-bg":"#3c3836"}},"gruvbox-light":{name:"Gruvbox Light",isDark:!1,variables:{"--od-bg":"#fbf1c7","--od-fg":"#3c3836","--od-bg-alt":"#f2e5bc","--od-border":"#d5c4a1","--od-comment":"#928374","--od-h1":"#cc241d","--od-h2":"#458588","--od-h3":"#98971a","--od-h4":"#b16286","--od-h5":"#689d6a","--od-h6":"#d79921","--od-link":"#458588","--od-link-hover":"#689d6a","--od-code-bg":"#ebdbb2","--od-code-fg":"#cc241d","--od-pre-bg":"#f2e5bc","--od-pre-border":"#d5c4a1","--od-table-even":"#f2e5bc","--od-table-odd":"#fbf1c7","--od-table-th":"#ebdbb2","--od-scrollbar-track":"#f2e5bc","--od-scrollbar-thumb":"#bdae93","--od-scrollbar-hover":"#a89984","--od-mermaid-bg":"#faf3d6","--od-mermaid-border":"#d5c4a1","--od-selection":"rgba(69, 133, 136, 0.2)","--od-mark-bg":"#fedba8","--od-kbd-bg":"#ebdbb2"}}}}};const n={};let o=function o(e){const r=n[e];if(void 0!==r)return r.exports;const i=n[e]={exports:{}};return t[e].call(i.exports,i,i.exports,o),i.exports}(156);const e=exports;for(var r in o)e[r]=o[r];o.__esModule&&Object.defineProperty(e,"__esModule",{value:!0})})();
|
package/package.json
CHANGED
|
Binary file
|
|
@@ -3,14 +3,47 @@
|
|
|
3
3
|
"id": "org.joplin.plugin.theme-studio",
|
|
4
4
|
"app_min_version": "2.8.0",
|
|
5
5
|
"name": "Theme Studio",
|
|
6
|
-
"version": "1.3.
|
|
6
|
+
"version": "1.3.2",
|
|
7
7
|
"description": "All-in-one multi-palette engine (Tokyo Night, Everforest, Catppuccin, Nord, Dracula, Gruvbox, Atom One) with native RTL/LTR typography & mobile support.",
|
|
8
8
|
"author": "Yashar",
|
|
9
9
|
"homepage_url": "https://github.com/xyasharx/joplin-plugin-theme-studio",
|
|
10
|
+
"repository_url": "https://github.com/xyasharx/joplin-plugin-theme-studio",
|
|
10
11
|
"platforms": [
|
|
11
12
|
"desktop",
|
|
12
13
|
"mobile"
|
|
13
14
|
],
|
|
15
|
+
"categories": [
|
|
16
|
+
"themes",
|
|
17
|
+
"appearance",
|
|
18
|
+
"editor",
|
|
19
|
+
"viewer"
|
|
20
|
+
],
|
|
21
|
+
"screenshots": [
|
|
22
|
+
{
|
|
23
|
+
"src": "screenshots/01-hero-tokyo-night.png",
|
|
24
|
+
"label": "Theme Studio in Tokyo Night with split editor and viewer"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"src": "screenshots/02-persian-arabic-rtl.png",
|
|
28
|
+
"label": "BiDi and native RTL typography in Vazirmatn"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"src": "screenshots/03-arabic-everforest-light.png",
|
|
32
|
+
"label": "Everforest Light warm reading palette"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"src": "screenshots/04-chinese-dracula.png",
|
|
36
|
+
"label": "Dracula Chinese Noto Sans SC"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"src": "screenshots/05-Hindi-catppuccin-latte.png",
|
|
40
|
+
"label": "Catppuccin Latte Hindi Noto Sans Devanagari"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"src": "screenshots/06-hebrew-one-dark.png",
|
|
44
|
+
"label": "Atom One Dark Hebrew Heebo"
|
|
45
|
+
}
|
|
46
|
+
],
|
|
14
47
|
"keywords": [
|
|
15
48
|
"theme",
|
|
16
49
|
"themes",
|
|
@@ -33,6 +66,6 @@
|
|
|
33
66
|
"mobile",
|
|
34
67
|
"mermaid"
|
|
35
68
|
],
|
|
36
|
-
"_publish_hash": "sha256:
|
|
37
|
-
"_publish_commit": "
|
|
69
|
+
"_publish_hash": "sha256:fcc86d98294e8a8e540db1fcf0e1a4fea1cd93fb37a867fe74d2ac41f520f854",
|
|
70
|
+
"_publish_commit": "e6ba681501fcc3a2566c60fbef0e6d9936f00af0"
|
|
38
71
|
}
|