
:root {
  color-scheme: dark;
  --bg: #090d0d;
  --panel: #0f1513;
  --panel-2: #141c18;
  --text: #eef5f1;
  --muted: #96a79f;
  --line: #26332d;
  --brand: #16a34a;
  --brand-light: #22c55e;
  --warn: #f59e0b;
  --radius: 8px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
a { color: inherit; }
.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 286px;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: #0b100e;
  padding: 22px 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-bottom: 28px;
}
.brand-mark {
  width: 42px;
  height: 42px;
  display: block;
  border-radius: 8px;
  background: #06100b;
  color: #03120a;
  font-weight: 800;
  overflow: hidden;
  border: 1px solid var(--line);
}
.brand-logo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.brand-icon { width: 22px; height: 22px; }
.brand small { display: block; color: var(--muted); }
.nav-section { margin: 20px 0; }
.nav-section h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
  margin: 0 0 8px;
}
.section-icon {
  width: 14px;
  height: 14px;
  color: var(--brand-light);
}
.nav-section a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius);
  color: #cbd8d0;
  text-decoration: none;
  font-size: 14px;
  border: 1px solid transparent;
}
.nav-section a:hover, .nav-section a.active {
  background: var(--panel-2);
  border-color: var(--line);
  color: var(--text);
}
.nav-section a.active {
  box-shadow: inset 3px 0 0 var(--brand-light);
}
.nav-icon {
  width: 16px;
  height: 16px;
  color: var(--brand-light);
}
.content {
  margin-left: 286px;
  max-width: 980px;
  padding: 46px 56px 72px;
}
.hero {
  position: relative;
  border-bottom: 1px solid var(--line);
  padding-bottom: 28px;
  margin-bottom: 32px;
}
.hero-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  margin-bottom: 16px;
  color: var(--brand-light);
  background: var(--panel);
  border: 1px solid var(--line);
}
.hero-icon .icon { width: 26px; height: 26px; }
.hero p {
  margin: 0 0 8px;
  color: var(--brand-light);
  font-weight: 700;
  font-size: 14px;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1;
  margin: 0 0 14px;
  letter-spacing: 0;
}
.hero span { color: var(--muted); font-size: 18px; }
.article h2 { margin-top: 36px; font-size: 28px; line-height: 1.2; }
.article h3 { margin-top: 24px; font-size: 19px; }
.article p, .article li { color: #d6e2db; }
.article a {
  color: var(--brand-light);
  text-decoration: none;
  border-bottom: 1px solid rgba(34, 197, 94, 0.35);
}
.article .doc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin: 10px 0 4px;
  padding: 8px 14px;
  border: 1px solid var(--brand);
  border-radius: var(--radius);
  background: var(--brand);
  color: #04130a;
  font-weight: 700;
  text-decoration: none;
}
.article .doc-button:hover {
  background: var(--brand-light);
}
.article code {
  background: #121a16;
  border: 1px solid var(--line);
  padding: 2px 5px;
  border-radius: 5px;
  font-size: 0.92em;
}
pre {
  overflow-x: auto;
  background: #070b09;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
pre code {
  background: transparent;
  border: 0;
  padding: 0;
}
.table-wrap { overflow-x: auto; margin: 18px 0; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th, td {
  border-bottom: 1px solid var(--line);
  padding: 11px 10px;
  text-align: left;
  vertical-align: top;
}
th { color: var(--text); background: var(--panel); }
td { color: #d6e2db; }
.feature-mark {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1;
}
.feature-yes {
  color: #052e16;
  background: var(--brand-light);
}
.feature-no {
  color: #fecaca;
  background: #3b1618;
  border: 1px solid #7f1d1d;
}
.callout {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 16px;
  margin: 20px 0;
}
.callout-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
}
.callout-title .icon { width: 18px; height: 18px; color: var(--brand-light); }
.callout-warning .callout-title .icon { color: var(--warn); }
.callout-title strong { display: block; }
.callout p { margin: 0; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}
.doc-card {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 8px;
  min-height: 126px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  text-decoration: none;
}
.doc-card:hover {
  border-color: var(--brand);
  background: var(--panel-2);
}
.card-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--brand-light);
  background: #101815;
  border: 1px solid var(--line);
}
.card-icon .icon { width: 18px; height: 18px; }
.doc-card strong { display: block; }
.doc-card span { color: var(--muted); }
.steps { display: grid; gap: 16px; margin: 22px 0; }
.step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.step-number {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--brand-light);
  color: #03120a;
  font-weight: 800;
}
.step h3 { margin: 0 0 8px; }
.accordion details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  margin: 12px 0;
  padding: 0 16px;
}
.accordion summary {
  cursor: pointer;
  padding: 14px 0;
  color: var(--text);
  font-weight: 700;
}
.accordion details[open] {
  border-color: var(--brand);
}
.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  border-top: 1px solid var(--line);
  margin-top: 48px;
  padding-top: 24px;
}
.pager a {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  text-decoration: none;
  background: var(--panel);
}
.pager a:hover {
  border-color: var(--brand);
}
.pager a:last-child { text-align: right; }
.pager span { display: block; color: var(--muted); font-size: 13px; }
.pager strong {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
}
.pager a:last-child strong { justify-content: flex-end; }
.pager-icon { width: 16px; height: 16px; color: var(--brand-light); }
.pager-prev { transform: rotate(180deg); }
.menu-toggle { display: none; }
@media (max-width: 860px) {
  .menu-toggle {
    display: block;
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 30;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 8px 12px;
    background: var(--panel);
    color: var(--text);
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 180ms ease;
    z-index: 20;
  }
  body.nav-open .sidebar { transform: translateX(0); }
  .content {
    margin-left: 0;
    padding: 42px 20px 56px;
  }
  .card-grid, .pager { grid-template-columns: 1fr; }
}
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  height: 58px;
  display: grid;
  grid-template-columns: 280px minmax(320px, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 0 28px;
  border-bottom: 1px solid rgba(38, 51, 45, 0.72);
  background: rgba(7, 12, 10, 0.92);
  backdrop-filter: blur(18px);
}
.top-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  min-width: 0;
}
.top-logo {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: cover;
}
.top-brand strong {
  font-size: 22px;
  line-height: 1;
}
.top-brand span {
  color: var(--muted);
  font-weight: 700;
}
.top-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.search-trigger,
.assistant-trigger,
.theme-button,
.menu-toggle,
.copy-page,
.assistant-header button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10, 16, 14, 0.8);
  color: #d8e4de;
  font: inherit;
}
.search-trigger,
.assistant-trigger {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
}
.search-trigger {
  width: min(100%, 340px);
  justify-content: flex-start;
  color: var(--muted);
}
.search-trigger kbd,
.assistant-composer kbd {
  margin-left: auto;
  color: #87958e;
  font-size: 12px;
  font-family: inherit;
}
.assistant-trigger:hover,
.search-trigger:hover,
.copy-page:hover,
.theme-button:hover {
  border-color: #3b4d45;
  color: var(--text);
}
.top-links {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  font-weight: 700;
}
.top-links a {
  text-decoration: none;
  color: #b8c7bf;
}
.dashboard-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 18px;
  border-radius: 8px;
  background: #178f48;
  color: #f3fff8 !important;
}
.theme-button {
  width: 36px;
  padding: 0;
  display: inline-grid;
  place-items: center;
}
.menu-toggle {
  display: none;
}
.sidebar {
  top: 58px;
  width: 292px;
  padding: 28px 26px 46px;
  background: #07100d;
  border-right-color: rgba(38, 51, 45, 0.72);
}
.sidebar-shortcuts {
  display: grid;
  gap: 10px;
  margin-bottom: 30px;
}
.sidebar-shortcuts a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #aebbb5;
  font-weight: 700;
  text-decoration: none;
}
.shortcut-icon {
  width: 28px;
  height: 28px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #c8d4cf;
  background: #101815;
}
.nav-section {
  margin: 31px 0;
}
.nav-section h2 {
  color: #e5ece8;
  font-size: 15px;
  text-transform: none;
  margin-bottom: 10px;
}
.section-icon {
  color: #f1f7f3;
}
.nav-section a {
  min-height: 36px;
  padding: 7px 16px;
  color: #a7b4ad;
  font-size: 15px;
  border-radius: 8px;
}
.nav-section a.active {
  color: #00f0a0;
  background: #062a1e;
  border-color: transparent;
  box-shadow: none;
  font-weight: 700;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 220px;
  gap: 72px;
  margin-left: 292px;
  padding: 88px 56px 96px;
}
.content {
  margin-left: 0;
  max-width: none;
  padding: 0 0 78px;
}
.article-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
  margin-bottom: 34px;
}
.eyebrow {
  margin: 0 0 8px;
  color: #00f0a0 !important;
  font-weight: 800;
  font-size: 14px;
}
.article h1 {
  margin: 0 0 8px;
  font-size: 34px;
  line-height: 1.12;
  letter-spacing: 0;
}
.page-description {
  margin: 0;
  color: #a7b4ad !important;
  font-size: 19px;
}
.copy-page {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  white-space: nowrap;
}
.article {
  font-size: 16px;
}
.article h2 {
  margin-top: 52px;
  font-size: 27px;
}
.article h3 {
  margin-top: 30px;
  font-size: 17px;
}
.article p,
.article li {
  color: #aebbb5;
  font-size: 17px;
}
.article strong {
  color: #f0f5f2;
}
.article code {
  color: #edf5f1;
  background: #1b2420;
  border: 0;
  font-weight: 700;
}
pre {
  position: relative;
  border-color: #26332d;
  border-radius: 8px;
  background: #080d0b;
  padding: 18px 54px 18px 18px;
}
pre::after {
  content: "Copy";
  position: absolute;
  top: 13px;
  right: 14px;
  color: #9eadac;
  font-size: 12px;
}
.callout {
  display: block;
  border-radius: 14px;
  padding: 18px 20px;
  background: #111a16;
}
.callout-info,
.callout-note {
  background: #0b1d35;
  border-color: #245bb3;
}
.callout-tip {
  background: #06351f;
  border-color: #0d8d4f;
}
.callout-warning {
  background: #2b2110;
  border-color: #8a6218;
}
.callout-title {
  margin-bottom: 0;
}
.callout-title strong {
  display: none;
}
.callout p {
  color: #d7e4de;
}
.card-grid {
  gap: 16px;
}
.doc-card {
  min-height: 158px;
  padding: 22px 24px;
  background: #08110e;
  border-color: #26332d;
}
.doc-card:hover {
  background: #0a1712;
}
.card-icon {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #00f0a0;
}
.steps {
  gap: 0;
}
.step {
  position: relative;
  grid-template-columns: 32px 1fr;
  padding: 0 0 28px;
  border: 0;
  background: transparent;
}
.step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 36px;
  bottom: 0;
  width: 1px;
  background: var(--line);
}
.step-number {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #202a25;
  color: #dce8e2;
}
.table-wrap {
  border-radius: 0;
}
th {
  background: transparent;
}
th,
td {
  border-color: #18231f;
}
.feature-mark {
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  font-size: 16px;
}
.feature-yes {
  color: #20e05d;
}
.feature-no {
  color: #ff432e;
  border: 0;
}
.toc {
  position: sticky;
  top: 96px;
  align-self: start;
  max-height: calc(100vh - 120px);
  overflow: auto;
  padding-left: 8px;
}
.toc h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: #dfe8e3;
  font-size: 14px;
}
.toc-icon {
  width: 15px;
  height: 15px;
}
.toc a,
.toc-empty {
  display: block;
  margin: 0;
  padding: 5px 0;
  color: #9eaaa4;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.45;
}
.toc a:hover,
.toc a.active {
  color: #00f0a0;
}
.toc-depth-3 {
  padding-left: 14px !important;
}
.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 72px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
  color: #728078;
}
.search-dialog[hidden],
.assistant-panel[hidden] {
  display: none;
}
.dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.55);
}
.search-panel {
  position: fixed;
  z-index: 90;
  top: 78px;
  left: 50%;
  width: min(640px, calc(100vw - 28px));
  transform: translateX(-50%);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #08100d;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.search-panel label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.search-panel input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
}
.search-results {
  max-height: 420px;
  overflow: auto;
  padding: 8px;
}
.search-result {
  display: block;
  padding: 12px;
  border-radius: 8px;
  color: #dfe8e3;
  text-decoration: none;
}
.search-result:hover,
.search-result.active {
  background: #102018;
}
.search-result strong {
  display: block;
}
.search-result span {
  display: block;
  margin-top: 3px;
  color: #91a099;
  font-size: 13px;
}
.assistant-panel {
  position: fixed;
  z-index: 70;
  right: 26px;
  bottom: 104px;
  width: min(460px, calc(100vw - 28px));
  max-height: min(620px, calc(100vh - 140px));
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #08100d;
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.assistant-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.assistant-header button {
  min-height: 30px;
  padding: 0 10px;
}
.assistant-messages {
  overflow: auto;
  padding: 14px;
}
.assistant-empty {
  margin: 0;
  color: #91a099;
}
.assistant-message {
  max-width: 92%;
  margin: 0 0 12px;
  padding: 11px 13px;
  border-radius: 12px;
  color: #dce8e2;
  background: #111a16;
  white-space: pre-wrap;
}
.assistant-message.user {
  margin-left: auto;
  background: #06351f;
}
.assistant-message.error {
  background: #321616;
  color: #ffd6d6;
}
.assistant-composer {
  position: fixed;
  z-index: 75;
  left: calc(292px + 56px);
  bottom: 26px;
  width: min(760px, calc(100vw - 404px));
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px 0 16px;
  border: 1px solid #506059;
  border-radius: 15px;
  background: rgba(8, 16, 13, 0.96);
  backdrop-filter: blur(14px);
}
.assistant-composer:focus-within {
  border-color: #7a8d84;
}
.assistant-composer input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
}
.assistant-composer button {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #dff9eb;
  background: #176f43;
}
.search-trigger,
.assistant-trigger,
.theme-button,
.copy-page,
.assistant-header button,
.dashboard-link,
.article .doc-button,
.assistant-composer button,
.doc-card,
.search-result {
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.assistant-trigger:hover,
.search-trigger:hover,
.copy-page:hover,
.theme-button:hover {
  border-color: #16d977;
  color: var(--text);
  background: rgba(11, 35, 24, 0.9);
  box-shadow: 0 0 0 3px rgba(22, 217, 119, 0.08);
  transform: translateY(-1px);
}
.dashboard-link,
.article .doc-button,
.assistant-composer button {
  background: #16a34a;
  color: #03120a;
  box-shadow: 0 10px 24px rgba(22, 163, 74, 0.22);
}
.dashboard-link {
  color: #f3fff8 !important;
}
.dashboard-link:hover,
.article .doc-button:hover {
  background: #22c55e;
  box-shadow: 0 14px 30px rgba(34, 197, 94, 0.3);
  transform: translateY(-1px);
}
.assistant-composer:focus-within {
  border-color: #18d174;
  box-shadow: 0 0 0 4px rgba(24, 209, 116, 0.09), 0 18px 50px rgba(0, 0, 0, 0.28);
}
.assistant-composer button:hover {
  background: #22c55e;
  box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.12);
  transform: translateY(-1px) scale(1.03);
}
.doc-card:hover {
  border-color: #15995a;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
  transform: translateY(-2px);
}
.dialog-backdrop {
  animation: backdrop-fade 150ms ease both;
}
.search-panel {
  transform-origin: top center;
  animation: search-pop 180ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.search-result:hover,
.search-result.active {
  transform: translateX(2px);
}
.assistant-panel {
  transform-origin: bottom right;
  animation: assistant-slide 210ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.assistant-message {
  animation: message-pop 170ms ease both;
}
@keyframes backdrop-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes search-pop {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}
@keyframes assistant-slide {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes message-pop {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 1180px) {
  .topbar {
    grid-template-columns: auto 1fr auto;
  }
  .toc {
    display: none;
  }
  .layout {
    grid-template-columns: minmax(0, 760px);
    gap: 0;
  }
}
@media (max-width: 860px) {
  .topbar {
    grid-template-columns: 1fr auto;
    padding: 0 12px;
  }
  .top-actions {
    display: none;
  }
  .top-links a:not(.dashboard-link),
  .theme-button {
    display: none;
  }
  .menu-toggle {
    position: static;
    display: inline-grid;
  }
  .sidebar {
    top: 58px;
  }
  .layout {
    margin-left: 0;
    padding: 82px 20px 108px;
  }
  .article-header {
    grid-template-columns: 1fr;
  }
  .copy-page {
    width: max-content;
  }
  .assistant-composer {
    left: 14px;
    right: 14px;
    bottom: 14px;
    width: auto;
  }
  .assistant-composer kbd {
    display: none;
  }
}
