.activity-page { max-width: 1120px; }
.activity-page .content { min-width: 0; }
.activity-page [aria-current="page"] { background: #f2f2f2; color: #222; }
@media (min-width: 900px) {
  .activity-page { padding-inline: 48px; }
}
figure { width: min(100%, 820px); min-width: 0; margin: 0 auto; }
#calendar {
  --day-size: 9px;
  --day-gap: 2px;
  display: flex;
  gap: var(--day-gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding: 26px 0 10px;
}
#calendar::-webkit-scrollbar { display: none; }
#calendar[hidden] { display: none; }
.week {
  flex: 0 0 var(--day-size);
  position: relative;
  display: grid;
  grid-template-columns: var(--day-size);
  grid-template-rows: repeat(7, var(--day-size));
  gap: var(--day-gap);
}
.month { position: absolute; bottom: calc(100% + 6px); white-space: nowrap; font-size: 12px; }
.day { width: var(--day-size); height: var(--day-size); border-radius: 2px; }
.level-0 { background: #ebebeb; }
.level-1 { background: #b38be9; }
.level-2 { background: #9765da; }
.level-3 { background: #7943c3; }
.level-4 { background: #572a99; }
figcaption { text-align: center; }

.activity-page .info-content {
  justify-content: flex-start;
  width: min(100%, 820px);
  margin-inline: auto;
  padding-block: clamp(24px, 7vh, 72px) 32px;
  text-align: left;
}
.info-content h1 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 24px; }
.info-content h2 { font-size: 16px; font-weight: 600; margin: 0; }
.info-row { display: flex; justify-content: space-between; align-items: center; min-height: 58px; border-bottom: 1px solid var(--border-light); }
#server-status { font-size: 13px; color: var(--text-muted); }
.info-row .school-status-wrap { margin: 0; }
.info-row .school-status-panel { left: auto; right: 0; transform: none; }
.usage h2 { margin: 24px 0 10px; }
@media (max-width: 900px), (pointer: coarse) {
  .info-row .school-status-panel { top: calc(100% + 6px); bottom: auto; }
}
