:root {
  --bg: #f3f1ec;
  --ink: #1a1c1f;
  --muted: #5c6570;
  --line: #d5d0c6;
  --panel: #fffdf8;
  --accent: #0b6e4f;
  --accent-soft: #e4f2ec;
  --warn: #8a4b08;
  --top: 56px;
  --font: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, #e7efe9 0%, transparent 55%),
    linear-gradient(180deg, #efebe3 0%, var(--bg) 40%);
}
.top {
  position: sticky; top: 0; z-index: 20;
  height: var(--top);
  display: flex; align-items: center; gap: 16px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,253,248,.92);
  backdrop-filter: blur(8px);
}
.brand { display: flex; flex-direction: column; line-height: 1.15; min-width: 160px; }
.brand strong { font-size: 14px; letter-spacing: .02em; }
.brand span { font-size: 11px; color: var(--muted); }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tabs button {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 7px 12px;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.tabs button.on {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: #b7d8c8;
}
.doc {
  margin-left: auto;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
main { max-width: 980px; margin: 0 auto; padding: 28px 20px 64px; }
.pane { display: none; }
.pane.on { display: block; }
#pane-full.on { display: block; max-width: none; }
.hero { margin-bottom: 28px; }
.eyebrow { font-size: 12px; color: var(--muted); margin-bottom: 8px; letter-spacing: .04em; }
h1 { font-size: 28px; line-height: 1.25; margin-bottom: 10px; letter-spacing: -.02em; }
h2 { font-size: 18px; margin: 28px 0 12px; }
h3 { font-size: 15px; margin-bottom: 8px; color: var(--accent); }
.lead { font-size: 15px; color: var(--muted); max-width: 46rem; line-height: 1.6; }
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0 8px;
}
.grid3 article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}
.grid3 p { font-size: 13px; color: var(--muted); line-height: 1.55; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #f7f4ee; font-weight: 700; color: #333; }
tr:last-child td { border-bottom: 0; }
pre, .flow {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.55;
  background: #1c2228;
  color: #e8eee9;
  padding: 14px 16px;
  border-radius: 12px;
  overflow: auto;
  white-space: pre-wrap;
}
ul, .steps { padding-left: 1.2rem; color: var(--muted); line-height: 1.7; font-size: 14px; }
.steps b, ul b { color: var(--ink); }
.note { margin-top: 16px; font-size: 13px; color: var(--warn); }
.full-frame {
  height: calc(100vh - var(--top) - 24px);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.full-frame iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 860px) {
  .grid3 { grid-template-columns: 1fr; }
  .brand span { display: none; }
  main { padding-top: 18px; }
  h1 { font-size: 22px; }
}
