/* Rotate & Flip — reuse shared Software Library panels and controls. */
.jp-rotate-tool,
.jp-rotate-editor {
  display: grid;
  gap: var(--jp-space-5);
}
.jp-rotate-editor[hidden] {
  display: none;
}
.jp-rotate-tool .jp-panel {
  min-width: 0;
}
.jp-rotate-tool input[type="file"] {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-top: var(--jp-space-2);
}
.jp-rotate-stage {
  display: grid;
  place-items: center;
  min-height: 160px;
  margin: var(--jp-space-4) 0;
}
.jp-rotate-stage canvas {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 420px;
  object-fit: contain;
}
.jp-rotate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--jp-space-3);
  margin: var(--jp-space-4) 0;
}
.jp-rotate-output {
  display: grid;
  gap: var(--jp-space-2);
  max-width: 360px;
  margin-top: var(--jp-space-5);
}
.jp-rotate-output select {
  width: 100%;
  min-width: 0;
}
@media (max-width: 600px) {
  .jp-rotate-actions .jp-tool-button {
    width: 100%;
  }
}
