body.admin {
  background: #f4f4f4;
  color: #222;
  font-family: system-ui, sans-serif;
  font-size: 15px;
  overflow: auto;

  a {
    color: #1a4d7a;
  }

  h2 {
    margin: 0 0 10px;

    .count {
      font-weight: normal;
      color: #888;
      font-size: 0.8em;
    }
  }
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 20px;
  background: #1b2a39;
  color: #fff;

  a,
  .link-button {
    color: #fff;
    margin-left: 15px;
  }

  .admin-header-title {
    font-weight: bold;
    margin-left: 0;
    text-decoration: none;
  }

  nav form {
    display: inline;
  }
}

.admin-main {
  padding: 20px;
  max-width: 1100px;
  margin: 0 auto;

  .clue-form {
    max-width: 600px;
  }
}

.admin-section {
  margin-bottom: 40px;

  .empty {
    color: #888;
  }
}

.clue-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;

  th,
  td {
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: top;
  }

  th {
    font-weight: normal;
    color: #888;
    font-size: 13px;
  }

  .thumb .fetching,
  .thumb .fetch-error {
    display: block;
    width: 80px;
    font-size: 12px;
    color: #888;
  }

  .thumb .fetch-error {
    color: #c62828;
  }

  .thumb img,
  .thumb video {
    width: 80px;
    height: auto;
    display: block;
  }

  .caption,
  .note {
    color: #666;
    font-size: 13px;
    margin-top: 4px;
  }

  .actions {
    white-space: nowrap;

    a,
    .link-button {
      margin-right: 12px;
    }

    form {
      display: inline;
    }

    .danger {
      color: #c62828;
    }
  }
}

.review-bar {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 20px;
  padding: 10px 16px;
  background: #ffb300;
  color: #222;
  font-family: system-ui, sans-serif;
  font-size: 14px;

  a {
    color: #222;
  }

  form {
    display: inline;
  }
}

.review-bar-button {
  font: inherit;
  padding: 4px 12px;
  border: 0;
  border-radius: 3px;
  background: #222;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s;

  &:hover {
    background: #444;
  }

  &:active {
    background: #000;
  }
}
