.overview-switch {
  position: absolute; z-index: 3; bottom: 1rem; right: 4%;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem;
  width: min(22rem, 100% - var(--gutter) * 2);
}
.overview-switch .github svg { width: 1.125rem; height: 1.125rem; flex: none; }
.overview-switch .github { background: transparent; justify-content: center; width: 100%; gap: .55rem; padding-inline: 1rem; cursor: pointer; white-space: nowrap; }
.overview-switch .github:hover { background: #30223f; }
.overview-switch .github[aria-pressed="true"] { border-color: #af83ca; background: #422e57; box-shadow: inset 0 0 0 1px #9a69b827; color: #fff1ff; }
.citation-layout .citation-readout:not([data-floating]) { bottom: 4.2rem; }
.citation-layout[data-active-view="github"] canvas,
.citation-layout[data-active-view="github"] .citation-author-node,
.citation-layout[data-active-view="github"] .citation-detail,
.citation-layout[data-active-view="github"] .citation-leader { visibility: hidden; pointer-events: none; }
.github-field {
  --activity-muted: #c2b4d0;
  position: absolute; z-index: 2; right: 4%; width: 50%; top: 6%; bottom: 4.2rem;
  display: flex; flex-direction: column; justify-content: center; gap: .55rem;
  container-type: inline-size; min-width: 0; color: #f9f3ff;
}
.activity-stage { position: relative; flex: 0 1 auto; min-height: 0; }
.activity-summary { margin: 0 0 .65rem; display: flex; align-items: baseline; flex-wrap: wrap; gap: .15rem .65rem; }
.activity-summary h2 { font-size: 1.05rem; font-weight: 700; line-height: 1.2; }
.activity-summary p { color: var(--activity-muted); font-size: .76rem; }
.activity-scroll { overflow: auto; max-height: min(36vh, 19rem); scrollbar-width: thin; scrollbar-color: #69517b transparent; }
.activity-graph { min-width: 650px; }
.activity-row { display: grid; grid-template-columns: 9.5rem repeat(var(--activity-weeks, 53), minmax(0, 1fr)); align-items: center; gap: 2px; }
.activity-row-name {
  position: sticky; left: 0; z-index: 1; padding: 0 .38rem 0 0; overflow: hidden;
  overflow-wrap: anywhere; font-size: .78rem; line-height: 1.2; background: #101729;
}
.activity-months { padding-bottom: .25rem; color: #d9cce4; font-size: .72rem; }
.activity-months > span:not(.activity-row-name) { width: max-content; pointer-events: none; }
.activity-months .activity-row-name, .activity-totals .activity-row-name { align-self: stretch; }
.activity-totals { margin-bottom: .45rem; min-height: 2.35rem; border-bottom: 1px solid #cfb7f22e; }
.activity-repository { min-height: 1.36rem; }
.activity-cell, .activity-bar { width: 100%; min-width: 0; padding: 0; border: 0; border-radius: 2px; cursor: pointer; }
.activity-cell { height: .92rem; background: var(--commit-color); }
.activity-month-start { box-shadow: -2px 0 0 -1px #d1b9f340; }
.activity-bar { position: relative; height: 2.35rem; background: transparent; }
.activity-bar::after {
  content: ""; position: absolute; inset: auto 0 0; height: var(--bar-height);
  border-radius: 2px 2px 0 0; background: var(--commit-color);
}
.activity-graph button:is(:hover, :focus-visible, [data-active]) { outline: 1px solid #fff2ff; outline-offset: 0; }
.activity-leader { position: absolute; pointer-events: none; inset: 0; width: 100%; height: 100%; overflow: visible; }
.activity-leader path { fill: none; stroke: #e4baf6; stroke-width: 1.25; stroke-linejoin: round; filter: drop-shadow(0 0 2px #b783dcea); }
.activity-pane { position: absolute; z-index: 1; pointer-events: none; width: min(13.5rem, 84%); padding: .78rem; border: 1px solid #8e6ba8; border-left: 3px solid var(--repo-color); border-radius: .55rem; background: #241a32fa; box-shadow: 0 .45rem 1.5rem #08050da8; }
.activity-pane-pinned {
  position: static; width: 100%; margin-top: .45rem; padding: .38rem .65rem;
  display: grid; grid-template-columns: minmax(9rem, 1fr) minmax(11rem, 1.4fr); align-items: center; gap: .6rem;
  border-block: 0; border-inline-end: 0; box-shadow: none;
}
.activity-pane-pinned .activity-pane-breakdown { width: 100%; margin: 0; padding: 0; border: 0; }
.activity-pane-pinned .activity-pane-count { margin-bottom: 0; }
.activity-pane h3 { margin: .2rem 0; font-size: .94rem; overflow-wrap: anywhere; }
.activity-pane-date { color: var(--activity-muted); font-size: .73rem; }
.activity-pane-count { color: #fff3ff; font-size: .9rem; font-weight: 750; margin-block: .2rem; }
.activity-range {
  display: inline-flex; gap: .2rem; margin-bottom: .65rem; padding: .18rem;
  border: 1px solid #8e6ba86b; border-radius: .45rem; background: #100c1e9c;
}
.activity-range button {
  min-height: 2.25rem; padding: .25rem .65rem; border: 0; border-radius: .28rem;
  background: transparent; color: #ded0ed; font: inherit; font-size: .8rem; cursor: pointer;
}
.activity-range button[aria-pressed="true"] { background: #422e57; color: #fff3ff; }
@media (max-width: 760px), (max-width: 1024px) and (orientation: portrait) {
  .overview-switch { right: 0; width: min(22rem, 100%); }
  .citation-layout[data-active-view="github"] .overview-visuals {
    display: flex; flex-direction: column; justify-content: center; padding: 1.5rem 0 4.2rem;
  }
  .github-field { position: relative; inset: auto; width: 100%; }
  .activity-scroll { max-height: min(45vh, 21rem); }
}
@media (max-width: 600px) {
  .activity-graph.activity-compact { min-width: 0; }
  .activity-compact .activity-row {
    grid-template-columns: min(7rem, 28%) repeat(var(--activity-weeks), minmax(0, 1fr));
  }
  .activity-compact .activity-repository { min-height: 1.75rem; }
  .activity-compact .activity-cell { height: 1.4rem; }
}
@media (max-width: 540px) {
  .activity-pane-pinned { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: .3rem; }
  .activity-pane-pinned .activity-pane-breakdown { font-size: .6rem; }
  .overview-switch .github { gap: .4rem; min-height: 2.3rem; padding-inline: .5rem; font-size: .8rem; }
}
.activity-pane-breakdown {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .1rem;
  margin: .45rem 0 0; padding-top: .4rem; border-top: 1px solid #775b89;
  color: #ead8f3; text-align: center; font-size: .7rem;
}
.activity-pane-breakdown dd { margin: .2rem 0 0; font-weight: 750; font-variant-numeric: tabular-nums; }
.activity-animate :is(.activity-cell, .activity-bar) { animation: calendar-reveal .45s ease-out backwards; animation-delay: var(--reveal-delay); }
@keyframes calendar-reveal { from { opacity: .16; } }
@media (prefers-reduced-motion: reduce) { .activity-animate :is(.activity-cell, .activity-bar) { animation: none; } }
