.visual-card .picto-row,
.data-visual .picto-row,
.math-visual-card .math-picto-row {
  display: grid !important;
  grid-template-columns: 150px minmax(0, 1fr) !important;
  gap: 18px !important;
  align-items: center !important;
  margin: 10px 0 !important;
  padding: 12px 18px !important;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  background: #f8fafc;
  white-space: normal;
  line-height: 1.25;
}

.visual-card .picto-row > span:first-child,
.data-visual .picto-row > span:first-child,
.math-visual-card .math-picto-row > span:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  width: 128px;
  padding: 8px 14px;
  border-radius: 18px;
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 950;
}

.visual-card .picto-row:nth-of-type(2) > span:first-child,
.data-visual .picto-row:nth-of-type(2) > span:first-child,
.math-visual-card .math-picto-row:nth-of-type(2) > span:first-child {
  background: #fef9c3;
  color: #92400e;
}

.visual-card .picto-row:nth-of-type(3) > span:first-child,
.data-visual .picto-row:nth-of-type(3) > span:first-child,
.math-visual-card .math-picto-row:nth-of-type(3) > span:first-child {
  background: #dcfce7;
  color: #166534;
}

.visual-card .picto-row:nth-of-type(4) > span:first-child,
.data-visual .picto-row:nth-of-type(4) > span:first-child,
.math-visual-card .math-picto-row:nth-of-type(4) > span:first-child {
  background: #f3e8ff;
  color: #7e22ce;
}

.visual-card .picto-symbols,
.data-visual .picto-symbols,
.math-visual-card .math-picto-symbols {
  display: flex !important;
  flex-wrap: wrap;
  gap: 10px 13px !important;
  align-items: center;
  min-width: 0;
  letter-spacing: 0 !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 1 !important;
}

.visual-card .picto-book,
.data-visual .picto-book,
.math-visual-card .picto-book {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 2px solid #bae6fd;
  border-radius: 10px;
  background: #e0f2fe;
  box-shadow: 0 2px 0 rgba(15, 23, 42, .08);
  font-size: 0 !important;
  color: transparent !important;
}

.visual-card .picto-book::before,
.data-visual .picto-book::before,
.math-visual-card .picto-book::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 6px;
  width: 20px;
  height: 26px;
  border: 2px solid #1e40af;
  border-radius: 5px;
  background: linear-gradient(145deg, #60a5fa 0%, #2563eb 72%);
  box-shadow: inset 4px 0 0 #0e7490;
}

.visual-card .picto-book::after,
.data-visual .picto-book::after,
.math-visual-card .picto-book::after {
  content: "";
  position: absolute;
  left: 20px;
  top: 16px;
  width: 10px;
  height: 8px;
  border-top: 2px solid #dbeafe;
  border-bottom: 2px solid #dbeafe;
}

.visual-card .picto-book[data-symbol="😊"]::before,
.data-visual .picto-book[data-symbol="😊"]::before,
.math-visual-card .picto-book[data-symbol="😊"]::before {
  left: 7px;
  top: 7px;
  width: 24px;
  height: 24px;
  border: 2px solid #ca8a04;
  border-radius: 999px;
  background: #fde047;
  box-shadow: none;
}

.visual-card .picto-book[data-symbol="😊"]::after,
.data-visual .picto-book[data-symbol="😊"]::after,
.math-visual-card .picto-book[data-symbol="😊"]::after {
  left: 15px;
  top: 16px;
  width: 10px;
  height: 6px;
  border: 0;
  border-bottom: 2px solid #713f12;
  border-radius: 0 0 999px 999px;
}

@media (max-width: 720px) {
  .visual-card .picto-row,
  .data-visual .picto-row,
  .math-visual-card .math-picto-row {
    grid-template-columns: 128px minmax(0, 1fr) !important;
    gap: 12px !important;
    padding: 12px !important;
  }

  .visual-card .picto-row > span:first-child,
  .data-visual .picto-row > span:first-child,
  .math-visual-card .math-picto-row > span:first-child {
    width: 112px;
    min-height: 44px;
  }

  .visual-card .picto-symbols,
  .data-visual .picto-symbols,
  .math-visual-card .math-picto-symbols {
    gap: 8px 10px !important;
  }

  .visual-card .picto-book,
  .data-visual .picto-book,
  .math-visual-card .picto-book {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 420px) {
  .visual-card .picto-row,
  .data-visual .picto-row,
  .math-visual-card .math-picto-row {
    grid-template-columns: 1fr !important;
  }

  .visual-card .picto-row > span:first-child,
  .data-visual .picto-row > span:first-child,
  .math-visual-card .math-picto-row > span:first-child {
    width: max-content;
    max-width: 100%;
  }

  .visual-card .picto-book,
  .data-visual .picto-book,
  .math-visual-card .picto-book {
    width: 34px;
    height: 34px;
  }

  .visual-card .picto-book::before,
  .data-visual .picto-book::before,
  .math-visual-card .picto-book::before {
    left: 8px;
    top: 5px;
  }

  .visual-card .picto-book::after,
  .data-visual .picto-book::after,
  .math-visual-card .picto-book::after {
    left: 19px;
    top: 15px;
  }
}
