:root {
  color-scheme: light;
  --page: #f5f8fc;
  --surface: #fff;
  --ink: #1b2d47;
  --muted: #526785;
  --line: #dce6f4;
  --blue: #1957bf;
  --pale: #edf4ff;
  --mono: ui-monospace, "SFMono-Regular", Menlo, monospace;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 14px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, pre { margin: 0; }
h1, h2, h3, strong { font-weight: 500; }
h1 { font-size: 31px; line-height: 1.14; letter-spacing: -.035em; }
h2 { font-size: 20px; line-height: 1.2; letter-spacing: -.018em; }
h3 { font-size: 16px; line-height: 1.27; }
code, pre { font-family: var(--mono); }
:focus-visible { outline: 2px solid #4c7ecc; outline-offset: 3px; }
.wrap { width: min(1264px, calc(100% - 80px)); margin-inline: auto; }
.main { min-height: calc(100vh - 120px); padding-block: 25px 36px; }
.row, .between { display: flex; align-items: center; gap: 9px; }
.between { justify-content: space-between; gap: 12px; }
.muted, .empty { color: var(--muted); }
.compact { font-size: 12px; }
.link { color: var(--blue); font-weight: 500; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 2; background: white; padding: 8px 12px; transform: translateY(-150%); }
.skip:focus { transform: none; }
.card { min-width: 0; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.btn {
  display: inline-flex; justify-content: center; align-items: center; gap: 6px; min-height: 35px;
  padding: 6px 11px; border: 1px solid #d3e1f4; border-radius: 7px;
  background: white; color: #174fae; font-weight: 500; line-height: 1.2; white-space: nowrap;
}
.btn.compact { min-height: 29px; padding-inline: 9px; }
.btn:hover { background: var(--pale); border-color: #aac3e9; }
.primary { color: white; background: var(--blue); border-color: var(--blue); }
.primary:hover { color: white; background: #174da7; border-color: #174da7; }
.chip { display: inline-flex; padding: 3px 7px; border-radius: 5px; background: #edf3fb; color: #35577c; font-size: 11px; white-space: nowrap; }
.gated { background: #fbf0dd; color: #6f4b23; }
.symbol {
  display: grid; place-items: center; flex: none; width: 33px; height: 33px; border-radius: 8px;
  background: #e9f1ff; color: #285eaa; font-weight: 500;
}
.header { background: white; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 65px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: #20436f; font-size: 22px; font-weight: 500; letter-spacing: -.033em; white-space: nowrap; }
.mark { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 8px; background: var(--blue); }
.mark i { width: 13px; height: 6px; border-radius: 1px; background: #e2edff; transform: rotate(-24deg); box-shadow: -1px -5px 0 -1px #a7c7ff, 1px 5px 0 -1px #b9d3ff; }
.header-search {
  display: flex; align-items: center; gap: 10px; min-width: 0; width: min(438px, 42%); padding: 4px 5px 4px 12px;
  background: #f4f7fc; border: 1px solid var(--line); border-radius: 10px;
}
.header-search:focus-within { border-color: #7c9fd8; }
.header-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); }
.header-search select { border: 0; background: transparent; color: var(--muted); font-size: 12px; }
.glass { position: relative; width: 11px; height: 11px; border: 1.5px solid #60809f; border-radius: 50%; flex: none; margin-right: 2px; }
.glass::after { content: ""; position: absolute; right: -4px; bottom: -2px; width: 5px; height: 1.5px; background: #60809f; transform: rotate(48deg); }
.primary-nav { display: flex; align-items: center; gap: 23px; margin-left: auto; white-space: nowrap; color: #415976; }
.primary-nav a:hover, .primary-nav [aria-current] { color: var(--blue); }
.wallet { display: inline-flex; align-items: center; gap: 7px; color: #204c87; border: 1px solid var(--line); padding: 6px 12px; border-radius: 19px; white-space: nowrap; }
.wallet span { color: var(--muted); font-size: 11px; }
.footer { background: #f0f5fd; color: #466285; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 53px; font-size: 12px; }
.footer .brand { font-size: 16px; }
.footer .mark { width: 20px; height: 20px; border-radius: 5px; }
.footer .mark i { transform: rotate(-24deg) scale(.72); }
.footer nav { gap: 14px; color: var(--blue); }
.home-layout { display: grid; grid-template-columns: 174px minmax(0, 1fr) 282px; gap: 16px; align-items: start; }
.home-menu { display: grid; gap: 12px; }
.home-nav { padding: 10px 8px; }
.home-nav p { margin: 6px 9px 4px; color: #547195; font-size: 11px; font-weight: 500; }
.home-nav .nav-divider { margin: 8px 0 4px; padding: 10px 9px 2px; border-top: 1px solid #e7eef8; }
.home-nav a { display: flex; align-items: center; gap: 9px; min-height: 35px; padding: 6px 9px; border-radius: 6px; color: #385778; font-size: 13px; }
.home-nav a span { width: 15px; color: #3a6eb7; text-align: center; }
.home-nav a:hover, .home-nav [aria-current] { color: #1956ad; background: #e9f2ff; }
.index-summary { display: grid; padding: 12px 13px; color: var(--muted); background: #edf4ff; font-size: 12px; }
.index-summary strong { color: #205bb1; font-size: 20px; }
.activity-heading { margin: 2px 0 14px; }
.activity-heading p, .page-heading p { margin-top: 5px; color: var(--muted); }
.inference-panel { display: grid; gap: 12px; padding: 15px; border-color: #d1e1fb; background: linear-gradient(119deg,#eaf2ff,#f7faff 85%); }
.inference-heading p { margin-top: 4px; color: var(--muted); font-size: 13px; }
.api-mark { display: grid; place-items: center; width: 38px; height: 38px; flex: none; background: var(--blue); border-radius: 9px; }
.api-mark::before { content: ""; width: 17px; height: 22px; background: white; clip-path: polygon(59% 0, 4% 58%, 42% 58%, 36% 100%, 96% 39%, 60% 39%); }
.api-picks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.api-picks a { display: grid; gap: 2px; padding: 9px 10px; border: 1px solid #d8e5f6; border-radius: 8px; background: white; }
.api-picks a:hover { border-color: #8caee0; }
.api-picks span { font-size: 11px; color: var(--muted); }
.trust { display: grid; grid-template-columns: 68px repeat(4, minmax(0, 1fr)); align-items: center; gap: 8px; min-height: 43px; margin-top: 10px; padding: 5px 10px; }
.trust span { color: var(--muted); font-size: 11px; font-weight: 500; }
.trust img { margin-inline: auto; object-fit: contain; }
.section-heading { margin: 15px 0 9px; }
.segments { display: flex; gap: 2px; padding: 3px; border-radius: 7px; background: #eaf0f8; }
.segments a { padding: 4px 8px; border: 1px solid transparent; border-radius: 5px; text-align: center; color: #405c80; font-size: 12px; white-space: nowrap; }
.segments [aria-current], .segments a:hover { border-color: #d8e5f8; background: white; color: var(--blue); }
.feed { display: grid; gap: 10px; }
.story { padding: 13px 14px; }
.story .publisher, .story time { color: var(--muted); font-size: 11px; }
.story time { flex: none; }
.story p { margin: 7px 0 9px 42px; color: var(--muted); font-size: 13px; }
.story-link { display: flex; align-items: center; gap: 8px; min-height: 33px; margin-left: 42px; padding: 3px 8px; border: 1px solid #e1eafa; border-radius: 7px; background: #f7faff; color: #315277; font-size: 11px; }
.story-link:hover { background: #eef5ff; border-color: #bad0f2; }
.story-link code { overflow-wrap: anywhere; }
.arrow { margin-left: auto; color: var(--blue); }
.trending { padding: 4px 0 0 3px; }
.trending p { margin: 3px 0 9px; color: var(--muted); font-size: 11px; }
.trending .segments a { flex: 1; }
.trend-list { display: grid; gap: 6px; list-style: none; padding: 0; margin: 9px 0 0; counter-reset: rank; }
.trend-list li { counter-increment: rank; }
.trend-item { display: grid; grid-template-columns: 19px minmax(0, 1fr); column-gap: 8px; padding: 8px 9px; }
.trend-item::before { content: counter(rank); align-self: center; grid-row: span 2; border-radius: 4px; background: var(--pale); color: #49688d; text-align: center; font-size: 10px; line-height: 19px; }
.trend-item code { overflow-wrap: anywhere; color: #204267; font-size: 12px; }
.trend-item span { color: var(--muted); font-size: 11px; }
.trend-item:hover { border-color: #a8c5ed; }
.page-heading { margin: 2px 0 18px; }
.page-heading h1 { margin-top: 7px; font-size: clamp(27px, 3.6vw, 43px); overflow-wrap: anywhere; }
.catalog-tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--line); }
.catalog-tabs a { padding-bottom: 8px; color: var(--muted); }
.catalog-tabs [aria-current] { color: var(--blue); border-bottom: 2px solid var(--blue); }
.catalog-layout, .detail-layout { display: grid; grid-template-columns: 212px minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 14px; }
.catalog-filters { display: grid; gap: 7px; padding: 13px; }
.catalog-filters h2, .repo-sidebar h2 { font-size: 16px; margin-bottom: 6px; }
.catalog-filters label { color: var(--muted); font-size: 12px; }
.catalog-filters input, .catalog-filters select { width: 100%; min-width: 0; padding: 6px 7px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: white; }
.catalog-filters button { margin-top: 4px; }
.catalog-result { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: start; gap: 8px; padding: 12px; }
.catalog-result + .catalog-result { border-top: 1px solid var(--line); }
.catalog-result h2 { font-size: 16px; overflow-wrap: anywhere; }
.catalog-result h2 a:hover { color: var(--blue); text-decoration: underline; }
.catalog-result p { margin-top: 3px; color: var(--muted); font-size: 13px; }
.catalog-downloads, .results-label { font-size: 12px; }
.results-label { margin-bottom: 7px; color: var(--muted); }
.tags { flex-wrap: wrap; margin-top: 7px; gap: 4px; }
.empty { padding: 18px; text-align: center; }
.pagination { margin-top: 10px; }
.repo-heading .between { align-items: center; flex-wrap: wrap; }
.repo-sidebar, .repo-card { padding: 14px; }
.repo-sidebar dl { margin: 12px 0; }
.repo-sidebar dt { margin-bottom: 2px; color: var(--muted); font-size: 12px; }
.repo-sidebar dd { margin: 0 0 9px; overflow-wrap: anywhere; }
.repo-sidebar code { font-size: 11px; }
.repo-card { display: grid; gap: 8px; margin-bottom: 13px; }
.repo-card p { color: var(--muted); }
.repo-card a { justify-self: start; }
.markdown { overflow-wrap: anywhere; overflow: auto; }
.markdown h1, .markdown h2, .markdown h3, .markdown p { margin: 12px 0; }
.markdown h1 { font-size: 23px; }
.markdown a { color: var(--blue); text-decoration: underline; }
.markdown table { border-collapse: collapse; max-width: 100%; }
.markdown th, .markdown td { padding: 6px; border: 1px solid var(--line); }
pre { overflow: auto; padding: 10px; border-radius: 7px; background: #edf4ff; font-size: 12px; }
.files-heading { padding: 12px; }
.file-row { display: grid; grid-template-columns: minmax(0, 1fr) 96px 145px; gap: 8px; align-items: center; min-height: 45px; padding: 6px 12px; border-top: 1px solid var(--line); }
.file-row code { overflow-wrap: anywhere; font-size: 12px; }
.file-row > span { font-size: 12px; }
.file-actions { justify-content: end; gap: 5px; }
.inference-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.inference-preview #api-example { grid-column: 1 / -1; }
@media (max-width: 1200px) {
  .wrap { width: calc(100% - 48px); }
  .home-layout { grid-template-columns: 144px minmax(0, 1fr) 245px; gap: 12px; }
  .header-inner, .primary-nav { gap: 17px; }
}
@media (max-width: 900px) {
  .wrap { width: calc(100% - 34px); }
  .header-inner { flex-wrap: wrap; padding-block: 10px; }
  .header-search { order: 1; width: 100%; }
  .home-layout { grid-template-columns: 138px minmax(0, 1fr); }
  .trending { grid-column: 2; }
  .catalog-layout, .detail-layout { grid-template-columns: 164px minmax(0, 1fr); }
}
@media (max-width: 650px) {
  .primary-nav { gap: 11px; }
  .wallet, .home-menu, .catalog-downloads { display: none; }
  .home-layout, .catalog-layout, .detail-layout, .inference-preview { grid-template-columns: minmax(0, 1fr); }
  .trending { grid-column: auto; }
  .catalog-result { grid-template-columns: 34px minmax(0, 1fr); }
  .file-row { grid-template-columns: minmax(0, 1fr) auto; }
  .file-actions { grid-column: 1 / -1; }
  .footer-inner { flex-wrap: wrap; padding-block: 10px; }
}
