.learning-entry-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: calc(100% - 32px);
  min-height: 68px;
  box-sizing: border-box;
  margin: 12px 16px 16px;
  border: 1px solid #e4e8e4;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 7px 22px rgb(20 43 29 / 6%);
  overflow: hidden;
}

.learning-entry-grid::after {
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 50%;
  width: 1px;
  background: #dfe4e0;
  content: "";
}

.learning-entry {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 14px;
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 11px 16px;
  color: #173524;
  text-decoration: none;
  transition: background-color 160ms ease;
}

.learning-entry:hover,
.learning-entry:focus-visible {
  background: #f5f8f5;
  outline: none;
}

.learning-entry-icon {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.learning-entry strong {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 15px;
  line-height: 1.3;
}

.learning-entry-arrow {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
}

.learning-access-notice {
  position: fixed;
  right: auto;
  bottom: calc(26px + env(safe-area-inset-bottom));
  left: 50%;
  z-index: 1180;
  display: grid;
  gap: 3px;
  width: min(368px, calc(100vw - 32px));
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid rgb(143 170 156 / 32%);
  border-radius: 8px;
  background: #173126;
  color: #f7faf8;
  box-shadow: 0 14px 36px rgb(15 34 25 / 20%);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px) scale(0.985);
  transition:
    opacity 220ms ease,
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.learning-access-notice.is-visible {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.learning-access-notice__title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.learning-access-notice__message {
  color: #d7e3dc;
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 720px) {
  .learning-entry-grid {
    width: calc(100% - 20px);
    min-height: 64px;
    margin: 10px 10px 14px;
    border-radius: 11px;
  }

  .learning-entry-grid::after {
    top: 14px;
    bottom: 14px;
  }

  .learning-entry {
    grid-template-columns: 27px minmax(0, 1fr) 12px;
    gap: 5px;
    padding: 10px 7px;
  }

  .learning-entry-icon {
    width: 27px;
    height: 27px;
  }

  .learning-entry strong {
    font-size: 14px;
  }

  .learning-entry-arrow {
    width: 12px;
    height: 12px;
  }

  .learning-access-notice {
    bottom: calc(78px + env(safe-area-inset-bottom));
    width: calc(100vw - 28px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .learning-access-notice {
    transition-duration: 1ms;
  }
}
