:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --ink: #17202a;
  --ink-strong: #111827;
  --muted: #687586;
  --line: #d9e0e8;
  --panel: #ffffff;
  --panel-strong: #f0f5f8;
  --proof: #4f46e5;
  --blue: #2364aa;
  --blue-soft: rgba(35, 100, 170, 0.1);
  --green: #0f766e;
  --green-soft: #edf6f4;
  --amber: #a16207;
  --red: #b42318;
  --shadow: 0 16px 50px rgba(20, 34, 52, 0.08);
  --header-bg: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
}

.dark {
  color-scheme: dark;
  --bg: #0f172a;
  --ink: #94a3b8;
  --ink-strong: #f8fafc;
  --muted: #64748b;
  --line: #1e293b;
  --panel: #1e293b;
  --panel-strong: #0f172a;
  --proof: #818cf8;
  --blue: #38bdf8;
  --blue-soft: rgba(56, 189, 248, 0.1);
  --green: #2dd4bf;
  --green-soft: rgba(45, 212, 191, 0.1);
  --amber: #fbbf24;
  --red: #f87171;
  --shadow: 0 16px 50px rgba(0, 0, 0, 0.3);
  --header-bg: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
}

.dark .metric-branded {
  background: linear-gradient(135deg, var(--panel), var(--panel-strong));
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Noto Sans", "Noto Sans Devanagari", "Noto Sans CJK SC", sans-serif;
}

button,
input,
select {
  font: inherit;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 34px clamp(18px, 4vw, 48px) 28px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(15, 118, 110, 0) 40%),
    var(--header-bg);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  flex: 0 0 auto;
  width: 40px;
  height: 48px;
  object-fit: contain;
}

.brand-copy {
  min-width: 0;
}

.brand-copy h2 {
  color: var(--ink-strong);
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.header-side {
  display: grid;
  grid-template-rows: auto 1.2em;
  justify-items: end;
  gap: 10px;
  flex: 0 0 auto;
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 6px;
  flex-wrap: wrap;
}

.header-nav a {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.header-nav a:hover {
  color: var(--ink-strong);
  background: rgba(79, 70, 229, 0.06);
}

.header-nav a[aria-current="page"] {
  color: var(--proof);
  background: rgba(79, 70, 229, 0.08);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
}

.language-select {
  min-width: 112px;
  max-width: 138px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink-strong);
  padding: 3px 8px;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}

.language-select:focus {
  border-color: rgba(79, 70, 229, 0.42);
  outline: 3px solid rgba(79, 70, 229, 0.14);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.theme-toggle:hover {
  color: var(--ink-strong);
  background: rgba(79, 70, 229, 0.06);
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
}

.sun-icon { display: none; }
.moon-icon { display: block; }

.dark .sun-icon { display: block; }
.dark .moon-icon { display: none; }

.repo-link {
  display: inline-flex;
  align-items: center;
  padding: 4px 6px;
}

.repo-link img {
  width: 16px;
  height: 16px;
  color: currentColor;
}
.dark .repo-link img { filter: invert(1) brightness(2); }

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  color: var(--ink-strong);
  font-size: clamp(1.75rem, 3.25vw, 3.3rem);
  font-weight: 850;
  line-height: 1.03;
}

h2 {
  font-size: 1rem;
}

.status {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

.status:not(:empty)::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  animation: statusPulse 1.5s infinite;
}

@keyframes statusPulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.4; }
  100% { transform: scale(1); opacity: 1; }
}

.shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 20px clamp(14px, 3vw, 36px) 40px;
}

.project-note {
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) minmax(280px, 1fr);
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.project-kicker {
  display: block;
  margin-bottom: 7px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.project-note h2 {
  max-width: 560px;
  color: var(--ink-strong);
  font-size: clamp(1.12rem, 2vw, 1.55rem);
  line-height: 1.18;
}

.project-note p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.info-shell {
  max-width: 1180px;
}

.page-note {
  align-items: center;
  margin-bottom: 22px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.info-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 18px;
}

.info-card h2 {
  margin-bottom: 9px;
  color: var(--ink-strong);
}

.info-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.faq-list {
  margin: 0;
}

.faq-list dt {
  margin-top: 14px;
  color: var(--ink-strong);
  font-weight: 700;
  font-size: 0.93rem;
}

.faq-list dt:first-child {
  margin-top: 0;
}

.faq-list dd {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.5;
}

/* ── Docs page (Base docs style) ── */

.docs-page {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 48px) 60px;
}

.docs-hero {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}

.docs-hero-content {
  max-width: 720px;
}

.docs-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding: 3px 10px;
  border: 1px solid var(--proof);
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.06);
  color: var(--proof);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.docs-hero h1 {
  margin-bottom: 12px;
  font-size: clamp(1.65rem, 2.8vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.docs-hero-desc {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.docs-section {
  margin-top: 36px;
}

.docs-section-header {
  margin-bottom: 18px;
}

.docs-section-header h2 {
  color: var(--ink-strong);
  font-size: 1.2rem;
  font-weight: 800;
}

.docs-section-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.docs-card-group {
  display: grid;
  gap: 12px;
}

.docs-cols-2 {
  grid-template-columns: 1fr 1fr;
}

.docs-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.docs-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  padding: 20px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.docs-card:hover {
  border-color: var(--proof);
  box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.15);
}

.docs-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--proof);
  flex: 0 0 auto;
}

.docs-card-icon svg {
  width: 18px;
  height: 18px;
}

.docs-card h2 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.3;
}

.docs-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.docs-card a {
  color: var(--proof);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.docs-faq-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--line);
}

.docs-faq-item {
  background: var(--panel);
  padding: 18px 20px;
}

.docs-faq-item dt {
  margin: 0;
  color: var(--ink-strong);
  font-weight: 700;
  font-size: 0.93rem;
  cursor: pointer;
}

.docs-faq-item dd {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.dark .docs-kicker {
  background: rgba(129, 140, 248, 0.1);
}

.dark .docs-card {
  background: var(--panel);
}

.dark .docs-card:hover {
  border-color: var(--proof);
  box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.2);
}

.dark .docs-card-icon {
  background: var(--panel-strong);
  border-color: var(--line);
}

.dark .docs-faq-item {
  background: var(--panel);
}

@media (max-width: 860px) {
  .docs-cols-3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .docs-cols-2,
  .docs-cols-3 {
    grid-template-columns: 1fr;
  }

  .docs-hero {
    padding: 28px 0 24px;
  }

  .docs-page {
    padding-bottom: 40px;
  }
}

/* ── end Docs page ── */

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) repeat(3, minmax(160px, 0.7fr)) auto auto;
  gap: 12px;
  align-items: end;
}

@media (max-width: 1100px) {
  .toolbar {
    grid-template-columns: 1fr 1fr;
  }
}

.legend-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-height: 28px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legend-swatch {
  display: inline-block;
  width: 18px;
  height: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.bot-swatch {
  background: repeating-linear-gradient(
    135deg,
    rgba(104, 117, 134, 0.14),
    rgba(104, 117, 134, 0.14) 5px,
    rgba(104, 117, 134, 0.04) 5px,
    rgba(104, 117, 134, 0.04) 10px
  );
}

.ghost-swatch {
  background: rgba(124, 58, 237, 0.12);
  border-color: rgba(124, 58, 237, 0.28);
}

.field,
.check {
  min-width: 0;
}

.field span,
.check span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.field input,
.field select {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  padding: 0 12px;
  outline: none;
}

.field input:focus,
.field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}

.check {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.check span {
  margin: 0;
  color: var(--ink);
  text-transform: none;
}

.check input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--green);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.metric {
  position: relative;
  padding: 16px;
  overflow: hidden;
}

.metric-branded img {
  position: absolute;
  right: 10px;
  bottom: -22px;
  width: 94px;
  height: 112px;
  object-fit: contain;
  opacity: 0.08;
  pointer-events: none;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.metric strong {
  position: relative;
  display: block;
  margin-top: 4px;
  font-size: 1.75rem;
  line-height: 1;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 0 clamp(14px, 3vw, 36px) 34px;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer img {
  width: min(270px, 56vw);
  height: auto;
  object-fit: contain;
}

.content-grid {
  display: block;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.panel-head span {
  color: var(--muted);
  font-size: 0.9rem;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
  vertical-align: middle;
}

th {
  background: var(--panel-strong);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

td {
  font-size: 0.95rem;
  line-height: 28px;
}

.profile-link,
.profile-person {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  line-height: 28px;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  vertical-align: middle;
}

.profile-link:visited {
  color: var(--ink);
}

.profile-link:hover {
  color: var(--blue);
  text-decoration: underline;
}

.account-badge {
  display: inline-flex;
  align-items: center;
  height: 21px;
  border: 1px solid rgba(104, 117, 134, 0.28);
  border-radius: 999px;
  background: rgba(104, 117, 134, 0.08);
  color: var(--muted);
  padding: 0 8px;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.tier-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid rgba(79, 70, 229, 0.22);
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.08);
  color: var(--proof);
  padding: 3px 9px;
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
}

.tier-1 {
  border-color: rgba(104, 117, 134, 0.24);
  background: rgba(104, 117, 134, 0.08);
  color: var(--muted);
}

.tier-2 {
  border-color: rgba(35, 100, 170, 0.24);
  background: var(--blue-soft);
  color: var(--blue);
}

.tier-3-5 {
  border-color: rgba(8, 145, 178, 0.24);
  background: rgba(6, 182, 212, 0.1);
  color: #0e7490;
}

.tier-6-10 {
  border-color: rgba(15, 118, 110, 0.24);
  background: var(--green-soft);
  color: var(--green);
}

.tier-11-20 {
  border-color: rgba(101, 163, 13, 0.26);
  background: rgba(132, 204, 22, 0.12);
  color: #4d7c0f;
}

.tier-21-50 {
  border-color: rgba(161, 98, 7, 0.24);
  background: rgba(245, 158, 11, 0.11);
  color: var(--amber);
}

.tier-51-100 {
  border-color: rgba(234, 88, 12, 0.24);
  background: rgba(249, 115, 22, 0.1);
  color: #c2410c;
}

.tier-101-500 {
  border-color: rgba(219, 39, 119, 0.24);
  background: rgba(236, 72, 153, 0.1);
  color: #be185d;
}

.tier-501-1000 {
  border-color: rgba(124, 58, 237, 0.24);
  background: rgba(139, 92, 246, 0.1);
  color: #6d28d9;
}

.tier-1000-plus {
  border-color: rgba(190, 18, 60, 0.24);
  background: rgba(244, 63, 94, 0.1);
  color: #be123c;
}

.bot-badge {
  border-color: rgba(104, 117, 134, 0.28);
  background: rgba(104, 117, 134, 0.08);
  color: var(--muted);
}

.ghost-badge {
  border-color: rgba(124, 58, 237, 0.28);
  background: rgba(124, 58, 237, 0.1);
  color: #6d28d9;
}

.avatar {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel-strong);
  object-fit: cover;
  display: block;
  margin: 0;
}

tbody tr {
  cursor: pointer;
}

tbody tr:hover {
  background: #f8fbfc;
}

tbody tr.selected-row,
tbody tr.selected-row:hover {
  background: #f4f8fb;
}

tbody tr.bot-row {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(104, 117, 134, 0.08),
      rgba(104, 117, 134, 0.08) 8px,
      rgba(104, 117, 134, 0.03) 8px,
      rgba(104, 117, 134, 0.03) 16px
    ),
    #f6f8fb;
  color: var(--muted);
}

tbody tr.bot-row:hover,
tbody tr.bot-row.selected-row,
tbody tr.bot-row.selected-row:hover {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(104, 117, 134, 0.11),
      rgba(104, 117, 134, 0.11) 8px,
      rgba(104, 117, 134, 0.04) 8px,
      rgba(104, 117, 134, 0.04) 16px
    ),
    #eef2f6;
}

tbody tr.bot-row .profile-person,
tbody tr.bot-row .number,
tbody tr.bot-row td {
  color: var(--muted);
}

tbody tr.ghost-user-row {
  background: rgba(124, 58, 237, 0.06);
  color: #5b21b6;
}

tbody tr.ghost-user-row:hover,
tbody tr.ghost-user-row.selected-row,
tbody tr.ghost-user-row.selected-row:hover {
  background: rgba(124, 58, 237, 0.1);
}

tbody tr.ghost-user-row .profile-person,
tbody tr.ghost-user-row .profile-link,
tbody tr.ghost-user-row .number,
tbody tr.ghost-user-row td {
  color: #5b21b6;
}

tbody tr.inline-detail-row {
  cursor: default;
}

tbody tr.inline-detail-row:hover {
  background: transparent;
}

.number {
  text-align: right;
}

.login {
  font-weight: 800;
}

.rank-col {
  width: 50px;
  text-align: center;
}

.rank {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 650;
  text-align: center;
  width: 50px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
}

.page-size,
.page-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-size span,
.page-controls span {
  color: var(--muted);
  font-size: 0.88rem;
}

.page-size select {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  padding: 0 8px;
}

.page-controls button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  padding: 7px 11px;
  cursor: pointer;
}

.page-controls button:hover:not(:disabled) {
  border-color: var(--blue);
  color: var(--blue);
}

.page-controls button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-input-wrap input {
  width: 100%;
  height: 42px;
  padding: 0 16px 0 42px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.search-input-wrap input:focus {
  background: var(--panel-strong);
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-soft);
  outline: none;
}

.search-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
}

select {
  width: 100%;
  height: 42px;
  padding: 0 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 24 24' fill='none' stroke='%23687586' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px;
}

select:hover {
  border-color: var(--blue-soft);
  background-color: var(--panel-strong);
}

select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-soft);
  outline: none;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 140px;
}

/* ── Multi-select ──────────────────────────── */
.multi-select {
  position: relative;
  min-width: 0;
}

.multi-select-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.92rem;
  text-align: left;
  white-space: nowrap;
}

.multi-select-trigger:hover {
  border-color: var(--muted);
}

.multi-select-trigger[aria-expanded="true"] {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}

.ms-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 140px;
}

.ms-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.multi-select-summary {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.multi-select-arrow {
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 180ms ease;
}

.multi-select-trigger[aria-expanded="true"] .multi-select-arrow {
  transform: rotate(180deg);
}

.multi-select-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 50;
  min-width: 220px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  padding: 6px 0;
}

.multi-select-actions {
  display: flex;
  gap: 4px;
  padding: 4px 8px 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}

.multi-select-actions button {
  flex: 1;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 120ms ease;
}

.multi-select-actions button:hover {
  background: var(--panel-strong);
}

.multi-select-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  cursor: pointer;
  transition: background 120ms ease;
}

.multi-select-option:hover {
  background: rgba(79, 70, 229, 0.06);
}

.multi-select-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--blue);
  flex-shrink: 0;
}

.multi-select-option span {
  font-size: 0.88rem;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-search:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}

.dropdown-options {
  display: grid;
  gap: 4px;
}

.org-selector-menu[hidden] {
  display: none;
}

.org-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 28px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  line-height: normal;
  max-width: 220px;
  border-radius: 6px;
  padding: 0 7px;
  background: #f1f2f3;
  color: var(--ink-strong);
  font-size: 0.78rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

.tag-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.tag.plus-tag {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.72rem;
  padding: 0 6px;
  gap: 0;
  cursor: default;
}

.dark .tag { background: rgba(255, 255, 255, 0.07); }
.dark .tag.plus-tag { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.08); }

/* ── Profile link GitHub icon ───────────────────────── */
.gh-icon-link {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  text-decoration: none;
  vertical-align: middle;
  transition: color 0.15s;
}

.gh-icon-link:hover {
  color: var(--ink-strong);
}

.detail-list {
  display: grid;
  gap: 0;
}

.project-item {
  border-bottom: 1px solid var(--line);
}

.project-item:last-child {
  border-bottom: 0;
}

.project-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 13px 16px;
  cursor: pointer;
  text-align: left;
}

.project-toggle:hover {
  background: rgba(35, 100, 170, 0.04);
}

.project-toggle > span {
  min-width: 0;
}

.project-summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.project-chevron {
  color: var(--blue);
  font-size: 0.84rem;
  font-weight: 800;
}

.project-pr-list {
  display: grid;
  gap: 8px;
  padding: 0 16px 14px 16px;
}

.project-pr-link {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  color: var(--ink);
  text-decoration: none;
}

.project-pr-link:hover {
  border-color: rgba(35, 100, 170, 0.35);
  color: var(--blue);
  background: #fdfefe;
}

.project-pr-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.project-pr-meta {
  color: var(--muted);
  font-size: 0.84rem;
}

.project-empty {
  padding: 0 16px 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.inline-detail-cell {
  padding: 0;
  white-space: normal;
}

.inline-detail {
  border-bottom: 1px solid var(--line);
  background: #f8fbfc;
}

.inline-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}

.inline-detail-head strong,
.inline-detail-head span {
  display: block;
}

.inline-detail-head strong {
  color: var(--ink-strong);
  font-size: 0.98rem;
}

.inline-detail-head span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.86rem;
}

.contributor-profile {
  display: grid;
  gap: 14px;
  padding: 14px 16px 16px;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.profile-stat {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.profile-stat span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.profile-stat strong {
  display: block;
  margin-top: 5px;
  color: var(--ink-strong);
  font-size: 1rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: 12px;
}

.profile-section {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.profile-section-wide {
  grid-column: 1 / -1;
}

.profile-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
}

.profile-section-head h3 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 0.9rem;
  line-height: 1.2;
}

.profile-section-head span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.timeline-chart {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  min-height: 170px;
  padding: 14px 12px 12px 8px;
}

.timeline-y-axis {
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  height: 138px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
  text-align: right;
}

.timeline-bars {
  position: relative;
  display: grid;
  align-items: end;
  gap: clamp(2px, 0.7vw, 8px);
  min-width: 0;
  overflow: visible;
}

.timeline-bars::before {
  content: "";
  position: absolute;
  inset: 0 0 22px 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, var(--line) 1px, transparent 1px) top / 100% 50% repeat-y;
  opacity: 0.75;
}

.timeline-bar {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: end;
  gap: 7px;
  min-width: 0;
  height: 138px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.timeline-track {
  position: relative;
  display: flex;
  align-items: end;
  width: 100%;
  height: 109px;
  border-radius: 6px;
  background: rgba(104, 117, 134, 0.08);
  overflow: hidden;
}

.timeline-fill {
  display: block;
  width: 100%;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--proof), var(--green));
  transition:
    background 0.16s ease,
    filter 0.16s ease,
    transform 0.16s ease;
}

.timeline-bar:hover .timeline-fill,
.timeline-bar:focus-visible .timeline-fill {
  background: linear-gradient(180deg, #2563eb, #0d9488);
  filter: saturate(1.22);
  transform: scaleX(1.08);
}

.timeline-bar::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  top: 8px;
  z-index: 3;
  width: max-content;
  max-width: 180px;
  transform: translateX(-50%) translateY(4px);
  padding: 7px 9px;
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.96);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.16s ease,
    transform 0.16s ease;
}

.timeline-bar:hover::after,
.timeline-bar:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.timeline-bar:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.timeline-label {
  color: var(--muted);
  font-size: clamp(0.52rem, 0.75vw, 0.68rem);
  font-weight: 750;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
}

.recent-pr-list {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.recent-pr-link {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  color: var(--ink);
  text-decoration: none;
}

.recent-pr-link:hover {
  border-color: rgba(35, 100, 170, 0.35);
  color: var(--blue);
  background: #fdfefe;
}

.recent-pr-title,
.recent-pr-meta {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-pr-title {
  font-weight: 800;
}

.recent-pr-meta {
  color: var(--muted);
  font-size: 0.82rem;
}

.profile-section .detail-list {
  max-height: 420px;
  overflow: auto;
}

.detail-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}

.detail-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.detail-meta {
  color: var(--muted);
  font-size: 0.86rem;
}

.detail-prs {
  font-weight: 900;
  text-align: right;
}

.detail-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-actions a,
.detail-actions button {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  padding: 7px 11px;
  text-decoration: none;
}

.detail-actions a:visited {
  color: var(--ink);
}

.detail-actions a:hover,
.detail-actions button:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.detail-actions button {
  cursor: pointer;
}

.empty {
  padding: 24px 16px;
  color: var(--muted);
}

.error {
  color: var(--red);
}

.dark tbody tr.inline-detail-row:hover {
  background: transparent;
}

.dark tbody tr.bot-row {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(148, 163, 184, 0.12),
      rgba(148, 163, 184, 0.12) 8px,
      rgba(148, 163, 184, 0.03) 8px,
      rgba(148, 163, 184, 0.03) 16px
    ),
    #111827;
}

.dark tbody tr.bot-row:hover,
.dark tbody tr.bot-row.selected-row,
.dark tbody tr.bot-row.selected-row:hover {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(148, 163, 184, 0.16),
      rgba(148, 163, 184, 0.16) 8px,
      rgba(148, 163, 184, 0.04) 8px,
      rgba(148, 163, 184, 0.04) 16px
    ),
    #0f172a;
}

.dark .bot-badge {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(148, 163, 184, 0.08);
}

.dark tbody tr.ghost-user-row {
  background: rgba(167, 139, 250, 0.09);
}

.dark tbody tr.ghost-user-row:hover,
.dark tbody tr.ghost-user-row.selected-row,
.dark tbody tr.ghost-user-row.selected-row:hover {
  background: rgba(167, 139, 250, 0.14);
}

.dark tbody tr.ghost-user-row .profile-person,
.dark tbody tr.ghost-user-row .profile-link,
.dark tbody tr.ghost-user-row .number,
.dark tbody tr.ghost-user-row td {
  color: #c4b5fd;
}

.dark .ghost-badge {
  border-color: rgba(196, 181, 253, 0.3);
  background: rgba(167, 139, 250, 0.12);
  color: #c4b5fd;
}

.dark .inline-detail {
  background: #111827;
}

.dark .profile-stat,
.dark .profile-section,
.dark .project-pr-link {
  background: var(--panel);
}

.dark .recent-pr-link {
  background: var(--panel-strong);
}

.dark .project-pr-link:hover,
.dark .recent-pr-link:hover {
  background: #0f172a;
}

/* ── Dark mode contrast fixes ────────────────── */
.dark .field input,
.dark .field select {
  background: var(--panel-strong);
}

.dark tbody tr:hover {
  background: rgba(148, 163, 184, 0.06);
}

.dark tbody tr.selected-row,
.dark tbody tr.selected-row:hover {
  background: rgba(148, 163, 184, 0.1);
}

.dark .account-badge {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(148, 163, 184, 0.08);
}

.dark .tier-1 {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(148, 163, 184, 0.08);
}

.dark .tier-2 {
  border-color: rgba(56, 189, 248, 0.24);
  background: rgba(56, 189, 248, 0.1);
}

.dark .tier-3-5 {
  border-color: rgba(34, 211, 238, 0.24);
  background: rgba(34, 211, 238, 0.1);
}

.dark .tier-6-10 {
  border-color: rgba(45, 212, 191, 0.24);
  background: rgba(45, 212, 191, 0.1);
}

.dark .tier-11-20 {
  border-color: rgba(163, 230, 53, 0.24);
  background: rgba(163, 230, 53, 0.1);
}

.dark .tier-21-50 {
  border-color: rgba(251, 191, 36, 0.24);
  background: rgba(251, 191, 36, 0.1);
}

.dark .tier-51-100 {
  border-color: rgba(251, 146, 60, 0.24);
  background: rgba(251, 146, 60, 0.1);
}

.dark .tier-101-500 {
  border-color: rgba(244, 114, 182, 0.24);
  background: rgba(244, 114, 182, 0.1);
}

.dark .tier-501-1000 {
  border-color: rgba(167, 139, 250, 0.24);
  background: rgba(167, 139, 250, 0.1);
}

.dark .tier-1000-plus {
  border-color: rgba(251, 113, 133, 0.24);
  background: rgba(251, 113, 133, 0.1);
}

.dark .bot-swatch {
  background: repeating-linear-gradient(
    135deg,
    rgba(148, 163, 184, 0.18),
    rgba(148, 163, 184, 0.18) 5px,
    rgba(148, 163, 184, 0.06) 5px,
    rgba(148, 163, 184, 0.06) 10px
  );
}

.dark .ghost-swatch {
  background: rgba(167, 139, 250, 0.15);
  border-color: rgba(167, 139, 250, 0.28);
}

.dark .project-toggle:hover {
  background: rgba(56, 189, 248, 0.06);
}

.dark .multi-select-option:hover {
  background: rgba(56, 189, 248, 0.08);
}

.dark .timeline-bar:hover .timeline-fill,
.dark .timeline-bar:focus-visible .timeline-fill {
  background: linear-gradient(180deg, #818cf8, #2dd4bf);
}

.dark .timeline-bar::after {
  background: rgba(248, 250, 252, 0.92);
  color: #0f172a;
}

@media (max-width: 980px) {
  .topbar {
    align-items: start;
    flex-direction: column;
  }

  .header-side {
    justify-items: start;
  }

  .header-nav {
    justify-content: start;
  }

  .status {
    text-align: left;
  }

  .legend-row {
    justify-content: flex-start;
  }

  .project-note,
  .info-grid,
  .toolbar,
  .metrics,
  .profile-stats,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-section-wide {
    grid-column: auto;
  }

  .profile-section-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .shell {
    padding: 14px 10px 32px;
  }

  .topbar {
    gap: 16px;
    padding: 18px 12px 14px;
  }

  .brand-lockup {
    align-items: center;
    gap: 10px;
    width: 100%;
  }

  .brand-copy {
    max-width: calc(100vw - 86px);
  }

  .brand-copy h2 {
    font-size: 1.05rem;
    line-height: 1.12;
  }

  .header-side {
    width: 100%;
    grid-template-rows: auto;
    gap: 8px;
  }

  .header-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    gap: 7px;
  }

  .header-nav a,
  .theme-toggle,
  .repo-link {
    justify-content: center;
    min-height: 38px;
    padding: 0 6px;
    border-radius: 8px;
  }

  .header-nav a {
    font-size: 0.78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .repo-link,
  .theme-toggle {
    width: 100%;
    min-width: 0;
  }

  .language-switcher {
    grid-column: 2 / span 2;
    width: 100%;
  }

  .repo-link {
    grid-column: 1;
  }

  .theme-toggle {
    grid-column: 4;
  }

  .language-select {
    min-width: unset;
    max-width: unset;
    width: 100%;
    height: 38px;
    padding: 3px 8px;
    font-size: 0.72rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .status {
    justify-content: flex-start;
    width: 100%;
    min-height: 1.2em;
    font-size: 0.74rem;
  }

  h1 {
    font-size: 1.58rem;
  }

  .brand-mark {
    width: 34px;
    height: 40px;
  }

  .metric strong {
    font-size: 1.45rem;
  }

  .toolbar {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .field,
  .ms-field,
  .check {
    min-width: 0;
    width: 100%;
  }

  .field input,
  .field select,
  .multi-select-trigger,
  .check {
    min-height: 44px;
  }

  .multi-select-dropdown {
    position: fixed;
    inset: auto 10px 12px;
    top: auto;
    right: 10px;
    left: 10px;
    max-height: min(70vh, 480px);
    overflow: auto;
    border-radius: 12px;
  }

  .multi-select-option {
    min-height: 42px;
  }

  .legend-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    margin-top: 12px;
    line-height: 1.35;
  }

  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0;
  }

  .panel-head,
  .inline-detail-head,
  .pagination,
  .detail-item {
    padding-inline: 12px;
  }

  .inline-detail-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .page-controls {
    justify-content: space-between;
    width: 100%;
  }

  .page-controls button {
    flex: 1;
  }

  .page-controls span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    text-align: center;
  }

  .table-wrap {
    overflow: visible;
  }

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  tbody {
    display: grid;
    gap: 10px;
    padding: 10px;
    background: var(--panel-strong);
  }

  tbody tr {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel);
    box-shadow: 0 8px 24px rgba(20, 34, 52, 0.06);
    overflow: hidden;
  }

  tbody tr:hover,
  tbody tr.selected-row,
  tbody tr.selected-row:hover {
    background: var(--panel);
  }

  tbody tr.bot-row,
  tbody tr.bot-row:hover,
  tbody tr.bot-row.selected-row,
  tbody tr.bot-row.selected-row:hover {
    background:
      repeating-linear-gradient(
        135deg,
        rgba(104, 117, 134, 0.08),
        rgba(104, 117, 134, 0.08) 8px,
        rgba(104, 117, 134, 0.03) 8px,
        rgba(104, 117, 134, 0.03) 16px
      ),
      var(--panel);
  }

  tbody tr.ghost-user-row,
  tbody tr.ghost-user-row:hover,
  tbody tr.ghost-user-row.selected-row,
  tbody tr.ghost-user-row.selected-row:hover {
    background: rgba(124, 58, 237, 0.07);
  }

  td {
    display: grid;
    grid-template-columns: minmax(92px, 0.42fr) minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 42px;
    padding: 10px 12px;
    white-space: normal;
    line-height: 1.35;
  }

  td::before {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  td:nth-child(1)::before { content: "Rank"; }
  td:nth-child(2)::before { content: "User"; }
  td:nth-child(3)::before { content: "Organization"; }
  td:nth-child(4)::before { content: "Experience"; }
  td:nth-child(5)::before { content: "PR"; }
  td:nth-child(6)::before { content: "Projects"; }
  td:nth-child(7)::before { content: "Top project"; }

  td.rank,
  td.number {
    text-align: left;
  }

  .rank {
    width: auto;
    text-align: left;
  }

  .profile-link,
  .profile-person {
    min-width: 0;
    max-width: 100%;
    line-height: 1.2;
  }

  .profile-link > span:not(.account-badge),
  .profile-person > span:not(.account-badge) {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .org-tags {
    justify-content: flex-start;
  }

  .tag {
    max-width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 390px) {
  .topbar {
    padding-inline: 10px;
  }

  .header-nav {
    gap: 6px;
  }

  .header-nav a {
    font-size: 0.72rem;
    padding-inline: 4px;
  }

  .language-select {
    font-size: 0.66rem;
    padding-inline: 5px;
  }

  .theme-toggle svg,
  .repo-link img {
    width: 15px;
    height: 15px;
  }

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

  td {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}
