body {
  margin: 0;
  background: #f5f8f6;
  font-family: Arial, 'Microsoft YaHei';
  color: #17231e;
}
header {
  display: flex;
  justify-content: space-between;
  padding: 20px 5%;
  background: #fff;
}
header a {
  color: #17684a;
  text-decoration: none;
}
main {
  max-width: 1100px;
  margin: auto;
  padding: 35px 20px;
}
form {
  display: grid;
  grid-template-columns: 1fr 160px 160px auto;
  gap: 10px;
}
input,
select,
button {
  padding: 11px;
  border: 1px solid #dfe7e2;
  border-radius: 8px;
}
button {
  background: #17684a;
  color: #fff;
  border: 0;
}
#marketCourses {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 25px;
}
.market-card {
  background: #fff;
  border: 1px solid #dfe7e2;
  border-radius: 12px;
  padding: 18px;
}
.market-card .generated-course-cover {
  margin: -18px -18px 18px;
  border-radius: 12px 12px 0 0;
}
.market-card small {
  color: #748079;
}
.market-card b {
  display: block;
  color: #17684a;
  margin: 12px 0;
}
dialog {
  width: min(900px, 92vw);
  border: 0;
  border-radius: 14px;
  padding: 25px;
}

.public-calendar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}

.public-calendar-heading button {
  margin-left: 6px;
  background: #e7efff;
  color: #2456c6;
}

.public-month-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.public-weekday {
  padding: 7px;
  color: #72839a;
  text-align: center;
}

.public-calendar-day {
  min-height: 78px;
  padding: 7px;
  border: 1px solid #dfe7f3;
  border-radius: 8px;
  background: #fff;
}

.public-calendar-day.outside {
  opacity: 0.35;
}

.public-event {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  padding: 4px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-event.available {
  background: #dff8ed;
  color: #106c4e;
}

.public-event.live {
  background: #e0eaff;
  color: #2558c8;
}

.public-event.unavailable {
  background: #eef1f5;
  color: #7b8796;
}

.public-calendar-help {
  color: #677991;
  font-size: 13px;
}
#closeDetail {
  float: right;
}
@media (max-width: 700px) {
  form,
  #marketCourses {
    grid-template-columns: 1fr;
  }
}
.market-teacher-avatar {
  display: block;
  width: 76px;
  height: 76px;
  margin-bottom: 12px;
  border-radius: 22px;
  object-fit: cover;
}

.market-teacher-avatar.large {
  width: 104px;
  height: 104px;
  border-radius: 30px;
}
