/* Theme Studio: keep controls usable inside the narrow editor inspector without changing the retro skin. */
.profile-editor-shell[data-workspace="style"] .composer-inspector {
  min-width: 0;
}
.profile-editor-shell[data-workspace="style"] .theme-studio-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
}
.profile-editor-shell[data-workspace="style"] .theme-studio-actions > button {
  width: 100%;
  margin: 0;
  text-align: left;
}
.profile-editor-shell[data-workspace="style"] .composer-theme-presets {
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
}
.profile-editor-shell[data-workspace="style"] .composer-theme-preset {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 5px;
  align-items: center;
  min-width: 0;
}
.profile-editor-shell[data-workspace="style"] .composer-theme-preset b {
  min-width: 0;
  overflow-wrap: anywhere;
}
.profile-editor-shell[data-workspace="style"] .composer-theme-preset .pact {
  min-width: 0;
  margin: 0;
  padding: 5px 7px;
  white-space: nowrap;
}
.profile-editor-shell[data-workspace="style"] .composer-theme-presets > .linkbtn {
  grid-column: 1 / -1;
  justify-self: start;
}
.profile-editor-shell[data-workspace="style"] .theme-studio-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 5px;
}
.profile-editor-shell[data-workspace="style"] .theme-studio-groups .pact {
  min-width: 0;
  margin: 0;
  white-space: normal;
  text-align: center;
}
@media (max-width: 420px) {
  .profile-editor-shell[data-workspace="style"] .composer-theme-token {
    grid-template-columns: minmax(0, 1fr) 42px minmax(78px, 1fr);
    gap: 5px;
  }
  .profile-editor-shell[data-workspace="style"] .composer-theme-token input[type="text"],
  .profile-editor-shell[data-workspace="style"] .composer-theme-token select {
    width: 100%;
    min-width: 0;
  }
}
