* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: #111;
  color: #eee;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.page {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 60px;
}

.home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo {
  font-size: clamp(42px, 10vw, 88px);
  font-weight: 900;
  letter-spacing: .08em;
}

.logo.small {
  font-size: 22px;
}

.subtitle {
  color: #999;
  margin-top: -4px;
}

.cards {
  margin-top: 48px;
  display: grid;
  gap: 14px;
  max-width: 520px;
}

.card, .file-row {
  color: inherit;
  text-decoration: none;
}

.card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  border: 1px solid #333;
  border-radius: 14px;
  background: #191919;
  transition: .15s ease;
}

.card:hover, .file-row:hover {
  background: #222;
  border-color: #555;
}

.icon {
  font-size: 34px;
}

.card strong {
  display: block;
  font-size: 20px;
}

.card small {
  display: block;
  color: #999;
  margin-top: 4px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.back {
  color: #bbb;
  text-decoration: none;
}

.back:hover {
  color: white;
}

h1 {
  margin-bottom: 8px;
}

.path {
  color: #777;
  font-family: monospace;
  margin-bottom: 22px;
}

.filelist {
  border: 1px solid #333;
  border-radius: 14px;
  overflow: hidden;
}

.file-row {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  border-bottom: 1px solid #292929;
}

.file-row:last-child {
  border-bottom: 0;
}

.file-icon {
  width: 28px;
  text-align: center;
}

.file-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-size {
  margin-left: auto;
  color: #777;
  font-size: 13px;
}

.empty {
  padding: 32px;
  color: #777;
}
