.st-pdf-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.st-pdf-list li {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid #d3dce4;
  border-radius: 10px;
  background: #f8fafb;
}

.st-pdf-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.st-pdf-list small {
  color: #66778a;
  white-space: nowrap;
}

.st-chip-icon {
  justify-content: center;
  min-width: 36px;
  padding: 6px 8px;
}

.st-chip-icon[disabled] {
  opacity: .35;
  cursor: default;
}

.st-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 12px;
}

.st-page-card {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 8px;
  border: 1px solid #d3dce4;
  border-radius: 12px;
  background: #fff;
}

.st-page-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 150px;
  overflow: hidden;
  border-radius: 6px;
  background: #eef2f5;
}

.st-page-frame canvas {
  max-width: 100%;
  max-height: 140px;
  box-shadow: 0 1px 3px rgba(30, 39, 51, .2);
  transition: transform .2s;
}

.st-page-no {
  color: #4f6072;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.st-page-tools {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.st-page-tools .st-chip-icon {
  min-width: 28px;
  padding: 4px 6px;
  font-size: 12px;
}

.st-pdf-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.st-pdf-files {
  flex-basis: 100%;
}

.st-pdf-files summary {
  margin-bottom: 8px;
  color: #2f8f8c;
  font-weight: 700;
  cursor: pointer;
}

.st-pdf-shots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.st-pdf-shots img {
  width: 100%;
  border: 1px solid #d3dce4;
  border-radius: 6px;
}

.st-doc-frame {
  width: 100%;
  height: 520px;
  border: 1px solid #d3dce4;
  border-radius: 12px;
  background: #fff;
}

@media (max-width: 600px) {
  .st-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .st-doc-frame {
    height: 380px;
  }
}

.st-pdfkit [hidden] {
  display: none !important;
}
