/* ============================================================
   LIVE DEVELOPER STATS
   ============================================================ */


/* ============================================================
   WORKSPACE
   ============================================================ */

.stats-page {
  width: 100%;
  min-height: calc(100vh - 46px);

  padding: 1.6rem 1.1rem 3rem;

  display: flex;
  align-items: flex-start;
  justify-content: center;
}


.stats-terminal {
  width: min(1280px, 94vw);

  background: rgba(30, 30, 46, .92);

  border: 1px solid var(--border-strong);
  border-radius: 12px;

  overflow: hidden;

  box-shadow:
    0 24px 60px -20px rgba(0, 0, 0, .7),
    0 0 0 1px rgba(0, 0, 0, .2);
}


.stats-terminal > .term-titlebar {
  display: grid;

  grid-template-columns:
    1fr
    auto
    1fr;

  align-items: center;

  gap: .5rem;

  padding: .6rem .9rem;

  background: var(--mantle);

  border-bottom:
    1px solid
    var(--border);
}


.stats-terminal > .term-body {
  padding: 0;
  overflow: visible;
}


.stats-shell {
  width: 100%;
  min-width: 0;

  padding: 1.25rem;
}


/* ============================================================
   HEADER
   ============================================================ */

.stats-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 1rem;

  margin-bottom: 1.25rem;
  padding-bottom: 1rem;

  border-bottom:
    1px solid
    rgba(205, 214, 244, .07);
}


.stats-heading {
  min-width: 0;
}


.stats-eyebrow {
  margin: 0 0 .35rem;

  color: var(--overlay);

  font-family:
    var(--mono);

  font-size: .72rem;
  font-weight: 700;

  text-transform: uppercase;
  letter-spacing: .12em;
}


.stats-heading h1 {
  margin: 0;

  color: var(--lavender);

  font-family:
    var(--mono);

  font-size:
    clamp(
      1.4rem,
      3vw,
      2rem
    );

  font-weight: 800;

  line-height: 1.1;

  letter-spacing: -.04em;
}


.stats-heading p {
  margin: .4rem 0 0;

  color: var(--subtext);

  font-size: .82rem;
}


.stats-actions {
  display: flex;
  align-items: center;

  gap: .7rem;

  flex-shrink: 0;
}


/* ============================================================
   GLOBAL STATUS
   ============================================================ */

.stats-status {
  display: inline-flex;
  align-items: center;

  gap: .4rem;

  color: var(--overlay);

  font-family:
    var(--mono);

  font-size: .72rem;

  white-space: nowrap;
}


.stats-status-dot {
  width: 7px;
  height: 7px;

  flex-shrink: 0;

  border-radius: 50%;

  background:
    var(--overlay);
}


.stats-status.live .stats-status-dot {
  background:
    var(--green);
}


.stats-status.loading .stats-status-dot {
  background:
    var(--yellow);

  animation:
    statsPulse
    1.1s
    ease-in-out
    infinite;
}


.stats-status.error .stats-status-dot {
  background:
    var(--red);
}


@keyframes statsPulse {

  0%,
  100% {
    opacity: .3;
  }

  50% {
    opacity: 1;
  }

}


/* ============================================================
   REFRESH
   ============================================================ */

.stats-refresh {
  border:
    1px solid
    rgba(205, 214, 244, .1);

  background:
    rgba(205, 214, 244, .035);

  color:
    var(--subtext);

  padding:
    .45rem .7rem;

  border-radius: 7px;

  font-family:
    var(--mono);

  font-size: .72rem;

  cursor: pointer;

  transition:
    background .15s ease,
    border-color .15s ease,
    color .15s ease;
}


.stats-refresh:hover {
  background:
    rgba(180, 190, 254, .08);

  border-color:
    rgba(180, 190, 254, .22);

  color:
    var(--lavender);
}


.stats-refresh:focus-visible {
  outline:
    2px solid
    var(--lavender);

  outline-offset: 2px;
}


.stats-refresh:disabled {
  opacity: .5;
  cursor: wait;
}


/* ============================================================
   CARDS GRID
   ============================================================ */
/* Dashboard layout */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.stats-grid > .stats-card {
  width: 100%;
  min-width: 0;
  align-self: start;
}

/* Don't reserve a giant block while data loads */
.stats-placeholder {
  min-height: 140px;
}

/* Keep content from forcing cards wider */
.stats-card,
.stats-card * {
  min-width: 0;
}

@media (max-width: 760px) {
  .stats-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* ============================================================
   CARD
   ============================================================ */

.stats-card {
  width: 100%;
  min-width: 0;
  max-width: 100%;

  padding: 1rem;

  overflow: hidden;

  background:
    rgba(24, 24, 37, .58);

  border:
    1px solid
    rgba(205, 214, 244, .08);

  border-radius: 12px;

  box-shadow:
    inset
    0 1px 0
    rgba(255, 255, 255, .015),

    0 8px 28px
    rgba(0, 0, 0, .08);

  transition:
    border-color .15s ease,
    background .15s ease;
}


.stats-card:hover {
  border-color:
    rgba(205, 214, 244, .12);

  background:
    rgba(24, 24, 37, .65);
}


.stats-card.is-error {
  border-color:
    rgba(243, 139, 168, .18);
}


.stats-card-header,
.stats-profile,
.stats-metrics,
.stats-card-footer,
.stats-primary,
.rating-block,
.github-contrib,
.leetcode-activity,
.cf-rating-chart,
.stats-subsection {
  min-width: 0;
  max-width: 100%;
}


.stats-profile-copy,
.stats-service-copy,
.stats-heading,
.rating-main {
  min-width: 0;
}


/* ============================================================
   SERVICE HEADER
   ============================================================ */

.stats-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: .75rem;

  margin-bottom: 1rem;
}


.stats-service {
  display: flex;
  align-items: center;

  gap: .65rem;

  min-width: 0;
}


.stats-service-mark {
  width: 34px;
  height: 34px;

  flex-shrink: 0;

  display: grid;
  place-items: center;

  background:
    rgba(180, 190, 254, .055);

  border:
    1px solid
    rgba(205, 214, 244, .09);

  border-radius: 9px;

  color:
    var(--lavender);

  font-family:
    var(--mono);

  font-size: .76rem;
  font-weight: 800;
}


.stats-service-copy {
  min-width: 0;
}


.stats-service-name {
  color:
    var(--text);

  font-family:
    var(--mono);

  font-size: .88rem;
  font-weight: 800;
}


.stats-service-user {
  margin-top: .12rem;

  color:
    var(--overlay);

  font-family:
    var(--mono);

  font-size: .67rem;

  white-space: nowrap;

  overflow: hidden;

  text-overflow: ellipsis;
}


/* ============================================================
   ONLINE STATUS
   ============================================================ */

.stats-online {
  display: inline-flex;
  align-items: center;

  gap: .3rem;

  flex-shrink: 0;

  color:
    var(--green);

  font-family:
    var(--mono);

  font-size: .66rem;
  font-weight: 700;

  white-space: nowrap;
}


.stats-online::before {
  content: "";

  width: 6px;
  height: 6px;

  border-radius: 50%;

  background:
    currentColor;
}


.stats-online.stats-offline {
  color:
    var(--overlay);
}


/* ============================================================
   PROFILE
   ============================================================ */

.stats-profile {
  display: flex;
  align-items: center;

  gap: .7rem;

  margin-bottom: .9rem;
}


.stats-avatar {
  width: 48px;
  height: 48px;

  flex-shrink: 0;

  border-radius: 11px;

  object-fit: cover;

  background:
    var(--surface0);

  border:
    1px solid
    rgba(205, 214, 244, .1);

  box-shadow:
    0 4px 14px
    rgba(0, 0, 0, .22);
}


.stats-avatar-fallback {
  display: grid;
  place-items: center;

  color:
    var(--lavender);

  font-family:
    var(--mono);

  font-size: .78rem;
  font-weight: 800;
}


.stats-profile-copy {
  min-width: 0;
}


.stats-profile-name {
  color:
    var(--text);

  font-size: .88rem;
  font-weight: 700;

  white-space: nowrap;

  overflow: hidden;

  text-overflow: ellipsis;
}


.stats-profile-link {
  display: block;

  max-width: 100%;

  margin-top: .12rem;

  color:
    var(--lavender);

  font-family:
    var(--mono);

  font-size: .65rem;

  text-decoration: none;

  overflow-wrap: anywhere;
}


.stats-profile-link:hover {
  color:
    var(--mauve);

  text-decoration:
    underline;
}


/* ============================================================
   METRICS
   ============================================================ */

.stats-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .55rem;
}

.stats-metric {
  min-width: 0;
  padding: .68rem .45rem;
  text-align: center;
}

.stats-metric-label {
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: .6rem;
}

.stats-metric-value {
  font-size: .96rem;
}


/* ============================================================
   PRIMARY METRIC
   ============================================================ */

.stats-primary {
  margin-bottom: .65rem;

  padding: .8rem;

  border:
    1px solid
    rgba(205, 214, 244, .05);

  border-radius: 9px;

  background:
    rgba(205, 214, 244, .025);
}


.stats-primary-value {
  display: block;

  margin-top: .15rem;

  color:
    var(--mauve);

  font-family:
    var(--mono);

  font-size: 1.7rem;
  font-weight: 800;

  line-height: 1;
}


/* ============================================================
   DIFFICULTY
   ============================================================ */

.difficulty-row {
  display: grid;

  grid-template-columns:
    repeat(
      3,
      minmax(
        0,
        1fr
      )
    );

  gap: .5rem;

  margin-bottom: .8rem;
}


.difficulty {
  min-width: 0;

  padding: .62rem .55rem;

  overflow: hidden;

  border-radius: 8px;

  background:
    rgba(205, 214, 244, .025);

  border:
    1px solid
    rgba(205, 214, 244, .045);
}


.difficulty.easy {
  border-color:
    rgba(166, 227, 161, .12);
}


.difficulty.medium {
  border-color:
    rgba(249, 226, 175, .12);
}


.difficulty.hard {
  border-color:
    rgba(243, 139, 168, .12);
}


.difficulty-label {
  display: block;

  margin-bottom: .2rem;

  color:
    var(--overlay);

  font-size: .6rem;

  text-transform:
    uppercase;
}


.difficulty-value {
  display: block;

  color:
    var(--text);

  font-family:
    var(--mono);

  font-size: .94rem;
  font-weight: 800;
}


/* ============================================================
   GITHUB HEATMAP
   ============================================================ */

.github-contrib {
  margin-top: 1rem;
}


.activity-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: .65rem;

  margin-bottom: .45rem;

  color:
    var(--overlay);

  font-family:
    var(--mono);

  font-size: .64rem;
}


.github-heatmap-wrap,
.leetcode-heatmap-wrap {
  width: 100%;
  max-width: 100%;

  overflow-x: auto;
  overflow-y: hidden;

  padding-bottom: .3rem;
}


.github-heatmap,
.leetcode-heatmap {
  display: grid;

  grid-auto-flow: column;

  grid-template-rows:
    repeat(
      7,
      10px
    );

  grid-auto-columns:
    10px;

  gap: 3px;

  width: max-content;

  min-width: 100%;
}


.github-day,
.leetcode-day {
  width: 10px;
  height: 10px;

  border-radius: 2px;

  background:
    rgba(
      108,
      112,
      134,
      .17
    );

  outline:
    1px solid
    rgba(
      205,
      214,
      244,
      .025
    );
}


.github-day.spacer,
.leetcode-day.spacer {
  background:
    transparent;

  outline:
    none;
}


/* GitHub */

.github-day.level-1 {
  background:
    rgba(
      166,
      227,
      161,
      .25
    );
}


.github-day.level-2 {
  background:
    rgba(
      166,
      227,
      161,
      .42
    );
}


.github-day.level-3 {
  background:
    rgba(
      166,
      227,
      161,
      .66
    );
}


.github-day.level-4 {
  background:
    rgba(
      166,
      227,
      161,
      .95
    );
}


/* ============================================================
   LEETCODE ACTIVITY
   ============================================================ */

.leetcode-activity {
  margin-top: 1rem;
}


.activity-stats {
  display: flex;
  flex-wrap: wrap;

  gap: .75rem;

  margin-bottom: .55rem;

  color:
    var(--overlay);

  font-family:
    var(--mono);

  font-size: .62rem;
}


.activity-stats b {
  color:
    var(--subtext);
}


/* LeetCode */

.leetcode-day.level-1 {
  background:
    rgba(
      137,
      180,
      250,
      .25
    );
}


.leetcode-day.level-2 {
  background:
    rgba(
      137,
      180,
      250,
      .43
    );
}


.leetcode-day.level-3 {
  background:
    rgba(
      137,
      180,
      250,
      .66
    );
}


.leetcode-day.level-4 {
  background:
    rgba(
      137,
      180,
      250,
      .95
    );
}


/* ============================================================
   RATING
   ============================================================ */

.rating-block {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: .8rem;

  margin-bottom: .85rem;

  padding: .8rem;

  background:
    rgba(205, 214, 244, .025);

  border:
    1px solid
    rgba(205, 214, 244, .055);

  border-radius: 9px;
}


.rating-main {
  min-width: 0;
}


.rating-label {
  display: block;

  color:
    var(--overlay);

  font-size: .62rem;

  text-transform:
    uppercase;

  letter-spacing: .06em;
}


.rating-value {
  display: block;

  margin-top: .18rem;

  color:
    var(--mauve);

  font-family:
    var(--mono);

  font-size: 1.7rem;
  font-weight: 800;

  line-height: 1;
}


.rating-rank {
  flex-shrink: 0;

  color:
    var(--text);

  font-family:
    var(--mono);

  font-size: .7rem;

  text-align: right;

  text-transform:
    lowercase;
}


.rating-rank span {
  display: block;

  margin-top: .25rem;

  color:
    var(--overlay);

  font-size: .62rem;
}


/* ============================================================
   CONTEST
   ============================================================ */

.stats-subsection {
  margin-top: .95rem;
}


.stats-subsection-title {
  margin-bottom: .4rem;

  color:
    var(--overlay);

  font-family:
    var(--mono);

  font-size: .62rem;

  text-transform:
    uppercase;

  letter-spacing: .07em;
}


.contest-line {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: .7rem;

  padding: .55rem 0;

  border-bottom:
    1px solid
    rgba(205, 214, 244, .045);
}


.contest-name {
  min-width: 0;

  color:
    var(--subtext);

  font-size: .7rem;

  white-space: nowrap;

  overflow: hidden;

  text-overflow: ellipsis;
}


.contest-value {
  flex-shrink: 0;

  color:
    var(--text);

  font-family:
    var(--mono);

  font-size: .7rem;
  font-weight: 800;
}


.contest-value.positive {
  color:
    var(--green);
}


.contest-value.negative {
  color:
    var(--red);
}


/* ============================================================
   CODEFORCES GRAPH
   ============================================================ */

.cf-rating-chart {
  margin-top: 1rem;
}


.cf-chart {
  width: 100%;

  padding:
    .65rem .55rem .35rem;

  background:
    rgba(205, 214, 244, .025);

  border:
    1px solid
    rgba(205, 214, 244, .045);

  border-radius: 9px;
}


.cf-chart svg {
  display: block;

  width: 100%;
  height: 150px;

  overflow:
    visible;
}


.cf-chart-line {
  fill: none;

  stroke:
    var(--mauve);

  stroke-width: 2;

  stroke-linecap:
    round;

  stroke-linejoin:
    round;

  vector-effect:
    non-scaling-stroke;
}


.cf-chart circle {
  fill:
    var(--lavender);

  stroke:
    var(--mauve);

  stroke-width:
    1;

  vector-effect:
    non-scaling-stroke;
}


.cf-chart-axis {
  stroke:
    rgba(
      205,
      214,
      244,
      .09
    );

  stroke-width:
    1;

  vector-effect:
    non-scaling-stroke;
}


.cf-chart-grid {
  stroke:
    rgba(
      205,
      214,
      244,
      .035
    );

  stroke-width:
    1;

  stroke-dasharray:
    3 5;

  vector-effect:
    non-scaling-stroke;
}


.cf-chart-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding:
    .15rem .1rem 0;

  color:
    var(--overlay);

  font-family:
    var(--mono);

  font-size: .58rem;
}


.chart-empty {
  display: grid;
  place-items: center;

  min-height: 120px;

  color:
    var(--overlay);

  font-family:
    var(--mono);

  font-size: .65rem;
}


/* ============================================================
   FOOTER
   ============================================================ */

.stats-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: .75rem;

  margin-top: 1rem;

  padding-top: .75rem;

  border-top:
    1px solid
    rgba(
      205,
      214,
      244,
      .055
    );
}


.stats-updated {
  min-width: 0;

  color:
    var(--overlay);

  font-family:
    var(--mono);

  font-size: .6rem;

  white-space: nowrap;

  overflow: hidden;

  text-overflow: ellipsis;
}


.stats-open {
  flex-shrink: 0;

  color:
    var(--lavender);

  font-family:
    var(--mono);

  font-size: .62rem;

  text-decoration: none;
}


.stats-open:hover {
  color:
    var(--mauve);

  text-decoration:
    underline;
}


/* ============================================================
   LOADING / ERROR
   ============================================================ */

.stats-placeholder {
  min-height: 260px;

  display: grid;
  place-items: center;

  color:
    var(--overlay);

  font-family:
    var(--mono);

  font-size: .7rem;

  text-align: center;
}


.stats-placeholder-inner {
  display: flex;
  flex-direction: column;

  align-items: center;

  gap: .2rem;
}


.stats-placeholder strong {
  color:
    var(--subtext);

  font-size: .72rem;
}


/* ============================================================
   WORKSPACE FOOTER
   ============================================================ */

.stats-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 1rem;

  margin-top: 1rem;

  padding-top: .85rem;

  border-top:
    1px solid
    rgba(
      205,
      214,
      244,
      .055
    );

  color:
    var(--overlay);

  font-family:
    var(--mono);

  font-size: .62rem;
}


.stats-command {
  color:
    var(--subtext);

  text-align: right;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1050px) {

  .stats-grid {
    grid-template-columns:
      1fr;
  }


}


@media (max-width: 760px) {

  .stats-page {
    min-height: 0;

    padding:
      1.2rem
      .75rem
      2.5rem;
  }


  .stats-terminal {
    width: 100%;
  }


  .stats-shell {
    padding: .9rem;
  }


  .stats-header {
    align-items: flex-start;

    flex-direction: column;
  }


  .stats-actions {
    width: 100%;

    justify-content:
      space-between;
  }


  .stats-card {
    padding: .85rem;
  }


  .stats-footer {
    align-items: flex-start;

    flex-direction: column;
  }


  .stats-command {
    text-align: left;
  }

}


@media (max-width: 480px) {

  .stats-page {
    padding:
      .8rem
      .5rem
      2rem;
  }


  .stats-shell {
    padding: .75rem;
  }


  .stats-heading h1 {
    font-size: 1.25rem;
  }


  .stats-heading p {
    font-size: .72rem;
  }


  .stats-metrics {
    grid-template-columns:
      repeat(
        2,
        minmax(
          0,
          1fr
        )
      );
  }


  .difficulty-row {
    gap: .35rem;
  }


  .github-heatmap,
  .leetcode-heatmap {
    grid-template-rows:
      repeat(
        7,
        9px
      );

    grid-auto-columns:
      9px;

    gap: 2px;
  }


  .github-day,
  .leetcode-day {
    width: 9px;
    height: 9px;
  }


  .activity-stats {
    gap: .55rem;
  }


  .stats-avatar {
    width: 44px;
    height: 44px;
  }


  .rating-value {
    font-size: 1.5rem;
  }

}


@media (prefers-reduced-motion: reduce) {

  .stats-status.loading
  .stats-status-dot {
    animation: none;
  }

}


/* ============================================================
   WAKATIME
   ============================================================ */

.wakatime-content {
  min-width: 0;
}

.wakatime-activity {
  margin-top: 1rem;
}

.wakatime-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: .45rem;
  align-items: end;
  min-height: 100px;
}

.wakatime-day {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
}

.wakatime-bar-track {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: 72px;
  padding: 3px;
  overflow: hidden;
  border: 1px solid rgba(205, 214, 244, .045);
  border-radius: 6px;
  background: rgba(205, 214, 244, .025);
}

.wakatime-bar {
  display: block;
  width: 100%;
  min-height: 3px;
  border-radius: 3px;
  background: var(--mauve);
  box-shadow: 0 0 12px rgba(203, 166, 247, .12);
}

.wakatime-day-label {
  color: var(--overlay);
  font-family: var(--mono);
  font-size: .58rem;
  text-transform: lowercase;
}

.wakatime-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .48rem 0;
  border-bottom: 1px solid rgba(205, 214, 244, .045);
}

.wakatime-list-name {
  min-width: 0;
  overflow: hidden;
  color: var(--subtext);
  font-size: .7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wakatime-list-value {
  flex-shrink: 0;
  color: var(--text);
  font-family: var(--mono);
  font-size: .66rem;
  font-weight: 700;
}

.wakatime-empty {
  padding: .45rem 0;
  color: var(--overlay);
  font-family: var(--mono);
  font-size: .65rem;
}

@media (max-width: 480px) {
  .wakatime-week {
    gap: .25rem;
  }

  .wakatime-bar-track {
    height: 60px;
  }
}


/* ============================================================
   GITHUB REPOSITORIES + LANGUAGE BREAKDOWN
   ============================================================ */

.github-extra {
  margin-top: 1rem;
  min-width: 0;
}

.github-extra-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  margin-bottom: .45rem;
}

.github-extra-heading .stats-subsection-title {
  margin: 0;
}

.github-extra-note {
  color: var(--overlay);
  font-family: var(--mono);
  font-size: .58rem;
  text-align: right;
}


.github-repositories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .4rem;
}


.github-repo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-width: 0;
  padding: .65rem .7rem;
  border: 1px solid rgba(205, 214, 244, .055);
  border-radius: 8px;
  background: rgba(205, 214, 244, .02);
  color: inherit;
  text-decoration: none;
  transition: border-color .15s ease, background .15s ease;
}

.github-repo:hover {
  border-color: rgba(180, 190, 254, .2);
  background: rgba(180, 190, 254, .045);
}

.github-repo-main {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  min-width: 0;
}

.github-repo-main strong {
  overflow: hidden;
  color: var(--lavender);
  font-family: var(--mono);
  font-size: .68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.github-repo-main > span {
  overflow: hidden;
  color: var(--overlay);
  font-size: .62rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.github-repo-meta {
  display: flex;
  flex-shrink: 0;
  align-items: flex-end;
  flex-direction: column;
  gap: .2rem;
  color: var(--subtext);
  font-family: var(--mono);
  font-size: .58rem;
}

.github-repo-language {
  color: var(--mauve);
}

.github-language-heading {
  margin-top: .95rem;
}

.github-language-bar {
  display: flex;
  width: 100%;
  height: 8px;
  overflow: hidden;
  gap: 2px;
  border-radius: 999px;
  background: rgba(205, 214, 244, .06);
}

.github-language-segment {
  display: block;
  min-width: 2px;
  background: var(--mauve);
}

.github-language-segment:nth-child(6n + 2) { background: var(--blue); }
.github-language-segment:nth-child(6n + 3) { background: var(--green); }
.github-language-segment:nth-child(6n + 4) { background: var(--yellow); }
.github-language-segment:nth-child(6n + 5) { background: var(--peach); }
.github-language-segment:nth-child(6n + 6) { background: var(--teal); }

.github-language-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .35rem .75rem;
  margin-top: .65rem;
}

.github-language-row,
.github-language-name {
  display: flex;
  align-items: center;
  min-width: 0;
}

.github-language-row {
  justify-content: space-between;
  gap: .5rem;
  color: var(--subtext);
  font-size: .63rem;
}

.github-language-name {
  gap: .35rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.github-language-dot {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--mauve);
}

.github-language-row:nth-child(6n + 2) .github-language-dot { background: var(--blue); }
.github-language-row:nth-child(6n + 3) .github-language-dot { background: var(--green); }
.github-language-row:nth-child(6n + 4) .github-language-dot { background: var(--yellow); }
.github-language-row:nth-child(6n + 5) .github-language-dot { background: var(--peach); }
.github-language-row:nth-child(6n + 6) .github-language-dot { background: var(--teal); }

.github-language-percent {
  flex-shrink: 0;
  color: var(--overlay);
  font-family: var(--mono);
  font-size: .6rem;
}

@media (max-width: 480px) {
  .github-language-list {
    grid-template-columns: minmax(0, 1fr);
  }

  
.github-repositories {
  grid-template-columns: minmax(0, 1fr);
}


  .github-repo {
    align-items: flex-start;
  }
}
