:root {
  --doc-ink: #203833;
  --doc-muted: #526761;
  --doc-accent: #24644e;
  --doc-rule: #d7e2dc;
  --doc-paper: #f7f9f7;
  --doc-soft: #edf3ee;
  --doc-font: "DM Sans", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --doc-gutter: clamp(16px, 3.5vw, 52px);
  --doc-width: min(1320px, calc(100% - 2 * var(--doc-gutter)));
}
* { box-sizing: border-box; }
body.laki-doc {
  margin: 0;
  background: var(--doc-paper);
  color: var(--doc-ink);
  font: 15px/1.6 var(--doc-font);
  --ink: var(--doc-ink);
  --mut: var(--doc-muted);
  --muted: var(--doc-muted);
  --line: var(--doc-rule);
  --sans: var(--doc-font);
}
.laki-doc .doc-frame, .laki-doc nav.laki-site-nav > div {
  width: var(--doc-width);
  max-width: none;
  padding: 0;
  margin-inline: auto;
}
.laki-doc main.doc-frame { padding-bottom: 52px; }
.laki-doc nav.laki-site-nav {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--doc-rule);
  color: var(--doc-ink);
}
.laki-doc nav.laki-site-nav > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 60px;
}
.laki-site-nav > div > div {
  display: flex;
  gap: clamp(16px, 2.6vw, 38px);
  align-items: center;
}
.laki-doc nav.laki-site-nav a {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 17px 0 15px;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--doc-muted);
  font: 500 14px/26px var(--doc-font);
  letter-spacing: 0;
  white-space: nowrap;
  text-decoration: none;
}
.laki-doc nav.laki-site-nav a:hover { color: var(--doc-accent); }
.laki-doc nav.laki-site-nav a[aria-current] { border-bottom-color: var(--doc-accent); color: var(--doc-accent); }
.laki-doc nav.laki-site-nav .laki-site-brand { gap: 10px; color: var(--doc-ink); font-size: 18px; font-weight: 600; }
.laki-site-brand i { width: 15px; height: 15px; border-radius: 4px; border: 2px solid #39765b; box-shadow: 3px 3px 0 #c2d9bc; transform: rotate(-8deg); }
.laki-doc a:focus-visible, .laki-doc button:focus-visible, .laki-doc select:focus-visible { outline: 2px solid #397e68; outline-offset: 3px; }
.laki-doc .doc-intro {
  display: grid;
  gap: 8px;
  padding: clamp(28px, 3vw, 44px) 0 clamp(20px, 2vw, 28px);
}
.laki-doc .doc-intro h1 {
  margin: 0;
  color: var(--doc-ink);
  font: 550 clamp(28px, 3vw, 40px)/1.23 var(--doc-font);
  letter-spacing: -.035em;
}
.laki-doc .doc-intro p {
  max-width: 80ch;
  margin: 0;
  color: var(--doc-muted);
  font: 400 15px/1.7 var(--doc-font);
}
.laki-doc :is(.notes, .detail, .secHead, .labHeader, .head, .viewhead) h2, .page-home .pages h2 {
  color: var(--doc-ink);
  font: 550 clamp(19px, 1.65vw, 24px)/1.35 var(--doc-font);
  letter-spacing: -.025em;
}
.page-home .pages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: #fff;
  border: 1px solid var(--doc-rule);
  border-radius: 10px;
  overflow: hidden;
}
.page-home .pages a {
  position: relative;
  display: block;
  padding: 24px 44px 24px 23px;
  color: inherit;
  text-decoration: none;
}
.page-home .pages a:nth-child(odd) { border-right: 1px solid var(--doc-rule); }
.page-home .pages a:nth-child(n+3) { border-top: 1px solid var(--doc-rule); }
.page-home .pages a::after { content: '→'; position: absolute; top: 26px; right: 18px; color: var(--doc-accent); }
.page-home .pages a:hover { background: #f0f5f1; }
.page-home .pages h2 { margin: 0 0 6px; }
.page-home .pages p { margin: 0; color: var(--doc-muted); font-size: 14px; }
.page-source .source-head { background: var(--doc-paper); border: 0; }
.doc-source-tools, .doc-section-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding-block: 9px;
  border-block: 1px solid var(--doc-rule);
}
.doc-source-tools .menu { min-width: 0; max-width: 100%; gap: clamp(13px, 1.8vw, 28px); }
.doc-source-tools .menu button { padding-block: 6px; font-weight: 500; }
.doc-source-tools .sw { border: 1px solid var(--doc-rule); background: #fff; border-radius: 7px; padding: 3px; }
.doc-source-tools .sw button { font-weight: 500; padding: 5px 12px; }
.doc-source-tools .sw .on { background: var(--doc-accent); color: #fff; }
.page-source .envbar { margin: 16px 0; }
.page-source .panel, .page-source .box, .page-source .inspect, .page-migration .diagramCard, .page-migration .lab, .page-cases .board, .page-tools .detail {
  background-color: #fff;
  border-color: var(--doc-rule);
  border-radius: 10px;
}
.page-source footer .doc-frame { padding-block: 16px; }
.doc-section-links { margin-bottom: 22px; }
.doc-section-links a {
  display: inline-block;
  padding: 3px 0;
  color: var(--doc-accent);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: #b5cabc;
  font-size: 14px;
}
.doc-section-links a:hover { text-decoration-color: currentColor; }
.page-migration .secHead > :first-child { min-width: 0; }
.page-migration .section { margin-bottom: 28px; }
.page-migration .sources { border-color: var(--doc-rule); }
.page-cases .board .bar { padding: 8px 14px; border-bottom-color: var(--doc-rule); }
.page-cases .notes { margin-top: 24px; max-width: none; }
.page-cases .node { color: #303540; }
.page-cases .node.topic { color: white; }
.page-tools .detail { border: 1px solid var(--doc-rule); padding: clamp(16px, 2vw, 26px); }
.page-tools .detail + .detail { margin-top: 18px; }
.page-tools .detail h2 { margin: 0 0 10px; }
.page-tools .detail p { margin: 8px 0 13px; color: var(--doc-muted); }
.page-tools .detail > :last-child { margin-bottom: 0; }
.page-tools .scroll { overflow-x: auto; }
.page-tools table { border-collapse: collapse; width: 100%; }
.page-tools th, .page-tools td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--doc-rule); white-space: nowrap; font-size: 14px; }
.page-tools th { background: var(--doc-soft); font-weight: 550; }
.page-tools td code { font: 13px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; }
@media (max-width: 700px) {
  .laki-doc nav.laki-site-nav > div { flex-direction: column; align-items: flex-start; gap: 0; }
  .laki-doc nav.laki-site-nav .laki-site-brand { padding: 10px 0 2px; font-size: 17px; }
  .laki-site-nav > div > div { width: 100%; gap: clamp(12px, 4vw, 24px); overflow-x: auto; }
  .laki-doc nav.laki-site-nav a { padding: 6px 0 8px; font-size: 13px; }
  .laki-doc .doc-intro { gap: 7px; padding: 23px 0 18px; }
  .laki-doc .doc-intro p { font-size: 14px; }
  .page-home .pages { grid-template-columns: 1fr; }
  .page-home .pages a { padding: 18px 38px 18px 16px; }
  .page-home .pages a:nth-child(odd) { border-right: 0; }
  .page-home .pages a + a { border-top: 1px solid var(--doc-rule); }
  .page-home .pages a::after { top: 19px; }
  .doc-source-tools { gap: 4px 12px; }
  .doc-source-tools .menu { width: 100%; }
  .doc-section-links { gap: 6px 16px; margin-bottom: 18px; }
  .page-tools th, .page-tools td { padding: 8px; }
}
@media print {
  .laki-doc nav.laki-site-nav, .doc-source-tools, .doc-section-links { display: none !important; }
  body.laki-doc { background: #fff; }
  .laki-doc .doc-frame { width: 100%; }
}
