body.boards-page {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow: auto;
  background: #e9edf5;
  color: #202633;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.boards-header {
  border-bottom: 1px solid #e2e6ee;
  background: #f5f7fb;
}

.boards-header-content {
  min-height: 92px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.boards-home-link {
  justify-self: start;
  color: #606a7b;
}

.boards-heading {
  min-width: 0;
  justify-self: center;
  text-align: center;
}

.boards-heading h1 {
  margin: 0;
  color: #202b42;
  font-size: 25px;
  font-weight: 650;
  letter-spacing: -.02em;
}

.boards-new-button {
  width: max-content;
  justify-self: end;
  white-space: nowrap;
}

.boards-main {
  padding-top: 30px;
  padding-bottom: 56px;
}

.board-library-card {
  border: 1px solid #e0e4ec;
  border-radius: 10px;
  background: #f9faff;
  box-shadow: 0 3px 12px #18233d0a;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.board-library-card:hover {
  border-color: #c9d2e4;
  box-shadow: 0 7px 20px #18233d12;
}

.board-card-body {
  flex: 1 1 auto;
}

.board-preview {
  --preview-columns: 5;
  --preview-rows: 5;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 110px;
  max-height: 180px;
  display: grid;
  grid-template-columns: repeat(var(--preview-columns), minmax(0, 1fr));
  grid-template-rows: 20px repeat(var(--preview-rows), minmax(0, 1fr));
  gap: 2px;
  overflow: hidden;
  border: 2px solid #000;
  background: #000;
}

.board-preview-cell {
  min-width: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 2px;
  background: #3045bd;
  color: #ced6ff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-preview-category {
  color: #eef0ff;
  font-size: clamp(5px, .65vw, 9px);
  font-weight: 650;
  text-transform: uppercase;
}

.board-preview-points {
  color: #b8c5ff;
  font-size: clamp(7px, .9vw, 12px);
  font-weight: 600;
}

.board-card-title {
  overflow: hidden;
  color: #252f45;
  font-size: 18px;
  font-weight: 650;
  text-overflow: ellipsis;
  text-align: center;
  white-space: nowrap;
}

.board-card-actions {
  border-top: 1px solid #e7eaf1;
  background: transparent;
}

.board-card-actions .btn:first-child {
  flex: 1 1 auto;
}

.board-card-delete {
  width: 38px;
  flex: 0 0 38px;
  padding-right: 0;
  padding-left: 0;
}

.boards-empty {
  color: #707a8b;
}

.boards-empty-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 15px;
  border-radius: 14px;
  background: #e9edfa;
  color: #394da1;
  font-size: 25px;
}

.boards-empty h2 {
  margin: 0;
  color: #273149;
  font-size: 21px;
  font-weight: 650;
}

.boards-empty p {
  margin: 6px 0 17px;
  font-size: 15px;
}

@media (max-width: 575px) {
  .boards-header-content {
    min-height: 0;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .boards-home-link {
    grid-row: 2;
    grid-column: 1;
  }

  .boards-heading {
    grid-row: 1;
    grid-column: 1 / -1;
  }

  .boards-heading h1 {
    font-size: 21px;
  }

  .boards-new-button {
    grid-row: 2;
    grid-column: 2;
    justify-self: end;
  }

  .boards-main {
    padding-top: 20px;
  }

}