* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f6f7f9;
  color: #1b1f24;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.page {
  width: min(980px, calc(100% - 32px));
  margin: 40px auto;
}

.login {
  width: min(420px, 100%);
  margin: 12vh auto 0;
  padding: 24px;
  background: #fff;
  border: 1px solid #d8dee4;
  border-radius: 8px;
}

h1 {
  margin: 0 0 20px;
  font-size: 24px;
  font-weight: 650;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

input[type="text"] {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #b7c0cc;
  border-radius: 6px;
  font: inherit;
  text-transform: uppercase;
}

button,
.topbar a {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid #166534;
  border-radius: 6px;
  background: #166534;
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

button:hover,
.topbar a:hover {
  background: #14532d;
}

.error {
  padding: 10px 12px;
  border: 1px solid #f0b5b5;
  border-radius: 6px;
  background: #fff1f1;
  color: #8a1f1f;
}

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

.files {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #d8dee4;
}

.files th,
.files td {
  padding: 12px;
  border-bottom: 1px solid #e6ebf1;
  text-align: left;
  vertical-align: middle;
}

.files th {
  background: #edf1f5;
  font-size: 13px;
  text-transform: uppercase;
}

.files td:first-child {
  overflow-wrap: anywhere;
}

.files td:last-child {
  width: 1%;
  white-space: nowrap;
}

.empty {
  padding: 20px;
  background: #fff;
  border: 1px solid #d8dee4;
  border-radius: 8px;
}

@media (max-width: 720px) {
  .page {
    width: min(100% - 20px, 980px);
    margin: 20px auto;
  }

  .files,
  .files thead,
  .files tbody,
  .files tr,
  .files th,
  .files td {
    display: block;
  }

  .files thead {
    display: none;
  }

  .files tr {
    border-bottom: 1px solid #d8dee4;
    padding: 10px;
  }

  .files td {
    border: 0;
    padding: 6px 0;
  }
}

