.study-top-dashboard {
  max-width: 980px;
  margin: 40px auto;
  font-family: sans-serif;
  color: #1f3542;
  position: relative;
}
.study-top-dashboard__head::before{
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 140px;
  height: 80px;
  background: #4b6f9d;
clip-path: polygon(0 0, 100% 0, 0 100%);

}
.study-top-dashboard__head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 86px;
  padding: 18px 56px 18px 22px;
  background: #2f7896;
  color: #fff;
}

/* .study-top-dashboard__head::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -14px;
  width: 14px;
  height: 14px;
  background: #2f7896;
} */

.study-top-dashboard__rank {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 128px;
  padding: 8px 14px 10px;
  /* background: #4b6f9d;
  clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%); */
}

.study-top-dashboard__rank-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  margin-bottom: 6px;
}

.study-top-dashboard__rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  height: 38px;
  padding: 0 14px;
  background: #fff;
  border-radius: 999px;
  color: #3f78a3;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
}

.study-top-dashboard__title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}

.study-top-dashboard__help {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #7d98ab;
  font-size: 13px;
  cursor: pointer;
}

.study-top-dashboard__body {
  margin: -20px 10px 0;
  padding: 30px 34px 18px;
  background-color: #fff;
  position: relative;
  z-index: 3;
}

.study-top-dashboard__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.study-top-dashboard__stats {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  flex-wrap: nowrap;
}

.study-stat {
  width: 120px;
  text-align: center;
  flex: 0 0 120px;
}

.study-stat__label {
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 700;
  color: #3d3d3d;
}

.study-stat__circle {
  width: 122px;
  height: 122px;
  border: 3px solid #8fb7cb;
  border-radius: 50%;
  background: #edf5f8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.study-stat__num {
  font-size: 31px;
  font-weight: 700;
  line-height: 1;
  color: #203746;
}

.study-stat__unit {
  margin-top: 8px;
  font-size: 18px;
  color: #8a8a8a;
  line-height: 1;
}

.study-top-dashboard__service-note {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 2px 2px;
}

.study-top-dashboard__left {
  min-width: 0;
}


.study-top-dashboard__current {
  position: relative;
  padding-left: 18px;
  margin-bottom: 18px;
}

.study-top-dashboard__current::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 2px;
  height: 62px;
  background: #8ca6ff;
}

.study-top-dashboard__current-label {
  font-size: 14px;
  color: #7a7a7a;
  margin-bottom: 6px;
}

.study-top-dashboard__current-value {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  color: #2a2a2a;
}

.study-top-dashboard__current-arrow {
  margin-left: auto;
  font-size: 20px;
  color: #8b8b8b;
}

.study-top-dashboard__tabs {
  display: flex;
  width: 340px;
  max-width: 100%;
  padding: 3px;
  border: 2px solid #2f7896;
  border-radius: 999px;
  background: #fff;
  box-sizing: border-box;
}

.study-top-dashboard__tab {
  flex: 1 1 50%;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #2f7896;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  padding: 0 12px;
  line-height: 1;
}

.study-top-dashboard__tab.is-active {
  background: #2f7896;
  color: #fff;
}

.study-top-dashboard__goal {
  width: 235px;
}
.study-top-dashboard__goal-box{
    padding: 16px 18px 8px;
  background: #dfe9ee;
  text-align: center;
}
.study-top-dashboard__goal-date {
  margin-bottom: 5px;
  font-size: 20px;
  font-weight: 700;
  color: #203746;
  line-height: 1.25;
}

.study-top-dashboard__goal-left {
  display: inline-block;
  font-size: 18px;
  font-weight: 700;
  color: #203746;
  line-height: 1.2;
  background-image: linear-gradient(#a9c2cf, #a9c2cf);
  background-repeat: no-repeat;
  background-size: 102px 8px;
  background-position: center bottom;
}

.study-top-dashboard__goal-left::before {
  content: none;
}

.study-top-dashboard__panels {
  margin-top: 24px;
}

@media (max-width: 767px) {
  .study-top-dashboard__head {
    min-height: auto;
    padding: 16px 44px 16px 16px;
    gap: 12px;
    flex-wrap: wrap;
  }

  .study-top-dashboard__rank {
    min-width: 108px;
  }

  .study-top-dashboard__title {
    font-size: 22px;
  }

  .study-top-dashboard__body {
    padding: 20px 16px 16px;
  }

  .study-top-dashboard__top,
  .study-top-dashboard__bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .study-top-dashboard__stats {
    gap: 16px;
    justify-content: space-between;
  }

  .study-stat__circle {
    width: 98px;
    height: 98px;
  }

  .study-stat__num {
    font-size: 26px;
  }

  .study-stat__label {
    font-size: 14px;
  }

  .study-top-dashboard__service-note {
    min-width: 0;
    width: 100%;
    font-size: 16px;
  }

  .study-top-dashboard__tabs {
    width: 100%;
  }

  .study-top-dashboard__tab {
    font-size: 18px;
  }

  .study-top-dashboard__goal {
    width: 100%;
  }

  .study-top-dashboard__goal-date {
    font-size: 24px;
  }

  .study-top-dashboard__current-value {
    font-size: 18px;
  }
}


@media (max-width: 767px) {
  .study-top-dashboard__top,
  .study-top-dashboard__bottom {
    grid-template-columns: 1fr;
  }

  .study-top-dashboard__stats {
    flex-wrap: wrap;
    gap: 20px;
  }

  .study-stat {
    width: calc(50% - 10px);
    flex: 0 0 calc(50% - 10px);
  }

  .study-top-dashboard__tabs,
  .study-top-dashboard__goal {
    width: 100%;
  }
}

.study-top-dashboard__bottom {
  display: grid;
  grid-template-columns: 1fr 235px;
  gap: 32px;
  align-items: end;
  margin-top: 32px;
}

.study-top-dashboard__goal {
  width: 235px;
  justify-self: end;
}


/* LEARNING */
.study-learning-data {
  margin-top: 28px;
}

.study-learning-data__head {
  margin-bottom: 14px;
}

.study-learning-data__title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 28px;
  font-weight: 700;
  color: #8d8d8d;
  line-height: 1;
}

.study-learning-data__title::after {
  content: "?";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #9a9a9a;
  color: #fff;
  font-size: 14px;
  line-height: 1;
}

.study-learning-data__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.study-learning-card {
  background: #f1f1f1;
  padding: 18px 14px;
  text-align: center;
}

.study-learning-card__title {
  margin-bottom: 18px;
  font-size: 16px;
  font-weight: 700;
  color: #333;
  text-align: center;
}

.study-learning-card__chart {
  --percent: 60;
  width: 150px;
  height: 150px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: conic-gradient(#2f7896 0 calc(var(--percent) * 1%), #cfcfcf 0 100%);
  position: relative;
}

.study-learning-card__chart-inner {
  position: absolute;
  inset: 30px;
  border-radius: 50%;
  background: #f1f1f1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.study-learning-card__value {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  color: #2f7896;
}

.study-learning-card__unit {
  margin-top: 6px;
  font-size: 16px;
  color: #777;
  line-height: 1;
}

.study-learning-card__meta {
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.4;
}

.study-learning-card__meta--target {
  margin-bottom: 8px;
  background: #f7f7f7;
  color: #8a8a8a;
}

.study-learning-card__meta--current {
  background: #fff;
  color: #333;
  font-weight: 700;
  text-align: center;
}

@media (max-width: 767px) {
  .study-learning-data__grid {
    grid-template-columns: 1fr;
  }

  .study-learning-card__chart {
    width: 130px;
    height: 130px;
  }

  .study-learning-card__chart-inner {
    inset: 26px;
  }
}