.pronote-day-row {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
  min-width: 0;
  padding: 5px 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface, #fff);
  box-sizing: border-box;
}

.pronote-day-row + .elora-day-row {
  margin-top: 4px;
}

.pronote-robin {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  font-size: .7rem;
  white-space: nowrap;
}

.pronote-robin-icon {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: .75rem;
  background: color-mix(in srgb, var(--wine) 8%, var(--surface));
}

.elora-person-icon {
  background: color-mix(in srgb, var(--wine) 12%, var(--surface));
}

.pronote-courses {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.pronote-courses::-webkit-scrollbar {
  display: none;
}

.pronote-course {
  flex: 0 0 auto;
  min-width: 0;
  min-height: 30px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  border: 1px solid color-mix(in srgb, var(--wine) 13%, var(--line));
  border-radius: 10px;
  background: color-mix(in srgb, var(--wine) 4%, var(--surface));
  scroll-snap-align: start;
}

.pronote-course-icon {
  width: 20px;
  height: 20px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: .72rem;
  background: color-mix(in srgb, var(--wine) 8%, var(--surface));
}

.pronote-course-copy {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 5px;
  white-space: nowrap;
}

.pronote-course-title {
  min-width: 0;
  max-width: 112px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .64rem;
  line-height: 1;
  font-weight: 850;
}

.pronote-course-time {
  flex: 0 0 auto;
  color: var(--wine);
  font-size: .62rem;
  line-height: 1;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.pronote-cancelled {
  opacity: .5;
}

.pronote-cancelled .pronote-course-title,
.pronote-cancelled .pronote-course-time {
  text-decoration: line-through;
}

.desktop-week .pronote-day-row {
  padding: 4px;
  gap: 4px;
}

.desktop-week .pronote-robin b {
  display: none;
}

.desktop-week .pronote-robin-icon {
  width: 20px;
  height: 20px;
}

.desktop-week .pronote-course {
  padding: 4px 5px;
}

.desktop-week .pronote-course-title {
  max-width: 92px;
}

@media (max-width: 420px) {
  .pronote-day-row {
    gap: 4px;
    padding: 4px 5px;
  }

  .pronote-robin {
    font-size: .66rem;
  }

  .pronote-robin-icon {
    width: 20px;
    height: 20px;
    font-size: .7rem;
  }

  .pronote-course {
    min-height: 28px;
    gap: 3px;
    padding: 3px 5px;
  }

  .pronote-course-icon {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    font-size: .66rem;
  }

  .pronote-course-title {
    max-width: 100px;
    font-size: .61rem;
  }

  .pronote-course-time {
    font-size: .59rem;
  }
}
