:root {
  color-scheme: dark;
  --bg: #101113;
  --surface: #17191c;
  --surface-2: #1d2024;
  --border: #30333a;
  --border-soft: #26292d;
  --text: #eff0f2;
  --muted: #a0a5ae;
  --dim: #737984;
  --accent: #dce3ef;
  --focus: #9abaff;
  --max: 1060px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Arial, sans-serif; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: var(--text); text-underline-offset: 3px; }
a:hover { color: #fff; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.container { width: min(calc(100% - 44px), var(--max)); margin: 0 auto; }
.site-header { border-bottom: 1px solid var(--border-soft); }
.header-inner { min-height: 73px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; text-decoration: none; gap: 11px; white-space: nowrap; }
.brand-logo { width: 32px; height: 32px; border-radius: 8px; display: block; flex: none; }
.brand-text { font-weight: 700; font-size: 15px; letter-spacing: -.02em; }
.brand-separator { border-left: 1px solid #51555b; height: 18px; margin: 0 2px 0 3px; }
.brand-project { font-size: 13px; color: #b8bcc3; font-weight: 500; }
.topnav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topnav a { text-decoration: none; font-size: 13px; color: #a9adb6; }
.topnav a:hover, .topnav a[aria-current="page"] { color: #fff; }
.topnav a[aria-current="page"] { font-weight: 600; }
.topnav .nav-contribute { border: 1px solid var(--border); border-radius: 6px; padding: 5px 11px; color: var(--text); background: var(--surface); }
.topnav .nav-contribute:hover { background: var(--surface-2); border-color: #494d56; }
.eyebrow { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--muted); letter-spacing: .01em; }
.dot { width: 7px; height: 7px; background: #86b79e; border-radius: 50%; display: inline-block; flex: none; }
.dot.demo { background: #c0a776; }
.hero { padding: 54px 0 28px; }
.hero h1 { font-size: clamp(31px, 4.2vw, 48px); letter-spacing: -.048em; line-height: 1.13; margin: 15px 0 12px; font-weight: 650; }
.hero p { color: var(--muted); max-width: 680px; font-size: 15px; margin: 0; }
.search-wrap { margin-top: 26px; }
.search-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.searchbox { background: var(--surface); border: 1px solid #494d56; border-radius: 11px; display: flex; align-items: center; gap: 12px; padding: 6px 7px 6px 17px; min-height: 58px; transition: border-color .15s; }
.searchbox:focus-within { border-color: #a4acc0; }
.search-icon { color: #8e949f; flex: none; }
.searchbox input { appearance: none; color: var(--text); background: transparent; border: 0; min-width: 0; outline: 0; width: 100%; font-size: 15px; padding: 10px 0; }
.searchbox input::placeholder { color: #888e98; }
.searchbox input:focus-visible { outline: none; }
.search-submit { flex: none; height: 43px; border: 0; border-radius: 7px; background: #e6e8eb; color: #17191c; font-weight: 650; padding: 0 22px; }
.search-submit:hover { background: #fff; }
.search-hint { color: var(--dim); font-size: 12px; margin-top: 10px; display: flex; justify-content: space-between; gap: 12px; }
.preview-note { display: flex; align-items: flex-start; gap: 9px; padding: 13px 15px; color: #b7bbc4; background: #191a1d; border: 1px solid #32343b; border-radius: 8px; margin: 10px 0 28px; font-size: 12.5px; }
.preview-note strong { color: #e3e5e9; }
.preview-note svg { flex: none; margin-top: 2px; }
.content { padding-bottom: 38px; }
.tabs { display: flex; gap: 27px; border-bottom: 1px solid var(--border); }
.tab { display: inline-block; text-decoration: none; background: none; color: var(--muted); border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 13px 1px 14px; font-weight: 550; font-size: 14px; }
.tab[aria-selected="true"] { color: var(--text); border-bottom-color: #e5e7eb; font-weight: 650; }
.tab:hover { color: #fff; }
.section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin: 28px 0 18px; }
.section-head h2 { margin: 0 0 3px; font-size: 20px; letter-spacing: -.025em; font-weight: 650; }
.section-head p { margin: 0; color: var(--muted); font-size: 13px; }
.pill { padding: 5px 10px; border: 1px solid var(--border); border-radius: 6px; color: var(--muted); font-size: 11px; white-space: nowrap; background: var(--surface); }
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.control-select { appearance: none; color: var(--text); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a4a9b2' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; border: 1px solid var(--border); border-radius: 7px; padding: 8px 34px 8px 12px; font-size: 13px; min-height: 38px; }
.check { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; white-space: nowrap; user-select: none; cursor: pointer; }
.check input { accent-color: #dbe0e8; width: 15px; height: 15px; }
.control-apply { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: 7px; padding: 8px 14px; font-size: 13px; min-height: 38px; }
.control-apply:hover { background: #262930; }
.export-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-left: auto; font-size: 12px; color: var(--dim); }
.export-strip a, .btn-link { display: inline-flex; align-items: center; gap: 5px; text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 5px 10px; font-size: 12px; }
.export-strip a:hover, .btn-link:hover { background: var(--surface-2); border-color: #4c515c; }
.table-wrap { border: 1px solid var(--border); border-radius: 9px; overflow-x: auto; background: var(--bg); }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { color: #a5aab3; background: #1b1d20; font-size: 11px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
th, td { padding: 12px 18px; vertical-align: top; }
tbody tr { border-top: 1px solid var(--border-soft); }
tbody tr:hover { background: #181a1d; }
td.rank { width: 8%; color: #858b94; font-variant-numeric: tabular-nums; }
.num { text-align: right; font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; white-space: nowrap; }
.word-link { color: #e9ebef; text-decoration: none; font-weight: 550; font-size: 14px; }
.word-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.subtext { color: var(--dim); font-size: 12px; margin-top: 2px; }
.snippet { color: var(--muted); font-size: 13px; margin-top: 4px; max-width: 68ch; }
.no-results { padding: 48px 16px; text-align: center; color: var(--muted); font-size: 14px; }
.no-results strong { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; }
.list-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 15px; flex-wrap: wrap; }
.pagination-info { color: var(--muted); font-size: 12px; }
.pager { display: flex; gap: 7px; align-items: center; }
.pager a, .pager span.disabled { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 6px; min-width: 36px; height: 36px; font-size: 13px; padding: 0 12px; }
.pager a:hover { background: #24272c; }
.pager span.disabled { opacity: .35; cursor: default; }
.aside-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 46px; }
.simple-card { border: 1px solid var(--border); border-radius: 9px; padding: 24px; background: #151719; }
.simple-card h3 { font-size: 16px; letter-spacing: -.02em; margin: 0 0 9px; font-weight: 650; }
.simple-card p { color: var(--muted); font-size: 13px; line-height: 1.68; margin: 0 0 14px; }
.simple-card a { color: var(--text); font-size: 13px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; word-break: break-word; }
.small-top { text-transform: uppercase; letter-spacing: .08em; font-size: 10px; color: var(--dim); margin-bottom: 10px; }
.code-lines { border: 1px solid var(--border-soft); background: #101113; border-radius: 6px; padding: 10px 12px; color: #c8cbd2; margin: 14px 0; display: grid; gap: 7px; overflow-x: auto; }
.code-lines code, pre.code-block { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; white-space: pre; }
.code-lines .method { color: #b2bfcc; }
pre.code-block { border: 1px solid var(--border-soft); background: #101113; border-radius: 8px; padding: 14px; overflow-x: auto; color: #d3d7df; line-height: 1.5; }
.support-note { border-top: 1px solid var(--border-soft); padding: 28px 0 32px; margin-top: 32px; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.support-note h2 { font-size: 15px; margin: 0 0 7px; }
.support-note p { max-width: 720px; margin: 0; font-size: 13px; line-height: 1.75; color: var(--muted); }
.btn-contribute { display: inline-flex; align-items: center; gap: 8px; background: #e6e8eb; color: #17191c; text-decoration: none; font-weight: 650; font-size: 13px; padding: 10px 18px; border-radius: 7px; white-space: nowrap; }
.btn-contribute:hover { background: #fff; color: #101113; }
.site-footer { border-top: 1px solid var(--border-soft); margin-top: 24px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 24px 0 32px; color: var(--dim); font-size: 12px; flex-wrap: wrap; }
.footer-brand { display: inline-flex; align-items: center; gap: 8px; }
.footer-logo { width: 20px; height: 20px; border-radius: 5px; display: block; flex: none; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: #fff; }
.detail-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 11px; margin: 20px 0 24px; }
.stat { padding: 14px; border: 1px solid var(--border); border-radius: 8px; background: #151719; }
.stat strong { font-size: 20px; display: block; font-variant-numeric: tabular-nums; word-break: break-word; }
.stat span { font-size: 11px; color: var(--muted); }
.variant-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 22px; }
.download-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 24px; }
.page-text { border: 1px solid var(--border); border-radius: 9px; background: #151719; padding: 22px; white-space: pre-wrap; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.65; }
.breadcrumb { font-size: 12px; color: var(--muted); margin-bottom: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.prose section { margin: 28px 0; }
.prose h2 { font-size: 18px; margin: 0 0 10px; }
.prose p, .prose li { color: var(--muted); font-size: 14px; line-height: 1.7; max-width: 78ch; }
@media (max-width: 780px) {
  .topnav { gap: 14px; }
  .brand-project, .brand-separator { display: none; }
  .hero { padding-top: 38px; }
  .aside-grid { grid-template-columns: 1fr; margin-top: 32px; }
  .header-inner { min-height: 64px; flex-wrap: wrap; padding: 10px 0; }
}
@media (max-width: 570px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .hero h1 { font-size: 32px; }
  .searchbox { min-height: 52px; padding-left: 12px; }
  .search-submit { height: 39px; padding: 0 14px; }
  .search-hint span:last-child { display: none; }
  .section-head { flex-direction: column; gap: 8px; }
  th, td { padding: 10px 10px; }
  .export-strip { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
