.study-book-editor {
  position: relative;
  z-index: 2;
  grid-column: 1 / -1;
  min-width: 0;
  width: 100%;
}

.study-book-file-manager {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin-top: 10px;
  padding: 14px;
  border: 1px solid var(--note-line);
  border-radius: 13px;
  background: #fff;
  color: var(--note-ink, #17211d);
  text-align: left;
}

.study-book-file-manager > strong {
  font-size: 14px;
}

.study-book-file-manager > p {
  margin: 0;
  color: var(--note-muted);
  font-size: 12px;
  line-height: 1.5;
}

.study-book-replace-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  min-width: 0;
}

.study-book-replace-form > label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: var(--note-muted);
  font-size: 12px;
}

.study-book-replace-form input[type="file"] {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.study-book-replace-form > button,
.study-book-file-danger > button {
  min-height: 44px;
  white-space: nowrap;
}

.study-book-file-danger {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--note-line);
}

.study-book-file-danger > span {
  color: var(--note-muted);
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .study-book-replace-form,
  .study-book-file-danger {
    grid-template-columns: minmax(0, 1fr);
  }

  .study-book-replace-form > button,
  .study-book-file-danger > button {
    width: 100%;
  }
}
