/* One typography contract for the editor, reading view, HTML and PDF. */
body.notes-workbench {
  --nw-width: 740px;
  --nw-font-size: 17px;
  --nw-line-height: 1.75;
  --nw-serif: "Libertinus Serif", "Noto Serif CJK SC", "Songti SC", "STSong", serif;
  --nw-mono: "Source Code Pro", "SFMono-Regular", Consolas, monospace;
  --file-line-width: var(--nw-width);
  /* Minimal uses its own width token for prose and embedded blocks. */
  --line-width: var(--nw-width);
  --font-text-theme: var(--nw-serif);
  --font-monospace-theme: var(--nw-mono);
  --font-text-size: var(--nw-font-size);
  --line-height-normal: var(--nw-line-height);
  --h1-size: 1.95em;
  --h2-size: 1.5em;
  --h3-size: 1.22em;
  --h4-size: 1.05em;
}
body.notes-workbench :is(.markdown-preview-view, .markdown-source-view.mod-cm6) {
  font-family: var(--nw-serif);
  font-size: var(--nw-font-size);
  line-height: var(--nw-line-height);
}
body.notes-workbench .markdown-preview-view :is(h1, h2, h3, h4, h5, h6) {
  line-height: 1.35;
  break-after: avoid;
  overflow-wrap: anywhere;
}
body.notes-workbench .markdown-preview-view p { orphans: 3; widows: 3; }
body.notes-workbench .markdown-preview-view :is(img, svg) { max-width: 100%; }
body.notes-workbench.nw-center-images :is(.markdown-preview-view, .markdown-source-view) .image-embed:not(.image-position-left):not(.image-position-right):not(.nw-image-position-left):not(.nw-image-position-right):not(.nw-image-position-none) {
  display: block;
  text-align: center;
  margin-inline: auto;
}
body.notes-workbench.nw-center-images .markdown-preview-view p > img:only-child {
  display: block;
  margin-inline: auto;
}
/* The image module owns per-note display choices; these rules apply to the
   portable snapshot used by preview, HTML, the blog and PDF printing. */
body.notes-workbench.nw-export .nw-document .image-embed.nw-image-position-left {
  display: block !important; width: fit-content; max-width: 100%;
  margin-left: 0 !important; margin-right: auto !important; text-align: left !important;
}
body.notes-workbench.nw-export .nw-document .image-embed.nw-image-position-right {
  display: block !important; width: fit-content; max-width: 100%;
  margin-left: auto !important; margin-right: 0 !important; text-align: right !important;
}
body.notes-workbench.nw-export .nw-document .image-embed.nw-image-position-center {
  display: block !important; width: fit-content; max-width: 100%;
  margin-inline: auto !important; text-align: center !important;
}
body.notes-workbench.nw-export .nw-document .image-embed.nw-image-position-none {
  margin-inline: 0 !important; text-align: start !important;
}
body.notes-workbench.nw-export .nw-document .image-embed.nw-image-wrap.nw-image-position-left {
  float: left !important; margin: 0 1em .5em 0 !important; clear: left;
}
body.notes-workbench.nw-export .nw-document .image-embed.nw-image-wrap.nw-image-position-right {
  float: right !important; margin: 0 0 .5em 1em !important; clear: right;
}
body.notes-workbench.nw-export.image-captions-enabled .nw-document .image-embed[alt] {
  display: flex !important; flex-direction: column; align-items: var(--image-converter-caption-align-items, center);
  width: fit-content; max-width: 100%;
}
body.notes-workbench.nw-export.image-captions-enabled .nw-document .image-embed[alt]::after {
  content: attr(alt); display: block; width: var(--img-width, 100%); max-width: 100%;
  box-sizing: border-box; font-family: var(--font-interface, system-ui, sans-serif);
  font-size: var(--image-converter-caption-font-size, var(--font-smaller, .85em));
  color: var(--image-converter-caption-color, var(--text-muted, #666));
  background: var(--image-converter-caption-bg, transparent);
  opacity: var(--image-converter-caption-opacity, 1);
  margin-top: var(--image-converter-caption-margin-top, 4px);
  padding: var(--image-converter-caption-padding, 2px 4px);
  border-radius: var(--image-converter-caption-border-radius, 0);
  font-style: var(--image-converter-caption-font-style, italic);
  font-weight: var(--image-converter-caption-font-weight, normal);
  text-transform: var(--image-converter-caption-text-transform, none);
  letter-spacing: var(--image-converter-caption-letter-spacing, normal);
  border: var(--image-converter-caption-border, none);
  text-align: var(--image-converter-caption-text-align, center);
}
body.notes-workbench .markdown-preview-view :is(pre, code) { font-family: var(--nw-mono); }
body.notes-workbench .markdown-preview-view pre { white-space: pre-wrap; overflow-wrap: anywhere; }
body.notes-workbench .markdown-preview-view tr { break-inside: avoid; }
body.notes-workbench .markdown-preview-view .callout { border-radius: 6px; }
body.notes-workbench .nw-document .callout.is-collapsed .callout-content { display: block !important; }
body.notes-workbench .nw-document { max-width: var(--nw-width); margin-inline: auto; padding: 40px 0; overflow: visible; height: auto; }
body.notes-workbench .nw-document :is(.markdown-preview-sizer, .markdown-preview-section) { min-height: 0 !important; padding: 0; }
body.notes-workbench .nw-document :is(.markdown-embed, .markdown-embed-content) { max-height: none; overflow: visible; }
body.notes-workbench .nw-document .nw-title { margin-top: 0; }
body.notes-workbench .nw-document .nw-banner {
  position: relative;
  width: 100%;
  height: clamp(180px, 32vw, 280px);
  margin: 0 0 1.75em;
  overflow: hidden;
  border-radius: 8px;
  break-inside: avoid;
}
body.notes-workbench .nw-document .nw-banner-image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
body.notes-workbench .nw-document .nw-banner-icon {
  position: absolute;
  left: 20px;
  bottom: 14px;
  font: 3em/1 system-ui, sans-serif;
  text-shadow: 0 2px 8px #0009;
}
body.notes-workbench .nw-document :is(.collapse-indicator, .callout-fold, .markdown-embed-link, .code-block-flair, .heading-collapse-indicator) { display: none; }
body.notes-workbench.nw-export { display: block; margin: 0; padding: 0 24px; overflow: auto; background: var(--background-primary, white); color: var(--text-normal, #222); height: auto; min-height: 100vh; }
.nw-document .nw-private-link { color: inherit; text-decoration: none; }
.nw-site-nav { max-width: var(--nw-width); margin: 28px auto 0; font-family: system-ui, sans-serif; font-size: 14px; }
.nw-site-nav a { color: inherit; }
@media (max-width: 640px) {
  body.notes-workbench.nw-export { padding: 0 18px; }
  body.notes-workbench .nw-document { padding-top: 28px; }
}
@media print {
  @page { size: A4; margin: 18mm 17mm 20mm; }
  body.notes-workbench.nw-export { padding: 0; margin: 0; min-height: 0; background: white !important; color: #202020 !important; }
  /* Obsidian's application stylesheet hides body > :not(.print) during printing. */
  body.notes-workbench.nw-export > .nw-document { display: block !important; }
  body.notes-workbench .nw-document { padding: 0; max-width: none; width: auto; }
  body.notes-workbench .nw-document .nw-banner { height: 52mm; }
  body.notes-workbench .nw-site-nav { display: none; }
  body.notes-workbench .nw-document :is(img, svg, .callout) { break-inside: avoid; }
  body.notes-workbench .nw-document :is(pre, table) { break-inside: auto; }
  body.notes-workbench .nw-document a { color: inherit; }
  body.notes-workbench .nw-document * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Shared table geometry: native Live Preview, reading, HTML and PDF.
   Live Preview puts padding on .table-cell-wrapper, not the cell itself.
   Minimal also trims the outer columns and uses a fit-content wrapper. */
body.notes-workbench :is(.markdown-preview-view, .markdown-source-view.mod-cm6) {
  --nw-table-font-size: calc(var(--nw-font-size) * .94);
  --table-text-size: var(--nw-table-font-size);
  --table-header-size: var(--nw-table-font-size);
  --table-line-height: 1.6;
  --table-cell-padding: .65em 1em;
  --table-edge-cell-padding-first: 1em;
  --table-edge-cell-padding-last: 1em;
  --table-margin: 0 auto;
  --table-wrapper-width: 100%;
}
body.notes-workbench :is(.markdown-preview-view, .markdown-source-view.mod-cm6) :is(.cm-table-widget, .el-table) {
  --container-table-margin: auto;
}
/* Reading has no row drag handles, so it needs no one-sided gutter. */
body.notes-workbench .markdown-preview-view .el-table { --table-drag-padding: 0px; }
body.notes-workbench :is(.markdown-preview-view, .markdown-source-view.mod-cm6) .table-wrapper {
  margin-inline: auto;
}
body.notes-workbench :is(.markdown-preview-view, .markdown-source-view.mod-cm6) table {
  font-size: var(--nw-table-font-size);
  line-height: var(--table-line-height);
  border-collapse: collapse;
  /* The theme's readable-width selector otherwise wins over this shared rule. */
  margin-inline: auto !important;
}
body.notes-workbench :is(.markdown-preview-view, .markdown-source-view.mod-cm6) table :is(th, td) {
  font-size: var(--nw-table-font-size);
  line-height: var(--table-line-height);
  border: 1px solid var(--background-modifier-border);
  vertical-align: middle;
}
body.notes-workbench :is(.markdown-preview-view, .markdown-source-view.mod-cm6) table:not(.table-editor) :is(th, td),
body.notes-workbench .markdown-source-view.mod-cm6 .table-editor :is(th, td) > .table-cell-wrapper {
  padding: var(--table-cell-padding);
}
body.notes-workbench .markdown-source-view.mod-cm6 .table-editor :is(th, td) { padding: 0; }
body.notes-workbench .markdown-source-view.mod-cm6 .nw-managed-table [rowspan]:not([rowspan="1"]) > .table-cell-wrapper {
  height: auto;
}
body.notes-workbench :is(.markdown-preview-view, .markdown-source-view.mod-cm6) table th {
  background: var(--background-secondary);
  font-weight: 600;
}
body.notes-workbench table.nw-managed-table .nw-covered-cell { display: none !important; }
/* Width is scoped to each table. Its wrapper scrolls horizontally only;
   without an explicit vertical rule, overflow-x:auto also makes y auto. */
body.notes-workbench :is(.markdown-preview-view,.markdown-source-view.mod-cm6) :is(.table-wrapper,.nw-table-scroll) {
  max-width: 100%; width: 100%; height: auto; max-height: none;
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
}
/* Reserve space for the native add-row button instead of letting it overflow
   below the table and create a second scrollbar. */
body.notes-workbench .markdown-source-view.mod-cm6 .table-wrapper.nw-table-scroll { padding-bottom: var(--table-drag-padding, 16px); }
body.notes-workbench .markdown-source-view.mod-cm6 .table-wrapper.nw-table-scroll > .table-row-btn {
  top: auto !important; bottom: 0 !important; transform: none;
}
body.notes-workbench :is(.cm-table-widget,.el-table) { max-width: 100%; min-width: 0; }
body.notes-workbench .nw-table-scroll[data-nw-table-mode="fit"] .table-col-btn { left: auto; right: 0; transform: none; }
body.notes-workbench .nw-table-scroll[data-nw-table-mode="scroll"]::-webkit-scrollbar { height: 9px; }
body.notes-workbench .nw-table-scroll[data-nw-table-mode="scroll"]::-webkit-scrollbar-track { background: var(--background-secondary); }
body.notes-workbench .nw-table-scroll[data-nw-table-mode="scroll"]::-webkit-scrollbar-thumb { background: var(--text-faint,#999); border: 2px solid var(--background-secondary); border-radius: 5px; }
body.notes-workbench table.nw-layout-table { table-layout: fixed !important; max-width: none !important; }
body.notes-workbench table.nw-layout-table[data-nw-table-mode="auto"] { table-layout: auto !important; }
body.notes-workbench .nw-layout-table :is(th,td,.table-cell-wrapper) { overflow-wrap: anywhere; white-space: normal; min-width: 0; }
body.notes-workbench .nw-layout-table :is(img,video) { max-width: 100%; }
body.notes-workbench .nw-layout-table pre { max-width: 100%; white-space: pre-wrap; }
body.notes-workbench .nw-visual-caption {
  font-size: .85em; font-weight: 400; line-height: 1.5; color: var(--text-muted,#666);
  text-align: center; white-space: normal; overflow-wrap: anywhere; padding: .65em .3em;
}
body.notes-workbench caption.nw-visual-caption { caption-side: bottom; }
body.notes-workbench .nw-table-frame { min-width: 0; max-width: 100%; }
body.notes-workbench .nw-table-caption { box-sizing: border-box; width: 100%; margin-inline: 0; text-align: center; }
body.notes-workbench caption.nw-table-caption-source { display: none !important; }
body.notes-workbench .nw-numbered-image > .nw-visual-caption { display: block; }
body.notes-workbench .nw-numbered-image::after { content: none !important; display: none !important; }
body.notes-workbench .nw-numbered-image { overflow: visible; }
body.notes-workbench :is(img,table)[data-nw-visual-line] { scroll-margin-block: 4em; }
body.notes-workbench .nw-reference-missing { color: var(--text-error,#b42318); text-decoration: underline wavy; }

/* Bookmark cards share the document palette in Obsidian and portable output. */
body.notes-workbench a.nw-link-card {
  display: flex; position: relative; align-items: stretch; gap: 18px;
  width: 100%; min-height: 126px; box-sizing: border-box; margin-block: 14px;
  padding: 18px 42px 18px 20px; overflow: hidden; border: 1px solid var(--background-modifier-border, #ddd);
  border-radius: 10px; background: var(--background-primary, #fff); background-image: none;
  color: var(--text-normal, #262626); text-decoration: none; font-family: var(--font-interface, sans-serif);
  text-align: left; line-height: 1.5; white-space: normal; break-inside: avoid;
  transition: border-color .15s, background-color .15s;
}
body.notes-workbench a.nw-link-card:hover {
  border-color: var(--text-accent, #777); background-color: var(--background-primary-alt, #f8f8f8);
  color: var(--text-normal, #262626); text-decoration: none;
}
body.notes-workbench a.nw-link-card:focus-visible { outline: 2px solid var(--text-accent, #777); outline-offset: 3px; }
body.notes-workbench .nw-link-card-body { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 0; }
body.notes-workbench .nw-link-card-site { display: flex; align-items: center; gap: 7px; font-size: 11px; letter-spacing: .035em; color: var(--text-muted, #777); }
body.notes-workbench .nw-link-card-domain { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.notes-workbench .nw-link-card-icon { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 26px; width: 26px; height: 26px; border-radius: 7px; background: var(--background-secondary, #f1f1ef); }
body.notes-workbench .nw-link-card-icon-fallback { font-size: 12px; font-weight: 600; line-height: 1; color: var(--text-muted, #777); }
body.notes-workbench .nw-link-card-icon.has-icon .nw-link-card-icon-fallback { visibility: hidden; }
body.notes-workbench .nw-link-card img.nw-link-card-favicon { position: absolute; display: block; width: 18px; height: 18px; max-width: none; margin: 0; object-fit: contain; border-radius: 3px; visibility: hidden; }
body.notes-workbench .nw-link-card-icon.has-icon img.nw-link-card-favicon { visibility: visible; }
body.notes-workbench .nw-link-card-title { font-size: 16px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
body.notes-workbench .nw-link-card-description { font-size: 13px; color: var(--text-muted, #777); }
body.notes-workbench :is(.nw-link-card-title, .nw-link-card-description) { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
body.notes-workbench .nw-link-card-url { margin-top: auto; padding-top: 4px; color: var(--text-faint, #888); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.notes-workbench .nw-link-card img.nw-link-card-image { display: block; flex: 0 0 120px; width: 120px; max-width: 28%; height: 100px; margin: 0; border-radius: 5px; object-fit: cover; align-self: center; }
body.notes-workbench .nw-link-card-arrow { position: absolute; right: 14px; top: 14px; font-size: 16px; color: var(--text-muted, #777); }
.nw-link-card-modal .setting-item-control { flex: 1; }
.nw-link-card-modal :is(input, textarea) { width: 100%; }
.nw-link-card-status, .nw-link-card-error { color: var(--text-muted); font-size: var(--font-ui-small); }
@media (max-width: 480px) {
  body.notes-workbench a.nw-link-card { gap: 10px; padding: 14px 32px 14px 14px; }
  body.notes-workbench .nw-link-card img.nw-link-card-image { flex-basis: 72px; width: 72px; height: 78px; }
}
@media (prefers-reduced-motion: reduce) { body.notes-workbench a.nw-link-card { transition: none; } }
@media print {
  body.notes-workbench caption.nw-table-caption-source { display: table-caption !important; }
  body.notes-workbench .nw-table-caption { display: none !important; }
  body.notes-workbench .nw-document table.nw-layout-table { width: 100% !important; min-width: 0 !important; table-layout: fixed !important; }
  body.notes-workbench .nw-document .nw-table-scroll { overflow: visible !important; }
  body.notes-workbench .nw-document table.nw-managed-table :is(th, td) { overflow-wrap: anywhere; border-color: #c9c9c9; }
  body.notes-workbench .nw-document table.nw-managed-table thead { display: table-header-group; }
}

/* Portable Markdown styles shared by all published articles. */
body.nw-site-article.notes-workbench.nw-export {
  /* One bridge from the site palette to Obsidian's document color roles. */
  --background-primary: var(--paper);
  --background-secondary: color-mix(in srgb, var(--paper) 91%, var(--ink) 9%);
  --background-modifier-border: var(--rule);
  --text-normal: var(--ink);
  --text-muted: var(--ink-soft);
  --interactive-accent: var(--accent);
  --font-interface: var(--sans);
  padding: 0;
  background-color: var(--background-primary) !important;
  color: var(--text-normal);
}
body.nw-site-article .nw-document :is(h1, h2, h3, h4, h5, h6) {
  color: var(--text-normal);
  font-family: var(--nw-serif);
  font-weight: 500;
  line-height: 1.35;
  scroll-margin-top: 1.5em;
}
body.nw-site-article .nw-document h1 { margin: .1em 0 1em; font-size: var(--h1-size); }
body.nw-site-article .nw-document h2 { margin: 2em 0 .8em; font-size: var(--h2-size); }
body.nw-site-article .nw-document h3 { margin: 1.8em 0 .7em; font-size: var(--h3-size); }
body.nw-site-article .nw-document :is(h4, h5, h6) { margin: 1.6em 0 .6em; font-size: var(--h4-size); }
body.nw-site-article .nw-document :is(p, ul, ol, blockquote, pre, table, .callout) { margin-block: 0 1.15em; }
body.nw-site-article .nw-document :is(ul, ol) { padding-inline-start: 1.55em; }
body.nw-site-article .nw-document li { padding-inline-start: .12em; }
body.nw-site-article .nw-document li + li { margin-top: .3em; }
body.nw-site-article .nw-document li > :last-child { margin-bottom: 0; }
body.nw-site-article .nw-document a { color: var(--interactive-accent); text-decoration: underline; text-underline-offset: .18em; }
body.nw-site-article .nw-document a:hover { text-decoration-thickness: 2px; }
body.nw-site-article .nw-document :is(b, strong) { font-weight: 650; }
body.nw-site-article .nw-document mark { padding: 0 .12em; background: #f3e7ae; color: inherit; }
body.nw-site-article .nw-document hr { margin: 2.5em 0; border: 0; border-top: 1px solid var(--background-modifier-border); }
body.nw-site-article .nw-document blockquote { padding: .1em 0 .1em 1.1em; border-left: 2px solid var(--interactive-accent); color: var(--text-muted); }
body.nw-site-article .nw-document blockquote > :last-child { margin-bottom: 0; }
body.nw-site-article .nw-document :not(pre) > code { padding: .08em .28em; border-radius: 3px; background: var(--background-secondary); font-size: .86em; }
body.nw-site-article .nw-document pre { max-width: 100%; padding: 1em 1.15em; overflow-x: auto; border-radius: 5px; background: var(--background-secondary); font-size: .82em; line-height: 1.65; white-space: pre; overflow-wrap: normal; }
body.nw-site-article .nw-document pre code { padding: 0; background: transparent; }
body.nw-site-article .nw-document .table-wrapper { max-width: 100%; overflow-x: auto; }
body.nw-site-article .nw-document table { min-width: 100%; }
body.nw-site-article .nw-document table th { background: var(--background-secondary); }
body.nw-site-article .nw-document .callout { padding: .8em 1em; border-left: 3px solid var(--interactive-accent); background: var(--background-secondary); }
body.nw-site-article .nw-document .callout-title { display: flex; align-items: center; gap: .4em; font-family: var(--font-interface); font-size: .9em; font-weight: 600; }
body.nw-site-article .nw-document .callout-icon { display: inline-flex; width: 1.2em; height: 1.2em; }
body.nw-site-article .nw-document .callout-content > :first-child { margin-top: .5em; }
body.nw-site-article .nw-document .callout-content > :last-child { margin-bottom: 0; }
body.nw-site-article .nw-document .task-list-item-checkbox { margin-inline-end: .45em; accent-color: var(--interactive-accent); }
body.nw-site-article .nw-document .footnotes { margin-top: 3em; padding-top: 1em; border-top: 1px solid var(--background-modifier-border); font-size: .85em; }
body.nw-site-article .nw-document .footnotes ol { padding-inline-start: 1.4em; }
body.nw-site-article .nw-document .image-embed img { display: block; height: auto; max-width: 100%; }

/* Shared component geometry. Color and fonts come from the document theme. */
body.notes-workbench .nw-widget {
  box-sizing: border-box; width: 100%; margin: 1.5em 0 1.8em;
  padding: 1.2em 1.35em; color: var(--text-normal);
  border: 0; border-radius: 0;
  background: transparent;
  font: 400 .89em/1.55 var(--font-interface);
  break-inside: avoid;
}
body.notes-workbench .nw-widget, body.notes-workbench .nw-widget * { -webkit-user-select: none; user-select: none; }
body.notes-workbench .nw-widget * { box-sizing: border-box; }
body.notes-workbench .nw-widget :is(input, textarea, [contenteditable="true"], [contenteditable=""]) { -webkit-user-select: text; user-select: text; }
body.notes-workbench .nw-widget :is(p, h3, h4) { margin: 0; font-family: inherit; line-height: inherit; }
body.notes-workbench .nw-widget :is(button, input) { font: inherit; }
body.notes-workbench .nw-widget .nw-widget-header { display: flex; align-items: start; justify-content: space-between; gap: 1em; margin-bottom: .75em; }
body.notes-workbench .nw-widget .nw-widget-eyebrow { color: var(--text-muted); font-size: .77em; letter-spacing: .08em; text-transform: uppercase; }
body.notes-workbench .nw-widget .nw-widget-title { font-size: 1.12em; font-weight: 650; }
body.notes-workbench .nw-widget .nw-widget-note { color: var(--text-muted); font-size: .9em; }
body.notes-workbench .nw-widget .nw-widget-row { display: flex; flex-wrap: wrap; align-items: center; gap: .65em; }
body.notes-workbench .nw-widget .nw-widget-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: .8em; }
body.notes-workbench .nw-widget .nw-widget-stat { padding: .8em 0; border-top: 1px solid var(--background-modifier-border); }
body.notes-workbench .nw-widget .nw-widget-stat-label { display: block; color: var(--text-muted); font-size: .82em; }
body.notes-workbench .nw-widget .nw-widget-value { display: block; font-size: 1.6em; font-variant-numeric: tabular-nums; font-weight: 650; line-height: 1.3; }
body.notes-workbench .nw-widget .nw-widget-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .6em; margin: .8em 0; }
body.notes-workbench .nw-widget .nw-widget-button { padding: .34em .75em; border: 1px solid var(--background-modifier-border); border-radius: 4px; background: transparent; color: var(--text-normal); box-shadow: none; cursor: pointer; }
body.notes-workbench .nw-widget .nw-widget-button:hover, body.notes-workbench .nw-widget .nw-widget-button.is-active { color: var(--interactive-accent); border-color: var(--interactive-accent); background: var(--background-secondary); }
body.notes-workbench .nw-widget .nw-widget-button:focus-visible, body.notes-workbench .nw-widget input:focus-visible { outline: 2px solid var(--interactive-accent); outline-offset: 2px; }
body.notes-workbench .nw-widget .nw-widget-range { width: min(100%, 340px); accent-color: var(--interactive-accent); cursor: pointer; }
body.notes-workbench .nw-widget .nw-widget-track { width: 100%; height: .5em; border-radius: 99px; background: var(--background-secondary); overflow: hidden; }
body.notes-workbench .nw-widget .nw-widget-fill { display: block; height: 100%; background: var(--interactive-accent); }
body.notes-workbench .nw-widget [data-nw-panel] { padding-top: .6em; }
body.notes-workbench .nw-widget [data-nw-panel][hidden] { display: none; }
/* Open-ended visual blocks share the document's semantic colors and typography. */
body.notes-workbench .nw-viz {
  --nw-viz-foreground: var(--text-normal);
  --nw-viz-muted: var(--text-muted);
  --nw-viz-grid: var(--background-modifier-border);
  --nw-viz-track: var(--background-secondary);
  --nw-viz-accent: var(--interactive-accent);
}
body.notes-workbench .nw-viz .nw-viz-plot { max-width: 100%; min-width: 0; }
body.notes-workbench .nw-viz .nw-viz-plot svg { display: block; width: 100%; height: auto; max-width: 100%; font: inherit; }
body.notes-workbench .nw-viz .nw-viz-plot canvas { display: block; max-width: 100%; }
body.notes-workbench .nw-viz .nw-viz-plot :is(svg, canvas) { color: var(--nw-viz-accent); }
body.notes-workbench .nw-viz .nw-viz-axis, body.notes-workbench .nw-viz .nw-viz-gridline { fill: none; stroke: var(--nw-viz-grid); stroke-width: 1; }
body.notes-workbench .nw-viz .nw-viz-axis-label { color: var(--nw-viz-muted); fill: var(--nw-viz-muted); font-size: .85em; }
body.notes-workbench .nw-viz .nw-viz-label { color: var(--nw-viz-foreground); fill: var(--nw-viz-foreground); }
body.notes-workbench .nw-viz .nw-viz-mark { fill: currentColor; }
body.notes-workbench .nw-viz .nw-viz-line { fill: none; stroke: currentColor; stroke-width: 2; }
body.notes-workbench .nw-viz [data-nw-series="1"] { color: var(--nw-viz-accent); }
body.notes-workbench .nw-viz [data-nw-series="2"] { color: var(--nw-viz-foreground); }
body.notes-workbench .nw-viz [data-nw-series="3"] { color: var(--nw-viz-muted); }
body.notes-workbench .nw-viz .nw-viz-legend { display: flex; flex-wrap: wrap; align-items: center; gap: .4em 1em; margin-top: .75em; color: var(--nw-viz-muted); font-size: .85em; }
body.notes-workbench .nw-viz .nw-viz-legend-item { display: inline-flex; align-items: center; gap: .45em; }
body.notes-workbench .nw-viz .nw-viz-swatch { display: inline-block; width: .7em; height: .7em; border-radius: 2px; background: currentColor; }
body.notes-workbench .nw-viz .nw-viz-caption { margin-top: .7em; color: var(--nw-viz-muted); font-size: .85em; }
@media (max-width: 520px) { body.notes-workbench .nw-widget { padding: 1em; } }
/* Native pages receive the same theme at runtime; their layout is authored HTML. */
body.notes-workbench .nw-widget.nw-page { padding: 0; border: 0; border-radius: 0; background: transparent; }
body.notes-workbench .nw-page-frame { display: block; width: 100%; height: 240px; border: 0; }
body.notes-workbench .nw-page-status { color: var(--text-error, var(--text-normal)); padding: .6em 0; }
body.notes-workbench .nw-page-status[hidden] { display: none; }
@media print {
  /* Obsidian hides all iframes when printing; native pages have completed rendering. */
  body.notes-workbench .nw-page-frame { display: block !important; }
  body.notes-workbench .nw-widget { break-inside: avoid; outline: none !important; }
  body.notes-workbench .nw-widget :is([data-nw-tab], [data-nw-reset], input[type="range"]) { display: none !important; }
  body.notes-workbench .nw-widget [data-nw-panel][hidden] { display: block !important; }
  body.notes-workbench .nw-widget [data-nw-panel] + [data-nw-panel] { border-top: 1px solid var(--background-modifier-border); margin-top: .6em; }
}
