.dashboard-home {
  grid-column: 1 / -1;

  display: grid;
  gap: 18px;
}

.dashboard-home[hidden],
.dashboard-page[hidden] {
  display: none;
}

.dashboard-home-intro {
  margin: 0;

  color: var(--text-muted, #999);

  font-size: 14px;
  line-height: 1.5;
}

.dashboard-hub-grid {
  display: grid;
  grid-template-columns:
    repeat(auto-fit, minmax(175px, 1fr));

  gap: 14px;
}

.dashboard-hub-card {
  min-width: 0;
  min-height: 190px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 10px;

  padding: 24px 18px;

  border: 1px solid var(--border);
  border-radius: 18px;

  background: var(--surface-2);
  color: inherit;

  font: inherit;
  text-align: center;

  cursor: pointer;

  transition:
    border-color .16s ease,
    transform .16s ease,
    background .16s ease;
}

.dashboard-hub-card:hover {
  transform: translateY(-2px);

  border-color: #555;
}

.dashboard-hub-card:active {
  transform: translateY(0);
}

.dashboard-hub-card[hidden] {
  display: none;
}

.dashboard-hub-icon {
  width: 54px;
  height: 54px;

  display: grid;
  place-items: center;

  margin-bottom: 2px;

  color: var(--text, #fff);
}

.dashboard-hub-icon svg {
  width: 100%;
  height: 100%;

  fill: none;

  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-hub-card strong {
  display: block;

  font-size: 15px;
  line-height: 1.25;
}

.dashboard-hub-card small {
  display: block;

  max-width: 210px;

  color: var(--text-muted, #888);

  font-size: 12px;
  line-height: 1.45;
}

.dashboard-page {
  grid-column: 1 / -1;

  width: 100%;
  min-width: 0;
}

.dashboard-page-placeholder {
  display: grid;
  gap: 8px;
}

.dashboard-page-placeholder p {
  margin: 0;

  color: var(--text-muted, #888);

  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 699px) {
  .dashboard-hub-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 10px;
  }

  .dashboard-hub-card {
    min-height: 158px;

    padding: 18px 10px;

    border-radius: 14px;
  }

  .dashboard-hub-icon {
    width: 44px;
    height: 44px;
  }

  .dashboard-hub-card strong {
    font-size: 13px;
  }

  .dashboard-hub-card small {
    font-size: 11px;
  }
}

@media (max-width: 380px) {
  .dashboard-hub-grid {
    grid-template-columns: 1fr;
  }
}
