.academic-year-streak-view-row[hidden],
.academic-year-streak-intro[hidden],
.academic-year-streak-unavailable-message[hidden] {
  display: none !important;
}

.academic-year-streak-view-row {
  width: 100%;
  min-height: 26px;
  padding: 3px 5px 1px;
  border-top: 1px solid rgba(44, 62, 80, 0.12);
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  color: #1f2a36;
  line-height: 1.08;
}

.academic-year-streak-view-info {
  appearance: none;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #2f8c5a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
}

.academic-year-streak-view-info:hover,
.academic-year-streak-view-info:focus-visible {
  background: rgba(47, 140, 90, 0.12);
}

.academic-year-streak-view-info:focus-visible,
.academic-year-streak-segment:focus-visible,
.academic-year-streak-intro__close:focus-visible,
.academic-year-streak-intro__confirm:focus-visible {
  outline: 2px solid rgba(255, 185, 62, 0.85);
  outline-offset: 1px;
}

.academic-year-streak-view-label {
  min-width: 0;
  font-size: 0.74rem;
  font-weight: 700;
  color: #44515f;
  text-align: left;
}

.academic-year-streak-segments {
  display: inline-grid;
  grid-template-columns: auto auto;
  padding: 2px;
  border: 1px solid rgba(68, 81, 95, 0.24);
  border-radius: 7px;
  background: #eef1f4;
  gap: 1px;
}

.academic-year-streak-segment {
  appearance: none;
  min-height: 20px;
  padding: 2px 5px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #536170;
  font: inherit;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.academic-year-streak-segment.is-selected {
  background: #ffb93e;
  color: #1f2a36;
  box-shadow: 0 1px 3px rgba(31, 42, 54, 0.18);
}

.academic-year-streak-segment.is-unavailable {
  color: #7b8793;
  background: rgba(83, 97, 112, 0.08);
  cursor: not-allowed;
  opacity: 0.78;
}

.academic-year-streak-unavailable-message {
  grid-column: 1 / -1;
  margin: 1px 0 0;
  color: #8a5a00;
  font-size: 0.67rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: right;
}

.academic-year-streak-intro {
  position: fixed;
  left: 50%;
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 15000;
  width: min(92vw, 470px);
  transform: translateX(-50%);
  padding: 18px 48px 16px 18px;
  border: 1px solid rgba(47, 140, 90, 0.35);
  border-left: 5px solid #2f8c5a;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(31, 42, 54, 0.24);
  color: #25313f;
  text-align: left;
}

.academic-year-streak-intro h3 {
  margin: 0 0 10px;
  color: #1f2a36;
  font-size: 1.05rem;
  line-height: 1.25;
}

.academic-year-streak-intro p {
  margin: 0 0 7px;
  color: #44515f;
  font-size: 0.86rem;
  line-height: 1.4;
}

.academic-year-streak-intro__close {
  appearance: none;
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(31, 42, 54, 0.08);
  color: #44515f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.academic-year-streak-intro__confirm {
  appearance: none;
  margin-top: 5px;
  padding: 7px 14px;
  border: 1px solid #217247;
  border-radius: 7px;
  background: #2f8c5a;
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.academic-year-streak-intro__confirm:hover,
.academic-year-streak-intro__confirm:focus-visible {
  background: #217247;
}

@media (max-width: 600px) {
  .academic-year-streak-intro {
    bottom: max(12px, env(safe-area-inset-bottom));
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    overflow: auto;
  }
}
