section.achievements {
  position: relative;
  height: 100%;
  min-height: 0;
  z-index: 99;
  flex-shrink: 0;
  display: flex;
  align-items: stretch;
  flex-direction: column;

  .header {
    display: flex;
    padding: 8px 12px;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;

    .title {
      flex: 1;
      width: 0;
      margin: 0;
      font-size: 16px;
      font-weight: 500;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .headerActions {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .closeButton {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 32px;
      height: 32px;
      cursor: pointer;
      color: #333333;
      transition: opacity 0.3s ease;
      margin-left: 8px;

      &:hover {
        opacity: 0.8;
      }
    }
  }

  .content {
    flex: 1 1 0%;
    min-height: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 12px;
  }

  .searchBar {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
  }

  .searchInput {
    flex: 1;
  }

  .fileList {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .listItem {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    background: #fafafa;
    transition: background 0.2s;
    position: relative;

    &:hover {
      background: #f0f0f0;

      .actions {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
      }
    }
  }

  .actions {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    transform: translateX(8px);
    flex-shrink: 0;
    display: flex;
    justify-content: flex-end;
    margin-left: 12px;
    z-index: 1;
    width: 0;
  }

  .defaultLogo {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 6px;
  }

  .defaultLogoIcon {
    font-size: 18px;
    color: #1890ff;
  }

  .itemContent {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 auto;
    min-width: 0;
  }

  .fileName {
    font-size: 14px;
    color: #14161a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
  }

  .loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
  }

  .previewContent {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
  }

  .code {
    margin: 0;
    padding: 12px;
    background: #fafafa;
    border-radius: 8px;
    font-family: monospace;
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-all;
  }
}
