.ms-image-folder-controls {
  display: grid;
  gap: 10px;
  margin: -4px 0 16px;
}
.ms-image-folder-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.ms-image-folder-tabs button {
  min-width: max-content;
  height: 30px;
  padding: 0 10px;
  border: 1px solid #383838;
  border-radius: 6px;
  background: #202020;
  color: #b8b8b8;
  font: inherit;
  cursor: pointer;
}
.ms-image-folder-tabs button[aria-selected="true"] {
  border-color: #737373;
  background: #ededed;
  color: #171717;
}
.ms-image-folder-tabs button span {
  margin-left: 4px;
  opacity: .65;
}
.ms-image-folder-move {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #9a9a9a;
  font-size: 12px;
}
.ms-image-folder-move select {
  min-width: 138px;
  height: 30px;
  border: 1px solid #383838;
  border-radius: 6px;
  background: #171717;
  color: #e5e5e5;
  padding: 0 8px;
}
.ms-image-folder-move select:disabled { opacity: .45; }
.ms-image-folder-empty {
  min-height: 190px;
  display: grid;
  place-items: center;
  border: 1px dashed #3f3f46;
  border-radius: 7px;
  color: #8a8a8a;
  font-size: 13px;
  text-align: center;
}
.ms-image-folder-empty[hidden] { display: none; }
.ms-image-folder-modal {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, .68);
}
.ms-image-folder-modal section {
  width: min(420px, 100%);
  border: 1px solid #383838;
  border-radius: 8px;
  background: #1b1b1b;
  color: #f1f1f1;
  box-shadow: 0 18px 56px rgba(0, 0, 0, .45);
  padding: 20px;
}
.ms-image-folder-modal h2 {
  margin: 0 0 18px;
  font-size: 18px;
  font-weight: 650;
}
.ms-image-folder-modal label {
  display: grid;
  gap: 8px;
  color: #c8c8c8;
  font-size: 13px;
}
.ms-image-folder-modal input {
  width: 100%;
  height: 38px;
  border: 1px solid #444;
  border-radius: 6px;
  background: #111;
  color: #fff;
  padding: 0 11px;
  outline: none;
}
.ms-image-folder-modal input:focus { border-color: #a3a3a3; }
.ms-image-folder-error {
  min-height: 20px;
  margin: 6px 0 0;
  color: #f87171;
  font-size: 12px;
}
.ms-image-folder-modal footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}
.ms-image-folder-modal footer button {
  height: 34px;
  border: 1px solid #444;
  border-radius: 6px;
  background: #242424;
  color: #e5e5e5;
  padding: 0 15px;
  cursor: pointer;
}
.ms-image-folder-modal footer button[data-action="create"] {
  border-color: #e5e5e5;
  background: #ededed;
  color: #171717;
}
html:not(.dark) .ms-image-folder-tabs button,
html:not(.dark) .ms-image-folder-move select,
html:not(.dark) .ms-image-folder-modal section,
html:not(.dark) .ms-image-folder-modal input,
html:not(.dark) .ms-image-folder-modal footer button {
  border-color: #d6d3d1;
  background: #fff;
  color: #292524;
}
html:not(.dark) .ms-image-folder-tabs button[aria-selected="true"],
html:not(.dark) .ms-image-folder-modal footer button[data-action="create"] {
  background: #292524;
  color: #fff;
}
