@media (prefers-color-scheme: dark) {
  :root {
    --color-calendar-graph-day-bg: #1a1a1a;
    --color-calendar-graph-day-L1-bg: #0d3a5c;
    --color-calendar-graph-day-L2-bg: #0e4c7a;
    --color-calendar-graph-day-L3-bg: #115d95;
    --color-calendar-graph-day-L4-bg: #1570b0;
    --color-calendar-graph-day-L5-bg: #1a85d0;
    --color-calendar-graph-day-L6-bg: #2196f3;
    --color-calendar-graph-day-L7-bg: #42a5f5;
    --color-calendar-graph-day-L8-bg: #64b5f6;
    --color-calendar-graph-day-L9-bg: #90caf9;
  }

  .calendar {
    border: 2px solid #fff;
  }

  .calendar-graph text.wday,
  .calendar-graph text.month {
    fill: #aaa;
  }

  .text-small {
    color: #767676;
  }

  .contrib-column {
    border-left: 2px solid #fff;
    border-top: 2px solid #fff;
  }

  .contrib-number {
    color: #2196f3;
  }

  .monospace {
    color: #000;
  }

  .monospace a {
    color: #1d75ab;
  }

  .left.text-muted {
    color: #767676;
  }

  .left.text-muted a {
    color: #4078c0;
  }

  .day-tooltip {
    color: #959da5;
    background: rgba(0, 0, 0, 0.85);
  }

  .day-tooltip strong {
    color: #dfe2e5;
  }

  .day-tooltip:after {
    border-top-color: rgba(0, 0, 0, 0.85);
  }

  text.ContributionCalendar-label {
    fill: #fff;
  }
}
@media (prefers-color-scheme: light) {
  :root {
    --color-calendar-graph-day-bg: #e7f4fe;
    --color-calendar-graph-day-L1-bg: #c6e8ff;
    --color-calendar-graph-day-L2-bg: #9dd3f8;
    --color-calendar-graph-day-L3-bg: #6ebdf5;
    --color-calendar-graph-day-L4-bg: #40a9f3;
    --color-calendar-graph-day-L5-bg: #2196f3;
    --color-calendar-graph-day-L6-bg: #1976d2;
    --color-calendar-graph-day-L7-bg: #1565c0;
    --color-calendar-graph-day-L8-bg: #0d47a1;
    --color-calendar-graph-day-L9-bg: #042a49;
  }

  .calendar {
    border: 2px solid #444;
  }

  .calendar-graph text.wday,
  .calendar-graph text.month {
    fill: #aaa;
  }

  .text-small {
    color: #767676;
  }

  .contrib-column {
    border-left: 2px solid #444;
    border-top: 2px solid #444;
  }

  .contrib-number {
    color: #2196f3;
  }

  .monospace {
    color: #000;
  }

  .monospace a {
    color: #1d75ab;
  }

  .left.text-muted {
    color: #767676;
  }
  .left.text-muted a {
    color: #4078c0;
  }

  .day-tooltip {
    color: #959da5;
    background: rgba(0, 0, 0, 0.85);
  }

  .day-tooltip strong {
    color: #dfe2e5;
  }

  .day-tooltip:after {
    border-top-color: rgba(0, 0, 0, 0.85);
  }

  text.ContributionCalendar-label {
    fill: #444;
  }
}

rect.ContributionCalendar-day[data-level="0"] {
  fill: var(--color-calendar-graph-day-bg);
}

rect.ContributionCalendar-day[data-level="1"] {
  fill: var(--color-calendar-graph-day-L1-bg);
}

rect.ContributionCalendar-day[data-level="2"] {
  fill: var(--color-calendar-graph-day-L2-bg);
}

rect.ContributionCalendar-day[data-level="3"] {
  fill: var(--color-calendar-graph-day-L3-bg);
}

rect.ContributionCalendar-day[data-level="4"] {
  fill: var(--color-calendar-graph-day-L4-bg);
}

rect.ContributionCalendar-day[data-level="5"] {
  fill: var(--color-calendar-graph-day-L5-bg);
}

rect.ContributionCalendar-day[data-level="6"] {
  fill: var(--color-calendar-graph-day-L6-bg);
}

rect.ContributionCalendar-day[data-level="7"] {
  fill: var(--color-calendar-graph-day-L7-bg);
}

rect.ContributionCalendar-day[data-level="8"] {
  fill: var(--color-calendar-graph-day-L8-bg);
}

rect.ContributionCalendar-day[data-level="9"] {
  fill: var(--color-calendar-graph-day-L9-bg);
}

.calendar {
  font-family: Helvetica, arial;
  min-height: 245px;
  text-align: center;
  margin-top: 0 auto;
  border-bottom-right-radius: 15px;
  border-bottom-left-radius: 15px;
}

.calendar .width-full > .float-left {
  display: none;
}

.calendar-graph {
  padding: 5px 0 0;
  text-align: center;
}

.calendar img.spinner {
  width: 70px;
  margin-top: 50px;
  min-height: 70px;
}

.calendar-graph text.wday,
.calendar-graph text.month {
  font-size: 10px;
}

.js-calendar-graph-svg {
  width: auto;
  max-width: 100%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.contrib-column {
  padding: 15px 15px;
  text-align: center;
  font-size: 11px;
}

.contrib-number {
  padding: 5px 5px;
  margin-top: 5px;
  font-weight: 300;
  line-height: 1.2em;
  font-size: 24px;
  display: block;
}

.contrib-legend {
  text-align: right;
  padding: 0 14px 10px 0;
  display: inline-block;
}

.contrib-legend .legend {
  display: inline-block;
  list-style: none;
  margin: 0 5px;
  position: relative;
  bottom: -1px;
  padding: 0;
}

.contrib-legend .legend li {
  display: inline-block;
  width: 10px;
  height: 10px;
}

.contrib-column-first {
  border-left: 0;
}

.contrib-footer {
  font-size: 11px;
  padding: 0 10px 12px;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
  height: 26px;
}

.table-column {
  display: table-cell;
  width: 1%;
  padding-right: 10px;
  padding-left: 10px;
  vertical-align: top;
}

.text-small {
  font-size: 12px;
}

text.ContributionCalendar-label {
  font-size: 11px;
}

.monospace {
  text-align: center;
  font-family: monospace;
}

.monospace a {
  text-decoration: none;
}

.left.text-muted {
  float: left;
  margin-left: 9px;
}

.left.text-muted a {
  text-decoration: none;
}

.left.text-muted a:hover,
.monospace a:hover {
  text-decoration: underline;
}

h2.f4.text-normal.mb-3 {
  display: none;
}

.float-left.text-gray {
  float: left;
}

.day-tooltip {
  white-space: nowrap;
  position: absolute;
  z-index: 99999;
  padding: 10px;
  font-size: 12px;
  text-align: center;
  display: none;
  pointer-events: none;
  border-radius: 15px;
}

.day-tooltip:after {
  position: absolute;
  bottom: -10px;
  left: 50%;
  width: 5px;
  height: 5px;
  box-sizing: border-box;
  margin: 0 0 0 -5px;
  content: " ";
  border: 5px solid transparent;
}

.day-tooltip.is-visible {
  display: block;
}

#user-activity-overview {
  display: none;
}

.loading {
  text-align: center;
  padding: 50px 20px;
  color: #767676;
  font-size: 14px;
}

.error {
  text-align: center;
  padding: 50px 20px;
  color: #d73a49;
  font-size: 14px;
}

.error p {
  margin: 10px 0;
}

.retry-button {
  background-color: #2196f3;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  margin: 15px 0;
  transition: background-color 0.3s;
}

.retry-button:hover {
  background-color: #1976d2;
}

.error-note {
  font-size: 12px;
  color: #767676;
  font-style: italic;
}

.calendar-graph {
  margin: 0 auto;
  max-width: 100%;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  overflow-y: hidden;
  position: relative;
  cursor: grab;
}

.calendar-graph:active {
  cursor: grabbing;
}


.js-calendar-graph-svg {
  display: block;
  margin: 0 auto;
  min-width: 100%;
  height: auto;
}


@media (max-width: 768px) {
  .calendar-graph {
    justify-content: flex-start;
    padding: 10px;
  }
  
  .js-calendar-graph-svg {
    min-width: 800px; 
    width: auto;
  }
}

@media (max-width: 480px) {
  .calendar-graph {
    padding: 5px;
  }
  
  .js-calendar-graph-svg {
    min-width: 600px;
  }
}

.calendar-graph text.month,
.calendar-graph text.wday {
  font-size: 10px;
  fill: #767676;
}

.calendar-graph text.month {
  font-weight: 600;
}

.calendar-graph text.wday {
  font-weight: 400;
}