:root {
  --bg: #0d1117;
  --surface: #161b22;
  --border: #30363d;
  --text: #c9d1d9;
  --text-heading: #f0f6fc;
  --text-muted: #8b949e;
  --link: #58a6ff;
  --link-hover: #79c0ff;
  --row-hover: #1c2128;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  padding: 2.5rem 1.5rem;
}

.container {
  max-width: 960px;
  margin: 0 auto;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.title-area {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.title-area h1 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-heading);
  letter-spacing: -0.01em;
}

.file-count {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.search-input {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.45rem 0.85rem;
  color: var(--text);
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  min-width: 220px;
  transition: border-color 0.15s ease;
}

.search-input:focus {
  border-color: var(--link);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.table-container {
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
}

.file-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.file-table th {
  padding: 0.75rem 1rem;
  background: #11141a;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
  user-select: none;
  cursor: pointer;
}

.file-table th:hover {
  color: var(--text-heading);
}

.file-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid #21262d;
  vertical-align: middle;
}

.file-table tr:last-child td {
  border-bottom: none;
}

.file-table tbody tr:hover td {
  background: var(--row-hover);
}

.col-name {
  width: 60%;
}

.col-size {
  width: 18%;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.col-date {
  width: 22%;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.file-link {
  color: var(--link);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.file-link:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.file-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--text-muted);
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  border: 1px dashed var(--border);
  border-radius: 6px;
  margin-top: 1rem;
}

@media (max-width: 640px) {
  body {
    padding: 1.5rem 1rem;
  }
  .header {
    flex-direction: column;
    align-items: stretch;
  }
  .search-input {
    width: 100%;
  }
  .col-date {
    display: none;
  }
  .col-name {
    width: 70%;
  }
  .col-size {
    width: 30%;
  }
}
