:root{
  --bg:#f7f9fb;
  --surface:#ffffff;
  --surface-soft:#fbfcfe;
  --ink:#182335;
  --muted:#637083;
  --line:transparent;
  --line-soft:transparent;
  --green:#113f23;
  --green-2:#1e6a35;
  --leaf:#62a83f;
  --code-bg:#f6f8fb;
  --code-border:#d7e0ea;
  --shadow:0 16px 40px rgba(15,23,42,.06);
  --radius:14px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  background:var(--bg);
  color:var(--ink);
  line-height:1.62;
}
a{color:var(--green-2);text-decoration:none}
a:hover{text-decoration:underline}
code,kbd,pre{font-family:"SFMono-Regular",Consolas,"Liberation Mono",Menlo,monospace}

.layout{
  display:grid;
  grid-template-columns:290px minmax(0,1fr);
  min-height:100vh;
}

.sidebar{
  position:sticky;
  top:0;
  height:100vh;
  overflow:auto;
  background:
    radial-gradient(circle at 20% 100%, rgba(98,168,63,.18), transparent 32%),
    linear-gradient(180deg,#0a2417 0%,#071b12 100%);
  color:white;
  padding:22px 18px;
  border-right:1px solid rgba(255,255,255,.08);
}

.logo-panel{
  display:block;
  width:100%;
  max-width:250px;
  background:#fff;
  border-radius:8px;
  padding:6px;
  box-shadow:0 10px 28px rgba(0,0,0,.16);
  margin:0 0 14px;
  overflow:hidden;
  line-height:0;
}
.logo-panel img{
  display:block;
  width:100%;
  height:auto;
  object-fit:contain;
}
.project-subtitle{
  color:#b7e6a0;
  font-size:14px;
  font-weight:700;
  line-height:1.35;
  margin:10px 2px 22px;
}
.nav-group{margin:20px 0 8px}
.nav-heading{
  font-size:11px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#93d676;
  font-weight:800;
  margin:0 0 7px 2px;
}
.nav-link{
  display:flex;
  align-items:center;
  gap:9px;
  padding:8px 10px;
  border-radius:8px;
  color:rgba(255,255,255,.84);
  font-size:14px;
  margin:2px 0;
}
.nav-link span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 22px;
  width:22px;
  min-width:22px;
  font-size:13px;
  line-height:1;
  text-align:center;
}

.nav-link:hover{
  background:rgba(255,255,255,.08);
  color:white;
  text-decoration:none;
}
.nav-link.active{
  background:rgba(98,168,63,.20);
  color:#d2ffc1;
  font-weight:750;
}
.sidebar-footer{
  margin-top:28px;
  padding-top:16px;
  border-top:1px solid rgba(255,255,255,.12);
  color:rgba(255,255,255,.65);
  font-size:13px;
}
.version-badge{
  display:inline-flex;
  align-items:center;
  padding:1px 8px;
  margin-left:5px;
  border-radius:999px;
  background:rgba(98,168,63,.16);
  color:#c7f3b8;
  border:1px solid rgba(199,243,184,.35);
  font-weight:800;
}

.main-wrap{min-width:0}
.topbar{
  position:sticky;
  top:0;
  z-index:5;
  height:58px;
  padding:0 34px;
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:18px;
  background:rgba(247,249,251,.88);
  backdrop-filter:blur(12px);
  border-bottom:1px solid var(--line);
  color:var(--muted);
  font-size:14px;
}

.content{
  width:min(2000,100%);
  max-width:none;
  margin:0 auto;
  padding:48px clamp(34px,4.8vw,76px) 80px;
}
.breadcrumb{
  color:var(--muted);
  font-size:13px;
  margin-bottom:14px;
}
.hero,.doc-card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.hero{
  padding:42px 48px;
  margin-bottom:30px;
}
.hero-logo{
  max-width:760px;
  width:100%;
  height:auto;
  display:block;
  margin:0 0 18px;
}
.badges{display:flex;gap:9px;flex-wrap:wrap;margin:14px 0 18px}
.badge{
  display:inline-flex;
  align-items:center;
  padding:5px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--surface-soft);
  color:#405067;
  font-size:13px;
  font-weight:750;
}
.badge.green{color:var(--green-2);background:#f2fbef;border-color:#cce9c0}

h1,h2,h3{line-height:1.25;color:#102030;letter-spacing:-.02em}
h1{font-size:clamp(35px,5vw,58px);margin:0 0 12px}
h2{font-size:28px;margin:0 0 14px}
h3{font-size:19px;margin:24px 0 9px}
p{margin:0 0 14px}.lead{font-size:18px;color:#49586b;max-width:92ch}.muted{color:var(--muted)}

.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px}
.button{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:40px;
  padding:9px 14px;
  border-radius:9px;
  border:1px solid var(--line);
  background:white;
  color:#1f2a3a;
  font-weight:800;
}
.button.primary{background:var(--green);border-color:var(--green);color:white}
.button:hover{text-decoration:none;transform:translateY(-1px)}

.doc-card{padding:30px 34px;margin-bottom:24px}
.section-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin-top:18px;
}
.section-tile{
  display:block;
  padding:18px;
  border:1px solid var(--line);
  border-radius:12px;
  background:linear-gradient(180deg,#fff,#fbfcfe);
}
.section-tile strong{display:block;color:#132033;margin-bottom:5px}
.section-tile span{display:block;color:var(--muted);font-size:14px}
.section-tile:hover{box-shadow:var(--shadow);text-decoration:none;transform:translateY(-1px)}

.clean-list{
  padding-left:1.25rem;
  margin:0;
}
.clean-list li{
  margin:8px 0;
  padding-left:.15rem;
}
.clean-list li::marker{
  color:var(--green-2);
  font-size:.85em;
}

pre{
  margin:0 0 20px;
  padding:0;
  overflow:auto;
  border:1px solid var(--code-border);
  border-radius:0 12px 12px 12px;
  background:#fbfdff;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9);
}
pre code{
  display:block;
  padding:18px 20px;
  color:#1f2a3a;
  font-size:13.8px;
  line-height:1.7;
  white-space:pre;
  tab-size:2;
}
.code-title{
  margin:16px 0 0;
  padding:8px 13px;
  width:max-content;
  border:1px solid var(--code-border);
  border-bottom:0;
  border-radius:10px 10px 0 0;
  background:#eef5ef;
  color:var(--green);
  font-size:12px;
  font-weight:850;
}

.flow{
  margin-top:18px;
}
.flow-three{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.35fr) minmax(0,1fr);
  gap:22px;
  align-items:stretch;
}
.flow-card{
  position:relative;
  min-height:280px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  gap:10px;
  padding:24px 22px;
  border:1px solid #e4ece4;
  border-radius:16px;
  background:linear-gradient(180deg,#fff,#fbfcfe);
}
.flow-card:not(:last-child)::after{
  content:"→";
  position:absolute;
  right:-18px;
  top:50%;
  transform:translateY(-50%);
  width:14px;
  color:#8aa381;
  font-weight:900;
}
.flow-card-wide{
  justify-content:space-evenly;
}
.flow-item{
  width:100%;
  padding:12px 14px;
  border-radius:12px;
  background:#f8faf7;
  border:1px solid #e6eee2;
}
.flow-card:not(.flow-card-wide) .flow-item{
  background:#fff;
  box-shadow:var(--shadow);
}
.flow-card-wide .flow-item{
  background:#fff;
  box-shadow:none;
}
.flow-tag{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:max-content;
  margin:0 auto 4px;
  padding:4px 10px;
  border-radius:999px;
  background:#eff8ec;
  color:var(--green-2);
  border:1px solid #cfe8c5;
  font-size:12px;
  font-weight:850;
}
.flow-title{font-weight:900;color:#132033}.flow-desc{color:var(--muted);font-size:14px;max-width:34ch}
.flow-item .flow-desc{max-width:none}
.release{border:1px solid var(--line);border-radius:12px;padding:18px;margin:14px 0;background:var(--surface-soft)}
.release-head{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:6px}.release h3{margin:0}.release-date{color:var(--muted);font-size:14px}
.footer-nav{display:flex;justify-content:space-between;gap:12px;margin-top:28px;padding-top:18px;border-top:1px solid var(--line)}
.footer-nav a{font-weight:800}
.site-footer{margin-top:38px;color:var(--muted);font-size:13px}

@media (max-width:1220px){
  .section-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}

@media (max-width:940px){
  .layout{grid-template-columns:1fr}
  .sidebar{position:relative;height:auto}
  .topbar{display:none}
  .content{padding:28px 20px 54px}
  .section-grid{grid-template-columns:1fr}
  .flow-three{grid-template-columns:1fr;gap:14px}
  .flow-card{min-height:auto;padding:22px 18px}
  .flow-card:not(:last-child)::after{content:"↓";right:auto;left:50%;top:auto;bottom:-17px;transform:translateX(-50%)}
  .hero{padding:24px}
  .logo-panel{max-width:300px}
}

.requirements-note{
  margin-top:16px;
  max-width:95ch;
}
.copy-card{
  margin:18px 0 24px;
  border:1px solid #d7e7d2;
  border-radius:14px;
  background:linear-gradient(180deg,#fbfef9,#ffffff);
  box-shadow:var(--shadow);
  overflow:hidden;
}
.copy-card-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:12px 14px;
  border-bottom:1px solid #e1eddc;
  color:var(--green);
  font-size:13px;
  font-weight:850;
}
.copy-button{
  appearance:none;
  border:1px solid #c8dfbf;
  background:#f1f8ee;
  color:var(--green-2);
  border-radius:999px;
  padding:6px 11px;
  font:inherit;
  font-size:12px;
  font-weight:850;
  cursor:pointer;
}
.copy-button:hover{
  background:#e7f4e1;
}
.copy-code{
  margin:0;
  border:0;
  border-radius:0;
  background:#fbfdff;
  box-shadow:none;
}
.copy-code code{
  padding:18px 20px;
  font-size:14px;
}


.reference-card{
  margin:18px 0 26px;
  padding:20px 22px;
  border:1px solid #e4ece4;
  border-radius:14px;
  background:linear-gradient(180deg,#fff,#fbfcfe);
}
.reference-card h3:first-child{margin-top:0}
.reference-card h3 code{font-size:.95em}
.doc-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  margin:14px 0 18px;
  border:1px solid #e1e9e1;
  border-radius:12px;
  overflow:hidden;
  background:#fff;
}
.doc-table th,
.doc-table td{
  padding:11px 13px;
  text-align:left;
  vertical-align:top;
  border-bottom:1px solid #edf2ed;
}
.doc-table th{
  background:#f3f8f1;
  color:var(--green);
  font-size:13px;
  font-weight:850;
}
.doc-table tr:last-child td{border-bottom:0}
.doc-table td:first-child{width:32%;font-weight:700;color:#132033}
.compact-copy-card{margin:14px 0 4px}


.troubleshooting-item{
  margin-top:18px;
  padding:22px 24px;
  border:1px solid #e4ece4;
  border-radius:12px;
  background:var(--surface-soft);
}
.troubleshooting-item h2{
  margin:0 0 12px;
  font-size:22px;
}
.troubleshooting-item > :last-child{margin-bottom:0}
