:root {
  --hl-ink: #050f15;
  --hl-black: #080e12;
  --hl-navy: #001932;
  --hl-panel: #0a1f33;
  --hl-panel-strong: #0d2b45;
  --hl-line: rgba(136, 220, 255, 0.22);
  --hl-line-strong: rgba(136, 220, 255, 0.34);
  --hl-text: #f2fbfe;
  --hl-muted: #a9c4d6;
  --hl-soft: #88dcff;
  --hl-cyan: #00aeef;
  --hl-cyan-deep: #007aa7;
  --hl-cyan-soft: rgba(0, 174, 239, 0.14);
}

html {
  background: var(--hl-ink);
}

.palette-huberman {
  background: var(--hl-ink);
  color: var(--hl-text);
}

.palette-huberman .site-header {
  background: rgba(5, 15, 21, 0.94);
  border-color: var(--hl-line);
}

.palette-huberman .site-brand,
.palette-huberman .site-title {
  color: var(--hl-text);
}

.palette-huberman .site-nav-link {
  color: var(--hl-muted);
}

.palette-huberman .site-nav-link:hover,
.palette-huberman .site-nav-link-active,
.palette-huberman .site-accent {
  color: var(--hl-cyan);
}

.palette-huberman .site-hero {
  background: linear-gradient(180deg, var(--hl-ink) 0%, var(--hl-navy) 100%);
}

.palette-huberman .site-band {
  background: var(--hl-black);
}

.palette-huberman .site-band-alt {
  background: var(--hl-ink);
}

.palette-huberman .site-panel {
  background: var(--hl-panel);
  border-color: var(--hl-line);
}

.palette-huberman .site-panel-strong {
  background: var(--hl-panel-strong);
  border-color: var(--hl-line-strong);
}

.palette-huberman .site-copy {
  color: var(--hl-muted);
}

.palette-huberman .site-eyebrow {
  background: var(--hl-cyan-soft);
  border-color: var(--hl-line-strong);
  color: var(--hl-soft);
}

.palette-huberman .btn-cyan {
  background: var(--hl-cyan);
  border: 1px solid var(--hl-cyan);
  color: var(--hl-ink);
}

.palette-huberman .btn-cyan:hover {
  background: #66d4ff;
  border-color: #66d4ff;
}

.palette-huberman .btn-ghost,
.palette-huberman .social-pill {
  background: rgba(0, 174, 239, 0.06);
  border: 1px solid var(--hl-line);
  color: var(--hl-text);
}

.palette-huberman .btn-ghost:hover,
.palette-huberman .social-pill:hover {
  background: var(--hl-cyan-soft);
  border-color: var(--hl-cyan);
}

.palette-huberman .stat-card,
.palette-huberman .article-card {
  background: var(--hl-panel);
  border-color: var(--hl-line);
}

.palette-huberman .timeline-item {
  position: relative;
  border-color: var(--hl-line);
}

.palette-huberman .timeline-line {
  background: linear-gradient(
    180deg,
    rgba(0, 174, 239, 0.85),
    rgba(136, 220, 255, 0.2)
  );
}

.palette-huberman .timeline-dot {
  background: var(--hl-cyan);
  border-color: var(--hl-ink);
  box-shadow: 0 0 0 6px rgba(0, 174, 239, 0.14);
}

.palette-huberman .timeline-body {
  background: rgba(10, 31, 51, 0.58);
  border-color: var(--hl-line);
}

.timeline-media:not(:empty) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.timeline-media-link {
  min-width: 0;
  color: var(--hl-text);
  text-decoration: none;
}

.timeline-media-link:only-child {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 320px;
}

.timeline-media-link img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: #fff;
}

.timeline-media-link figcaption {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.5;
}

.timeline-media-link:hover figcaption {
  color: var(--hl-soft);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.timeline-media-link:focus-visible {
  outline: 2px solid var(--hl-cyan);
  outline-offset: 6px;
}

@media (max-width: 640px) {
  .timeline-media:not(:empty) {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.palette-huberman .article-card:hover {
  border-color: var(--hl-cyan);
}

.palette-huberman .blog-cover {
  background: var(--hl-panel);
  border-color: var(--hl-line);
}

.palette-huberman .blog-tag {
  background: var(--hl-cyan-soft);
  border: 1px solid var(--hl-line-strong);
  color: var(--hl-soft);
}

.palette-huberman .blog-post-content {
  color: var(--hl-text);
  font-size: 1.03rem;
  line-height: 1.85;
}

.palette-huberman .blog-post-content > * + * {
  margin-top: 1.25rem;
}

.palette-huberman .blog-post-content h1,
.palette-huberman .blog-post-content h2,
.palette-huberman .blog-post-content h3,
.palette-huberman .blog-post-content h4 {
  color: var(--hl-text);
  font-weight: 700;
  line-height: 1.25;
  margin-top: 2.25rem;
}

.palette-huberman .blog-post-content h1 {
  font-size: 2rem;
}

.palette-huberman .blog-post-content h2 {
  font-size: 1.7rem;
}

.palette-huberman .blog-post-content h3 {
  font-size: 1.35rem;
}

.palette-huberman .blog-post-content h4 {
  font-size: 1.15rem;
}

.palette-huberman .blog-post-content p,
.palette-huberman .blog-post-content li {
  color: var(--hl-muted);
}

.palette-huberman .blog-post-content strong {
  color: var(--hl-text);
  font-weight: 700;
}

.palette-huberman .blog-post-content a {
  color: var(--hl-soft);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(136, 220, 255, 0.45);
  text-underline-offset: 0.18em;
}

.palette-huberman .blog-post-content a:hover {
  color: var(--hl-cyan);
}

.palette-huberman .blog-post-content ul,
.palette-huberman .blog-post-content ol {
  color: var(--hl-muted);
  margin-left: 1.35rem;
  padding-left: 1.1rem;
}

.palette-huberman .blog-post-content ul {
  list-style: disc;
}

.palette-huberman .blog-post-content ol {
  list-style: decimal;
}

.palette-huberman .blog-post-content li + li {
  margin-top: 0.45rem;
}

.palette-huberman .blog-post-content blockquote {
  background: rgba(0, 174, 239, 0.08);
  border-left: 3px solid var(--hl-cyan);
  border-radius: 0 8px 8px 0;
  color: var(--hl-muted);
  padding: 1rem 1.25rem;
}

.palette-huberman .blog-post-content code {
  background: rgba(136, 220, 255, 0.1);
  border: 1px solid rgba(136, 220, 255, 0.15);
  border-radius: 5px;
  color: var(--hl-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
  padding: 0.12rem 0.32rem;
}

.palette-huberman .blog-post-content pre {
  background: #06131d;
  border: 1px solid var(--hl-line);
  border-radius: 8px;
  color: var(--hl-text);
  line-height: 1.6;
  overflow-x: auto;
  padding: 1rem;
}

.palette-huberman .blog-post-content pre code {
  background: transparent;
  border: 0;
  color: inherit;
  display: block;
  padding: 0;
}

.palette-huberman .blog-post-content figure,
.palette-huberman .blog-post-content .captioned-image-container,
.palette-huberman .blog-post-content .image2-inset {
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
}

.palette-huberman .blog-post-content img,
.palette-huberman .blog-post-content picture,
.palette-huberman .blog-post-content iframe {
  display: block;
  max-width: 100%;
}

.palette-huberman .blog-post-content img {
  border: 1px solid var(--hl-line);
  border-radius: 8px;
  height: auto;
  margin-left: auto;
  margin-right: auto;
}

.palette-huberman .blog-post-content iframe {
  background: var(--hl-panel);
  border: 1px solid var(--hl-line);
  border-radius: 8px;
  min-height: 320px;
  width: 100%;
}

.palette-huberman .blog-post-content hr {
  border: 0;
  border-top: 1px solid var(--hl-line);
  margin: 2rem 0;
}

.palette-huberman .blog-post-content .image-link-expand {
  display: none;
}

.palette-huberman .book-shelf {
  border-bottom: 1px solid var(--hl-line);
  padding-bottom: 3rem;
}

.palette-huberman .book-grid {
  display: grid;
  gap: 2.5rem 2rem;
  grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
}

.palette-huberman .book-card {
  position: relative;
}

.palette-huberman .book-cover-shell {
  aspect-ratio: 2 / 3;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent 14%),
    linear-gradient(145deg, var(--hl-panel-strong), var(--hl-black));
  border: 1px solid var(--hl-line-strong);
  border-radius: 8px 10px 10px 8px;
  box-shadow:
    0 22px 38px rgba(0, 0, 0, 0.45),
    10px 12px 24px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(136, 220, 255, 0.08);
  overflow: hidden;
  position: relative;
  transform: translateZ(0);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
  width: 100%;
}

.palette-huberman .book-cover-shell::before {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.04) 18%,
    transparent 36%
  );
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 2;
}

.palette-huberman .book-cover-shell::after {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.28), transparent);
  bottom: 0;
  content: "";
  left: 0;
  position: absolute;
  right: auto;
  top: 0;
  width: 8px;
  z-index: 3;
}

.palette-huberman .book-card:hover .book-cover-shell {
  border-color: var(--hl-cyan);
  box-shadow:
    0 24px 42px rgba(0, 0, 0, 0.5),
    0 0 28px rgba(0, 174, 239, 0.14);
  transform: translateY(-3px);
}

.palette-huberman .book-cover {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.palette-huberman .book-cover-fallback {
  align-items: center;
  color: var(--hl-text);
  display: flex;
  font-size: 0.85rem;
  font-weight: 700;
  height: 100%;
  justify-content: center;
  line-height: 1.35;
  padding: 1rem;
  text-align: center;
}

.palette-huberman .book-shelf .book-grid {
  position: relative;
}

.palette-huberman .book-shelf .book-grid::after {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(136, 220, 255, 0.18),
    transparent
  );
  bottom: -1rem;
  content: "";
  height: 1px;
  left: 0;
  position: absolute;
  right: 0;
}

.palette-huberman .book-status {
  border: 1px solid var(--hl-line-strong);
  color: var(--hl-text);
}

@media (min-width: 1024px) {
  .palette-huberman .book-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .palette-huberman .book-grid {
    gap: 2rem 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.palette-huberman .portrait-frame {
  background: var(--hl-black);
  border-color: var(--hl-line-strong);
}

.palette-huberman .site-input {
  background: var(--hl-black);
  border-color: var(--hl-line);
  color: var(--hl-text);
}

.palette-huberman .site-input:focus {
  border-color: var(--hl-cyan);
  box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.16);
}

/* Activity log */
.palette-huberman .activity-filter {
  background: rgba(0, 174, 239, 0.06);
  border: 1px solid var(--hl-line);
  color: var(--hl-muted);
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.palette-huberman .activity-filter:hover {
  background: var(--hl-cyan-soft);
  border-color: var(--hl-cyan);
  color: var(--hl-text);
}

.palette-huberman .activity-filter-active {
  background: var(--hl-cyan);
  border-color: var(--hl-cyan);
  box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.2);
  color: var(--hl-ink);
}

.palette-huberman .activity-filter-active .activity-filter-count {
  background: rgba(5, 15, 21, 0.16);
  color: var(--hl-ink);
}

.palette-huberman .activity-filter-count {
  background: rgba(136, 220, 255, 0.1);
  border-radius: 999px;
  color: inherit;
  font-size: 0.75em;
  font-weight: 700;
  min-width: 1.4rem;
  opacity: 0.9;
  padding: 0.1rem 0.4rem;
  text-align: center;
}

.palette-huberman .activity-platform-chip {
  align-items: center;
  background: rgba(0, 174, 239, 0.08);
  border: 1px solid var(--hl-line);
  border-radius: 999px;
  color: var(--hl-soft);
  display: inline-flex;
  font-size: 0.7rem;
  font-weight: 600;
  gap: 0.3rem;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 0.35rem 0.55rem;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    border-color 160ms ease,
    background 160ms ease;
}

.palette-huberman a.activity-platform-chip:hover {
  border-color: var(--hl-cyan);
}

.palette-huberman .activity-platform-chip[data-platform="linkedin"] {
  color: #7ec4ff;
  border-color: rgba(10, 102, 194, 0.45);
  background: rgba(10, 102, 194, 0.14);
}

.palette-huberman .activity-platform-chip[data-platform="github"] {
  color: #e8f4ff;
  border-color: rgba(242, 251, 254, 0.22);
  background: rgba(242, 251, 254, 0.06);
}

.palette-huberman .activity-platform-chip[data-platform="x"] {
  color: #f2fbfe;
  border-color: rgba(242, 251, 254, 0.24);
  background: rgba(255, 255, 255, 0.05);
}

.palette-huberman .activity-platform-chip[data-platform="instagram"] {
  color: #ffb3c7;
  border-color: rgba(228, 64, 95, 0.4);
  background: rgba(228, 64, 95, 0.12);
}

.palette-huberman .activity-platform-chip[data-platform="newsletter"] {
  color: var(--hl-soft);
  border-color: var(--hl-line-strong);
  background: var(--hl-cyan-soft);
}

.palette-huberman .activity-platform-chip[data-platform="youtube"] {
  color: #ffb4b4;
  border-color: rgba(255, 0, 0, 0.35);
  background: rgba(255, 0, 0, 0.1);
}

.palette-huberman .activity-type-badge {
  background: rgba(136, 220, 255, 0.08);
  border: 1px solid var(--hl-line);
  border-radius: 6px;
  color: var(--hl-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.5rem;
  text-transform: uppercase;
}

.palette-huberman .activity-type-badge[data-type="article"] {
  background: rgba(0, 174, 239, 0.14);
  border-color: rgba(0, 174, 239, 0.4);
  color: #66d4ff;
}

.palette-huberman .activity-type-badge[data-type="repo"] {
  background: rgba(63, 185, 80, 0.12);
  border-color: rgba(63, 185, 80, 0.4);
  color: #3fb950;
}

.palette-huberman .activity-type-badge[data-type="video"] {
  background: rgba(255, 77, 77, 0.12);
  border-color: rgba(255, 77, 77, 0.38);
  color: #ff8a8a;
}

.palette-huberman .activity-type-badge[data-type="post"] {
  background: rgba(167, 139, 250, 0.12);
  border-color: rgba(167, 139, 250, 0.38);
  color: #c4b5fd;
}

.palette-huberman .activity-type-badge[data-type="career"] {
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(59, 130, 246, 0.4);
  color: #93c5fd;
}

.palette-huberman .activity-type-badge[data-type="milestone"] {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.4);
  color: #fbbf24;
}

.palette-huberman .activity-filter[data-type="article"]:not(.activity-filter-active) {
  border-color: rgba(0, 174, 239, 0.35);
  color: #66d4ff;
}

.palette-huberman .activity-filter[data-type="repo"]:not(.activity-filter-active) {
  border-color: rgba(63, 185, 80, 0.35);
  color: #3fb950;
}

.palette-huberman .activity-filter[data-type="video"]:not(.activity-filter-active) {
  border-color: rgba(255, 77, 77, 0.35);
  color: #ff8a8a;
}

.palette-huberman .activity-filter[data-type="post"]:not(.activity-filter-active) {
  border-color: rgba(167, 139, 250, 0.35);
  color: #c4b5fd;
}

.palette-huberman .activity-filter[data-type="career"]:not(.activity-filter-active) {
  border-color: rgba(59, 130, 246, 0.35);
  color: #93c5fd;
}

.palette-huberman .activity-filter[data-type="milestone"]:not(.activity-filter-active) {
  border-color: rgba(251, 191, 36, 0.35);
  color: #fbbf24;
}

.palette-huberman .activity-crosspost-flag {
  background: linear-gradient(
    90deg,
    rgba(0, 174, 239, 0.16),
    rgba(136, 220, 255, 0.08)
  );
  border: 1px solid var(--hl-line-strong);
  border-radius: 999px;
  color: var(--hl-soft);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.55rem;
  text-transform: uppercase;
}

/* GitHub-style contribution chart */
.palette-huberman .contrib-shell {
  background:
    radial-gradient(circle at top right, rgba(0, 174, 239, 0.1), transparent 36%),
    linear-gradient(180deg, rgba(10, 31, 51, 0.98), rgba(8, 20, 32, 0.98));
  overflow: hidden;
  padding: 1.15rem 1.15rem 1.25rem;
}

.palette-huberman .contrib-layout {
  display: grid;
  gap: 1rem 1.25rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.palette-huberman .contrib-main {
  min-width: 0;
}

.palette-huberman .contrib-header {
  margin-bottom: 0.85rem;
}

.palette-huberman .contrib-total {
  color: var(--hl-text);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
}

.palette-huberman .contrib-total strong {
  color: var(--hl-text);
  font-weight: 700;
}

.palette-huberman .contrib-total-sub {
  color: var(--hl-muted);
  font-size: 0.82rem;
  font-weight: 400;
}

.palette-huberman .contrib-graph-wrap {
  margin: 0 -0.15rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
}

.palette-huberman .contrib-graph {
  min-width: calc(var(--contrib-grid-width) + var(--contrib-day-label) + 8px);
  padding: 0.15rem 0.15rem 0.25rem;
}

.palette-huberman .contrib-months {
  position: relative;
  margin-bottom: 0.2rem;
}

.palette-huberman .contrib-month-label {
  color: var(--hl-muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  position: absolute;
  top: 0;
  transform: translateX(0);
  white-space: nowrap;
}

.palette-huberman .contrib-body {
  position: relative;
}

.palette-huberman .contrib-days {
  left: 0;
  position: absolute;
  top: 0;
  width: var(--contrib-day-label);
}

.palette-huberman .contrib-day-label {
  color: var(--hl-muted);
  font-size: 0.62rem;
  font-weight: 600;
  height: var(--contrib-cell);
  left: 0;
  line-height: var(--contrib-cell);
  position: absolute;
  text-align: left;
  width: 100%;
}

.palette-huberman .contrib-day-label.is-spacer {
  visibility: hidden;
}

.palette-huberman .contrib-cells {
  position: absolute;
  top: 0;
}

.palette-huberman .contrib-cell {
  background: rgba(136, 220, 255, 0.07);
  border: 1px solid rgba(136, 220, 255, 0.08);
  border-radius: 2px;
  box-sizing: border-box;
  display: block;
  height: var(--contrib-cell, 11px);
  padding: 0;
  position: absolute;
  width: var(--contrib-cell, 11px);
}

.palette-huberman .contrib-cell.is-out {
  background: transparent;
  border-color: transparent;
}

.palette-huberman .contrib-cell.is-future {
  background: rgba(136, 220, 255, 0.03);
  border-color: rgba(136, 220, 255, 0.04);
}

.palette-huberman button.contrib-cell {
  cursor: pointer;
  transition:
    outline 120ms ease,
    transform 120ms ease;
}

.palette-huberman button.contrib-cell:hover,
.palette-huberman button.contrib-cell:focus-visible {
  outline: 1px solid rgba(242, 251, 254, 0.75);
  outline-offset: 1px;
  transform: scale(1.18);
  z-index: 2;
}

.palette-huberman .contrib-footer {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
  margin-top: 0.85rem;
}

.palette-huberman .contrib-hint {
  max-width: 34rem;
}

.palette-huberman .contrib-intensity {
  align-items: center;
  color: var(--hl-muted);
  display: flex;
  font-size: 0.68rem;
  gap: 0.28rem;
}

.palette-huberman .contrib-intensity .contrib-cell {
  position: static;
}

.palette-huberman .contrib-type-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0.75rem 0 0;
  border-top: 1px solid rgba(136, 220, 255, 0.12);
}

.palette-huberman .contrib-legend-item {
  align-items: center;
  display: inline-flex;
  gap: 0.35rem;
}

.palette-huberman .contrib-legend-swatch {
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  display: inline-block;
  height: 11px;
  width: 11px;
}

.palette-huberman .contrib-legend-label {
  color: var(--hl-soft);
  font-size: 0.72rem;
  font-weight: 600;
}

.palette-huberman .contrib-legend-count {
  color: var(--hl-muted);
  font-size: 0.68rem;
  font-weight: 600;
}

.palette-huberman .contrib-years {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  max-height: 16rem;
  overflow-y: auto;
  padding-top: 0.15rem;
}

.palette-huberman .contrib-year-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0.45rem;
  color: var(--hl-muted);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  min-width: 3.6rem;
  padding: 0.35rem 0.55rem;
  text-align: center;
  transition:
    background 140ms ease,
    border-color 140ms ease,
    color 140ms ease;
}

.palette-huberman .contrib-year-btn:hover {
  background: rgba(0, 174, 239, 0.08);
  border-color: rgba(0, 174, 239, 0.22);
  color: var(--hl-text);
}

.palette-huberman .contrib-year-btn.is-active {
  background: #3b82f6;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
  color: #f8fbff;
}

.palette-huberman .contrib-overview {
  border-top: 1px solid rgba(136, 220, 255, 0.12);
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  margin-top: 1.15rem;
  padding-top: 1.15rem;
}

.palette-huberman .contrib-overview-title {
  color: var(--hl-text);
  font-size: 0.95rem;
  font-weight: 700;
}

.palette-huberman .contrib-stats {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.9rem;
}

.palette-huberman .contrib-stat {
  align-items: center;
  display: grid;
  gap: 0.55rem;
  grid-template-columns: 0.7rem minmax(0, 1fr) auto;
}

.palette-huberman .contrib-stat-swatch {
  border-radius: 2px;
  height: 0.7rem;
  width: 0.7rem;
}

.palette-huberman .contrib-stat-label {
  color: var(--hl-muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.palette-huberman .contrib-stat-value {
  color: var(--hl-text);
  font-size: 0.8rem;
  font-weight: 700;
}

.palette-huberman .contrib-repos {
  margin-top: 1rem;
}

.palette-huberman .contrib-repos-label {
  color: var(--hl-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.palette-huberman .contrib-repo-list {
  color: var(--hl-muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.palette-huberman .contrib-repo-link {
  color: #7ec4ff;
  font-weight: 600;
  text-decoration: none;
}

.palette-huberman .contrib-repo-link:hover {
  color: var(--hl-cyan);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.palette-huberman .contrib-repo-sep {
  color: var(--hl-muted);
  margin-right: 0.15rem;
}

.palette-huberman .contrib-repo-more {
  color: var(--hl-muted);
  margin-left: 0.2rem;
}

.palette-huberman .contrib-bars {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.palette-huberman .contrib-bar-row {
  align-items: center;
  display: grid;
  gap: 0.55rem;
  grid-template-columns: 5.5rem minmax(0, 1fr) 1.5rem;
}

.palette-huberman .contrib-bar-label {
  color: var(--hl-muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.palette-huberman .contrib-bar-track {
  background: rgba(136, 220, 255, 0.08);
  border-radius: 999px;
  height: 0.4rem;
  overflow: hidden;
}

.palette-huberman .contrib-bar-fill {
  border-radius: inherit;
  height: 100%;
  min-width: 0.35rem;
}

.palette-huberman .contrib-bar-count {
  color: var(--hl-text);
  font-size: 0.72rem;
  font-weight: 700;
  text-align: right;
}

.palette-huberman .contrib-empty {
  color: var(--hl-muted);
}

@media (max-width: 900px) {
  .palette-huberman .contrib-layout {
    grid-template-columns: 1fr;
  }

  .palette-huberman .contrib-years {
    flex-direction: row;
    flex-wrap: wrap;
    max-height: none;
  }

  .palette-huberman .contrib-overview {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .palette-huberman .contrib-bar-row {
    grid-template-columns: 4.5rem minmax(0, 1fr) 1.35rem;
  }

  .palette-huberman .contrib-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

.palette-huberman .activity-card-title-link {
  color: inherit;
  text-decoration: none;
}

.palette-huberman .activity-card-title-link:hover {
  color: var(--hl-cyan);
}

.palette-huberman .activity-card:hover {
  border-color: var(--hl-cyan);
}

.palette-huberman .activity-link-row a,
.palette-huberman .activity-open-link {
  color: var(--hl-soft);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}

.palette-huberman .activity-link-row a:hover,
.palette-huberman .activity-open-link:hover {
  color: var(--hl-cyan);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.palette-huberman .activity-empty {
  background: rgba(10, 31, 51, 0.58);
  border: 1px dashed var(--hl-line);
  border-radius: 0.5rem;
  color: var(--hl-muted);
  padding: 2rem;
  text-align: center;
}
