*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #0f0f0f;
  color: #e8e8e8;
  min-height: 100vh;
  font-size: 14px;
}

/* Hide everything Apache auto-generates — JS rebuilds the file list */
h1, hr, address { display: none; }
table { display: none; }

#wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 28px 20px 60px;
}

.site-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid #1e1e1e;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-link img { height: 24px; width: auto; }

.logo-link span {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

#breadcrumb {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  font-size: 13px;
}

#breadcrumb a { color: #666; text-decoration: none; }
#breadcrumb a:hover { color: #bbb; }
#breadcrumb .sep { color: #2a2a2a; }
#breadcrumb .current { color: #aaa; }

#toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  min-height: 24px;
}

.sort-label { font-size: 11px; color: #333; }

#sort-links { display: flex; gap: 4px; }

#sort-links a {
  font-size: 11px;
  color: #3a3a3a;
  text-decoration: none;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid #1e1e1e;
  transition: all 0.12s;
}

#sort-links a:hover {
  color: #ccc;
  border-color: #3a3a3a;
}

#files {
  border: 1px solid #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
}

.f-row {
  display: grid;
  grid-template-columns: 22px 1fr 120px 68px;
  column-gap: 12px;
  align-items: center;
  padding: 9px 14px;
  border-bottom: 1px solid #141414;
  text-decoration: none;
  color: inherit;
  transition: background 0.1s;
  min-width: 0;
}

.f-row:last-child { border-bottom: none; }
.f-row:hover { background: #151515; }

.f-icon {
  font-size: 13px;
  text-align: center;
  user-select: none;
}

.f-name {
  font-size: 13px;
  color: #d4d4d4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.f-row.is-dir .f-name { color: #7aa2c0; }
.f-row.is-parent .f-name { color: #555; }
.f-row.is-parent:hover .f-name { color: #888; }

.f-date {
  font-size: 11px;
  color: #3a3a3a;
  text-align: right;
  white-space: nowrap;
}

.f-size {
  font-size: 11px;
  color: #484848;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

#empty {
  padding: 48px 24px;
  text-align: center;
  color: #333;
  font-size: 13px;
}
