body {
  display: block;
  padding: 0;
}

.drive-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.drive-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-weight: 850;
}

.drive-top a {
  color: var(--text);
  text-decoration: none;
}

.drive-hero {
  display: grid;
  grid-template-columns: 1fr minmax(180px, 260px);
  gap: 18px;
  align-items: end;
  margin: 48px 0 18px;
}

.drive-hero p {
  margin: 0 0 8px;
  color: var(--green);
  font-weight: 850;
}

.drive-hero h1 {
  margin: 0;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 0.98;
}

.pin {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 750;
}

.pin input,
.upload-card button,
.folders button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.36);
  font: inherit;
}

.upload-card {
  display: grid;
  grid-template-columns: 1fr minmax(180px, 280px) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(16px);
}

.upload-card strong,
.upload-card span,
.upload-card small {
  display: block;
}

.upload-card span,
.upload-card small {
  color: var(--muted);
  margin-top: 5px;
}

.upload-card button,
.folders button,
.upload-jump {
  background: rgba(83, 209, 111, 0.16);
  font-weight: 850;
  cursor: pointer;
}

.upload-jump {
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  color: var(--text);
  text-decoration: none;
}

progress {
  grid-column: 1 / -1;
  width: 100%;
  height: 10px;
  accent-color: var(--green);
}

.folders {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.tile {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.38);
}

.tile button,
.tile a {
  width: 100%;
  min-height: 168px;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
  cursor: pointer;
}

.tile img,
.tile video {
  width: 100%;
  height: 168px;
  object-fit: cover;
  display: block;
  background: #000;
}

.tile-info {
  padding: 12px;
}

.tile-info strong,
.tile-info span {
  display: block;
  overflow-wrap: anywhere;
}

.tile-info span {
  color: var(--muted);
  margin-top: 5px;
  font-size: 12px;
}

@media (max-width: 760px) {
  .drive-hero,
  .upload-card {
    grid-template-columns: 1fr;
  }
}
