/* Define CSS variables */
:root {
  --line-number-gutter-width: 38px;
  --line-number-gutter-padding: 16px;
  --border-radius: 5px;
  --code-padding: 8px;
  --header-padding: 0px;
  --header-spacing: 15px;
  --language-icon-size: 32px;
  --inline-code-padding-vertical: 0.2em;
  --inline-code-padding-horizontal: 0.4em;
}

/* Codeblock background colors */
.codeblock-customizer .markdown-rendered pre.codeblock-customizer-pre,
.codeblock-customizer .markdown-source-view .HyperMD-codeblock.codeblock-customizer-line {
  background-color: var(--codeblock-background-color, var(--codeblock-customizer-codeblock-background-color));
}

.markdown-source-view.mod-cm6 .code-block-flair {
  display: inline-block !important;
}

/* Hidden elements */
/*.codeblock-customizer-hidden-element {
  display: none;
}*/

/* Indentation lines */
.codeblock-customizer-indentation-guide::before {
  display: none;
}
.codeblock-customizer-show-indentation-lines .markdown-reading-view .codeblock-customizer-indentation-guide {
  position: relative;
  display: inline-block;
}
.codeblock-customizer-show-indentation-lines .markdown-reading-view .codeblock-customizer-indentation-guide::before {
  content: "\200B";
  display: block;
  width: 1px;
  border-right: var(--indentation-guide-width) solid var(--indentation-guide-color);
  color: transparent;
  position: absolute;
  top: 0;
  bottom: 0;
  transform: translateX(0.15em);
}

/* indent in edit mode */
.markdown-source-view:not(.is-readable-line-width) .indented-line {
  left: calc(var(--list-indent) * var(--level) + var(--diff, 0px)) !important;
  width: calc(100% - var(--list-indent) * var(--level));
}

/* folding in reading view */
.markdown-reading-view .codeblock-customizer-collapse-indicator,
.markdown-source-view .codeblock-customizer-collapse-indicator {
  position: relative;
  z-index: 1;
}
.markdown-reading-view .codeblock-customizer-collapse-icon,
.markdown-source-view .codeblock-customizer-collapse-icon {
  position: absolute;
  display: block;
  top: 0;
  right: 0;
  height: 100%;
  cursor: var(--cursor);
  /*padding-right: 5px;*/
  color: var(--collapse-icon-color);
  user-select: none;
}
.markdown-reading-view .codeblock-customizer-collapse-indicator .codeblock-customizer-collapse-icon,
.markdown-source-view .codeblock-customizer-collapse-indicator .codeblock-customizer-collapse-icon {
  right: -0.5em;
  padding-right: 0.5rem;
}
.markdown-reading-view .codeblock-customizer-collapse-icon,
.markdown-source-view .codeblock-customizer-collapse-icon {
  display: none;
}
.markdown-reading-view .codeblock-customizer-line-text:hover .codeblock-customizer-collapse-icon,
.markdown-source-view .codeblock-customizer-line-text:hover .codeblock-customizer-collapse-icon {
  display: block;
}
.markdown-reading-view .codeblock-customizer-line-hidden,
.markdown-source-view .codeblock-customizer-line-hidden {
  display: none !important;
}
.markdown-reading-view .codeblock-customizer-lines-below-collapsed .codeblock-customizer-collapse-icon,
.markdown-source-view .codeblock-customizer-lines-below-collapsed .codeblock-customizer-collapse-icon {
  display: block;
  color: var(--collapse-icon-color-collapsed);
}
.markdown-reading-view .codeblock-customizer-foldPlaceholder,
.markdown-source-view .codeblock-customizer-foldPlaceholder {
  color: var(--text-faint);
  background-color: transparent;
  border: none;
  margin-left: 8px;
}

/* Semi-folding */
.codeblock-customizer-use-semifold .markdown-source-view .HyperMD-codeblock-bg.codeblock-customizer-fade-out-line0 .cm-hmd-codeblock,
.codeblock-customizer-use-semifold .markdown-source-view .HyperMD-codeblock-bg.codeblock-customizer-fade-out-line0 .prompt-part,
.codeblock-customizer-use-semifold .markdown-source-view .HyperMD-codeblock-bg.codeblock-customizer-fade-out-line0 .codeblock-customizer-prompt-cmd-output,
.codeblock-customizer-use-semifold .markdown-source-view .HyperMD-codeblock-bg.codeblock-customizer-fade-out-line0 .codeblock-customizer-line-number .codeblock-customizer-line-number-element,
.codeblock-customizer-use-semifold .markdown-source-view .HyperMD-codeblock-bg.codeblock-customizer-fade-out-line0 .codeblock-customizer-line-number-specific .codeblock-customizer-line-number-element,
.codeblock-customizer-use-semifold .markdown-rendered .codeblock-customizer-codeblock-semi-collapsed .codeblock-customizer-fade-out-line0 .codeblock-customizer-line-number .codeblock-customizer-line-number-element,
.codeblock-customizer-use-semifold .markdown-rendered .codeblock-customizer-codeblock-semi-collapsed .codeblock-customizer-fade-out-line0 .codeblock-customizer-line-number-specific .codeblock-customizer-line-number-element,
.codeblock-customizer-use-semifold .markdown-rendered .codeblock-customizer-codeblock-semi-collapsed .codeblock-customizer-fade-out-line0 .codeblock-customizer-line-text,
.codeblock-customizer-use-semifold .markdown-rendered .codeblock-customizer-codeblock-semi-collapsed .codeblock-customizer-fade-out-line0 .prompt-part {
  opacity: 0.5;
}
.codeblock-customizer-use-semifold .markdown-source-view .HyperMD-codeblock-bg.codeblock-customizer-fade-out-line1 .cm-hmd-codeblock,
.codeblock-customizer-use-semifold .markdown-source-view .HyperMD-codeblock-bg.codeblock-customizer-fade-out-line1 .prompt-part,
.codeblock-customizer-use-semifold .markdown-source-view .HyperMD-codeblock-bg.codeblock-customizer-fade-out-line1 .codeblock-customizer-prompt-cmd-output,
.codeblock-customizer-use-semifold .markdown-source-view .HyperMD-codeblock-bg.codeblock-customizer-fade-out-line1 .codeblock-customizer-line-number .codeblock-customizer-line-number-element,
.codeblock-customizer-use-semifold .markdown-source-view .HyperMD-codeblock-bg.codeblock-customizer-fade-out-line1 .codeblock-customizer-line-number-specific .codeblock-customizer-line-number-element,
.codeblock-customizer-use-semifold .markdown-rendered .codeblock-customizer-codeblock-semi-collapsed .codeblock-customizer-fade-out-line1 .codeblock-customizer-line-number .codeblock-customizer-line-number-element,
.codeblock-customizer-use-semifold .markdown-rendered .codeblock-customizer-codeblock-semi-collapsed .codeblock-customizer-fade-out-line1 .codeblock-customizer-line-number-specific .codeblock-customizer-line-number-element,
.codeblock-customizer-use-semifold .markdown-rendered .codeblock-customizer-codeblock-semi-collapsed .codeblock-customizer-fade-out-line1 .codeblock-customizer-line-text,
.codeblock-customizer-use-semifold .markdown-rendered .codeblock-customizer-codeblock-semi-collapsed .codeblock-customizer-fade-out-line1 .prompt-part {
  opacity: 0.3;
}
.codeblock-customizer-use-semifold .markdown-source-view .HyperMD-codeblock-bg.codeblock-customizer-fade-out-line2 .cm-hmd-codeblock,
.codeblock-customizer-use-semifold .markdown-source-view .HyperMD-codeblock-bg.codeblock-customizer-fade-out-line2 .prompt-part,
.codeblock-customizer-use-semifold .markdown-source-view .HyperMD-codeblock-bg.codeblock-customizer-fade-out-line2 .codeblock-customizer-prompt-cmd-output,
.codeblock-customizer-use-semifold .markdown-source-view .HyperMD-codeblock-bg.codeblock-customizer-fade-out-line2 .codeblock-customizer-line-number .codeblock-customizer-line-number-element,
.codeblock-customizer-use-semifold .markdown-source-view .HyperMD-codeblock-bg.codeblock-customizer-fade-out-line2 .codeblock-customizer-line-number-specific .codeblock-customizer-line-number-element,
.codeblock-customizer-use-semifold .markdown-rendered .codeblock-customizer-codeblock-semi-collapsed .codeblock-customizer-fade-out-line2 .codeblock-customizer-line-number .codeblock-customizer-line-number-element,
.codeblock-customizer-use-semifold .markdown-rendered .codeblock-customizer-codeblock-semi-collapsed .codeblock-customizer-fade-out-line2 .codeblock-customizer-line-number-specific .codeblock-customizer-line-number-element,
.codeblock-customizer-use-semifold .markdown-rendered .codeblock-customizer-codeblock-semi-collapsed .codeblock-customizer-fade-out-line2 .codeblock-customizer-line-text,
.codeblock-customizer-use-semifold .markdown-rendered .codeblock-customizer-codeblock-semi-collapsed .codeblock-customizer-fade-out-line2 .prompt-part {
  opacity: 0.1;
}
.codeblock-customizer-use-semifold .markdown-source-view .HyperMD-codeblock-bg.codeblock-customizer-fade-out-line3 .cm-hmd-codeblock,
.codeblock-customizer-use-semifold .markdown-source-view .HyperMD-codeblock-bg.codeblock-customizer-fade-out-line3 .prompt-part,
.codeblock-customizer-use-semifold .markdown-source-view .HyperMD-codeblock-bg.codeblock-customizer-fade-out-line3 .codeblock-customizer-prompt-cmd-output,
.codeblock-customizer-use-semifold .markdown-source-view .HyperMD-codeblock-bg.codeblock-customizer-fade-out-line3 .codeblock-customizer-line-number .codeblock-customizer-line-number-element,
.codeblock-customizer-use-semifold .markdown-source-view .HyperMD-codeblock-bg.codeblock-customizer-fade-out-line3 .codeblock-customizer-line-number-specific .codeblock-customizer-line-number-element,
.codeblock-customizer-use-semifold .markdown-rendered .codeblock-customizer-codeblock-semi-collapsed .codeblock-customizer-fade-out-line3 .codeblock-customizer-line-number .codeblock-customizer-line-number-element,
.codeblock-customizer-use-semifold .markdown-rendered .codeblock-customizer-codeblock-semi-collapsed .codeblock-customizer-fade-out-line3 .codeblock-customizer-line-number-specific .codeblock-customizer-line-number-element,
.codeblock-customizer-use-semifold .markdown-rendered .codeblock-customizer-codeblock-semi-collapsed .codeblock-customizer-fade-out-line3 .codeblock-customizer-line-text,
.codeblock-customizer-use-semifold .markdown-rendered .codeblock-customizer-codeblock-semi-collapsed .codeblock-customizer-fade-out-line3 .prompt-part {
  opacity: 0.05;
}

.codeblock-customizer-use-semifold .markdown-source-view .HyperMD-codeblock-bg.codeblock-customizer-fade-out-line0,
.codeblock-customizer-use-semifold .markdown-rendered .codeblock-customizer-codeblock-semi-collapsed .codeblock-customizer-fade-out-line0 {
  background: linear-gradient(to bottom, color-mix(in srgb, var(--codeblock-background-color, var(--codeblock-customizer-codeblock-background-color)) 100%, var(--background-primary)) 0%, color-mix(in srgb, var(--codeblock-background-color, var(--codeblock-customizer-codeblock-background-color)) 75%, var(--background-primary)) 100%);
}
.codeblock-customizer-use-semifold .markdown-source-view .HyperMD-codeblock-bg.codeblock-customizer-fade-out-line0 .codeblock-customizer-line-number,
.codeblock-customizer-use-semifold .markdown-source-view .HyperMD-codeblock-bg.codeblock-customizer-fade-out-line0 .codeblock-customizer-line-number-specific,
.codeblock-customizer-use-semifold .markdown-rendered .codeblock-customizer-codeblock-semi-collapsed .codeblock-customizer-fade-out-line0 .codeblock-customizer-line-number,
.codeblock-customizer-use-semifold .markdown-rendered .codeblock-customizer-codeblock-semi-collapsed .codeblock-customizer-fade-out-line0 .codeblock-customizer-line-number-specific {
  background: linear-gradient(to bottom, color-mix(in srgb, var(--gutter-background-color, var(--codeblock-customizer-gutter-background-color)) 100%, var(--background-primary)) 0%, color-mix(in srgb, var(--gutter-background-color, var(--codeblock-customizer-gutter-background-color)) 75%, var(--background-primary)) 100%);
}

.codeblock-customizer-use-semifold .markdown-source-view .HyperMD-codeblock-bg.codeblock-customizer-fade-out-line1,
.codeblock-customizer-use-semifold .markdown-rendered .codeblock-customizer-codeblock-semi-collapsed .codeblock-customizer-fade-out-line1 {
  background: linear-gradient(to bottom, color-mix(in srgb, var(--codeblock-background-color, var(--codeblock-customizer-codeblock-background-color)) 75%, var(--background-primary)) 0%, color-mix(in srgb, var(--codeblock-background-color, var(--codeblock-customizer-codeblock-background-color)) 50%, var(--background-primary)) 100%);
}
.codeblock-customizer-use-semifold .markdown-source-view .HyperMD-codeblock-bg.codeblock-customizer-fade-out-line1 .codeblock-customizer-line-number,
.codeblock-customizer-use-semifold .markdown-source-view .HyperMD-codeblock-bg.codeblock-customizer-fade-out-line1 .codeblock-customizer-line-number-specific,
.codeblock-customizer-use-semifold .markdown-rendered .codeblock-customizer-codeblock-semi-collapsed .codeblock-customizer-fade-out-line1 .codeblock-customizer-line-number,
.codeblock-customizer-use-semifold .markdown-rendered .codeblock-customizer-codeblock-semi-collapsed .codeblock-customizer-fade-out-line1 .codeblock-customizer-line-number-specific {
  background: linear-gradient(to bottom, color-mix(in srgb, var(--gutter-background-color, var(--codeblock-customizer-gutter-background-color)) 75%, var(--background-primary)) 0%, color-mix(in srgb, var(--gutter-background-color, var(--codeblock-customizer-gutter-background-color)) 50%, var(--background-primary)) 100%);
}

.codeblock-customizer-use-semifold .markdown-source-view .HyperMD-codeblock-bg.codeblock-customizer-fade-out-line2,
.codeblock-customizer-use-semifold .markdown-rendered .codeblock-customizer-codeblock-semi-collapsed .codeblock-customizer-fade-out-line2 {
  background: linear-gradient(to bottom, color-mix(in srgb, var(--codeblock-background-color, var(--codeblock-customizer-codeblock-background-color)) 50%, var(--background-primary)) 0%, color-mix(in srgb, var(--codeblock-background-color, var(--codeblock-customizer-codeblock-background-color)) 25%, var(--background-primary)) 100%);
}
.codeblock-customizer-use-semifold .markdown-source-view .HyperMD-codeblock-bg.codeblock-customizer-fade-out-line2 .codeblock-customizer-line-number,
.codeblock-customizer-use-semifold .markdown-source-view .HyperMD-codeblock-bg.codeblock-customizer-fade-out-line2 .codeblock-customizer-line-number-specific,
.codeblock-customizer-use-semifold .markdown-rendered .codeblock-customizer-codeblock-semi-collapsed .codeblock-customizer-fade-out-line2 .codeblock-customizer-line-number,
.codeblock-customizer-use-semifold .markdown-rendered .codeblock-customizer-codeblock-semi-collapsed .codeblock-customizer-fade-out-line2 .codeblock-customizer-line-number-specific {
  background: linear-gradient(to bottom, color-mix(in srgb, var(--gutter-background-color, var(--codeblock-customizer-gutter-background-color)) 50%, var(--background-primary)) 0%, color-mix(in srgb, var(--gutter-background-color, var(--codeblock-customizer-gutter-background-color)) 25%, var(--background-primary)) 100%);
}

.codeblock-customizer-use-semifold .markdown-source-view .HyperMD-codeblock-bg.codeblock-customizer-fade-out-line3,
.codeblock-customizer-use-semifold .markdown-rendered .codeblock-customizer-codeblock-semi-collapsed .codeblock-customizer-fade-out-line3 {
  background: linear-gradient(to bottom, color-mix(in srgb, var(--codeblock-background-color, var(--codeblock-customizer-codeblock-background-color)) 25%, var(--background-primary)) 0%, color-mix(in srgb, var(--codeblock-background-color, var(--codeblock-customizer-codeblock-background-color)) 0%, var(--background-primary)) 100%);
}
.codeblock-customizer-use-semifold .markdown-source-view .HyperMD-codeblock-bg.codeblock-customizer-fade-out-line3 .codeblock-customizer-line-number,
.codeblock-customizer-use-semifold .markdown-source-view .HyperMD-codeblock-bg.codeblock-customizer-fade-out-line3 .codeblock-customizer-line-number-specific,
.codeblock-customizer-use-semifold .markdown-rendered .codeblock-customizer-codeblock-semi-collapsed .codeblock-customizer-fade-out-line3 .codeblock-customizer-line-number,
.codeblock-customizer-use-semifold .markdown-rendered .codeblock-customizer-codeblock-semi-collapsed .codeblock-customizer-fade-out-line3 .codeblock-customizer-line-number-specific {
  background: linear-gradient(to bottom, color-mix(in srgb, var(--gutter-background-color, var(--codeblock-customizer-gutter-background-color)) 25%, var(--background-primary)) 0%, color-mix(in srgb, var(--gutter-background-color, var(--codeblock-customizer-gutter-background-color)) 0%, var(--background-primary)) 100%);
}

/* Semi-fold reading view */
.codeblock-customizer-use-semifold .markdown-rendered .codeblock-customizer-codeblock-semi-collapsed .codeblock-customizer-fade-out-line-hide {
  display: none !important;
}
.codeblock-customizer-use-semifold .markdown-rendered .codeblock-customizer-codeblock-semi-collapsed > code {
  padding-bottom: 0px;
}

.codeblock-customizer-use-semifold .markdown-rendered .codeblock-customizer-codeblock-semi-collapsed .codeblock-customizer-fade-out-line3 {
  position: relative;
  /*overflow: hidden;*/
}
/*.codeblock-customizer-use-semifold .markdown-rendered .codeblock-customizer-codeblock-semi-collapsed .codeblock-customizer-fade-out-line3*/
.codeblock-customizer-show-uncollapse-code-button .markdown-source-view .codeblock-customizer-uncollapse-code {
  position: absolute;
  right: 50%;
  transform: translateX(50%);
  /*top: 6px;*/
  z-index: 1;
  display: inline-block;
  padding: var(--size-4-1) var(--size-4-2);
  border-radius: var(--radius-s);
  font-family: var(--font-interface);
  font-size: var(--font-ui-smaller);
  color: var(--text-muted);
  cursor: var(--cursor);
}
.codeblock-customizer-use-semifold.codeblock-customizer-show-uncollapse-code-button .markdown-rendered .codeblock-customizer-codeblock-semi-collapsed .codeblock-customizer-uncollapse-code/*,
.codeblock-customizer-header-collapse-command.codeblock-customizer-use-semifold.codeblock-customizer-show-uncollapse-code-button .markdown-rendered .codeblock-customizer-codeblock-semi-collapsed .codeblock-customizer-uncollapse-code*/ {
  position: absolute;
  right: 50%;
  transform: translateX(50%);
  top: -6px;
  z-index: 1;
  display: inline-block;
  /*padding: var(--size-4-1) var(--size-4-2);*/
  padding-top: 4px;
  padding-left: 8px;
  padding-right: 8px;
  border-radius: var(--radius-s);
  font-family: var(--font-interface);
  font-size: var(--font-ui-smaller);
  color: var(--text-muted);
  cursor: var(--cursor);
  /*margin-top: calc(var(--line-height-normal) * 1em);*/
}

.codeblock-customizer-uncollapse-code,
.markdown-embed .markdown-preview-view .codeblock-customizer-uncollapse-code {
  display: none;
}
.codeblock-customizer-uncollapse-code:hover {
  background-color: var(--gutter-background-color, var(--codeblock-customizer-gutter-background-color));
  color: cyan;
}

/* Highlighting */
.codeblock-customizer-line-highlighted,
.codeblock-customizer-highlighted-text {
  background-color: var(--codeblock-customizer-codeblock-highlight-color) !important;
}

.codeblock-customizer-active-line-highlight .cm-active,
.codeblock-customizer-active-line-highlight-editor .cm-active {
  background-color: var(--codeblock-customizer-editor-active-line-color) !important;
}
.codeblock-customizer-active-line-highlight .markdown-source-view [class*="codeblock-customizer-line"].cm-active,
.codeblock-customizer-active-line-highlight-codeblock .markdown-source-view [class*="codeblock-customizer-line"].cm-active {
  background-color: var(--codeblock-active-line-color, var(--codeblock-customizer-codeblock-active-line-color)) !important;
}

/* Active gutter line number highlight */
.codeblock-customizer-gutter-active-line .cm-active [class^='codeblock-customizer-line-number'] {
  color: var(--gutter-active-linenr-color, var(--codeblock-customizer-gutter-active-linenr-color));
}

/* Inline code editor */
.codeblock-customizer.codeblock-customizer-style-inline-code .cm-s-obsidian span.cm-inline-code {
  color: var(--codeblock-customizer-inline-code-text-color);
  background-color: var(--codeblock-customizer-inline-code-background-color) !important;
}
.cm-s-obsidian span.cm-inline-code {
  font-size: var(--code-size);
  padding: var(--inline-code-padding-vertical) var(--inline-code-padding-horizontal) !important;
  margin: 0px 0px !important;
  border-radius: var(--border-radius) !important;
}
/* Inline code editor - language */
.markdown-source-view .codeblock-customizer-inline-code-langauge {
  color: var(--code-comment);
}
/* remove margin and padding for first backtick when editing */
body.codeblock-customizer-show-inline-code-icons .cm-s-obsidian span.codeblock-customizer-inline-code-icon-container, 
.cm-s-obsidian span.cm-formatting-code:has(+ span.cm-inline-code:not(.cm-formatting-code)){
  border-radius: var(--border-radius) 0px 0px var(--border-radius) !important;
  padding-left: var(--inline-code-padding-horizontal) !important;
  padding-right: 0px !important;
  margin-left: 0px !important;
  margin-right: 0px !important;
}
/* remove margin and padding for code when editing */
.cm-s-obsidian span.cm-formatting-code + span.cm-inline-code:not(.cm-formatting-code){
  border-radius: 0px !important;
  margin: 0px 0px !important;
  padding-left: 0px !important;
  padding-right: 0px !important;
}
/* remove margin and padding for last backtick when editing */
.cm-s-obsidian span.cm-inline-code:not(.cm-formatting-code) + span.cm-formatting-code{
  border-radius: 0px var(--border-radius) var(--border-radius) 0px !important;
  padding-right: var(--inline-code-padding-horizontal) !important;
  padding-left: 0px !important;
  margin-left: 0px !important;
  margin-right: 0px !important;
}
/* set border radius for inline code, if an icon is displayed */
.cm-s-obsidian span.codeblock-customizer-inline-code-icon-container ~ span.cm-inline-code:not(.cm-formatting-code) {
  border-radius: 0px var(--border-radius) var(--border-radius) 0px !important;
  padding-left: 0px !important;
  margin-left: 0px !important;
}
/* inline code icon container */
body.codeblock-customizer-show-inline-code-icons .cm-s-obsidian span.codeblock-customizer-inline-code-icon-container,
.codeblock-customizer.codeblock-customizer-show-inline-code-icons .markdown-rendered code.codeblock-customizer-inline-code:has(.codeblock-customizer-icon-container) {
  padding-left: 0px !important; 
}
body:not(.codeblock-customizer-show-inline-code-icons) span.codeblock-customizer-inline-code-icon-container,
body:not(.codeblock-customizer-show-inline-code-icons) .markdown-rendered code .codeblock-customizer-icon-container {
  display:none;
}
body:not(.codeblock-customizer-show-inline-code-icons) div.cm-line span.codeblock-customizer-inline-code-icon-container.cm-inline-code ~ span.cm-inline-code {
  padding-left: var(--inline-code-padding-horizontal) !important;
  border-radius: var(--border-radius) var(--border-radius) var(--border-radius) var(--border-radius) !important;
}
/* Inline code icon */
.codeblock-customizer-inline-code-icon-container .codeblock-customizer-inline-code-icon {
  display: inline !important;
  height: calc(var(--code-size) * 1.4);
  margin-bottom: 2px !important;
  vertical-align: middle;
}
/* Inline code reading view */
.codeblock-customizer.codeblock-customizer-style-inline-code .markdown-rendered :not(pre) > code.codeblock-customizer-inline-code {
  color: var(--codeblock-customizer-inline-code-text-color);
  font-family: var(--font-monospace);
  background-color: var(--codeblock-customizer-inline-code-background-color);
  border-radius: var(--radius-s);
  font-size: var(--code-size);
  padding: var(--inline-code-padding-vertical) var(--inline-code-padding-horizontal) !important;
  margin: 0px 0px !important;
  border-radius: var(--border-radius) !important;
}

/* Link */
.codeblock-customizer-link,
.codeblock-customizer-link > p,
.codeblock-customizer-header-text > p{
  display: inline;
}
.codeblock-customizer-use-semifold .markdown-source-view .HyperMD-codeblock-bg.codeblock-customizer-fade-out-line0:not(.cm-hmd-codeblock) > .codeblock-customizer-link  {
  opacity: 0.5;
}
.codeblock-customizer-use-semifold .markdown-source-view .HyperMD-codeblock-bg.codeblock-customizer-fade-out-line1:not(.cm-hmd-codeblock) > .codeblock-customizer-link  {
  opacity: 0.3;
}
.codeblock-customizer-use-semifold .markdown-source-view .HyperMD-codeblock-bg.codeblock-customizer-fade-out-line2:not(.cm-hmd-codeblock) > .codeblock-customizer-link  {
  opacity: 0.1;
}
.codeblock-customizer-use-semifold .markdown-source-view .HyperMD-codeblock-bg.codeblock-customizer-fade-out-line3:not(.cm-hmd-codeblock) > .codeblock-customizer-link  {
  opacity: 0.05;
}

/* Codeblock border styling */
.codeblock-customizer.codeblock-customizer-style-codeblock-border-left .markdown-rendered .codeblock-customizer-header-container-specific[class*="codeblock-customizer-languageSpecific-"]{
  border-top-left-radius: 0px;
}
.codeblock-customizer.codeblock-customizer-style-codeblock-border-right .markdown-rendered .codeblock-customizer-header-container-specific[class*="codeblock-customizer-languageSpecific-"]{
  border-top-right-radius: 0px;
}
.codeblock-customizer.codeblock-customizer-style-codeblock-border-left .codeblock-customizer-line[style*="--codeblock-bordercolor"] .codeblock-customizer-line-number-first,
.markdown-rendered pre.codeblock-customizer-pre.displayedInGroup {
  border-top-left-radius: 0px !important;
}
.codeblock-customizer.codeblock-customizer-style-codeblock-border-right .codeblock-customizer-line[style*="--codeblock-bordercolor"] .codeblock-customizer-line-number-first,
.markdown-rendered pre.codeblock-customizer-pre.displayedInGroup {
  border-top-right-radius: 0px !important;
}
.codeblock-customizer.codeblock-customizer-style-codeblock-border-left .codeblock-customizer-line[style*="--codeblock-bordercolor"] .codeblock-customizer-line-number-last {
  border-bottom-left-radius: 0px !important;
}
.codeblock-customizer.codeblock-customizer-style-codeblock-border-right .codeblock-customizer-line[style*="--codeblock-bordercolor"] .codeblock-customizer-line-number-last {
  border-bottom-right-radius: 0px !important;
}

.codeblock-customizer.codeblock-customizer-style-codeblock-border-left .markdown-source-view .HyperMD-codeblock[class*="codeblock-customizer-line"][class*=codeblock-customizer-language-].hasLangBorderColor,
.codeblock-customizer.codeblock-customizer-style-codeblock-border-left .markdown-source-view .codeblock-customizer-header-container[class*=codeblock-customizer-language-].hasLangBorderColor,
.codeblock-customizer.codeblock-customizer-style-codeblock-border-left .markdown-source-view .codeblock-customizer-header-container-specific[class*=codeblock-customizer-language-].hasLangBorderColor,
.codeblock-customizer.codeblock-customizer-style-codeblock-border-left .markdown-rendered pre.codeblock-customizer-pre[class*=codeblock-customizer-language-].hasLangBorderColor,
.codeblock-customizer.codeblock-customizer-style-codeblock-border-left .markdown-rendered .codeblock-customizer-pre-parent .codeblock-customizer-header-group-container[class*=codeblock-customizer-language-].hasLangBorderColor {
  border-left-color: var(--codeblock-bordercolor);
  border-left-width: 5px;
  border-left-style: solid;
}

.codeblock-customizer.codeblock-customizer-style-codeblock-border-right .markdown-source-view .HyperMD-codeblock[class*="codeblock-customizer-line"][class*=codeblock-customizer-language-].hasLangBorderColor,
.codeblock-customizer.codeblock-customizer-style-codeblock-border-right .markdown-source-view .codeblock-customizer-header-container[class*=codeblock-customizer-language-].hasLangBorderColor, 
.codeblock-customizer.codeblock-customizer-style-codeblock-border-right .markdown-source-view .codeblock-customizer-header-container-specific[class*=codeblock-customizer-language-].hasLangBorderColor,
.codeblock-customizer.codeblock-customizer-style-codeblock-border-right .markdown-rendered pre.codeblock-customizer-pre[class*=codeblock-customizer-language-].hasLangBorderColor,
.codeblock-customizer.codeblock-customizer-style-codeblock-border-right .markdown-rendered .codeblock-customizer-pre-parent .codeblock-customizer-header-group-container[class*=codeblock-customizer-language-].hasLangBorderColor {
  border-right-color: var(--codeblock-bordercolor);
  border-right-width: 5px;
  border-right-style: solid;
}
.codeblock-customizer.codeblock-customizer-style-codeblock-border-left .markdown-source-view .hasLangBorderColor.codeblock-customizer-fade-out-line3 {
  border-bottom-left-radius: var(--border-radius);;
}
.codeblock-customizer.codeblock-customizer-style-codeblock-border-right .markdown-source-view .hasLangBorderColor.codeblock-customizer-fade-out-line3 {
  border-bottom-right-radius: var(--border-radius);;
}

.codeblock-customizer-header-container, 
.codeblock-customizer-header-container-specific,
.codeblock-customizer-header-group-container {
  padding-bottom: 2px;
  background: linear-gradient(var(--header-line-color, var(--codeblock-customizer-header-line-color)), var(--header-line-color, var(--codeblock-customizer-header-line-color))) bottom / 100% 2px no-repeat;
  font-family: var(--font-text);
  /*border-bottom: 2px groove var(--codeblock-customizer-header-line-color);*/
}

/* remove top left and bottom left radius if language tag is displayed but icon is not */
body.codeblock-customizer-style-codeblock-border-left:not([class*="codeblock-customizer-show-langicons"]) .codeblock-customizer-header-container-specific .codeblock-customizer-header-language-tag, 
body.codeblock-customizer-style-codeblock-border-left:not([class*="codeblock-customizer-show-langicons"]) .codeblock-customizer-header-group-container.hasLangBorderColor .codeblock-customizer-header-group-tab:first-child,
body.codeblock-customizer-style-codeblock-border-left:not([class*="codeblock-customizer-show-langicons"]) .codeblock-customizer-header-container-specific .codeblock-customizer-header-group-tab,
body.codeblock-customizer-style-codeblock-border-left:not(.codeblock-customizer-show-langicons-always) .codeblock-customizer-header-container .codeblock-customizer-header-language-tag, 
body.codeblock-customizer-style-codeblock-border-left .codeblock-customizer-header-container-specific:not(:has(div > img.codeblock-customizer-icon)) .codeblock-customizer-header-language-tag,
body.codeblock-customizer-style-codeblock-border-left .codeblock-customizer-header-group-container.hasLangBorderColor:not(:has(div > img.codeblock-customizer-icon)) .codeblock-customizer-header-group-tab:first-child,
body.codeblock-customizer-style-codeblock-border-left .codeblock-customizer-header-container-specific:not(:has(div > img.codeblock-customizer-icon)) .codeblock-customizer-header-group-tab {
  border-top-left-radius: 0px !important;
  border-bottom-left-radius: 0px !important;
}
/* Codeblock border styling end */

/* Copy code button adjustment */
/*.codeblock-customizer-show-langicons-always .codeblock-customizer-header-container ~ .copy-code-button,
.codeblock-customizer-show-langnames-always .codeblock-customizer-header-container ~ .copy-code-button,
.codeblock-customizer-header-collapse-command .codeblock-customizer-header-container ~ .copy-code-button*/
/*.codeblock-customizer-show-langicons-always .codeblock-customizer-header-container:not([class*='codeblock-customizer-language-nolang']) ~ .codeblock-customizer-copy-code-button,
.codeblock-customizer-show-langnames-always .codeblock-customizer-header-container:not([class*='codeblock-customizer-language-nolang']) ~ .codeblock-customizer-copy-code-button,
.codeblock-customizer-header-collapse-command .codeblock-customizer-header-container:not([class*='codeblock-customizer-language-nolang']) ~ .codeblock-customizer-copy-code-button {
  margin-top: calc(var(--language-icon-size) + 6px) !important;
}*/
/*.codeblock-customizer-header-container-specific ~ .copy-code-button*/
.codeblock-customizer-header-container-specific ~ .codeblock-customizer-copy-code-button,
.codeblock-customizer-header-group-container ~ .codeblock-customizer-copy-code-button {
  margin-top: calc(var(--language-icon-size) + 6px) !important;
}

/* Line number gutter styling */
.codeblock-customizer:not(.codeblock-customizer-show-line-numbers) .codeblock-customizer-line-number,
.codeblock-customizer-line-number-hide {
  display: none;
}
.markdown-rendered .codeblock-customizer-pre > code > div:first-child > .codeblock-customizer-line-number,
.markdown-rendered .codeblock-customizer-pre > code > div:first-child > .codeblock-customizer-line-number-specific,
.markdown-rendered .codeblock-customizer-pre > code > .codeblock-customizer-lines-below-collapsed > .codeblock-customizer-line-number,
.markdown-rendered .codeblock-customizer-pre > code > .codeblock-customizer-lines-below-collapsed > .codeblock-customizer-line-number-specific { /* Maintain gutter color when padded */
  /*box-shadow: 0px calc(-1 * var(--code-padding)) var(--codeblock-customizer-gutter-background-color);*/
  box-shadow: 0px calc(-1 * var(--code-padding)) var(--gutter-background-color, var(--codeblock-customizer-gutter-background-color));
  /*box-shadow: 
  0px var(--code-padding) var(--gutter-background-color, var(--codeblock-customizer-gutter-background-color)),
  0px calc(-1 * var(--code-padding)) var(--gutter-background-color, var(--codeblock-customizer-gutter-background-color));*/
}
.markdown-rendered .codeblock-customizer-pre > code > div:last-child > .codeblock-customizer-line-number,
.markdown-rendered .codeblock-customizer-pre > code > div:last-child > .codeblock-customizer-line-number-specific,
.markdown-rendered .codeblock-customizer-pre > code > .codeblock-customizer-lines-below-collapsed > .codeblock-customizer-line-number,
.markdown-rendered .codeblock-customizer-pre > code > .codeblock-customizer-lines-below-collapsed > .codeblock-customizer-line-number-specific{ /* Maintain gutter color when padded */
  box-shadow: 0px var(--code-padding) var(--gutter-background-color, var(--codeblock-customizer-gutter-background-color));
}
.markdown-rendered .codeblock-customizer-pre > code > div:only-child > .codeblock-customizer-line-number,
.markdown-rendered .codeblock-customizer-pre > code > div:only-child > .codeblock-customizer-line-number-specific { /* Maintain gutter color when padded */
  box-shadow: 0px calc(-1 * var(--code-padding)) var(--gutter-background-color, var(--codeblock-customizer-gutter-background-color)),0px var(--code-padding) var(--gutter-background-color, var(--codeblock-customizer-gutter-background-color));
}
/*.codeblock-customizer-line-number .codeblock-customizer-line-number-element,
.codeblock-customizer-line-number-specific .codeblock-customizer-line-number-element {
  left: 0;
}*/
.codeblock-customizer-line-number,
.codeblock-customizer-line-number-specific {
  padding-top: 2px;
  padding-left: 4px;
  padding-right: 8px;
  text-align: right;
  min-width: var(--line-number-gutter-width);
  background-color: var(--gutter-background-color, var(--codeblock-customizer-gutter-background-color));
  font-size: var(--code-size);
  font-family: var(--font-monospace);
  color: var(--gutter-text-color, var(--codeblock-customizer-gutter-text-color));
  user-select: none;
  /*display:inline-block;
  height: 100%;
  position: absolute;*/
  position: sticky;
  left: 0;
  z-index: 1;
  margin-bottom: -1px; /* fix for 1–2px "seam" (where the two lines meet) shows the background through */
}
.markdown-source-view .codeblock-customizer-line-number,
.markdown-source-view .codeblock-customizer-line-number-specific {
  position: absolute;
  display: inline-block;
  height: 100%;
  /*width: var(--gutter-width);*/
  /*width: var(--line-number-gutter-width);*/
  /*overflow-x: auto;*/ /* causes problem with shimmering focus and minimal */
  /*direction: rtl;*/
  left: 0;
}
.markdown-source-view .codeblock-customizer-line-number {
  width: var(--line-number-gutter-width);
}

/*.codeblock-customizer-line-number-first.codeblock-customizer-line-number-specific-number,
.codeblock-customizer-line-number-last.codeblock-customizer-line-number-specific-number {
  width: var(--gutter-width);
}*/

.codeblock-customizer-line-number-specific {
  width: var(--gutter-width);
}
.codeblock-customizer .markdown-source-view .HyperMD-codeblock:has(.codeblock-customizer-line-number-specific-number) {
  --gutter-width: var(--line-number-gutter-width);
  padding-left: calc(var(--gutter-width) + var(--line-number-gutter-padding)) !important;
}

.markdown-source-view .codeblock-customizer-line-number::-webkit-scrollbar,
.markdown-source-view .codeblock-customizer-line-number-hide::-webkit-scrollbar {
  display: none;
}
.markdown-rendered .codeblock-customizer-line-number,
.markdown-rendered .codeblock-customizer-line-number-specific {
  flex-shrink: 0;
  flex-grow: 1;
}
.codeblock-customizer-active-line-highlight.codeblock-customizer-gutter-highlight .markdown-source-view [class*="codeblock-customizer-line"].cm-active .codeblock-customizer-line-number,
.codeblock-customizer-active-line-highlight.codeblock-customizer-gutter-highlight .markdown-source-view [class*="codeblock-customizer-line"].cm-active .codeblock-customizer-line-number-specific,
.codeblock-customizer-active-line-highlight-codeblock.codeblock-customizer-gutter-highlight .markdown-source-view [class*="codeblock-customizer-line"].cm-active .codeblock-customizer-line-number,
.codeblock-customizer-active-line-highlight-codeblock.codeblock-customizer-gutter-highlight .markdown-source-view [class*="codeblock-customizer-line"].cm-active .codeblock-customizer-line-number-specific,
.codeblock-customizer-gutter-highlight [class*="codeblock-customizer-line-highlighted"] .codeblock-customizer-line-number,
.codeblock-customizer-gutter-highlight [class*="codeblock-customizer-line-highlighted"] .codeblock-customizer-line-number-specific {
  background-color: rgba(0,0,0,0);
}
.codeblock-customizer.codeblock-customizer-show-line-numbers .markdown-source-view .HyperMD-codeblock:has(.codeblock-customizer-line-number),
.codeblock-customizer .markdown-source-view .HyperMD-codeblock:has(.codeblock-customizer-line-number-specific) {
  padding-left: calc(var(--line-number-gutter-width) + var(--line-number-gutter-padding));
}

/* Bracket highlight */
.markdown-source-view [class*="codeblock-customizer-line"] .codeblock-customizer-bracket-highlight-match {
  color: var(--codeblock-bracket-highlight-color-match, var(--codeblock-customizer-codeblock-bracket-highlight-color-match));
  background-color: var(--codeblock-bracket-highlight-background-color-match, var(--codeblock-customizer-codeblock-bracket-highlight-background-color-match));
}
.markdown-source-view [class*="codeblock-customizer-line"] .codeblock-customizer-bracket-highlight-nomatch {
  color: var(--codeblock-bracket-highlight-color-nomatch, var(--codeblock-customizer-codeblock-bracket-highlight-color-nomatch));
  background-color: var(--codeblock-bracket-highlight-background-color-nomatch, var(--codeblock-customizer-codeblock-bracket-highlight-background-color-nomatch));
}
.markdown-source-view .codeblock-customizer-bracket-highlight-match:not([class*="codeblock-customizer-line"] .codeblock-customizer-bracket-highlight-match),
.markdown-source-view .codeblock-customizer-bracket-highlight-nomatch:not([class*="codeblock-customizer-line"] .codeblock-customizer-bracket-highlight-nomatch) { /* dont apply to non-codeblock lines */
  background-color: transparent;
}

/* Selection highlight */
.markdown-source-view .codeblock-customizer-line .cm-selectionMatch {
  background-color: var(--codeblock-selectionmatch-highlight-color, var(--codeblock-customizer-codeblock-selectionmatch-highlight-color));
}
.markdown-source-view .cm-selectionMatch:not(.codeblock-customizer-line .cm-selectionMatch) { /* dont apply to non-codeblock lines */
  background-color: transparent !important;
}

/* code wrapping */
.markdown-rendered .codeblock-customizer-pre > code {
  white-space: var(--wrap-code) !important;
  overflow-wrap: anywhere;
}

/* button container */
.codeblock-customizer-button-container,
.markdown-source-view .codeblock-customizer-header-button-container {
  position: absolute;
  z-index: 1;
  right: 6px;
  display: flex;
  /*gap: 15px;*/
  font-family: var(--font-interface);
  font-size: var(--font-ui-smaller);
  height: calc(var(--language-icon-size) - 6px);
}
.codeblock-customizer-button-container {
  /*display: flex;*/
  top: 6px;
}
.markdown-source-view .codeblock-customizer-header-button-container {
  /*display: none;*/
  top: 2px;
}
.markdown-rendered pre:not(:hover) > .codeblock-customizer-button-container {
  display: none;
}

/*.codeblock-customizer-header-container-specific:hover .codeblock-customizer-header-button-container {*/
  /*background-color: red;*/
  /*display: flex;
}*/

/* don't show the header button container when the code block is collapsed */
.markdown-source-view .codeblock-customizer-header-container-specific:not(:has(+ .HyperMD-codeblock-begin)) .codeblock-customizer-header-button-container,
.codeblock-customizer-header-collapse-command .markdown-source-view .codeblock-customizer-header-container:not(:has(+ .HyperMD-codeblock-begin)) .codeblock-customizer-header-button-container,
.markdown-source-view .codeblock-customizer-header-container-specific:has(+ .HyperMD-codeblock-begin.semi-folded) .codeblock-customizer-header-button-container,
.codeblock-customizer-header-collapse-command .markdown-source-view .codeblock-customizer-header-container:has(+ .HyperMD-codeblock-begin.semi-folded) .codeblock-customizer-header-button-container {
  display: none;
}
/* show header button container on hover */
.markdown-source-view .codeblock-customizer-header-container-specific:not(:has(+ .HyperMD-codeblock-begin)):hover .codeblock-customizer-header-button-container,
.codeblock-customizer-header-collapse-command .markdown-source-view .codeblock-customizer-header-container:not(:has(+ .HyperMD-codeblock-begin)):hover .codeblock-customizer-header-button-container,
.markdown-source-view .codeblock-customizer-header-container-specific:has(+ .HyperMD-codeblock-begin.semi-folded):hover .codeblock-customizer-header-button-container,
.codeblock-customizer-header-collapse-command .markdown-source-view .codeblock-customizer-header-container:has(+ .HyperMD-codeblock-begin.semi-folded):hover .codeblock-customizer-header-button-container {
  display: flex;
}
/* hide select and delete code buttons for collapsed code blocks */
.markdown-source-view .codeblock-customizer-header-container-specific:not(:has(+ .HyperMD-codeblock-begin)):hover .codeblock-customizer-header-button-container .codeblock-customizer-select-code,
.codeblock-customizer-header-collapse-command .markdown-source-view .codeblock-customizer-header-container:not(:has(+ .HyperMD-codeblock-begin)):hover .codeblock-customizer-header-button-container .codeblock-customizer-select-code,
.markdown-source-view .codeblock-customizer-header-container-specific:not(:has(+ .HyperMD-codeblock-begin)):hover .codeblock-customizer-header-button-container .codeblock-customizer-delete-code,
.codeblock-customizer-header-collapse-command .markdown-source-view .codeblock-customizer-header-container:not(:has(+ .HyperMD-codeblock-begin)):hover .codeblock-customizer-header-button-container .codeblock-customizer-delete-code,
.markdown-source-view .codeblock-customizer-header-container-specific:has(+ .HyperMD-codeblock-begin.semi-folded):hover .codeblock-customizer-header-button-container .codeblock-customizer-select-code,
.codeblock-customizer-header-collapse-command .markdown-source-view .codeblock-customizer-header-container:has(+ .HyperMD-codeblock-begin.semi-folded):hover .codeblock-customizer-header-button-container .codeblock-customizer-select-code,
.markdown-source-view .codeblock-customizer-header-container-specific:has(+ .HyperMD-codeblock-begin.semi-folded):hover .codeblock-customizer-header-button-container .codeblock-customizer-delete-code,
.codeblock-customizer-header-collapse-command .markdown-source-view .codeblock-customizer-header-container:has(+ .HyperMD-codeblock-begin.semi-folded):hover .codeblock-customizer-header-button-container .codeblock-customizer-delete-code {
  display: none;
}
/* show header button container (copy code only) when enabled */
.codeblock-customizer-always-show-copy-code-button .markdown-source-view .codeblock-customizer-header-container-specific:not(:has(+ .HyperMD-codeblock-begin)) .codeblock-customizer-header-button-container,
body.codeblock-customizer-always-show-copy-code-button .codeblock-customizer-header-collapse-command .markdown-source-view .codeblock-customizer-header-container:not(:has(+ .HyperMD-codeblock-begin)) .codeblock-customizer-header-button-container,
.codeblock-customizer-always-show-copy-code-button .markdown-source-view .codeblock-customizer-header-container-specific:has(+ .HyperMD-codeblock-begin.semi-folded) .codeblock-customizer-header-button-container,
body.codeblock-customizer-always-show-copy-code-button .codeblock-customizer-header-collapse-command .markdown-source-view .codeblock-customizer-header-container:has(+ .HyperMD-codeblock-begin.semi-folded) .codeblock-customizer-header-button-container {
  display: flex;
}
/* hide select and delete code buttons when show (copy code only) is enabled */
.codeblock-customizer-always-show-copy-code-button .markdown-source-view .codeblock-customizer-header-container-specific:not(:has(+ .HyperMD-codeblock-begin)) .codeblock-customizer-header-button-container .codeblock-customizer-select-code,
body.codeblock-customizer-always-show-copy-code-button .codeblock-customizer-header-collapse-command .markdown-source-view .codeblock-customizer-header-container:not(:has(+ .HyperMD-codeblock-begin)) .codeblock-customizer-header-button-container .codeblock-customizer-select-code,
.codeblock-customizer-always-show-copy-code-button .markdown-source-view .codeblock-customizer-header-container-specific:not(:has(+ .HyperMD-codeblock-begin)) .codeblock-customizer-header-button-container .codeblock-customizer-delete-code,
body.codeblock-customizer-always-show-copy-code-button .codeblock-customizer-header-collapse-command .markdown-source-view .codeblock-customizer-header-container:not(:has(+ .HyperMD-codeblock-begin)) .codeblock-customizer-header-button-container .codeblock-customizer-delete-code,
.codeblock-customizer-always-show-copy-code-button .markdown-source-view .codeblock-customizer-header-container-specific:has(+ .HyperMD-codeblock-begin.semi-folded) .codeblock-customizer-header-button-container .codeblock-customizer-select-code,
body.codeblock-customizer-always-show-copy-code-button .codeblock-customizer-header-collapse-command .markdown-source-view .codeblock-customizer-header-container:has(+ .HyperMD-codeblock-begin.semi-folded) .codeblock-customizer-header-button-container .codeblock-customizer-select-code,
.codeblock-customizer-always-show-copy-code-button .markdown-source-view .codeblock-customizer-header-container-specific:has(+ .HyperMD-codeblock-begin.semi-folded) .codeblock-customizer-header-button-container .codeblock-customizer-delete-code,
body.codeblock-customizer-always-show-copy-code-button .codeblock-customizer-header-collapse-command .markdown-source-view .codeblock-customizer-header-container:has(+ .HyperMD-codeblock-begin.semi-folded) .codeblock-customizer-header-button-container .codeblock-customizer-delete-code {
  display: none;
}

/* don't display the first-line button container, when either header is specified, forced, or collapse command is used */
.markdown-source-view .codeblock-customizer-header-container-specific + .HyperMD-codeblock-begin .codeblock-customizer-button-container,
.codeblock-customizer-show-langicons-always .markdown-source-view .codeblock-customizer-header-container:not(.codeblock-customizer-language-nolang) + .HyperMD-codeblock-begin .codeblock-customizer-button-container,
.codeblock-customizer-show-langnames-always .markdown-source-view .codeblock-customizer-header-container:not(.codeblock-customizer-language-nolang) + .HyperMD-codeblock-begin .codeblock-customizer-button-container,
.codeblock-customizer-header-collapse-command .markdown-source-view .codeblock-customizer-header-container + .HyperMD-codeblock-begin .codeblock-customizer-button-container {
  display: none;
}

/* shift button container to the left when collapse icon is displayed on the right side */
.codeblock-customizer-collapseIconRight .markdown-source-view .codeblock-customizer-header-container-specific:not(.noCollapseIcon) + .HyperMD-codeblock-begin .codeblock-customizer-button-container,
.codeblock-customizer-show-langicons-always.codeblock-customizer-collapseIconRight .markdown-source-view .codeblock-customizer-header-container:not(.codeblock-customizer-language-nolang):not(.noCollapseIcon) + .HyperMD-codeblock-begin .codeblock-customizer-button-container,
.codeblock-customizer-show-langnames-always.codeblock-customizer-collapseIconRight .markdown-source-view .codeblock-customizer-header-container:not(.codeblock-customizer-language-nolang):not(.noCollapseIcon) + .HyperMD-codeblock-begin .codeblock-customizer-button-container,
body.codeblock-customizer-collapseIconRight .codeblock-customizer-header-collapse-command .markdown-source-view .codeblock-customizer-header-container:not(.noCollapseIcon) + .HyperMD-codeblock-begin .codeblock-customizer-button-container,
.codeblock-customizer-collapseIconRight .markdown-source-view .codeblock-customizer-header-container-specific:not(.noCollapseIcon) .codeblock-customizer-header-button-container,
.codeblock-customizer-collapseIconRight .markdown-source-view .codeblock-customizer-header-container:not(.noCollapseIcon) .codeblock-customizer-header-button-container {
  right: 38px;
}
.codeblock-customizer-collapseIconRight .markdown-rendered .codeblock-customizer-pre:has(.codeblock-customizer-header-container-specific:not(.noCollapseIcon)) .codeblock-customizer-button-container,
.codeblock-customizer-collapseIconRight .markdown-rendered .codeblock-customizer-header-group-container:not(.noCollapseIcon) .codeblock-customizer-button-container,
.codeblock-customizer-collapseIconRight.codeblock-customizer-show-langicons-always .markdown-rendered .codeblock-customizer-header-container:not(.codeblock-customizer-language-nolang):not(.noCollapseIcon) ~ .codeblock-customizer-button-container,
.codeblock-customizer-collapseIconRight.codeblock-customizer-show-langnames-always .markdown-rendered .codeblock-customizer-header-container:not(.codeblock-customizer-language-nolang):not(.noCollapseIcon) ~ .codeblock-customizer-button-container,
body.codeblock-customizer-collapseIconRight .codeblock-customizer-header-collapse-command .markdown-rendered .codeblock-customizer-header-container:not(.noCollapseIcon) ~ .codeblock-customizer-button-container {
  right: 38px;
}

/* hide wrap code button for collapsed code blocks in reading view*/
.markdown-rendered .codeblock-customizer-pre.codeblock-customizer-codeblock-collapsed .codeblock-customizer-button-container .codeblock-customizer-wrap-code,
.markdown-rendered .codeblock-customizer-pre.codeblock-customizer-codeblock-semi-collapsed .codeblock-customizer-button-container .codeblock-customizer-wrap-code,
.markdown-rendered .codeblock-customizer-header-group-container.collapsed .codeblock-customizer-button-container .codeblock-customizer-wrap-code {
  display: none;
}
/* show button container (copy code only) when enabled */
.codeblock-customizer-always-show-copy-code-button .markdown-rendered .codeblock-customizer-pre:not(.displayedInGroup).codeblock-customizer-codeblock-collapsed .codeblock-customizer-button-container,
.codeblock-customizer-always-show-copy-code-button .markdown-rendered .codeblock-customizer-pre:not(.displayedInGroup).codeblock-customizer-codeblock-semi-collapsed .codeblock-customizer-button-container,
.codeblock-customizer-always-show-copy-code-button .markdown-rendered .codeblock-customizer-pre:not(.displayedInGroup):has(:not(.codeblock-customizer-codeblock-collapsed)) .codeblock-customizer-button-container,
.codeblock-customizer-always-show-copy-code-button .markdown-rendered .codeblock-customizer-pre:not(.displayedInGroup):has(:not(.codeblock-customizer-codeblock-semi-collapsed)) .codeblock-customizer-button-container,
.codeblock-customizer-always-show-copy-code-button .markdown-rendered .codeblock-customizer-pre-parent:not(.displayedInGroup) .codeblock-customizer-header-group-container .codeblock-customizer-button-container {
  display: flex;
}

/* move button-container to the header */
/*.markdown-source-view .codeblock-customizer-header-container-specific + .HyperMD-codeblock-begin .codeblock-customizer-button-container,
.codeblock-customizer-header-collapse-command .markdown-source-view .codeblock-customizer-header-container + .HyperMD-codeblock-begin .codeblock-customizer-button-container,
.codeblock-customizer-header-collapse-command .markdown-source-view .codeblock-customizer-header-container-specific + .HyperMD-codeblock-begin .codeblock-customizer-button-container,
.codeblock-customizer-show-langicons-always .markdown-source-view .codeblock-customizer-header-container:not([class*='codeblock-customizer-language-nolang']) + .HyperMD-codeblock-begin .codeblock-customizer-button-container,
.codeblock-customizer-show-langnames-always .markdown-source-view .codeblock-customizer-header-container:not([class*='codeblock-customizer-language-nolang']) + .HyperMD-codeblock-begin .codeblock-customizer-button-container,
.codeblock-customizer-header-collapse-command .markdown-source-view .codeblock-customizer-header-container:not([class*='codeblock-customizer-language-nolang']) + .HyperMD-codeblock-begin .codeblock-customizer-button-container {
  top: -30px;
}*/
.markdown-rendered .codeblock-customizer-pre:has(.codeblock-customizer-header-container-specific) .codeblock-customizer-button-container,
.markdown-rendered .codeblock-customizer-header-group-container .codeblock-customizer-button-container,
.codeblock-customizer-show-langicons-always .markdown-rendered .codeblock-customizer-pre:has(.codeblock-customizer-header-container:not(.codeblock-customizer-language-nolang)) .codeblock-customizer-button-container,
.codeblock-customizer-show-langnames-always .markdown-rendered .codeblock-customizer-pre:has(.codeblock-customizer-header-container:not(.codeblock-customizer-language-nolang)) .codeblock-customizer-button-container,
.codeblock-customizer-header-collapse-command .markdown-rendered .codeblock-customizer-pre:has(.codeblock-customizer-header-container:not(.codeblock-customizer-language-nolang)) .codeblock-customizer-button-container,
.codeblock-customizer-header-collapse-command .markdown-rendered .codeblock-customizer-pre:has(.codeblock-customizer-header-container-specific) .codeblock-customizer-button-container,
.codeblock-customizer-header-collapse-command .markdown-rendered .codeblock-customizer-header-group-container .codeblock-customizer-button-container,
.codeblock-customizer-header-collapse-command .markdown-rendered .codeblock-customizer-pre:has(.codeblock-customizer-header-container) .codeblock-customizer-button-container {
  top: 0;
}

/* select code styling */
.markdown-source-view .codeblock-customizer-button-container .codeblock-customizer-select-code,
.markdown-source-view .codeblock-customizer-header-button-container .codeblock-customizer-select-code {
  padding: var(--size-4-1) var(--size-4-2);
  border-radius: var(--radius-s);
  color: var(--text-muted);
  cursor: var(--cursor);
}
.markdown-source-view .codeblock-customizer-button-container .codeblock-customizer-select-code:hover,
.markdown-source-view .codeblock-customizer-header-button-container .codeblock-customizer-select-code:hover {
  background-color: rgba(var(--mono-rgb-100), 0.075);
}

/* delete code styling */
.markdown-source-view .codeblock-customizer-button-container .codeblock-customizer-delete-code,
.markdown-source-view .codeblock-customizer-header-button-container .codeblock-customizer-delete-code {
  padding: var(--size-4-1) var(--size-4-2);
  border-radius: var(--radius-s);
  color: var(--text-muted);
  cursor: var(--cursor);
}
.markdown-source-view .codeblock-customizer-button-container .codeblock-customizer-delete-code:hover,
.markdown-source-view .codeblock-customizer-header-button-container .codeblock-customizer-delete-code:hover {
  background-color: var(--color-red);
  color: white;
}

/* wrap code styling */
.markdown-rendered .codeblock-customizer-wrap-code {
  padding: var(--size-4-1) var(--size-4-2);
  background-color: transparent;
  box-shadow: none;
  color: var(--text-muted);
  font-size: var(--font-ui-smaller);
  font-family: var(--font-interface);
}
.markdown-rendered .codeblock-customizer-wrap-code:hover {
  background-color: rgba(var(--mono-rgb-100), 0.075);
}
.codeblock-customizer-wrap-code {
  display: none;
}
.codeblock-customizer-show-wrap-code-button .codeblock-customizer-wrap-code {
  display: flex;
}

/* copy code styling (edit mode) */
.markdown-source-view .codeblock-customizer-button-container .codeblock-customizer-copy-code,
.markdown-source-view .codeblock-customizer-header-button-container .codeblock-customizer-copy-code {
  padding: var(--size-4-1) var(--size-4-2);
  border-radius: var(--radius-s);
  color: var(--text-muted);
  cursor: var(--cursor);
}
.markdown-source-view .codeblock-customizer-button-container .codeblock-customizer-copy-code:hover,
.markdown-source-view .codeblock-customizer-header-button-container .codeblock-customizer-copy-code:hover {
  background-color: rgba(var(--mono-rgb-100), 0.075);
}
/* completely disable original copy code button in edit mode */
.markdown-source-view.mod-cm6 .codeblock-customizer-line .code-block-flair {
  display: none !important;
}

/* copy code button styling (reading view) */ 
.markdown-rendered button.codeblock-customizer-copy-code-button {
  padding: var(--size-4-1) var(--size-4-2);
  background-color: transparent;
  box-shadow: none;
  color: var(--text-muted);
  font-size: var(--font-ui-smaller);
  font-family: var(--font-interface);
}
.markdown-rendered .codeblock-customizer-copy-code-button:hover {
  background-color: rgba(var(--mono-rgb-100), 0.075);
}

/* completely disable original copy code button in reading mode */
.markdown-rendered .codeblock-customizer-pre .copy-code-button {
  display: none;
}

/* Header styling */
body:not([class*='codeblock-customizer-show-langicons']) .codeblock-customizer-header-container-specific div:has(> img.codeblock-customizer-icon),
body:not([class*='codeblock-customizer-show-langicons']) .codeblock-customizer-header-group-container div:has(> img.codeblock-customizer-icon),
body:not(.codeblock-customizer-show-langicons-always) .codeblock-customizer-header-container div:has(> img.codeblock-customizer-icon) {
  display: none;
}
body:not([class*='codeblock-customizer-show-langnames']) .codeblock-customizer-header-container-specific .codeblock-customizer-header-language-tag,
body:not([class*='codeblock-customizer-show-langnames']) .codeblock-customizer-header-group-container .codeblock-customizer-header-language-tag,
body:not(.codeblock-customizer-show-langnames-always) .codeblock-customizer-header-container .codeblock-customizer-header-language-tag {
  display: none;
}

body:not(.codeblock-customizer-show-langicons-always):not(.codeblock-customizer-show-langnames-always) .workspace-leaf-content:not(.codeblock-customizer-header-collapse-command) .codeblock-customizer-header-container,
body:not(.codeblock-customizer-show-langnames-always) .workspace-leaf-content:not(.codeblock-customizer-header-collapse-command) .codeblock-customizer-header-container:not(:has(img.codeblock-customizer-icon)),
body .workspace-leaf-content:not(.codeblock-customizer-header-collapse-command) .codeblock-customizer-header-container:not(:has(img.codeblock-customizer-icon)) {
  display: none !important;
}

.codeblock-customizer-header-container,
.codeblock-customizer-header-container-specific,
.codeblock-customizer-header-group-container {
  user-select: none;
  height: var(--language-icon-size);
  padding-top: var(--header-padding);
  border-top-left-radius: var(--border-radius);
  border-top-right-radius: var(--border-radius);
  background-color: var(--header-background-color, var(--codeblock-customizer-header-background-color));
  /*border-bottom: 2px groove var(--codeblock-customizer-header-line-color);*/
  /*font-size: 14px;*/
  font-size: var(--code-size);
  display: flex !important;
  overflow: visible;
  position: relative;
}

/* changes begin */
.codeblock-customizer pre.codeblock-customizer-pre {
  border-radius: var(--border-radius) !important;
  padding: 0px !important;
  min-height: unset;
}
/* changes end */

.codeblock-customizer-header-collapse {
  position: absolute;
  color: var(--text-muted); /*var(--header-text-color, var(--codeblock-customizer-header-text-color));*/
  top: 50%;
  font-size: large;
  font-weight: bold;
  padding-top: 0.3em;
  /*width: 20px;*/
}
.codeblock-customizer-collapseIconRight .codeblock-customizer-header-collapse  {
  /* display the collapse icon on the right side */
  right: 15px;
  transform: translate(0, -50%);
}
.codeblock-customizer-collapseIconMiddle .codeblock-customizer-header-collapse {
  /* display the collapse icon centered */
  left: 50%;  
  transform: translate(-50%, -50%);
}
.codeblock-customizer-collapseIconNone .codeblock-customizer-header-collapse {
  display: none
}

.markdown-source-view .codeblock-customizer-header-container:not(:has(+ .HyperMD-codeblock-begin)),
/*.markdown-source-view .codeblock-customizer-header-container-specific:not(:has(+ .HyperMD-codeblock-begin)),*/
.markdown-source-view .codeblock-customizer-header-container-specific:not(.markdown-rendered *):not(:has(+ .HyperMD-codeblock-begin)),
.markdown-rendered .codeblock-customizer-header-container:has( + .codeblock-customizer-pre.codeblock-customizer-codeblock-collapsed),
.markdown-rendered .codeblock-customizer-header-container-specific:has( + .codeblock-customizer-pre.codeblock-customizer-codeblock-collapsed),
.markdown-rendered .codeblock-customizer-header-group-container.collapsed {
/*  padding-bottom: var(--header-padding);*/
  border-bottom-left-radius: var(--border-radius);
  border-bottom-right-radius: var(--border-radius);
  /*border-bottom: none;*/ /* must be removed, because it causes the icon to expand and shrink vertically on collapse/uncollapse. */
}
/*.markdown-source-view .codeblock-customizer-header-container,
.markdown-source-view .codeblock-customizer-header-container-specific { */ /* Fix for incorrectly displaying header when using "minimal" theme */ /* causes problem with things */
/*  width: calc(var(--line-width-adaptive) - var(--folding-offset)); 
  margin-left: max(calc(50% + var(--folding-offset) - var(--line-width-adaptive)/2), calc(50% + var(--folding-offset) - var(--max-width)/2)) !important;
}*/
.codeblock-customizer-header-container .codeblock-customizer-header-language-tag,
.codeblock-customizer-header-container-specific .codeblock-customizer-header-language-tag {
  height: 100%;
  padding-left: var(--header-spacing);
  padding-right: var(--header-spacing);
  margin-right: var(--header-spacing);
  padding-top: calc(1em * 0.3);
  padding-bottom: calc(1em * 0.3);
  /*font-size: inherit;*/
  font-size: 14px;
  border-radius: var(--border-radius) var(--border-radius) 0px 0px;
  background-color: var(--header-language-tag-background-color, var(--codeblock-customizer-header-language-tag-background-color));
  color: var(--header-language-tag-text-color, var(--codeblock-customizer-header-language-tag-text-color));
  font-weight: var(--codeblock-customizer-language-tag-text-bold, normal);
  font-style: var(--codeblock-customizer-language-tag-text-italic, normal);
  display: flex;
  justify-content: center;
  flex-direction: column;
}
.markdown-source-view .codeblock-customizer-header-container:not(:has(+ .HyperMD-codeblock-begin)) .codeblock-customizer-header-language-tag,
/*.markdown-source-view .codeblock-customizer-header-container-specific:not(:has(+ .HyperMD-codeblock-begin)) .codeblock-customizer-header-language-tag,*/
.markdown-rendered .codeblock-customizer-header-container:has( + .codeblock-customizer-pre.codeblock-customizer-codeblock-collapsed) .codeblock-customizer-header-language-tag,
.markdown-rendered .codeblock-customizer-header-container-specific:has( + .codeblock-customizer-pre.codeblock-customizer-codeblock-collapsed) .codeblock-customizer-header-language-tag {
  border-radius: var(--border-radius);
}
.codeblock-customizer-header-text,
.codeblock-customizer-header-text > p {
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding-left: 0px;
  padding-top: calc(1em * 0.3);
  padding-bottom: calc(1em * 0.3);
  /*font-size: inherit;*/
  font-size: 14px;
  color: var(--header-text-color, var(--codeblock-customizer-header-text-color));
  font-weight: var(--codeblock-customizer-header-text-bold, normal);
  font-style: var(--codeblock-customizer-header-text-italic, normal);
}
.codeblock-customizer-header-text > p {
  display: inline;
  margin: 0;
}
/*body:not([class*='codeblock-customizer-show-langicons']):not([class*='codeblock-customizer-show-langnames']) .codeblock-customizer-header-container-specific .codeblock-customizer-header-text,
body:not(.codeblock-customizer-show-langicons-always):not(.codeblock-customizer-header-container) .codeblock-customizer-header-container .codeblock-customizer-header-text,
body .codeblock-customizer-header-container-specific:not(:has( [class^="codeblock-customizer-header-language-tag-"])) .codeblock-customizer-header-text */
.codeblock-customizer-header-container .codeblock-customizer-header-text,
.codeblock-customizer-header-container-specific .codeblock-customizer-header-text,
.codeblock-customizer-header-group-container .codeblock-customizer-header-text {
  padding-left: var(--header-spacing);
}
body[class*='codeblock-customizer-show-langnames'] .codeblock-customizer-header-container-specific .codeblock-customizer-header-language-tag + .codeblock-customizer-header-text,
body[class*='codeblock-customizer-show-langnames'] .codeblock-customizer-header-group-container .codeblock-customizer-header-group-tabs + .codeblock-customizer-header-text,
body[class*='codeblock-customizer-show-langnames'] .codeblock-customizer-header-container-specific .codeblock-customizer-header-group-tabs + .codeblock-customizer-header-text,
body[class*='codeblock-customizer-show-langicons'] .codeblock-customizer-header-container-specific:has(.codeblock-customizer-icon) .codeblock-customizer-header-text,
body[class*='codeblock-customizer-show-langicons'] .codeblock-customizer-header-group-container:has(.codeblock-customizer-icon) .codeblock-customizer-header-text,
body[class*='codeblock-customizer-show-langnames-always'] .codeblock-customizer-header-collapse-command .codeblock-customizer-header-container .codeblock-customizer-header-language-tag + .codeblock-customizer-header-text,
body[class*='codeblock-customizer-show-langicons-always'] .codeblock-customizer-header-collapse-command .codeblock-customizer-header-container:has(.codeblock-customizer-icon) .codeblock-customizer-header-text,
.codeblock-customizer-show-langicons-always .codeblock-customizer-header-container:not(.codeblock-customizer-language-nolang) .codeblock-customizer-header-text,
.codeblock-customizer-show-langnames-always .codeblock-customizer-header-container:not(.codeblock-customizer-language-nolang) .codeblock-customizer-header-text,
body.codeblock-customizer-show-langicons-always .codeblock-customizer-header-collapse-command .codeblock-customizer-header-container:not(.codeblock-customizer-language-nolang) .codeblock-customizer-header-text,
body.codeblock-customizer-show-langnames-always .codeblock-customizer-header-collapse-command .codeblock-customizer-header-container:not(.codeblock-customizer-language-nolang) .codeblock-customizer-header-text,
.codeblock-customizer-header-group-container .codeblock-customizer-header-text {
  padding-left: 0px;
}
div:has(> img.codeblock-customizer-icon) {
  display: inline-flex;
  padding-left: var(--header-spacing);
  padding-right: var(--header-spacing);
}
.codeblock-customizer-icon {
  margin: 0 !important;
  border: none !important;
}

/* collapsed embedded code */
.markdown-embed .markdown-preview-view .markdown-preview-section:has(.codeblock-customizer-pre-parent):has(.codeblock-customizer-codeblock-collapsed),
.markdown-embed .markdown-preview-view .markdown-preview-section:has(.codeblock-customizer-pre-parent):has(.codeblock-customizer-lines-below-collapsed) {
  min-height: unset !important;
}

/* Pre element styling */
.codeblock-customizer-pre.codeblock-customizer-codeblock-collapsed code {
  display: none !important;
}
/* callouts */
.markdown-source-view.mod-cm6 .cm-embed-block pre {
  margin-top: 16px;
}
.markdown-rendered pre.codeblock-customizer-pre {
  border-top-left-radius: 0px;
  border-top-right-radius: 0px;
  border-bottom-left-radius: var(--border-radius);
  border-bottom-right-radius: var(--border-radius);
  padding-top: 0px;           /* padding-top and bottom must be set at the pre code element*/
  padding-bottom: 0px;
  padding-right: 0px;         /* originalVal: 16px, disable it, so the lines are fully highlighted */
  padding-left: 0px;          /* originalVal: 16px, disable it, so the lines are fully highlighted */
  min-height: auto;
  margin-top: 16px;           /* originalVal: none, set it to 16px, so the header gets the marginTop, which was removed from the first line of the codeblock */
}
.markdown-rendered pre.codeblock-customizer-pre code {
  display: grid;/*block;*/  /* Fix for highlighting the whole line, when a vertical scrollbar is displayed */
  /*overflow: auto;*/           /* Fix for "Copy" button moving when vertical scrollbar is displayed */
  overflow-y: hidden;
  padding-top: var(--code-padding);
  padding-bottom: var(--code-padding);
  padding-left: 0px;
  padding-right: 0px;
  border-radius: 0px;
  background: none !important;
}

/* Source mode text styling */
.HyperMD-codeblock:has(> .cm-widgetBuffer) { /* Prevent Line Wraps */
	white-space: nowrap;
}
.HyperMD-codeblock:has(> .cm-widgetBuffer) > .cm-hmd-codeblock { /* Prevent Line Wraps */
	white-space: break-spaces;
}

/* Reading mode text styling */
/* fix for missing padding on embedded code blocks */
pre.codeblock-customizer-pre [class^=codeblock-customizer-line-number] {
  position: sticky;
}

.markdown-rendered div:has(> .codeblock-customizer-line-text) {
  display: flex;
  /*position: relative;*/
}
.markdown-rendered .codeblock-customizer-line-text {
  flex-basis: 100%;
  padding-left: var(--line-number-gutter-padding);             /* originalVal:0px, add padding between the line numbers and the text */
}
/* don't apply padding to line text, when prompt is present */
.markdown-rendered .has-prompt .codeblock-customizer-line-text {
  padding-left: 0;
}

/* Border radius styling */
.codeblock-customizer .markdown-source-view [class*="codeblock-customizer-line"].HyperMD-codeblock-begin {
  border-top-left-radius: 0px;
  border-top-right-radius: 0px;
}
.codeblock-customizer .markdown-source-view [class*="codeblock-customizer-line"].HyperMD-codeblock-end/*,
.codeblock-customizer .markdown-source-view [class*="codeblock-customizer-line"].codeblock-customizer-fade-out-line3*/ {
  border-bottom-left-radius: var(--border-radius);
  border-bottom-right-radius: var(--border-radius);
}
.codeblock-customizer .markdown-source-view [class*="codeblock-customizer-line"].HyperMD-codeblock-end .codeblock-customizer-line-number,
.codeblock-customizer .markdown-source-view [class*="codeblock-customizer-line"].HyperMD-codeblock-end .codeblock-customizer-line-number-specific/*,
.codeblock-customizer .markdown-source-view [class*="codeblock-customizer-line"].codeblock-customizer-fade-out-line3 .codeblock-customizer-line-number,
.codeblock-customizer .markdown-source-view [class*="codeblock-customizer-line"].codeblock-customizer-fade-out-line3 .codeblock-customizer-line-number-specific*/ {
  border-bottom-left-radius: var(--border-radius);
}
body:not(.codeblock-customizer-show-langicons-always):not(.codeblock-customizer-show-langnames-always) .markdown-source-view .codeblock-customizer-header-container + .HyperMD-codeblock-begin,
body:not(.codeblock-customizer-show-langnames-always) .markdown-source-view .codeblock-customizer-header-container:not(:has( img.codeblock-customizer-icon)) + .HyperMD-codeblock-begin,
body .markdown-source-view .codeblock-customizer-header-container:not(:has( img.codeblock-customizer-icon)) + .HyperMD-codeblock-begin {
  border-top-left-radius: var(--border-radius);
  border-top-right-radius: var(--border-radius);
}

body:not(.codeblock-customizer-show-langicons-always):not(.codeblock-customizer-show-langnames-always) .codeblock-customizer-header-container + .HyperMD-codeblock-begin .codeblock-customizer-line-number,
body:not(.codeblock-customizer-show-langicons-always):not(.codeblock-customizer-show-langnames-always) .codeblock-customizer-header-container + .HyperMD-codeblock-begin .codeblock-customizer-line-number-specific,
body:not(.codeblock-customizer-show-langnames-always) .codeblock-customizer-header-container:not(:has( img.codeblock-customizer-icon)) + .HyperMD-codeblock-begin .codeblock-customizer-line-number,
body:not(.codeblock-customizer-show-langnames-always) .codeblock-customizer-header-container:not(:has( img.codeblock-customizer-icon)) + .HyperMD-codeblock-begin .codeblock-customizer-line-number-specific,
body .codeblock-customizer-header-container:not(:has( img.codeblock-customizer-icon)) + .HyperMD-codeblock-begin .codeblock-customizer-line-number,
body .codeblock-customizer-header-container:not(:has( img.codeblock-customizer-icon)) + .HyperMD-codeblock-begin .codeblock-customizer-line-number-specific {
  border-top-left-radius: var(--border-radius);
}

body:not(.codeblock-customizer-show-langicons-always):not(.codeblock-customizer-show-langnames-always) .codeblock-customizer-header-container + .codeblock-customizer-pre,
body:not(.codeblock-customizer-show-langnames-always) .codeblock-customizer-header-container:not(:has( img.codeblock-customizer-icon)) + .codeblock-customizer-pre,
body .codeblock-customizer-header-container:not(:has( img.codeblock-customizer-icon)) + .codeblock-customizer-pre {
  border-top-left-radius: var(--border-radius);
  border-top-right-radius: var(--border-radius);
}

body.codeblock-customizer .markdown-source-view :not(pre.codeblock-customizer-pre) > .codeblock-customizer-header-container-specific + [class*=codeblock-customizer-line].HyperMD-codeblock-begin {
  border-top: none !important;
  border-top-left-radius: 0px !important;
  border-top-right-radius: 0px !important;
}

/* fence line styling */
.codeblock-customizer-fence-collapsed {
  height: 8px;
  min-height: 8px;
  /*font-size: 1px !important;*/
  overflow: hidden;
  color: transparent !important;
}
.markdown-source-view .codeblock-customizer-fence-collapsed + .cm-line .codeblock-customizer-button-container {
  top: 1px;
}
.codeblock-customizer-header-container-specific + .cm-line.codeblock-customizer-fence-collapsed + .cm-line .codeblock-customizer-button-container,
.codeblock-customizer-header-collapse-command .codeblock-customizer-header-container + .cm-line.codeblock-customizer-fence-collapsed + .cm-line .codeblock-customizer-button-container {
  display: none;
}

/* Annotations */
/* hide comment */
.codeblock-customizer-hidden-annotation {
  display: none;
}
/* style annotation icon */
.codeblock-customizer-annotation-icon {
  transform: translateY(-50%);
  width: 12px; 
  height: 12px;
  cursor: pointer;
  color: var(--text-faint); 
}
.markdown-source-view .codeblock-customizer-annotation-icon {
  position: absolute;
  top: 9px;
}
.markdown-rendered .codeblock-customizer-annotation-icon {
  margin-right: -14px;
  position: relative;
  top: 9px;
  margin-left: 2px;
}
.markdown-rendered .has-prompt .codeblock-customizer-annotation-icon {
  float: left;
}
.codeblock-customizer .markdown-source-view .HyperMD-codeblock:has(.codeblock-customizer-line-number-hide) .codeblock-customizer-annotation-icon, /* ln false */
.codeblock-customizer .markdown-source-view .HyperMD-codeblock:not(.codeblock-customizer-line-number) .codeblock-customizer-annotation-icon /* linenumbers disabled */ {
  left: 2px;
}
.codeblock-customizer.codeblock-customizer-show-line-numbers .markdown-source-view .HyperMD-codeblock:has(.codeblock-customizer-line-number) .codeblock-customizer-annotation-icon /* normal */ {
  left: calc(var(--gutter-width, 0px) + var(--line-number-gutter-width) + 2px);
}
.codeblock-customizer .markdown-source-view .HyperMD-codeblock:has(.codeblock-customizer-line-number-specific) .codeblock-customizer-annotation-icon /*ln*/ {
  left: calc(var(--gutter-width, 0px) + 2px);
}
/* style annotation icon on hover */
.codeblock-customizer-annotation-icon:hover {
  color: var(--text-normal);
}
/* popup tooltip */
.codeblock-customizer-annotation-tooltip {
  position: fixed;
  z-index: 1000;
  background-color: var(--background-secondary);
  border-left: 1px solid var(--background-modifier-border);
  border-right: 1px solid var(--background-modifier-border);
  border-bottom: 1px solid var(--background-modifier-border);
  border-radius: 8px;
  padding: 8px 12px;
  max-width: 450px;
  font-family: var(--font-ui-sans);
  font-size: var(--font-ui-small);
  line-height: 1.5;
  color: var(--text-normal);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15), 0 0 0 1px var(--background-modifier-border);
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 150ms ease-in-out, transform 150ms ease-in-out;
}
.codeblock-customizer-popup-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}
.codeblock-customizer-popup-type-text {
  font-weight: bold;
}
.codeblock-customizer-popup-icon {
  flex-shrink: 0; 
  position: relative;
  top: 2px; 
}
.codeblock-customizer-popup-icon svg {
  stroke-width: 3px;
}
.codeblock-customizer-popup-content p {
  margin: 0;
}
.codeblock-customizer-annotation-tooltip.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* Prompts */
.markdown-rendered .has-prompt [class*="codeblock-customizer-prompt-"],
.markdown-rendered .has-prompt .codeblock-customizer-prompt-cmd-output  {
  padding-left: var(--line-number-gutter-padding);
}

[class^="codeblock-customizer-prompt-"] {
  /*font-weight: bold;*/
  white-space: pre;
  user-select: none;
  /*font-family: var(--font-monospace, monospace);*/
}

/* Settings page */
.codeblock-customizer-general-settingsDiv-hide,
.codeblock-customizer-appearance-settingsDiv-hide,
.codeblock-customizer-highlighting-settingsDiv-hide,
.codeblock-customizer-behavior-settingsDiv-hide,
.codeblock-customizer-prompts-settingsDiv-hide {
  display: none;
}

/* underline msf6, and beacon */
.prompt-msf,
.prompt-beacon {
  text-decoration: underline;
}

/* grouped code blocks */
.codeblock-customizer-header-group-tabs {
  display: flex;
}
.codeblock-customizer-header-group-tab {
  height: 100%;
  padding-left: var(--header-spacing);
  padding-right: var(--header-spacing);
  padding-top: calc(1em * 0.3);
  padding-bottom: calc(1em * 0.3);
  font-size: 14px;
  /*border-radius: var(--border-radius) var(--border-radius) 0px 0px;*/
  background-color: var(--header-language-tag-background-color, var(--codeblock-customizer-header-language-tag-background-color));
  color: var(--header-language-tag-text-color, var(--codeblock-customizer-header-language-tag-text-color));
  font-weight: var(--codeblock-customizer-language-tag-text-bold, normal);
  font-style: var(--codeblock-customizer-language-tag-text-italic, normal);
  display: flex;
  justify-content: center;
  flex-direction: column;
  transition: background-color 0.2s ease, color 0.2s ease;
  border-right: 1px solid rgba(0, 0, 0, 0.2);
}
/* remove the border from last tab */
.codeblock-customizer-header-group-tab:last-child {
  /*border-right: none;*/
  border-right-color: transparent;
  border-top-right-radius: var(--border-radius);
  margin-right: var(--header-spacing);
}
.codeblock-customizer-header-group-tab:first-child {
  border-top-left-radius: var(--border-radius);
}
/* If an inactive tab is directly before the active tab, remove its right border */
.codeblock-customizer-header-group-tab:not(.active) + .active {
  /*border-right: none;*/
  border-right-color: transparent;
}
.codeblock-customizer-header-group-tab:not(.active):hover {
  background-color: var(--codeblock-customizer-groupedcodeblock-hover-tab-background-color);
  color: var(--codeblock-customizer-groupedcodeblock-hover-tab-text-color);
}
.codeblock-customizer-header-group-tab.active {
  background-color:  var(--codeblock-customizer-groupedcodeblock-active-tab-color);
  font-weight: bold;
  opacity: 1;
  /*border-right: none;*/
  border-right-color: transparent;
}
/* remove the gap between header and code */
.markdown-rendered .codeblock-customizer-pre.displayedInGroup {
  margin-top: 0px !important;
}
/* hide buttons for grouped code blocks, as they are always displayed in the header */
.markdown-rendered pre.codeblock-customizer-pre.displayedInGroup .codeblock-customizer-button-container {
  display: none;
}
/* hide buttons */
.markdown-rendered .codeblock-customizer-header-group-container .codeblock-customizer-button-container.hidden {
  display: none;
}

/* Frontmatter */
.markdown-source-view .cm-hmd-frontmatter.cm-operator {
  color: var(--code-operator);
}

.markdown-source-view .cm-hmd-frontmatter.cm-keyword {
  color: var(--code-keyword);
}

.markdown-source-view .cm-hmd-frontmatter.cm-atom {
  color: var(--code-important)
}

.markdown-source-view .cm-hmd-frontmatter.cm-number {
  color: var(--code-value);
}

.markdown-source-view .cm-hmd-frontmatter.cm-tag {
  color: var(--code-tag);
}

.markdown-source-view .cm-hmd-frontmatter.cm-variable-2,
.markdown-source-view .cm-hmd-frontmatter.cm-variable,
.markdown-source-view .cm-hmd-frontmatter.cm-variable-3,
.markdown-source-view .cm-hmd-frontmatter.cm-link {
  color: var(--code-property);
}

.markdown-source-view .cm-hmd-frontmatter.cm-type
.markdown-source-view .cm-hmd-frontmatter.cm-property,
.markdown-source-view .cm-hmd-frontmatter,
.markdown-source-view .cm-hmd-frontmatter.cm-attribute,
.markdown-source-view .cm-hmd-frontmatter.cm-builtin {
  color: var(--code-function);
}

.markdown-source-view .cm-hmd-frontmatter.cm-meta,
.markdown-source-view .cm-hmd-frontmatter.cm-hmd-frontmatter.cm-def.cm-def,
.markdown-source-view .cm-hmd-frontmatter.cm-comment{
  color: var(--code-comment);
}

.markdown-source-view .cm-hmd-frontmatter.cm-string-2,
.markdown-source-view .cm-hmd-frontmatter.cm-qualifier,
.markdown-source-view .cm-hmd-frontmatter.cm-string {
  color: var(--code-string);
}

.markdown-source-view .cm-hmd-frontmatter.cm-math,
.markdown-source-view .cm-hmd-frontmatter.cm-inline-code {
  color: var(--code-normal);
}

.markdown-source-view .cm-hmd-frontmatter.cm-bracket,
.markdown-source-view .cm-hmd-frontmatter.cm-hr
.markdown-source-view .cm-hmd-frontmatter.cm-punctuation{
  color: var(--code-punctuation);
}

/* Settings page (prompts) - Prompt preview */
.codeblock-customizer-prompt-preview-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 12px 0;
  margin-bottom: 24px;
}
.codeblock-customizer-prompt-preview {
  margin: 12px 0;
  padding: 12px;
  background-color: var(--codeblock-customizer-codeblock-background-color, var(--background-secondary));
  border: 1px solid var(--background-modifier-border);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  max-width: 600px;
  text-align: center;
  font-family: var(--font-monospace, monospace);
}
.prompt-preview-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 3em;
  gap: 0.25em;
  position: relative;
}
.normal-preview, 
.root-preview {
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.root-preview {
  visibility: hidden;
  opacity: 0;
  height: 0;
  overflow: hidden;
}
.root-preview.is-visible {
  visibility: visible;
  opacity: 1;
  height: auto;
  animation: slideFadeIn 200ms ease-out;
}
@keyframes slideFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.normal-preview {
  animation: slideFadeIn 200ms ease-out;
}
/* Settings page (prompts) - highlightgroups */
.codeblock-customizer-highlightgroups-textarea {
  /*width: 50%;
  max-width: 250px;*/
  width: 100%;
  max-width: 250px;
  min-height: 120px;
  /*font-family: monospace;*/
  font-size: 0.9em;
  resize: vertical;
  box-sizing: border-box;
}
.codeblock-customizer-highlightgroups-setting .setting-item-info {
  max-width: 300px;
}
/* Settings page - settings groups */
.settings-group {
  margin: 12px 0;
  padding: 12px;
  background-color: var(--background-secondary);
  border: 1px solid var(--background-modifier-border);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.settings-group:has(> summary:hover) {
  border-color: var(--background-modifier-border-hover);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background-color: var(--background-secondary-alt);
}
.settings-group > summary {
  font-weight: bold;
  font-size: 1em;
  cursor: pointer;
  padding: 6px 0;
  list-style: none; 
}
.settings-group > summary::before {
  content: '▶';
  display: inline-block;
  margin-right: 8px;
  font-size: 0.8em;
  transition: transform 0.2s ease-in-out;
}
.settings-group[open] > summary::before {
  transform: rotate(90deg);
}

/* Settings page (prompts) - regex input */
.codeblock-customizer-regex-input {
  width: 100%;
}

/* wrap long prompt lines in reading view */
.markdown-rendered div.has-prompt:has(> .codeblock-customizer-line-text) {
  display: flow-root;
}
.markdown-rendered .has-prompt .codeblock-customizer-line-number {
  float: left;
  height: 100%;
}
.markdown-rendered [class*="codeblock-customizer-prompt-"] {
  float: left;
}
.codeblock-customizer.codeblock-customizer-show-line-numbers .markdown-rendered [class*="codeblock-customizer-line"].has-prompt .codeblock-customizer-line-text:not(.codeblock-customizer-prompt-cmd-output) {
  padding-left: calc(var(--line-number-gutter-width) + var(--line-number-gutter-padding));
  white-space-collapse: break-spaces;
}
.codeblock-customizer:not(.codeblock-customizer-show-line-numbers) .markdown-rendered [class*="codeblock-customizer-line"].has-prompt .codeblock-customizer-line-text:not(.codeblock-customizer-prompt-cmd-output) {
  padding-left: var(--line-number-gutter-padding);
  white-space-collapse: break-spaces;
}

/* disabled button */
.clickable-icon.extra-setting-button.is-disabled,
.codeblock-customizer-prompt-name input[disabled] {
  color: #666666;
  cursor: not-allowed;
  opacity: 0.6;
}

/* Themes */
/* Shimmering focus */
.codeblock-customizer pre.codeblock-customizer-pre::before,
.codeblock-customizer pre.codeblock-customizer-pre::after {
	content: none !important;
}
.codeblock-customizer .markdown-source-view .HyperMD-codeblock[class*='codeblock-customizer-line']::before {
	content: none !important;
}
/* for code blocks without defined language */
.markdown-reading-view pre:not([class^=language-]) {
  overflow-x: auto !important;
  padding: unset !important;
  overflow: hidden; /* vertical scroll bar appears on header */
}
/* display icons as they should */
body.codeblock-customizer .markdown-rendered .codeblock-customizer-pre-parent .codeblock-customizer-header-group-container .codeblock-customizer-icon-container img.codeblock-customizer-icon,
body.codeblock-customizer .markdown-rendered .codeblock-customizer-pre-parent .codeblock-customizer-header-container-specific .codeblock-customizer-icon-container img.codeblock-customizer-icon,
body.codeblock-customizer .markdown-rendered .codeblock-customizer-pre-parent .codeblock-customizer-header-container .codeblock-customizer-icon-container img.codeblock-customizer-icon
body.codeblock-customizer .markdown-source-view .codeblock-customizer-header-group-container .codeblock-customizer-icon-container img.codeblock-customizer-icon,
body.codeblock-customizer .markdown-source-view .codeblock-customizer-header-container-specific .codeblock-customizer-icon-container img.codeblock-customizer-icon,
body.codeblock-customizer .markdown-source-view .codeblock-customizer-header-container .codeblock-customizer-icon-container img.codeblock-customizer-icon {
  max-width: 100%;
}

/* Everforest */
/*.codeblock-customizer .markdown-source-view [class*="codeblock-customizer-line"].HyperMD-codeblock-begin,
.codeblock-customizer .markdown-source-view [class*="codeblock-customizer-line"].HyperMD-codeblock-end {
  height: calc(var(--line-height-normal) * 1em);
}*/

/* Settings */
.codeblock-customizer-Donation {
  width: 70%;
  margin: 0 auto;
  text-align: center;
}

.codeblock-customizer-readMe {
  margin-top: 32px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* pickr start */
.pcr-app .pcr-swatches > button {
    padding: 0;
}

/*! Pickr 1.8.2 MIT | https://github.com/Simonwep/pickr */
.pickr {position: relative;overflow: visible;transform: translateY(0)}  .pickr * {box-sizing: border-box;outline: none;border: none;appearance: none;-webkit-appearance: none}  .pickr .pcr-button {position: relative;height: 2em;width: 2em;padding: 0.5em;cursor: pointer;font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;border-radius: .15em;background: url('data:image/svg+xml;utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50" stroke="%2342445A" stroke-width="5px" stroke-linecap="round"><path d="M45,45L5,5"></path><path d="M45,5L5,45"></path></svg>') no-repeat center;background-size: 0;transition: all 0.3s}  .pickr .pcr-button::before {position: absolute;content: '';top: 0;left: 0;width: 100%;height: 100%;background: url('data:image/svg+xml;utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2 2"><path fill="white" d="M1,0H2V1H1V0ZM0,1H1V2H0V1Z"/><path fill="gray" d="M0,0H1V1H0V0ZM1,1H2V2H1V1Z"/></svg>');background-size: .5em;border-radius: .15em;z-index: -1}  .pickr .pcr-button::before {z-index: initial}  .pickr .pcr-button::after {position: absolute;content: '';top: 0;left: 0;height: 100%;width: 100%;transition: background 0.3s;background: var(--pcr-color);border-radius: .15em}  .pickr .pcr-button.clear {background-size: 70%}  .pickr .pcr-button.clear::before {opacity: 0}  .pickr .pcr-button.clear:focus {box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.85), 0 0 0 3px var(--pcr-color)}  .pickr .pcr-button.disabled {cursor: not-allowed}  .pickr *, .pcr-app * {box-sizing: border-box;outline: none;border: none;appearance: none;-webkit-appearance: none}  .pickr input:focus, .pickr input.pcr-active, .pickr button:focus, .pickr button.pcr-active, .pcr-app input:focus, .pcr-app input.pcr-active, .pcr-app button:focus, .pcr-app button.pcr-active {box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.85), 0 0 0 3px var(--pcr-color)}  .pickr .pcr-palette, .pickr .pcr-slider, .pcr-app .pcr-palette, .pcr-app .pcr-slider {transition: box-shadow 0.3s}  .pickr .pcr-palette:focus, .pickr .pcr-slider:focus, .pcr-app .pcr-palette:focus, .pcr-app .pcr-slider:focus {box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.85), 0 0 0 3px rgba(0, 0, 0, 0.25)}  .pcr-app {position: fixed;display: flex;flex-direction: column;z-index: 10000;border-radius: 0.1em;background: #fff;opacity: 0;visibility: hidden;transition: opacity 0.3s, visibility 0s 0.3s;font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;box-shadow: 0 0.15em 1.5em 0 rgba(0, 0, 0, 0.1), 0 0 1em 0 rgba(0, 0, 0, 0.03);left: 0;top: 0}  .pcr-app.visible {transition: opacity 0.3s;visibility: visible;opacity: 1}  .pcr-app .pcr-swatches {display: flex;flex-wrap: wrap;margin-top: 0.75em}  .pcr-app .pcr-swatches.pcr-last {margin: 0}  @supports (display: grid) {  .pcr-app .pcr-swatches {display: grid;align-items: center;grid-template-columns: repeat(auto-fit, 1.75em)}  }  .pcr-app .pcr-swatches > button {font-size: 1em;position: relative;width: calc(1.75em - 10px);height: calc(1.75em - 10px);border-radius: 0.15em;cursor: pointer;margin: 2.5px;flex-shrink: 0;justify-self: center;transition: all 0.15s;overflow: hidden;background: transparent;z-index: 1}  .pcr-app .pcr-swatches > button::before {position: absolute;content: '';top: 0;left: 0;width: 100%;height: 100%;background: url('data:image/svg+xml;utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2 2"><path fill="white" d="M1,0H2V1H1V0ZM0,1H1V2H0V1Z"/><path fill="gray" d="M0,0H1V1H0V0ZM1,1H2V2H1V1Z"/></svg>');background-size: 6px;border-radius: .15em;z-index: -1}  .pcr-app .pcr-swatches > button::after {content: '';position: absolute;top: 0;left: 0;width: 100%;height: 100%;background: var(--pcr-color);border: 1px solid rgba(0, 0, 0, 0.05);border-radius: 0.15em;box-sizing: border-box}  .pcr-app .pcr-swatches > button:hover {filter: brightness(1.05)}  .pcr-app .pcr-swatches > button:not(.pcr-active) {box-shadow: none}  .pcr-app .pcr-interaction {display: flex;flex-wrap: wrap;align-items: center;margin: 0 -0.2em 0 -0.2em}  .pcr-app .pcr-interaction > * {margin: 0 0.2em}  .pcr-app .pcr-interaction input {letter-spacing: 0.07em;font-size: 0.75em;text-align: center;cursor: pointer;color: #75797e;background: #f1f3f4;border-radius: .15em;transition: all 0.15s;padding: 0.45em 0.5em;margin-top: 0.75em}  .pcr-app .pcr-interaction input:hover {filter: brightness(0.975)}  .pcr-app .pcr-interaction input:focus {box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.85), 0 0 0 3px rgba(66, 133, 244, 0.75)}  .pcr-app .pcr-interaction .pcr-result {color: #75797e;text-align: left;flex: 1 1 8em;min-width: 8em;transition: all 0.2s;border-radius: .15em;background: #f1f3f4;cursor: text}  .pcr-app .pcr-interaction .pcr-result::-moz-selection {background: #4285f4;color: #fff}  .pcr-app .pcr-interaction .pcr-result::selection {background: #4285f4;color: #fff}  .pcr-app .pcr-interaction .pcr-type.active {color: #fff;background: #4285f4}  .pcr-app .pcr-interaction .pcr-save, .pcr-app .pcr-interaction .pcr-cancel, .pcr-app .pcr-interaction .pcr-clear {color: #fff;width: auto}  .pcr-app .pcr-interaction .pcr-save, .pcr-app .pcr-interaction .pcr-cancel, .pcr-app .pcr-interaction .pcr-clear {color: #fff}  .pcr-app .pcr-interaction .pcr-save:hover, .pcr-app .pcr-interaction .pcr-cancel:hover, .pcr-app .pcr-interaction .pcr-clear:hover {filter: brightness(0.925)}  .pcr-app .pcr-interaction .pcr-save {background: #4285f4}  .pcr-app .pcr-interaction .pcr-clear, .pcr-app .pcr-interaction .pcr-cancel {background: #f44250}  .pcr-app .pcr-interaction .pcr-clear:focus, .pcr-app .pcr-interaction .pcr-cancel:focus {box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.85), 0 0 0 3px rgba(244, 66, 80, 0.75)}  .pcr-app .pcr-selection .pcr-picker {position: absolute;height: 18px;width: 18px;border: 2px solid #fff;border-radius: 100%;-webkit-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select: none}  .pcr-app .pcr-selection .pcr-color-palette, .pcr-app .pcr-selection .pcr-color-chooser, .pcr-app .pcr-selection .pcr-color-opacity {position: relative;-webkit-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select: none;display: flex;flex-direction: column;cursor: grab;cursor: -webkit-grab}  .pcr-app .pcr-selection .pcr-color-palette:active, .pcr-app .pcr-selection .pcr-color-chooser:active, .pcr-app .pcr-selection .pcr-color-opacity:active {cursor: grabbing;cursor: -webkit-grabbing}  .pcr-app[data-theme='nano'] {width: 14.25em;max-width: 95vw}  .pcr-app[data-theme='nano'] .pcr-swatches {margin-top: .6em;padding: 0 .6em}  .pcr-app[data-theme='nano'] .pcr-interaction {padding: 0 .6em .6em .6em}  .pcr-app[data-theme='nano'] .pcr-selection {display: grid;grid-gap: .6em;grid-template-columns: 1fr 4fr;grid-template-rows: 5fr auto auto;align-items: center;height: 10.5em;width: 100%;align-self: flex-start}  .pcr-app[data-theme='nano'] .pcr-selection .pcr-color-preview {grid-area: 2 / 1 / 4 / 1;height: 100%;width: 100%;display: flex;flex-direction: row;justify-content: center;margin-left: .6em}  .pcr-app[data-theme='nano'] .pcr-selection .pcr-color-preview .pcr-last-color {display: none}  .pcr-app[data-theme='nano'] .pcr-selection .pcr-color-preview .pcr-current-color {position: relative;background: var(--pcr-color);width: 2em;height: 2em;border-radius: 50em;overflow: hidden}  .pcr-app[data-theme='nano'] .pcr-selection .pcr-color-preview .pcr-current-color::before {position: absolute;content: '';top: 0;left: 0;width: 100%;height: 100%;background: url('data:image/svg+xml;utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2 2"><path fill="white" d="M1,0H2V1H1V0ZM0,1H1V2H0V1Z"/><path fill="gray" d="M0,0H1V1H0V0ZM1,1H2V2H1V1Z"/></svg>');background-size: .5em;border-radius: .15em;z-index: -1}  .pcr-app[data-theme='nano'] .pcr-selection .pcr-color-palette {grid-area: 1 / 1 / 2 / 3;width: 100%;height: 100%;z-index: 1}  .pcr-app[data-theme='nano'] .pcr-selection .pcr-color-palette .pcr-palette {border-radius: .15em;width: 100%;height: 100%}  .pcr-app[data-theme='nano'] .pcr-selection .pcr-color-palette .pcr-palette::before {position: absolute;content: '';top: 0;left: 0;width: 100%;height: 100%;background: url('data:image/svg+xml;utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2 2"><path fill="white" d="M1,0H2V1H1V0ZM0,1H1V2H0V1Z"/><path fill="gray" d="M0,0H1V1H0V0ZM1,1H2V2H1V1Z"/></svg>');background-size: .5em;border-radius: .15em;z-index: -1}  .pcr-app[data-theme='nano'] .pcr-selection .pcr-color-chooser {grid-area: 2 / 2 / 2 / 2}  .pcr-app[data-theme='nano'] .pcr-selection .pcr-color-opacity {grid-area: 3 / 2 / 3 / 2}  .pcr-app[data-theme='nano'] .pcr-selection .pcr-color-chooser, .pcr-app[data-theme='nano'] .pcr-selection .pcr-color-opacity {height: 0.5em;margin: 0 .6em}  .pcr-app[data-theme='nano'] .pcr-selection .pcr-color-chooser .pcr-picker, .pcr-app[data-theme='nano'] .pcr-selection .pcr-color-opacity .pcr-picker {top: 50%;transform: translateY(-50%)}  .pcr-app[data-theme='nano'] .pcr-selection .pcr-color-chooser .pcr-slider, .pcr-app[data-theme='nano'] .pcr-selection .pcr-color-opacity .pcr-slider {flex-grow: 1;border-radius: 50em}  .pcr-app[data-theme='nano'] .pcr-selection .pcr-color-chooser .pcr-slider {background: linear-gradient(to right, red, #ff0, lime, cyan, blue, #f0f, red)}  .pcr-app[data-theme='nano'] .pcr-selection .pcr-color-opacity .pcr-slider {background: linear-gradient(to right, transparent, black), url('data:image/svg+xml;utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2 2"><path fill="white" d="M1,0H2V1H1V0ZM0,1H1V2H0V1Z"/><path fill="gray" d="M0,0H1V1H0V0ZM1,1H2V2H1V1Z"/></svg>');background-size: 100%, 0.25em}

.codeblock-customizer-settingspage .detailpage .pickr {
  display: flex;
}

.codeblock-customizer-settingspage .setting-item .pcr-button::before,
.codeblock-customizer-settingspage .setting-item .pcr-button::after {
  border-radius: 50%;
}

.codeblock-customizer-settingspage .pickr .pcr-button {
  box-shadow: unset;
}
/* pickr end */