:root {
  color-scheme: light;
  --paper: #f5f3eb;
  --panel: #fffdf7;
  --ink: #1c211d;
  --muted: #62685e;
  --line: #deddd1;
  --amber: #c34421;
  --soft-amber: #fae9dc;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.55; }
button, input, select { font: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
button { cursor: pointer; }
.wrap { width: min(1180px, calc(100% - 88px)); margin-inline: auto; }
.masthead { border-bottom: 1px solid var(--line); }
.masthead-inner { min-height: 71px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; gap: 10px; align-items: center; font-weight: 800; text-decoration: none; letter-spacing: -.02em; }
.brand-mark { display: flex; width: 25px; height: 25px; align-items: end; justify-content: center; gap: 2px; padding: 5px; background: var(--ink); border-radius: 5px; }
.brand-mark i { display: block; width: 3px; background: #fff3e7; border-radius: 1px; height: 5px; }
.brand-mark i:nth-child(2) { height: 9px; }
.brand-mark i:nth-child(3) { height: 13px; background: #ff8d60; }
.masthead-actions { display: flex; align-items: center; gap: 20px; }
.plain-button, .download { border: none; padding: 8px 0; background: transparent; color: var(--muted); font-size: 14px; text-decoration: none; white-space: nowrap; }
.plain-button:hover, .download:hover { color: var(--amber); }
.download { color: var(--ink); font-weight: 700; }
.download span { color: var(--amber); font-size: 17px; padding-left: 3px; }
.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(224px, 290px); align-items: end; gap: 44px; padding: 50px 0 38px; }
.source { margin: 0 0 9px; color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.source-divider { color: #9b6351; }
.source time { font-family: var(--mono); }
.dot { display: inline-block; height: 7px; width: 7px; border-radius: 50%; background: var(--amber); }
h1 { font-size: clamp(48px, 7vw, 98px); line-height: 1.1; letter-spacing: -.075em; margin: 0; font-weight: 900; }
h1 span { color: var(--amber); margin-left: .11em; }
.subtitle { margin: 13px 0 0; font-size: 16px; color: var(--muted); }
.coverage { position: relative; padding: 20px 22px 15px; background: var(--ink); color: #fffcf0; border-radius: 9px; overflow: hidden; }
.coverage-label { display: flex; gap: 10px; justify-content: space-between; font-size: 12px; color: #e4e1d3; position: relative; z-index: 1; }
.coverage strong { display: block; font: 700 48px/1.12 var(--mono); letter-spacing: -.1em; margin-block: 9px 4px; position: relative; z-index: 1; }
.coverage-chart { position: absolute; right: 16px; bottom: 0; display: flex; align-items: end; gap: 3px; height: 66px; opacity: .7; }
.coverage-chart i { width: 7px; background: #eb744b; border-radius: 2px 2px 0 0; }
.toolbar { display: flex; align-items: stretch; gap: 14px; }
.search, .sort { display: flex; align-items: center; gap: 13px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; min-height: 48px; padding: 0 15px; }
.search { flex: 1; min-width: 0; }
.search:focus-within { border-color: var(--amber); }
.search-icon { width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid var(--muted); margin-right: 3px; position: relative; flex: none; }
.search-icon::after { content: ""; position: absolute; width: 6px; height: 1.5px; background: var(--muted); right: -5px; bottom: -3px; transform: rotate(45deg); }
.search input { width: 100%; min-width: 0; border: 0; outline: none; background: transparent; font-size: 15px; min-height: 46px; color: var(--ink); }
.sort > span, .results-line label { color: var(--muted); font-size: 13px; white-space: nowrap; }
.sort select, .results-line select { background: transparent; border: 0; color: var(--ink); padding: 5px 0; }
.categories { display: flex; gap: 7px; flex-wrap: wrap; padding: 14px 0 9px; }
.category { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); color: var(--muted); background: transparent; border-radius: 5px; padding: 5px 10px; font-size: 13px; }
.category[aria-pressed="true"] { color: #963417; border-color: #e5aa91; background: var(--soft-amber); }
.category:hover { border-color: var(--amber); }
.results-line { display: flex; align-items: center; gap: 10px; justify-content: space-between; color: var(--muted); font-size: 13px; }
.results-line p { margin: 5px 0 11px; }
.results-line label { padding-bottom: 5px; }
.ranking { border-collapse: separate; border-spacing: 0; width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; font-size: 14px; overflow: hidden; }
.ranking th { background: #ece9dd; text-align: left; color: var(--muted); padding: 11px 17px; white-space: nowrap; font-size: 12px; font-weight: 650; }
.ranking td { border-top: 1px solid var(--line); padding: 13px 17px; vertical-align: top; }
.ranking tr:hover td { background: #faf6ec; }
.rank-cell, .star-cell { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.rank-cell { color: var(--muted); width: 78px; }
.star-cell, .ranking th.stars-heading { text-align: right; width: 123px; }
.star-cell { color: var(--amber); font-weight: 700; }
.language-cell { width: 145px; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.project-cell { min-width: 0; }
.repo-link { font-weight: 800; font-size: 16px; letter-spacing: -.01em; text-decoration: none; overflow-wrap: anywhere; }
.repo-link:hover { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }
.repo-link span { color: var(--muted); font-weight: 500; }
.project-description { color: var(--muted); font-size: 13px; margin: 3px 0 7px; overflow-wrap: anywhere; }
.project-description:empty { display: none; }
.project-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 11px; color: var(--muted); }
.project-category { color: #33473b; }
.relevance-tag { border: 1px solid var(--line); padding: 0px 5px; border-radius: 3px; white-space: nowrap; }
.pagination, .footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 17px 0; color: var(--muted); font-size: 13px; }
.page-buttons { display: flex; gap: 5px; }
.page-buttons button { color: var(--ink); font-size: 13px; border: 1px solid var(--line); background: var(--panel); border-radius: 5px; min-width: 34px; min-height: 34px; padding: 0 8px; white-space: nowrap; }
.page-buttons button:disabled { opacity: .55; cursor: default; }
.page-buttons button:enabled:hover { border-color: var(--amber); }
.footer { border-top: 1px solid var(--line); margin-top: 12px; }
.footer a { text-underline-offset: 3px; }
dialog { background: var(--panel); border: 1px solid var(--line); border-radius: 9px; color: var(--ink); width: min(580px, calc(100% - 32px)); padding: 26px; }
dialog::backdrop { background: #1c211d85; }
dialog h2 { margin-top: 0; }
dialog li { margin-bottom: 6px; }
.close-dialog { float: right; border: none; background: none; color: var(--ink); font-size: 25px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 740px) {
  .wrap { width: calc(100% - 32px); }
  .intro { grid-template-columns: 1fr; gap: 19px; padding: 32px 0 22px; }
  .coverage { display: flex; justify-content: space-between; align-items: end; gap: 12px; padding: 12px 14px; }
  .coverage-label { flex-direction: column; gap: 0; }
  .coverage strong { margin: 0; font-size: 36px; }
  .coverage-chart { right: 112px; height: 34px; }
  .ranking th, .ranking td { padding-inline: 10px; }
  .language-cell, .ranking th:nth-child(3) { display: none; }
  .rank-cell { width: 53px; }
  .star-cell, .ranking th.stars-heading { width: 81px; }
}
@media (max-width: 450px) {
  .masthead-inner { min-height: 60px; }
  .masthead-actions { gap: 12px; }
  .masthead .plain-button, .download { font-size: 12px; }
  .subtitle { font-size: 14px; }
  .toolbar { gap: 7px; }
  .search, .sort { padding-inline: 9px; gap: 9px; font-size: 13px; }
  .search input { font-size: 13px; }
  .sort > span { display: none; }
  .ranking th, .ranking td { padding-inline: 8px; }
  .ranking td { padding-block: 10px; }
  .rank-cell { width: 39px; font-size: 12px; }
  .repo-link { font-size: 14px; }
  .project-description { font-size: 12px; }
  .star-cell, .ranking th.stars-heading { width: 66px; font-size: 12px; }
  .project-meta { gap: 4px; }
}
