/* Shared by the viewport, sidebar, panels, dialogs, and form controls. */
html[data-world-theme], body[data-world-theme] {
  --scrollbar-thumb: #55758a;
  --scrollbar-track: #101e29;
  --scrollbar-hover: #7da3b8;
}
html[data-world-theme="fantasy"], body[data-world-theme="fantasy"] {
  --scrollbar-thumb: #967344;
  --scrollbar-track: #e9dbba;
  --scrollbar-hover: #735126;
}
html[data-world-theme="western"], body[data-world-theme="western"] {
  --scrollbar-thumb: #946036;
  --scrollbar-track: #dfc393;
  --scrollbar-hover: #6f4023;
}
html[data-world-theme="scifi"], body[data-world-theme="scifi"] {
  --scrollbar-thumb: #319b9b;
  --scrollbar-track: #07232b;
  --scrollbar-hover: #59e3da;
}
body[data-world-theme="western"] .nav {
  --scrollbar-thumb: #b48a50;
  --scrollbar-track: #2c1b11;
  --scrollbar-hover: #dfb675;
}
html[data-world-theme], body[data-world-theme], body[data-world-theme] * {
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
  scrollbar-width: thin;
}
html[data-world-theme]::-webkit-scrollbar,
body[data-world-theme]::-webkit-scrollbar,
body[data-world-theme] *::-webkit-scrollbar { width: 9px; height: 9px; }
html[data-world-theme]::-webkit-scrollbar-track,
body[data-world-theme]::-webkit-scrollbar-track,
body[data-world-theme] *::-webkit-scrollbar-track { background: var(--scrollbar-track); }
html[data-world-theme]::-webkit-scrollbar-thumb,
body[data-world-theme]::-webkit-scrollbar-thumb,
body[data-world-theme] *::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb); border: 2px solid var(--scrollbar-track); border-radius: 8px;
}
html[data-world-theme]::-webkit-scrollbar-thumb:hover,
body[data-world-theme]::-webkit-scrollbar-thumb:hover,
body[data-world-theme] *::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-hover); }
html[data-world-theme]::-webkit-scrollbar-corner,
body[data-world-theme]::-webkit-scrollbar-corner,
body[data-world-theme] *::-webkit-scrollbar-corner { background: var(--scrollbar-track); }
@media (forced-colors: active) {
  html[data-world-theme], body[data-world-theme], body[data-world-theme] * { scrollbar-color: auto; }
}
