:root {
  color-scheme: dark;
  --bg: #030704;
  --panel: rgba(5, 15, 9, .94);
  --panel-strong: #07110b;
  --line: #174b2c;
  --line-bright: #2d7b47;
  --green: #55ff88;
  --green-soft: #b6ffca;
  --green-dim: #7bb58d;
  --ink: #e2ffea;
  --muted: #96bda2;
  --amber: #ffc15c;
  --red: #ff9187;
  --blue: #8cc9ff;
  --radius: 12px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 18px; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at 50% -12%, rgba(32,115,57,.22), transparent 48%), var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.75;
  padding: max(16px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) calc(34px + env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
}
a { color: var(--green); text-underline-offset: 3px; overflow-wrap: anywhere; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--green-soft); outline-offset: 4px; }
button, input { font: inherit; }
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
.skip { position: absolute; left: 16px; top: -90px; z-index: 100; padding: 10px 16px; background: var(--green); color: #021006; border-radius: 6px; }
.skip:focus { top: 16px; }
.shell { width: min(1220px, 100%); margin: auto; position: relative; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 70px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; min-width: 0; }
.brand-mark { position: relative; isolation: isolate; display: block; width: 38px; height: 38px; flex: 0 0 38px; overflow: hidden; border: 1px solid var(--line-bright); border-radius: 10px; background: var(--bg); }
.brand-avatar, .brand-avatar-fallback { display: block; width: 100%; height: 100%; object-fit: cover; }
.brand-avatar { position: relative; z-index: 1; }
.brand-avatar-fallback { position: absolute; inset: 0; }
.brand strong { display: block; font-size: 17px; letter-spacing: .01em; }
.brand small { display: block; color: var(--muted); font: 10px/1.4 var(--mono); letter-spacing: .09em; }
.nav-toggle { display: none; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border: 1px solid var(--line); background: transparent; color: var(--green-soft); cursor: pointer; }
.site-nav { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 11px; border-radius: 7px; color: var(--muted); text-decoration: none; font-size: 13px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: rgba(85,255,136,.06); color: var(--green); }
.eyebrow { margin: 0 0 10px; color: var(--green-dim); font: 700 11px/1.5 var(--mono); letter-spacing: .13em; }
.hero { padding: 58px 0 34px; }
.hero h1 { max-width: 960px; margin: 0; font-size: clamp(36px, 6.8vw, 74px); line-height: 1.06; letter-spacing: -.045em; font-weight: 800; }
.hero h1 span { color: var(--green); }
.lede { max-width: 820px; margin: 20px 0 0; color: var(--muted); font-size: clamp(16px, 2.2vw, 20px); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 18px; border: 1px solid var(--green); border-radius: 7px; background: var(--green); color: #021108; font: 700 13px/1.35 var(--sans); text-decoration: none; cursor: pointer; transition: background .18s, border-color .18s; }
.btn:hover { background: #8dffab; }
.btn.secondary { background: transparent; color: var(--green-soft); border-color: var(--line-bright); }
.btn.secondary:hover { border-color: var(--green); background: rgba(85,255,136,.06); }
.btn.small { min-height: 42px; padding: 8px 13px; font-size: 12px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tag { display: inline-flex; align-items: center; min-height: 30px; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(85,255,136,.025); color: var(--muted); font-size: 12px; }
.tag b { color: var(--green-soft); font-weight: 600; }
.section { margin: 52px 0; scroll-margin-top: 18px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-head h2 { margin: 0; font-size: clamp(25px, 4vw, 38px); line-height: 1.2; letter-spacing: -.025em; }
.section-head p { max-width: 580px; margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.grid { display: grid; gap: 14px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.card h2, .card h3 { margin: 0 0 9px; color: var(--ink); line-height: 1.35; }
.card h3 { font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.card .kicker { margin-bottom: 10px; color: var(--green); font: 700 11px/1.5 var(--mono); letter-spacing: .08em; }
.card ul { margin-bottom: 0; }
.path-card { display: flex; flex-direction: column; gap: 14px; }
.path-card h3 { margin: 0; font-size: 20px; }
.path-card .path-meta { color: var(--green-soft); font-size: 13px; }
.path-card .btn { align-self: flex-start; margin-top: auto; }
.feature { position: relative; overflow: hidden; }
.feature::after { content: attr(data-no); position: absolute; right: 15px; top: 8px; color: rgba(85,255,136,.08); font: 700 54px/1 var(--mono); }
.feature h3 { position: relative; z-index: 1; }
.notice { margin: 16px 0; padding: 14px 16px; border: 1px solid rgba(255,193,92,.36); border-left: 4px solid var(--amber); border-radius: 8px; background: rgba(66,40,4,.25); color: #f5d9a7; font-size: 14px; }
.notice strong { color: var(--amber); }
.ok { margin: 16px 0; padding: 14px 16px; border: 1px solid rgba(85,255,136,.3); border-left: 4px solid var(--green); border-radius: 8px; background: rgba(19,61,31,.24); color: var(--green-soft); font-size: 14px; }
.status-strip { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; padding: 12px 14px; border: 1px solid var(--line); border-left: 3px solid var(--green); border-radius: 6px; background: rgba(5,20,10,.88); color: var(--green-soft); font-size: 13px; }
.status-strip .prompt { color: var(--green); white-space: nowrap; font-family: var(--mono); }
.workspace { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.65fr) minmax(0,.85fr); gap: 14px; align-items: start; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: 0 18px 50px rgba(0,0,0,.2); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 10px 15px; border-bottom: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; background: rgba(9,30,15,.68); color: var(--green-soft); font-size: 13px; }
.panel-head small { color: var(--muted); font: 10px/1.4 var(--mono); }
.panel-body { padding: 16px; }
.check-list { list-style: none; padding: 0; margin: 0 0 20px; }
.check-list li { display: flex; align-items: flex-start; gap: 9px; padding: 8px 0; border-bottom: 1px dashed rgba(51,111,68,.3); color: var(--muted); font-size: 13px; }
.check-list li:last-child { border-bottom: 0; }
.check-list .ok { color: var(--green); }
.check-list .warn { color: var(--amber); }
.app-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 50px; margin-top: 9px; padding: 9px 12px; border: 1px solid var(--line-bright); border-radius: 7px; color: var(--green-soft); text-decoration: none; font-size: 13px; }
.app-link:hover { background: rgba(85,255,136,.06); }
.app-link b { display: block; color: var(--ink); }
.app-link small { color: var(--muted); font-size: 11px; }
.terminal { border: 1px solid var(--line-bright); border-radius: 8px; overflow: hidden; background: #020803; font-family: var(--mono); }
.terminal-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.terminal-log { padding: 15px 14px 8px; font-size: 11px; }
.log-line { margin: 0 0 6px; color: var(--muted); }
.log-line .success { color: var(--green); }
.log-line .info { color: var(--blue); }
.command-wrap { margin: 0 12px 12px; border: 1px solid var(--line); border-radius: 5px; background: rgba(8,25,12,.8); }
.command-label { padding: 8px 10px 0; color: var(--green-dim); font-size: 10px; letter-spacing: .08em; }
.command { padding: 10px; color: var(--green-soft); font-size: 11px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; user-select: all; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 18px 0 0; }
.steps li { counter-increment: step; position: relative; padding: 13px 0 13px 44px; border-top: 1px solid rgba(45,123,71,.28); }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 15px; color: var(--green); font: 700 12px/1.5 var(--mono); }
.steps h3 { margin: 0 0 4px; font-size: 14px; }
.steps p { margin: 0; color: var(--muted); font-size: 12px; }
.meta { margin: 16px 0; }
.meta div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed rgba(51,111,68,.3); font-size: 12px; }
.meta dt { color: var(--muted); }
.meta dd { margin: 0; color: var(--green-soft); text-align: right; overflow-wrap: anywhere; }
.hash { color: var(--muted); font: 10px/1.65 var(--mono); overflow-wrap: anywhere; }
.downloads { display: grid; gap: 9px; margin-top: 16px; }
.download-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 6px; color: var(--green-soft); text-decoration: none; font-size: 12px; }
.download-link:hover { border-color: var(--green); background: rgba(85,255,136,.04); }
.privacy { margin-top: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 13px; }
.privacy strong { color: var(--green-soft); }
.support-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)) minmax(270px,.9fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.support-link, .donation { min-width: 0; min-height: 125px; padding: 18px; border-right: 1px solid var(--line); color: var(--green-soft); text-decoration: none; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
.support-link:hover { background: rgba(85,255,136,.05); }
.support-link small, .donation small { color: var(--muted); font-size: 11px; }
.support-link b { color: var(--ink); font-size: 13px; overflow-wrap: anywhere; }
.support-link .arrow { align-self: flex-end; }
.donation { border-right: 0; flex-direction: row; align-items: center; justify-content: center; text-align: center; }
.donation img { display: block; width: 116px; height: 116px; object-fit: contain; border: 4px solid #fff; background: #fff; }
.donation-copy { display: grid; gap: 4px; }
.donation-copy strong { color: var(--green-soft); font-size: 13px; }
.site-footer { margin-top: 52px; padding: 22px 0 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 2px 18px; margin-top: 10px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.layout { display: grid; grid-template-columns: 230px minmax(0,1fr); gap: 26px; align-items: start; }
.toc { position: sticky; top: 18px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.toc b { display: block; margin-bottom: 8px; color: var(--green); font: 700 11px/1.5 var(--mono); }
.toc a { display: flex; align-items: center; min-height: 44px; padding: 8px 0; color: var(--muted); text-decoration: none; font-size: 13px; }
.toc a:hover { color: var(--green); }
.doc { min-width: 0; }
.doc-section { margin-bottom: 18px; padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); scroll-margin-top: 18px; }
.doc-section h2 { margin: 0 0 14px; font-size: clamp(22px,3.6vw,30px); line-height: 1.3; }
.doc-section h3 { margin: 24px 0 8px; color: var(--green-soft); font-size: 17px; }
.doc-section p:last-child { margin-bottom: 0; }
code { padding: 2px 6px; border: 1px solid rgba(85,255,136,.16); border-radius: 5px; background: rgba(85,255,136,.055); color: var(--green-soft); font: .92em/1.5 var(--mono); overflow-wrap: anywhere; }
.table-wrap { overflow-x: auto; margin: 14px 0; border: 1px solid var(--line); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--green); background: rgba(85,255,136,.045); font-size: 12px; }
tr:last-child td { border-bottom: 0; }
.table-wrap a { display: inline-flex; align-items: center; min-height: 44px; }
.search-box { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 15px; border: 1px solid var(--line-bright); border-radius: 10px; background: var(--panel); }
.search-box input { flex: 1; min-width: 0; min-height: 44px; border: 0; outline: 0; background: transparent; color: var(--ink); }
.search-box input::placeholder { color: var(--muted); }
.search-box .btn { flex: 0 0 auto; }
.error-list { display: grid; gap: 12px; margin-top: 18px; }
.error-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.error-card summary { display: flex; align-items: center; gap: 14px; min-height: 66px; padding: 16px 18px; cursor: pointer; list-style: none; }
.error-card summary::-webkit-details-marker { display: none; }
.error-card summary::after { content: "+"; margin-left: auto; color: var(--green); font: 24px/1 var(--mono); }
.error-card[open] summary::after { content: "−"; }
.error-card summary h2 { flex: 1; margin: 0; font-size: 17px; }
.error-card summary small { color: var(--muted); font: 11px/1.5 var(--mono); }
.error-body { padding: 0 20px 20px; border-top: 1px solid var(--line); }
.error-body h3 { margin: 18px 0 7px; font-size: 15px; }
.error-body li { color: var(--muted); }
.signature { padding: 12px; border-radius: 7px; background: #020805; color: var(--green-soft); font: 12px/1.7 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.empty { padding: 28px; border: 1px dashed var(--line-bright); border-radius: var(--radius); color: var(--muted); text-align: center; }
details summary { min-height: 44px; }
.faq details { padding: 14px 0; border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { color: var(--ink); cursor: pointer; font-weight: 600; }
.faq details p { margin: 10px 0 0; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
#matrix { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: .15; pointer-events: none; }
@media (max-width: 1050px) {
  .workspace { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .execution { grid-column: 1 / -1; grid-row: 1; }
  .support-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .support-link:nth-child(2) { border-right: 0; }
  .support-link:nth-child(3) { border-right: 1px solid var(--line); border-top: 1px solid var(--line); }
  .donation { border-top: 1px solid var(--line); }
}
@media (max-width: 800px) {
  .site-header { align-items: flex-start; flex-wrap: wrap; gap: 8px; }
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; width: 100%; justify-content: flex-start; }
  .site-nav.open { display: flex; }
  .site-nav a { padding-left: 0; padding-right: 14px; }
  .hero { padding: 38px 0 24px; }
  .layout { grid-template-columns: 1fr; }
  .toc { position: static; }
  .toc nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 16px; }
  .grid.three { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  body { padding-left: 13px; padding-right: 13px; }
  .workspace, .grid.two { grid-template-columns: 1fr; }
  .execution { grid-column: auto; }
  .support-grid { grid-template-columns: 1fr; }
  .support-link { min-height: 86px; border-right: 0; border-top: 1px solid var(--line); }
  .support-link:first-child { border-top: 0; }
  .donation { border-top: 1px solid var(--line); }
  .section { margin: 38px 0; }
  .section-head { display: block; }
  .card, .doc-section { padding: 18px 15px; }
  .actions .btn { flex: 1 1 100%; }
  .search-box { flex-wrap: wrap; }
  .search-box input { flex-basis: calc(100% - 50px); }
  .error-card summary { flex-wrap: wrap; gap: 5px 10px; padding: 14px; }
  .error-card summary h2 { flex-basis: calc(100% - 30px); }
  .error-card summary small { padding-left: 0; }
  .table-wrap { overflow: visible; border: 0; }
  table, thead, tbody, tr, th, td { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  tr { margin-bottom: 10px; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
  td { padding: 10px 13px; border-bottom: 1px solid rgba(23,75,44,.5); }
  td:first-child { width: auto; }
  td::before { content: attr(data-label); display: block; margin-bottom: 3px; color: var(--green-dim); font: 700 10px/1.5 var(--mono); }
}
@media (max-width: 390px) {
  .brand small { font-size: 9px; }
  .hero h1 { font-size: 36px; }
  .toc nav { grid-template-columns: 1fr; }
  .command { font-size: 10px; }
  .panel-body { padding: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  #matrix { display: none; }
  .brand-avatar { display: none; }
}
