/* Student and instructor dashboard tiles: compact touch rows; retain existing menu actions. */
body.workspace-mode #dashboard-view .module-grid > button:is([data-student-menu], [data-instructor-menu], #student-qnet) {
  display: flex !important;
  min-width: 0;
  min-height: 60px !important;
  height: auto !important;
  padding: 9px 12px !important;
  border-radius: 7px;
  box-shadow: 0 1px 3px rgb(16 33 62 / 5%);
}

body.workspace-mode #dashboard-view .module-grid > button:is([data-student-menu], [data-instructor-menu], #student-qnet)::before {
  display: none !important;
  content: none !important;
}

body.workspace-mode #dashboard-view .module-grid > button:is([data-student-menu], [data-instructor-menu], #student-qnet) > span {
  top: 8px;
  right: 11px;
  width: auto;
  height: auto;
  padding: 0;
  background: transparent;
  color: #8290a0;
  font-size: 10px;
  line-height: 1.2;
}

body.workspace-mode #dashboard-view .module-grid > button:is([data-student-menu], [data-instructor-menu], #student-qnet) > b {
  max-width: calc(100% - 24px);
  margin: 0 !important;
  color: #24364d;
  font-size: 13px;
  line-height: 1.35;
}

body.workspace-mode #dashboard-view .module-grid > button:is([data-student-menu], [data-instructor-menu], #student-qnet) > small {
  max-width: calc(100% - 20px);
  margin-top: 3px !important;
  padding: 0 !important;
  overflow: hidden;
  color: #7c8796;
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.workspace-mode #dashboard-view .module-grid > button:is([data-student-menu], [data-instructor-menu], #student-qnet)::after {
  right: 11px;
  bottom: 10px;
  color: #8290a0;
  font-size: 14px;
}
