.group-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}

.head-due {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 6px;
  background: #fff1e8;
  color: #a94f27;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.25;
}

.opening-countdown {
  display: inline-block;
  margin: 18px 0 10px;
  padding: 7px 12px;
  border-radius: 8px;
  background: #ffd45a;
  color: #153d5b;
  font-size: 15px;
  font-weight: 800;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  width: min(500px, 100%);
  margin: 18px 0 12px;
}

.status-item {
  display: flex;
  min-height: 67px;
  flex-direction: column;
  justify-content: center;
  padding: 9px 11px;
  border: 1px solid #ffffff26;
  border-radius: 10px;
  background: #ffffff0d;
}

.status-item small {
  margin-bottom: 4px;
  color: #b9ccd6;
  font-size: 12px;
  font-weight: 700;
}

.status-item strong {
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.15;
  white-space: nowrap;
}

.status-item.deadline-stat,
.status-item.target-stat,
.status-item.today-stat {
  border-color: transparent;
  box-shadow: 0 5px 16px #0002;
}

.status-item.deadline-stat {
  background: #f1a33b;
  color: #2f3d47;
}

.status-item.target-stat {
  background: #e96759;
  color: #fff;
}

.status-item.today-stat {
  background: #55ad79;
  color: #fff;
}

.status-item.today-stat strong {
  font-size: 28px;
}

.status-item.deadline-stat small,
.status-item.target-stat small,
.status-item.today-stat small {
  color: inherit;
  opacity: .8;
}

.deadline-summary {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}

.deadline-summary strong {
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  border-radius: 10px;
  background: #fff;
  color: #153d5b;
  font-size: 22px;
  line-height: 1;
  box-shadow: 0 5px 16px #0002;
}

.deadline-summary span {
  color: #ffd45a;
  font-size: 13px;
  font-weight: 700;
}

.count-line .remaining-inline {
  margin-left: auto;
  padding: 7px 10px;
  border-radius: 8px;
  background: #eef3f5;
  color: #536d7a;
  font-size: 14px;
  white-space: nowrap;
}

.pace-note {
  margin: -4px 0 10px;
  color: #d5e1e8;
  font-size: 12px;
  font-weight: 700;
}

.mini-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(34px, 1fr));
  gap: 4px;
  width: min(430px, 100%);
  margin-bottom: 18px;
}

.calendar-day {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  min-height: 50px;
  padding: 7px 3px;
  border: 1px solid #ffffff26;
  border-radius: 7px;
  background: #ffffff0d;
}

.calendar-day i {
  position: absolute;
  left: 4px;
  bottom: 2px;
  color: #8fe2b4;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
}

.calendar-day.today i {
  color: #153d5b;
}

.calendar-day small {
  color: #a9bdc9;
  font-size: 9px;
}

.calendar-day b {
  font-size: 15px;
}

.calendar-day.weekend:not(.today):not(.deadline) b {
  color: #ffd2c8;
}

.calendar-day.past {
  opacity: .3;
}

.calendar-day.today {
  border-color: #ffd45a;
  background: #ffd45a;
  color: #153d5b;
  box-shadow: 0 0 0 2px #ffd45a30;
}

.calendar-day.today small {
  color: #153d5b;
}

.calendar-day.deadline {
  border-color: #ff8c74;
  background: #df6048;
}

.calendar-day.extension {
  border-style: dashed;
  background: #ffffff08;
}

.calendar-day em {
  position: absolute;
  right: 2px;
  bottom: 1px;
  font-size: 7px;
  font-style: normal;
  font-weight: 800;
}

.mini-calendar + .sync {
  display: flex;
  width: fit-content;
}

.reward-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 13px 0 9px;
  padding: 11px 12px;
  border-radius: 10px;
  background: #fff6d6;
  color: #6d5411;
}

.reward-line strong {
  flex: 0 0 auto;
  color: #d48b00;
  font-size: 25px;
}

.reward-line span {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.list-options {
  max-width: 1040px;
  margin: 0 auto 14px;
}

.list-options label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid #ddd8cb;
  border-radius: 12px;
  background: #fffdf8;
  cursor: pointer;
}

.list-options input {
  position: absolute;
  opacity: 0;
}

.list-options .switch {
  position: relative;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: #c9d0d1;
  transition: .2s;
}

.list-options .switch::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 3px;
  left: 3px;
  border-radius: 50%;
  background: #fff;
  transition: .2s;
}

.list-options input:checked + .switch {
  background: #477fd0;
}

.list-options input:checked + .switch::after {
  transform: translateX(16px);
}

.list-options label > span:last-child {
  display: flex;
  flex-direction: column;
}

.list-options b {
  font-size: 13px;
}

.list-options small {
  margin-top: 2px;
  color: #6a7b8c;
  font-size: 10px;
}

@media (max-width: 720px) {
  .status-strip {
    width: 100%;
    margin-top: 16px;
  }

  .status-item {
    min-height: 62px;
    padding: 8px 6px;
    text-align: center;
  }

  .status-item strong {
    font-size: 17px;
  }

  .status-item.today-stat strong {
    font-size: 23px;
  }

  .status-item small {
    font-size: 11px;
  }

  .list-options {
    margin: 0 12px 12px;
  }

  .list-options label {
    display: flex;
    width: 100%;
  }

  .mini-calendar {
    width: 100%;
  }

  .deadline-summary {
    justify-content: space-between;
  }

  .subject-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 7px;
    overflow: visible;
  }

  .subject-tabs button,
  .subject-tabs .logout {
    min-width: 0;
    margin-left: 0;
    padding: 8px 3px;
    text-align: center;
    font-size: 12px;
  }
}
