.file {
  grid-template-columns: auto 42px minmax(0, 1fr) auto;
}
.file-select {
  display: grid;
  place-items: center;
}
.file-select input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--blue);
}
.file.selected {
  background: #f5f8ff;
}
.home-tools .tool {
  text-decoration: none;
  color: var(--ink);
}
.home-tools .formats a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 62px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
}
.home-tools .formats i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #eef3ff;
  color: var(--blue);
  font-style: normal;
  font-weight: 900;
}
@media (max-width: 900px) {
  .file {
    grid-template-columns: auto 38px minmax(0, 1fr) auto;
  }
  .home-tools .formats a {
    min-height: 72px;
    justify-content: center;
    flex-direction: column;
  }
  .home-tools .formats i {
    width: 38px;
    height: 38px;
  }
}
.preview-home {
  max-width: none;
  padding-top: 46px;
}
.preview-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.preview-welcome h1 {
  margin: 0;
  font-size: 36px;
}
.preview-welcome p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 17px;
}
.preview-upload {
  padding: 42px 20px;
  text-align: center;
  border: 2px dashed #79a6ff;
  border-radius: 18px;
  background: #fff;
}
.preview-upload.drag {
  background: #edf4ff;
}
.preview-cloud {
  display: grid;
  place-items: center;
  width: 92px;
  height: 68px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(145deg, #9ac0ff, #5e91ef);
  color: #fff;
  font-size: 46px;
  font-weight: 900;
  box-shadow: 0 14px 28px #2969e82b;
}
.preview-upload h2 {
  margin-bottom: 4px;
}
.preview-upload p {
  margin-bottom: 4px;
  color: var(--muted);
}
.preview-upload small {
  color: var(--muted);
}
.preview-section {
  margin: 30px 0;
}
.preview-section > h2,
.preview-section .section-head h2,
.preview-recent h2 {
  font-size: 20px;
}
.preview-formats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.preview-formats a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 15px #101c3609;
  color: var(--ink);
  text-decoration: none;
}
.preview-formats i {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--blue);
  color: #fff;
  font-style: normal;
  font-weight: 900;
}
.preview-formats .format-excel {
  background: #20a15b;
}
.preview-formats .format-powerpoint {
  background: #ed5937;
}
.preview-formats .format-image {
  background: #8159e8;
}
.preview-formats .format-text {
  background: #71859e;
}
.preview-tools {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.preview-tools a {
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 178px;
  padding: 18px 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 24px #101c360b;
  color: var(--ink);
  text-align: center;
  text-decoration: none;
}
.preview-tools a > span {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 12px;
  border-radius: 15px;
  background: linear-gradient(145deg, #8055eb, #5d39ce);
  color: #fff;
  font-size: 27px;
}
.preview-tools a:nth-child(2) > span,
.preview-tools a:nth-child(4) > span {
  background: linear-gradient(145deg, #2cc9ae, #109d86);
}
.preview-tools a:nth-child(3) > span,
.preview-tools a:nth-child(5) > span {
  background: linear-gradient(145deg, #3c7cff, #1d5be0);
}
.preview-tools small {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.3;
}
.preview-recent {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}
.preview-recent-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 2px;
}
.preview-recent-row small {
  display: block;
  color: var(--muted);
}
.preview-recent-row button {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 800;
  cursor: pointer;
}
@media (max-width: 1100px) {
  .preview-formats,
  .preview-tools {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 900px) {
  .preview-home {
    padding: 20px 12px 96px;
  }
  .preview-welcome {
    align-items: flex-start;
  }
  .preview-welcome h1 {
    font-size: 27px;
  }
  .preview-welcome p {
    font-size: 14px;
  }
  .preview-welcome .secure {
    display: none;
  }
  .preview-upload {
    padding: 30px 14px;
  }
  .preview-cloud {
    width: 72px;
    height: 54px;
    font-size: 34px;
  }
  .preview-upload h2 {
    font-size: 17px;
  }
  .preview-section {
    margin: 24px 0;
  }
  .preview-formats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .preview-formats a {
    justify-content: flex-start;
    min-width: 0;
    min-height: 50px;
    padding: 8px;
    font-size: 11px;
  }
  .preview-formats i {
    flex-basis: 24px;
    width: 24px;
    height: 24px;
    font-size: 10px;
  }
  .preview-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .preview-tools a {
    min-height: 122px;
    padding: 12px 7px;
  }
  .preview-tools a > span {
    width: 45px;
    height: 45px;
    margin-bottom: 7px;
    font-size: 21px;
  }
  .preview-tools a b {
    font-size: 13px;
  }
  .preview-tools small {
    font-size: 10px;
  }
  .preview-recent {
    padding: 14px;
  }
}
