/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  /* Fluid typography: scales base font from 16px (mobile) to 19px (ultrawide) */
  font-size: clamp(1rem, 0.94rem + 0.3vw, 1.1875rem);
}
body {
  margin: 0;
}
main {
  display: block;
}
h1 {
  font-size: clamp(1.8rem, 1.65rem + 0.45vw, 2.4rem);
  margin: 0.67em 0;
}
hr {
  box-sizing: content-box;
  height: 0;
  overflow: visible;
}
pre {
  font-family: monospace, monospace;
  font-size: 1em;
}
a {
  background-color: transparent;
}
abbr[title] {
  border-bottom: none;
  text-decoration: underline;
  text-decoration: underline dotted;
}
b,
strong {
  font-weight: bolder;
}
code,
kbd,
samp {
  font-family: monospace, monospace;
  font-size: 1em;
}
small {
  font-size: 80%;
}
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}
sub {
  bottom: -0.25em;
}
sup {
  top: -0.5em;
}
img {
  border-style: none;
}
button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}
button,
input {
  overflow: visible;
}
button,
select {
  text-transform: none;
}
button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}
fieldset {
  padding: 0.35em 0.75em 0.625em;
}
legend {
  box-sizing: border-box;
  color: inherit;
  display: table;
  max-width: 100%;
  padding: 0;
  white-space: normal;
}
progress {
  vertical-align: baseline;
}
textarea {
  overflow: auto;
}
[type="checkbox"],
[type="radio"] {
  box-sizing: border-box;
  padding: 0;
}
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}
[type="search"] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}
[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}
::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}
details {
  display: block;
}
summary {
  display: list-item;
}
template {
  display: none;
}
[hidden] {
  display: none;
}
body {
  font-family: Lucida Grande, Lucida Sans Unicode, arial, sans-serif;
  line-height: 1.5;
}
a {
  text-decoration: none;
}
#layout {
max-width: 1200px;
margin: 0 auto;
display: flex;
flex-direction: row-reverse;
}
#parentLink {
float: right;
margin-top: 20px;
}
[data-note-id="P21DxM2c0IC0"] #title {
  display: none;
}
#title {
margin: 0;
padding-top: 10px;
}
img {
  max-width: 100%;
}
pre {
  white-space: pre-wrap;
  word-wrap: anywhere;
}
iframe.pdf-view {
  width: 100%;
  height: 800px;
}
#toggleMenuButton {
display: none;
position: fixed;
top: 8px;
left: 5px;
width: 1.4em;
border-radius: 5px;
border: 1px solid #aaa;
font-size: 2rem;
z-index: 10;
height: auto;
color: #000;
cursor: pointer;
}
#noteClippedFrom {
padding: 10px 0;
margin: 20px 0;
color: #666;
border: 1px solid #ddd;
border-left: 0;
border-right: 0;
}
#toggleMenuButton:after {
position: relative;
top: -2px;
left: 1px;
}
.ck-content .footnote-section {
  border-top: 1px solid #c4c4c4;
  border-radius: 2px;
  counter-reset: footnote-counter;
  margin: 1em 0;
  padding: 10px;
}
.ck-content .footnote-item {
  counter-increment: footnote-counter;
  display: flex;
  list-style: none;
  margin-left: 0.5em;
}
.ck-content .footnote-item:target .footnote-content {
  background: #eee;
}
.ck-content .footnote-item > * {
  vertical-align: text-top;
}
.ck-content .footnote-back-link {
  margin-right: 0.1em;
  position: relative;
  top: -0.2em;
}
.ck-content .footnotes .footnote-back-link > sup {
  margin-right: 0;
}
.ck-content .footnote-item:before {
  content: counter(footnote-counter) ". ";
  display: inline-block;
  min-width: fit-content;
  position: relative;
  right: 0.2em;
  text-align: right;
}
.ck-content .footnote-content {
  border-radius: 2px;
  display: inline-block;
  flex-grow: 1;
  padding: 0 0.3em;
  width: 95%;
}
.ck-content
.ck-content-widget.footnote-section
.ck-content-widget__type-around__button_after {
  display: none;
}
#childLinks,
#childLinks ul,
#childLinks li {
list-style: none;
display: flex;
align-items: center;
}
#childLinks {
padding-top: 10px;
flex-direction: column;
gap: 0px;
justify-content: center;
border-top: 1px solid var(--background-highlight);
}
.no-content + #childLinks {
  border: 0;
}
#childLinks ul {
padding: 0;
gap: 10px;
flex-wrap: wrap;
justify-content: center;
}
#childLinks li {
padding: 0;
background: var(--background-highlight);
border-radius: 12px;
}
#childLinks li a {
padding: 2px 12px;
background: var(--background-highlight);
border-radius: 12px;
transform: translateY(0);
transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
#childLinks li a:hover {
background: var(--background-active);
color: var(--background-secondary);
text-decoration: none;
transform: translateY(-2px);
}
#childLinks.grid li a {
padding: 50px;
color: var(--text-primary);
}
#childLinks.grid li a:hover {
transform: translateY(-5px);
}
a[href^="https://"]
{
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
#content a[href^="https://"]
{
  padding-right: 6px;
}
a[href^="https://"]:after
{
  content: "";
  background-color: currentcolor;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="13.5" height="13.5" viewBox="0 0 24 24"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg>');
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="13.5" height="13.5" viewBox="0 0 24 24"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg>');
  width: 13.5px;
  height: 13.5px;
  display: none;
}
#toc-pane {
display: flex;
flex-direction: column;
height: fit-content;
position: sticky;
top: 0;
order: 3;
font-size: 1rem;
min-width: 180px;
}
#toc-pane h3 {
text-transform: uppercase;
}
#toc {
position: relative;
height: fit-content;
margin: 0;
border-radius: 6px;
padding: 0 0 0 16px;
}
#toc,
#toc ul {
list-style: none;
}
#toc ul {
padding-left: 16px;
}
#toc span {
text-overflow: ellipsis;
overflow: hidden;
display: inline-block;
}
#toc li a {
display: flex;
align-items: center;
color: var(--text-heading);
transition: color 0.2s ease;
white-space: nowrap;
}
#toc li a:hover,
#toc li a.active {
color: var(--text-link);
text-decoration: none;
}
#toc li a:before {
content: "";
display: flex;
position: absolute;
width: 2px;
height: 16px;
background: transparent;
left: 0;
transition: background-color 0.2s ease;
}
#toc li a.active:before {
background: var(--text-link);
}
#toc:before {
content: "";
display: block;
position: absolute;
left: 0;
top: 4px;
width: 2px;
height: calc(100% - 8px);
background: var(--background-highlight);
}
#content h1 a.toc-anchor,
#content h2 a.toc-anchor,
#content h3 a.toc-anchor,
#content h4 a.toc-anchor,
#content h5 a.toc-anchor,
#content h6 a.toc-anchor {
margin-left: 10px;
display: none;
}
@media (max-width: 1200px) {
  #toc-pane {
  display: none;
  }
}
#site-header {
display: flex;
flex-direction: column;
gap: 10px;
visibility: hidden;
}
#site-header > a {
display: flex;
align-items: center;
gap: 10px;
}
#site-header .theme-selection {
display: flex;
align-items: center;
justify-content: space-between;
}
#site-header .theme-selection a {
display: flex;
align-items: center;
gap: 10px;
padding: 0;
margin: 0;
}
#site-header .theme-selection a img {
display: block;
padding: 0;
margin: 0;
}
#site-header .theme-selection .switch {
flex-shrink: 0;
}
#sitetheme {
display: none;
}
#site-header .theme-selection {
display: flex;
align-items: center;
justify-content: space-between;
}
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 27px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: var(--text-primary);
  transition: 0.4s;
  border-radius: 34px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 19px;
  width: 19px;
  left: 4px;
  bottom: 4px;
  background-color: #fff;
  transition: 0.4s;
  border-radius: 50%;
  z-index: 2;
}
input:checked + .slider {
  background-color: var(--background-highlight);
}
input:focus + .slider {
  box-shadow: 0 0 1px var(--background-highlight);
}
input:checked + .slider:before {
  transform: translate(33px);
}
.theme-selection {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.theme-selection.no-transition .slider,
.theme-selection.no-transition .slider:before,
.theme-selection.no-transition .dark-icon,
.theme-selection.no-transition .light-icon {
  transition: none !important;
}
.theme-selection label {
  position: relative;
}
.dark-icon,
.light-icon {
  display: flex;
  opacity: 0;
  transition: opacity 0.4s ease, color 0.4s ease;
  pointer-events: none;
  position: absolute;
  top: 0;
  height: 100%;
  width: 24px;
}
input:not(:checked) ~ .light-icon {
  opacity: 1;
}
input:checked ~ .dark-icon {
  opacity: 1;
}
.dark-icon {
  left: 5px;
  color: var(--text-primary);
}
.light-icon {
  right: 5px;
  color: var(--background-highlight);
}
.search-item {
  display: flex;
  align-items: center;
  position: relative;
}
.search-input {
  color: var(--text-primary);
  background: var(--background-highlight);
  outline: 0;
  border: 0;
  flex: 1;
  padding: 5px 5px 5px 32px;
  width: 200px;
  border-radius: 6px;
}
.search-icon {
  display: flex;
  color: var(--text-primary);
  position: absolute;
  width: 20px;
  left: 5px;
}
#navigation {
display: flex;
flex-direction: column;
padding: clamp(15px, 1.5vw, 25px);
gap: 10px;
}
#menu {
order: 1;
white-space: nowrap;
flex: 0;
}
#menu > ul {
overflow-y: auto;
list-style: none;
padding-left: 0 !important;
}
#menu > ul {
height: auto !important;
}
#menu ul {
overflow-y: hidden;
position: relative;
display: flex;
flex-direction: column;
list-style: none;
padding-left: 20px;
}
#menu li {
position: relative;
display: flex;
flex-direction: column;
list-style: none;
cursor: pointer;
max-width: 350px;
}
#menu li span {
display: inline-block;
overflow: hidden;
text-overflow: ellipsis;
}
#menu li .collapsible-label {
display: flex;
flex: 1;
}
#menu li > ul {
transition: height 0.2s ease;
}
#menu li:not(.expanded) > ul {
height: 0 !important;
}
#menu p {
display: flex;
}
#menu li.item > a {
padding-left: 24px;
}
#menu a {
display: inline-flex;
align-items: center;
justify-content: flex-start;
gap: 5px;
color: var(--text-menu);
text-decoration: none;
border-radius: 6px;
border: 1px solid transparent;
flex: 1;
padding: 2px 6px;
font-weight: 400;
}
#menu a:hover {
border-color: var(--text-menu);
}
#menu a.active {
background: var(--background-active);
color: var(--background-secondary);
font-weight: 700;
}
#menu li ul {
position: relative;
}
#menu li ul:before {
content: "";
display: flex;
position: absolute;
top: 5px;
bottom: 5px;
left: 10px;
width: 2px;
background: var(--background-highlight);
}
.active .collapse-button {
  background: none;
  color: var(--background-secondary);
}
.collapse-button {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: var(--background-secondary);
  border: 0;
  color: var(--text-menu);
  transform: rotate(-90deg);
  transition: transform 0.2s ease;
}
.expanded > .collapse-button,
.expanded > a > .collapse-button {
  transform: rotate(0);
}
.collapse-button svg {
  width: 14px;
}
.search-results {
  display: flex;
  flex-direction: column;
  position: fixed;
  background: var(--background-highlight);
  margin-top: 10px;
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  z-index: 5;
}
.search-result-item {
  display: flex;
  flex-direction: column;
  padding: 4px 12px;
  color: var(--text-primary);
}
.search-result-item:hover {
  cursor: pointer;
  background: var(--background-active);
  color: var(--text-menu-active);
  text-decoration: none;
}
.search-result-item:hover .search-result-note {
  color: var(--text-menu-active);
}
.search-result-note {
  font-size: 12px;
  color: var(--text-menu);
}
#split-pane {
display: flex;
flex-direction: row;
gap: clamp(20px, 3vw, 50px);
}
#left-pane {
display: flex;
width: calc((100vw - 900px) / 2);
min-width: fit-content;
height: 100vh;
background: var(--background-secondary);
border-right: 5px solid var(--background-highlight);
justify-content: flex-end;
position: sticky;
top: 0;
overflow-y: auto;
}
#right-pane {
display: flex;
margin: 0 auto;
gap: clamp(20px, 2vw, 50px);
flex: 1;
padding-right: clamp(20px, 3vw, 60px);
}
/* TOC disabled — no extra right padding needed */
#main {
order: 2;
flex: 1;
min-width: min(700px, 100%);
}
:root {
  --ck-content-font-family: inherit !important;
  --ck-content-font-size: inherit !important;
  --ck-content-font-color: inherit !important;
  --ck-content-line-height: inherit !important;
}
.ck-content code,
.ck-content pre {
  color: var(--text-primary);
  background-color: var(--background-secondary);
  border: 1px solid var(--background-active);
  border-radius: 6px;
  white-space: pre;
}
.ck-content code {
  padding: 2px 5px;
}
.ck-content pre code {
  border: 0;
}
.ck-content pre {
  overflow: auto;
  position: relative;
  padding-bottom: 1.2em;
}
.ck-content pre .copy-button {
  position: absolute;
  top: 0.5em;
  right: 0.5em;
  padding: 4px 10px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  color: var(--text-menu);
  font-size: 11px;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  z-index: 2;
}
.ck-content pre .copy-button:hover {
  background: rgba(255,255,255,0.2);
  color: var(--text-primary);
}
#content h1,
#content h2,
#content h3,
#content h4,
#content h5,
#content h6 {
color: var(--text-heading);
border-bottom: 1px solid var(--background-highlight);
padding-bottom: 5px;
}
#content h1 { font-size: clamp(1.8rem, 1.65rem + 0.45vw, 2.4rem); }
#content h2 { font-size: clamp(1.5rem, 1.38rem + 0.35vw, 1.9rem); }
#content h3 { font-size: clamp(1.25rem, 1.18rem + 0.2vw, 1.55rem); }
#content h4 { font-size: clamp(1.1rem, 1.06rem + 0.12vw, 1.3rem); }
#content h5 { font-size: clamp(1.1rem, 1.06rem + 0.12vw, 1.3rem); }
/* Home page: h2 matches h1 size since the real h1 title is hidden */
[data-note-id="P21DxM2c0IC0"] #content h2 { font-size: clamp(1.8rem, 1.65rem + 0.45vw, 2.4rem); padding-top: 12px; }
#content img {
max-width: 100%;
}
/* Prevent floated/aligned images from shrinking below a readable size when zooming */
#content .image-style-align-left,
#content .image-style-align-right {
    min-width: 320px;
}
#content .image-style-align-left img,
#content .image-style-align-right img {
    min-width: 320px;
    width: 100%;
}
#content-footer .navigation {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 1rem;
margin-top: 3rem;
}
#content-footer .navigation a {
border-radius: 3px;
border: 2px solid #ffffff0d;
color: var(--text-primary);
display: flex;
justify-content: center;
align-items: center;
gap: 5px;
overflow: hidden;
padding: 8px 12px;
user-select: none;
transform: translateY(0);
transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
#content-footer .navigation a:hover {
background: var(--background-active);
color: var(--background-secondary);
text-decoration: none;
transform: translateY(-2px);
}
#content-footer .navigation a.previous {
justify-self: flex-start;
}
#content-footer .navigation a.next {
justify-self: flex-end;
grid-column: 2/3;
}
#content-footer .navigation a.previous:before {
content: "« ";
}
#content-footer .navigation a.next:after {
content: " »";
}
#content-footer .navigation + #childLinks {
margin-top: 3rem;
}
#content-footer {
display: flex;
flex-direction: column;
margin-top: 3rem;
}
#content-footer .updated {
display: flex;
justify-content: flex-end;
gap: 5px;
font-style: italic;
font-size: smaller;
}
#content-footer .updated time {
font-weight: 700;
}
#mobile-header {
display: none;
background: var(--background-secondary);
justify-content: space-between;
align-items: center;
padding: 6px 12px;
}
#mobile-header a {
display: flex;
align-items: center;
gap: 5px;
}
#mobile-header a img {
max-width: 32px;
}
#mobile-header button {
color: var(--text-menu);
background: transparent;
margin: 0;
padding: 0;
border: 0;
outline: 0;
display: flex;
align-items: center;
cursor: pointer;
border-radius: 6px;
transform: rotate(0);
transition: background-color 0.2s ease, transform 0.2s ease;
}
/* =========================================================================
 *  SINGLE MERGED MOBILE BREAKPOINT — replaces all previous @media (max-width: 48em) blocks
 *  ========================================================================= */
@media (max-width: 48em) {
  #right-pane,
  #main {
  width: 100%;
  overflow-x: hidden;
  padding: 0;
  }
  #main {
  padding: 1rem;
  }
  #title {
  padding-left: 0;
  }
  #mobile-header {
  display: flex;
  }
  #mobile-header button svg {
  width: 32px;
  height: 32px;
  }
  #left-pane {
  position: fixed;
  top: 0;
  left: 0;
  width: auto;
  transform: translate(-100%);
  transition: transform 0.2s ease;
  z-index: 2;
  }
  .menu-open #menu {
    display: block !important;
  }
  .menu-open #left-pane {
    transform: translate(0);
  }
  body:before {
    content: "";
    display: block;
    position: fixed;
    inset: 0;
    background: #0000;
    pointer-events: none;
    transition: background-color 0.2s ease;
    z-index: 1;
  }
  body.menu-open:before {
    background: #0009;
  }
  body.menu-open #show-menu-button {
    background: var(--background-highlight);
    transform: rotate(90deg);
  }
  /* TOC disabled
  #custom-toc-sidebar {
  position: static !important;
  width: 100% !important;
  max-width: 100% !important;
  top: auto !important;
  right: auto !important;
  margin: 0 0 1.5rem 0;
  padding: 12px 16px;
  background: var(--background-secondary);
  border-left: 3px solid var(--background-highlight);
  border-radius: 6px;
  }
  */
}
* {
  box-sizing: border-box;
}
:root {
  --background-primary: #333333;
  --background-secondary: #1f1f1f;
  --background-highlight: #484848;
  --background-active: #777777;
  --text-primary: #cccccc;
  --text-heading: #cccccc;
  --text-menu: #aaaaaa;
  --text-link: #87cefa;
  --text-menu-active: #000000;
  color-scheme: dark;
}
body.theme-light {
  --background-primary: #ffffff;
  --background-secondary: #f3f3f3;
  --background-highlight: #dddddd;
  --background-active: #777777;
  --text-primary: #000000;
  --text-heading: #000000;
  --text-menu: #333333;
  --text-link: #0000ff;
  color-scheme: light;
}
body {
  background: var(--background-primary);
  font-family: Montserrat, Lucida Grande, Lucida Sans Unicode, arial, sans-serif;
  line-height: clamp(1.5, 1.45 + 0.15vw, 1.7);
  color: var(--text-primary);
  margin: 0;
}
a {
  color: var(--text-link);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
pre,
code,
kbd,
samp {
  font-family: JetBrains Mono, Consolas, monospace;
}
/* TOC sidebar disabled — uncomment to restore
#custom-toc-sidebar {
position: fixed;
top: 100px;
right: 20px;
width: 280px;
max-width: 280px;
z-index: 100;
}
#custom-toc-sidebar .toc-title {
text-transform: uppercase;
font-size: 0.75rem;
color: var(--text-menu);
margin-bottom: 10px;
letter-spacing: 0.05em;
}
#custom-toc-sidebar .toc-list {
list-style: none;
padding: 0;
margin: 0;
}
#custom-toc-sidebar .toc-item {
margin: 4px 0;
}
#custom-toc-sidebar .toc-link {
color: var(--text-menu);
text-decoration: none;
display: block;
padding: 2px 0;
border-left: 2px solid transparent;
padding-left: 12px;
transition: color 0.2s ease, border-color 0.2s ease;
white-space: normal;
word-wrap: break-word;
}
#custom-toc-sidebar .toc-link:hover,
#custom-toc-sidebar .toc-link.active {
color: var(--text-link);
border-left-color: var(--text-link);
text-decoration: none;
}
#custom-toc-sidebar .toc-level-h1 .toc-link {
font-size: 1.25rem;
padding-left: 12px;
}
#custom-toc-sidebar .toc-level-h2 .toc-link {
font-size: 1.125rem;
padding-left: 12px;
}
#custom-toc-sidebar .toc-level-h3 .toc-link {
font-size: 1rem;
padding-left: 24px;
}
#custom-toc-sidebar .toc-level-h4 .toc-link {
font-size: 0.925rem;
padding-left: 36px;
}
#custom-toc-sidebar .toc-level-h5 .toc-link {
font-size: 0.875rem;
padding-left: 48px;
}
#custom-toc-sidebar .toc-level-h6 .toc-link {
font-size: 0.8rem;
padding-left: 60px;
}
@media (max-width: 1500px) {
  #custom-toc-sidebar {
  display: none;
  }
}
END TOC sidebar disabled */
/* =========================================================================
 * LAST.FM NOW PLAYING WIDGET
 * ========================================================================= */
#lfm-widget {
    padding: 12px 0;
    border-top: 1px solid var(--background-highlight);
    border-bottom: 1px solid var(--background-highlight);
    margin: 5px 0;
}
#lfm-card {
    display: flex;
    align-items: stretch;
    gap: 12px;
}
#lfm-art-wrap {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
}
#lfm-art {
    width: 64px;
    height: 64px;
    object-fit: cover;
    display: none;
    border-radius: 4px;
}
#lfm-art-ph {
    width: 64px;
    height: 64px;
    background: var(--background-highlight);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--text-menu);
}
#lfm-info {
    flex: 1;
    overflow: hidden;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
}
#lfm-label {
    font-size: 11px;
    color: #e03030;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}
#lfm-dot {
    width: 7px;
    height: 7px;
    background: #e03030;
    border-radius: 50%;
    display: none;
    flex-shrink: 0;
    animation: lfm-blink 1.2s step-start infinite;
}
@keyframes lfm-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}
#lfm-track {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-heading);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#lfm-artist {
    font-size: 13px;
    color: var(--text-menu);
    margin-top: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#lfm-ago {
    font-size: 11px;
    color: var(--text-menu);
    margin-top: 0;
    display: none;
    opacity: 0.7;
}
#lfm-bars {
    display: none;
    align-items: flex-end;
    gap: 3px;
    height: 20px;
    flex-shrink: 0;
}
.lfm-bar {
    width: 4px;
    background: #e03030;
    border-radius: 1px;
    animation: lfm-bounce 0.8s ease-in-out infinite;
}
.lfm-bar:nth-child(1) { animation-delay: 0s; }
.lfm-bar:nth-child(2) { animation-delay: 0.15s; }
.lfm-bar:nth-child(3) { animation-delay: 0.3s; }
.lfm-bar:nth-child(4) { animation-delay: 0.45s; }
@keyframes lfm-bounce {
    0%, 100% { height: 4px; }
    50%       { height: 20px; }
}
}

#lfm-divider {
    border: none;
    border-top: 1px solid var(--background-highlight);
    margin: 12px 0 10px;
}
#lfm-top-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 10px;
}
.lfm-top-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.lfm-top-rank {
    font-size: 13px;
    color: var(--text-menu);
    width: 16px;
    text-align: right;
    flex-shrink: 0;
    opacity: 0.5;
}
.lfm-top-art {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 3px;
    flex-shrink: 0;
    display: block;
}
.lfm-top-art-ph {
    width: 56px;
    height: 56px;
    background: var(--background-highlight);
    border-radius: 3px;
    flex-shrink: 0;
}
.lfm-top-info {
    flex: 1;
    overflow: hidden;
    min-width: 0;
}
.lfm-top-track {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-heading);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lfm-top-artist {
    font-size: 12px;
    color: var(--text-menu);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
    opacity: 0.7;
}
.lfm-top-plays {
    font-size: 12px;
    color: var(--text-menu);
    flex-shrink: 0;
    white-space: nowrap;
    opacity: 0.5;
}

/* =========================================================================
 * LAST.FM SKELETON LOADING PLACEHOLDERS
 * ========================================================================= */
.lfm-skeleton {
    display: block;
    background: var(--background-highlight);
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}
.lfm-skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255,255,255,0.06) 40%,
        rgba(255,255,255,0.12) 50%,
        rgba(255,255,255,0.06) 60%,
        transparent 100%
    );
    animation: lfm-shimmer 1.5s ease-in-out infinite;
}
.lfm-skeleton-text {
    display: inline-block;
    height: 0.8em;
    vertical-align: middle;
    border-radius: 2px;
}
@keyframes lfm-shimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* =========================================================================
 * COLLAPSIBLE CODE BLOCKS
 * ========================================================================= */
.code-collapse-wrapper {
    position: relative;
    margin: 1em 0;
}
.code-collapse-wrapper pre {
    margin: 0;
    transition: max-height 0.3s ease;
    overflow: hidden;
}
.code-collapse-wrapper.collapsed pre {
    max-height: 200px;
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}
.code-collapse-wrapper:not(.collapsed) pre {
    max-height: 5000px;
    -webkit-mask-image: none;
    mask-image: none;
}
.code-collapse-toggle {
    display: block;
    width: 100%;
    margin-top: 4px;
    padding: 6px 12px;
    background: var(--background-highlight);
    color: var(--text-menu);
    border: none;
    border-radius: 0 0 6px 6px;
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s ease, color 0.2s ease;
}
.code-collapse-toggle:hover {
    background: var(--background-active);
    color: var(--text-menu-active);
}

#childLinks {
display: none !important;
}
div.updated {
  display: none !important;
}
div.navigation {
  display: none !important;
}

/* =============================================================================
   v0.103.0 COMPATIBILITY — ONLY ADDITION TO THE ORIGINAL CSS
   ============================================================================= */

/* Hide the new top #header bar on desktop — sidebar logo clone replaces it.
   On mobile (<=48em) it stays visible as the hamburger navigation bar. */
#header { display: none; }
@media (max-width: 48em) {
  #header {
    display: flex !important;
    align-items: center;
    padding: 6px 12px;
    background: var(--background-secondary);
  }
  /* Logo+title first, push hamburger to far right */
  #header #header-logo {
    order: -1;
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 1;
  }
  #header #left-pane-toggle-button {
    order: 1;
    margin-left: auto;
  }
  #header .header-button-placeholder {
    display: none;
  }
}

/* Force LFM widget image sizes against Trilium's bundled assets/styles.css */
#lfm-art {
    width: 64px !important;
    height: 64px !important;
    max-width: 64px !important;
}
#lfm-art-wrap {
    width: 64px !important;
    height: 64px !important;
}
.lfm-top-art {
    width: 56px !important;
    height: 56px !important;
    max-width: 56px !important;
}
.lfm-top-art-ph {
    width: 56px !important;
    height: 56px !important;
    max-width: 56px !important;
}
#lfm-card {
    display: flex !important;
    align-items: stretch !important;
    gap: 12px !important;
}
.lfm-top-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

/* Fix left pane anchoring to bottom caused by v0.103.0 bundled CSS */
#left-pane {
    justify-content: flex-start !important;
}
#navigation {
    justify-content: flex-start !important;
    height: 100%;
}