:root {
  color-scheme: light dark;
  --bg: #f7f8fb;
  --panel: #ffffff;
  --text: #18202b;
  --muted: #657285;
  --line: #d9dee8;
  --accent: #0c7a69;
  --accent-2: #315d9d;
  --hover: #edf5f3;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11151b;
    --panel: #181e26;
    --text: #eef2f7;
    --muted: #a3adba;
    --line: #2b3440;
    --accent: #47bba9;
    --accent-2: #8bb4f2;
    --hover: #1f2c31;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.45 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: var(--accent-2);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.mirror-hero,
h1,
table,
.mirror-footer {
  width: min(1180px, calc(100vw - 32px));
  margin-left: auto;
  margin-right: auto;
}

.mirror-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  padding: 28px 0 18px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.mirror-hero h1 {
  width: auto;
  margin: 0;
  font-size: 26px;
  line-height: 1.15;
}

.mirror-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.mirror-badges span {
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  padding: 5px 8px;
  background: var(--panel);
  white-space: nowrap;
}

.path-title {
  margin-top: 18px;
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 650;
}

table {
  border-collapse: collapse;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

tr:hover td {
  background: var(--hover);
}

td:first-child {
  width: 100%;
  white-space: normal;
  word-break: break-word;
}

tr:last-child td {
  border-bottom: 0;
}

.mirror-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0 28px;
  color: var(--muted);
  font-size: 13px;
}

.mirror-home {
  min-height: 100vh;
}

.repo-grid {
  width: min(1180px, calc(100vw - 32px));
  margin: 22px auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.repo-card {
  display: block;
  min-height: 118px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
}

.repo-card:hover {
  background: var(--hover);
  text-decoration: none;
}

.repo-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 17px;
}

.repo-card span {
  color: var(--muted);
}

@media (max-width: 720px) {
  .mirror-hero,
  .mirror-footer {
    display: block;
  }

  .mirror-badges {
    justify-content: flex-start;
    margin-top: 12px;
  }

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

  th,
  td {
    padding: 8px;
  }
}
