body { 
  font-family: 'Consolas', 'Menlo', 'Monaco', monospace; 
  padding: 2rem; 
  max-width: 960px; 
  margin: auto; 
}
h1 { text-align: center; color: #444; }
.toolbar { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  margin-bottom: 1rem; 
}
.toolbar-right {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.parent-btn {
  padding: 0.5rem 1rem;
  border-radius: 4px;
  border: 1px solid #ccc;
  background: #f5f5f5;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  font-family: 'Consolas', 'Menlo', 'Monaco', monospace;
}
.parent-btn i {
  font-size: 1.2em;
}
.parent-btn:hover {
  background: #e5e5e5;
}
.toggle-btn { 
  padding: 0.5rem 1rem; 
  border-radius: 4px; 
  border: 1px solid #ccc; 
  background: #f5f5f5; 
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Consolas', 'Menlo', 'Monaco', monospace;
  font-weight: 500;
}
.toggle-btn i {
  font-size: 1.2em;
}
.toggle-btn span {
  font-weight: 500;
}
select { 
  padding: 0.5rem 1rem; 
  border-radius: 4px; 
  border: 1px solid #ccc; 
  background: #f5f5f5; 
  cursor: pointer;
  font-family: 'Consolas', 'Menlo', 'Monaco', monospace;
  font-weight: 500;
}
select option {
  font-family: 'Consolas', 'Menlo', 'Monaco', monospace;
  font-weight: 500;
  padding: 0.5rem;
}

table { width: 100%; border-collapse: collapse; display: none; }
th, td { padding: 0.6rem; border-bottom: 1px solid #eee; text-align: left; }
th { background: #f0f0f0; }

.grid { display: flex; flex-wrap: wrap; gap: 1rem; }
.thumb { 
    width: 150px; 
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.thumb > div {
    width: 100%;
    font-size: 0.85em;
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin-top: 0.5rem;
    line-height: 1.2;
    max-height: 2.4em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Thumbnail container */
.thumb a {
    display: block;
    width: 150px;
    height: 150px;
    background: #f8f8f8;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s ease;
}

.thumb a:hover {
    transform: scale(1.05);
}

/* Image styles */
.thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.5rem;
    box-sizing: border-box;
}

/* Folder icon image styles */
.folder-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    box-sizing: border-box;
}

/* Icon styles */
.thumb i {
    font-size: 3em;
    display: block;
    width: 100%;
    height: 100%;
    line-height: 150px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
    background: #f8f8f8;
}
.thumb i:hover {
    transform: scale(1.05);
}
.folder-icon {
    color: #ffd700;
}
.file-icon {
    color: #4a90e2;
}

footer { margin-top: 2rem; text-align: center; color: #888; font-size: 0.9rem; }
