:root {
  color-scheme: light;
  --page: #f7f9fe;
  --surface: #ffffff;
  --surface-raised: #f2f6fd;
  --surface-soft: #eaf1fc;
  --line: #dce4f0;
  --line-strong: #c6d2e4;
  --text: #10213d;
  --body: #43536c;
  --muted: #74839a;
  --accent: #075ee8;
  --accent-strong: #004dcc;
  --accent-soft: rgba(7, 94, 232, .09);
  --accent-border: rgba(7, 94, 232, .28);
  --header: rgba(255, 255, 255, .94);
  --sidebar: #f1f5fc;
  --search: #f6f8fc;
  --search-focus: #fff;
  --hover: #e7eef9;
  --elevated: #fff;
  --shadow: 0 18px 50px rgba(36, 66, 112, .13);
  --overlay: rgba(14, 29, 54, .42);
  --header-height: 68px;
  --sidebar-width: 276px;
  --sans: "Satoshi", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

[data-guide-theme="dark"] {
  color-scheme: dark;
  --page: #111;
  --surface: #181818;
  --surface-raised: #1d1d1d;
  --surface-soft: #222;
  --line: #303030;
  --line-strong: #3a3a3a;
  --text: #f0f0ed;
  --body: #bbb;
  --muted: #898989;
  --accent: #d6c6ac;
  --accent-strong: #e3d6c0;
  --accent-soft: rgba(214, 198, 172, .1);
  --accent-border: #4a4741;
  --header: rgba(20, 20, 20, .96);
  --sidebar: #181818;
  --search: #151515;
  --search-focus: #191919;
  --hover: #202020;
  --elevated: #1b1b1b;
  --shadow: 0 18px 50px rgba(0, 0, 0, .35);
  --overlay: rgba(0, 0, 0, .55);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 32px); }
body { margin: 0; background: var(--page); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; }
svg { display: block; }

.guide-skip-link { position: fixed; z-index: 1000; top: 10px; left: 12px; padding: 8px 12px; border-radius: 5px; background: var(--text); color: var(--page); transform: translateY(-150%); text-decoration: none; }
.guide-skip-link:focus { transform: none; }

.guide-topbar { position: fixed; z-index: 100; inset: 0 0 auto; height: var(--header-height); display: grid; grid-template-columns: var(--sidebar-width) minmax(240px, 520px) 1fr; align-items: center; gap: 28px; padding: 0 28px 0 24px; background: var(--header); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.guide-brand { display: flex; align-items: center; gap: 9px; min-width: 0; color: var(--text); text-decoration: none; white-space: nowrap; }
.guide-brand-mark { position: relative; display: block; width: 27px; height: 27px; flex: 0 0 auto; }
.guide-brand img { position: absolute; inset: 0; width: 27px; height: 27px; object-fit: contain; }
.guide-logo-dark { display: none; }
[data-guide-theme="dark"] .guide-logo-light { display: none; }
[data-guide-theme="dark"] .guide-logo-dark { display: block; }
.guide-brand span { font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.guide-brand i { display: block; width: 1px; height: 18px; margin: 0 2px; background: var(--line-strong); }
.guide-brand strong { color: var(--body); font-size: 14px; font-weight: 500; }
.guide-search { position: relative; display: flex; align-items: center; height: 38px; padding: 0 11px; border: 1px solid var(--line); border-radius: 7px; background: var(--search); transition: border-color .18s, background .18s; }
.guide-search:focus-within { border-color: var(--accent-border); background: var(--search-focus); }
.guide-search svg { width: 17px; height: 17px; flex: 0 0 auto; fill: none; stroke: var(--muted); stroke-width: 1.7; }
.guide-search input { width: 100%; min-width: 0; padding: 0 10px; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 14px; }
.guide-search input::placeholder { color: var(--muted); }
.guide-search kbd { padding: 1px 6px; border: 1px solid var(--line-strong); border-radius: 4px; color: var(--muted); font-family: inherit; font-size: 10px; white-space: nowrap; }
.guide-search-results { position: absolute; z-index: 120; top: calc(100% + 8px); left: 0; right: 0; padding: 5px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--elevated); box-shadow: var(--shadow); }
.guide-search-results a { display: block; padding: 9px 10px; border-radius: 5px; color: var(--body); font-size: 13px; text-decoration: none; }
.guide-search-results a:hover, .guide-search-results a:focus { outline: 0; background: var(--hover); color: var(--text); }
.guide-search-empty { padding: 10px; color: var(--muted); font-size: 13px; }
.guide-top-actions { display: flex; align-items: center; justify-content: flex-end; gap: 24px; }
.guide-top-actions a { color: var(--body); font-size: 13px; font-weight: 500; text-decoration: none; }
.guide-top-actions a:hover { color: var(--text); }
.guide-top-actions .guide-portal-link { padding: 7px 11px; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--text); }
.guide-theme-toggle { display: grid; width: 34px; height: 34px; place-items: center; padding: 0; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface); color: var(--body); cursor: pointer; transition: border-color .18s, color .18s, background .18s; }
.guide-theme-toggle:hover { border-color: var(--accent-border); background: var(--accent-soft); color: var(--accent); }
.guide-theme-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.guide-theme-moon { display: none; }
[data-guide-theme="dark"] .guide-theme-sun { display: none; }
[data-guide-theme="dark"] .guide-theme-moon { display: block; }
.guide-mobile-menu { display: none; width: 38px; height: 38px; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: transparent; }
.guide-mobile-menu svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }

.guide-layout { min-height: 100vh; padding-top: var(--header-height); }
.guide-sidebar { position: fixed; z-index: 80; top: var(--header-height); bottom: 0; left: 0; width: var(--sidebar-width); overflow-y: auto; background: var(--sidebar); border-right: 1px solid var(--line); scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.guide-sidebar-inner { display: flex; min-height: 100%; flex-direction: column; padding: 22px 17px 18px; }
.guide-nav, .guide-nav ul { margin: 0; padding: 0; list-style: none; }
.guide-nav-group + .guide-nav-group { margin-top: 8px; }
.guide-nav-group > button { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 7px 9px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
.guide-nav-group > button svg { width: 12px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform .18s; }
.guide-nav-group.is-open > button svg { transform: rotate(90deg); }
.guide-nav-group > ul { display: none; padding: 2px 0 8px; }
.guide-nav-group.is-open > ul { display: block; }
.guide-nav-group a { display: block; padding: 6px 10px; border-left: 2px solid transparent; border-radius: 0 5px 5px 0; color: var(--body); font-size: 13px; line-height: 1.45; text-decoration: none; }
.guide-nav-group a:hover { background: var(--hover); color: var(--text); }
.guide-nav-group a.is-active { border-left-color: var(--accent); background: var(--accent-soft); color: var(--accent-strong); font-weight: 600; }
.guide-sidebar-help { margin-top: auto; padding: 20px 9px 4px; border-top: 1px solid var(--line); }
.guide-sidebar-help strong { font-size: 13px; }
.guide-sidebar-help p { margin: 4px 0 8px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.guide-sidebar-help > a { color: var(--accent); font-size: 12px; font-weight: 600; text-decoration: none; }
.guide-sidebar-socials { display: flex; gap: 7px; margin-top: 16px; }
.guide-nav-overlay { display: none; }

.guide-main { min-width: 0; margin-left: var(--sidebar-width); }
.guide-container { width: min(100%, 1020px); margin: 0 auto; padding: 68px 58px 32px; }
.guide-chapter { scroll-margin-top: calc(var(--header-height) + 28px); }
.guide-chapter + .guide-chapter { margin-top: 108px; padding-top: 92px; border-top: 1px solid var(--line); }
.guide-page-head { max-width: 820px; padding-bottom: 50px; border-bottom: 1px solid var(--line); }
html:not([data-guide-theme="dark"]) .guide-chapter.is-welcome .guide-page-head { position: relative; max-width: 860px; overflow: hidden; padding: 48px 50px; border: 1px solid #d6e2f4; border-radius: 18px; background: linear-gradient(135deg, #fff 0%, #f7faff 55%, #edf4ff 100%); box-shadow: 0 24px 70px rgba(32, 79, 151, .11); }
html:not([data-guide-theme="dark"]) .guide-chapter.is-welcome .guide-page-head::before,
html:not([data-guide-theme="dark"]) .guide-chapter.is-welcome .guide-page-head::after { content: ""; position: absolute; pointer-events: none; border-radius: 999px; transform: rotate(-24deg); }
html:not([data-guide-theme="dark"]) .guide-chapter.is-welcome .guide-page-head::before { width: 320px; height: 105px; top: -48px; right: -70px; background: linear-gradient(90deg, rgba(0, 190, 255, .22), rgba(7, 94, 232, .28)); }
html:not([data-guide-theme="dark"]) .guide-chapter.is-welcome .guide-page-head::after { width: 240px; height: 72px; top: 33px; right: -92px; background: linear-gradient(90deg, rgba(101, 88, 232, .18), rgba(7, 94, 232, .08)); }
html:not([data-guide-theme="dark"]) .guide-chapter.is-welcome .guide-page-head > * { position: relative; z-index: 1; }
html:not([data-guide-theme="dark"]) .guide-chapter.is-welcome .guide-outcomes { background: rgba(255, 255, 255, .76); backdrop-filter: blur(8px); }
[data-guide-theme="dark"] .guide-chapter.is-welcome .guide-page-head { position: relative; max-width: 860px; overflow: hidden; padding: 48px 50px; border: 1px solid #303743; border-radius: 18px; background: linear-gradient(135deg, #181a1f 0%, #15181f 56%, #141a24 100%); box-shadow: 0 24px 70px rgba(0, 0, 0, .3); }
[data-guide-theme="dark"] .guide-chapter.is-welcome .guide-page-head::before,
[data-guide-theme="dark"] .guide-chapter.is-welcome .guide-page-head::after { content: ""; position: absolute; pointer-events: none; border-radius: 999px; transform: rotate(-24deg); }
[data-guide-theme="dark"] .guide-chapter.is-welcome .guide-page-head::before { width: 320px; height: 105px; top: -48px; right: -70px; background: linear-gradient(90deg, rgba(0, 190, 255, .16), rgba(7, 94, 232, .24)); }
[data-guide-theme="dark"] .guide-chapter.is-welcome .guide-page-head::after { width: 240px; height: 72px; top: 33px; right: -92px; background: linear-gradient(90deg, rgba(101, 88, 232, .2), rgba(7, 94, 232, .08)); }
[data-guide-theme="dark"] .guide-chapter.is-welcome .guide-page-head > * { position: relative; z-index: 1; }
[data-guide-theme="dark"] .guide-chapter.is-welcome .guide-outcomes { border-color: #343b47; background: rgba(18, 20, 24, .76); backdrop-filter: blur(8px); }
.guide-page-head > p { margin: 0 0 20px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .035em; }
.guide-page-head > p span { margin: 0 7px; color: var(--line-strong); }
.guide-page-head h1, .guide-page-head h2 { max-width: 790px; margin: 0; color: var(--text); font-size: clamp(36px, 4vw, 48px); font-weight: 700; letter-spacing: -.045em; line-height: 1.08; }
.guide-lead { max-width: 730px; margin-top: 18px; color: var(--body); font-size: 19px; line-height: 1.6; }
.guide-outcomes { max-width: 760px; margin-top: 32px; padding: 19px 22px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.guide-outcomes > strong { display: block; margin-bottom: 7px; color: var(--accent); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.guide-outcomes ul { margin: 0; padding-left: 20px; }
.guide-outcomes li { padding-left: 3px; color: var(--body); font-size: 14px; line-height: 1.7; }
.guide-outcomes li::marker { color: var(--muted); }

.guide-body { max-width: 820px; }
.guide-article { padding: 52px 0; border-bottom: 1px solid var(--line); }
.guide-article h2 { margin: 0 0 20px; color: var(--text); font-size: 27px; font-weight: 700; letter-spacing: -.025em; line-height: 1.2; }
.guide-article h3 { margin: 34px 0 12px; color: var(--text); font-size: 18px; line-height: 1.3; }
.guide-article p { margin: 0 0 17px; color: var(--body); }
.guide-article p:last-child { margin-bottom: 0; }
.guide-article > ul { margin: 18px 0 0; padding-left: 22px; }
.guide-article > ul li { margin: 9px 0; padding-left: 4px; color: var(--body); }
.guide-article li::marker { color: var(--muted); }
.guide-article a { color: var(--accent); text-decoration-color: var(--accent-border); text-underline-offset: 3px; }
.guide-article strong { color: var(--text); font-weight: 600; }
.guide-steps { margin: 25px 0 0; padding: 0; list-style: none; counter-reset: step; }
.guide-steps li { display: grid; grid-template-columns: 31px 1fr; gap: 15px; padding: 0 0 26px; }
.guide-steps li:last-child { padding-bottom: 0; }
.guide-steps li > span { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid var(--accent-border); border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700; }
.guide-steps li > div { min-width: 0; padding-top: 1px; color: var(--body); }
.guide-steps li p { margin: 3px 0 0; color: var(--muted); }
.guide-note { margin: 27px 0 5px; padding: 17px 19px; border-left: 3px solid var(--accent-border); background: var(--surface-raised); }
.guide-note strong { display: block; color: var(--text); font-size: 14px; }
.guide-note p { margin: 4px 0 0; color: var(--body); font-size: 14px; }
.guide-note.is-warning { border-left-color: var(--accent); background: var(--accent-soft); }
.guide-table-wrap { width: 100%; margin: 24px 0 5px; overflow-x: auto; border: 1px solid var(--line); border-radius: 7px; }
.guide-table-wrap table { width: 100%; border-collapse: collapse; min-width: 540px; }
.guide-table-wrap th, .guide-table-wrap td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.guide-table-wrap tr:last-child td { border-bottom: 0; }
.guide-table-wrap th { background: var(--surface-raised); color: var(--text); font-size: 12px; font-weight: 700; letter-spacing: .025em; }
.guide-table-wrap td { color: var(--body); font-size: 14px; line-height: 1.55; }

.guide-index { padding: 40px 0 0; }
.guide-index-group { margin: 0 0 44px; }
.guide-index-group h2 { margin: 0 0 12px; color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.guide-index-group > div { border-top: 1px solid var(--line); }
.guide-index-group a { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 2px; border-bottom: 1px solid var(--line); text-decoration: none; }
.guide-index-group a:hover strong { color: var(--accent); }
.guide-index-group a span { display: block; }
.guide-index-group a strong { display: block; color: var(--text); font-size: 16px; transition: color .18s; }
.guide-index-group a small { display: block; max-width: 650px; margin-top: 3px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.guide-index-group a b { color: var(--muted); font-size: 18px; font-weight: 400; }

.guide-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 820px; padding: 42px 0 56px; }
.guide-pager > a { min-height: 82px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); text-decoration: none; transition: border-color .18s, background .18s; }
.guide-pager > a:hover { border-color: var(--accent-border); background: var(--surface-raised); }
.guide-pager > a.is-next { text-align: right; }
.guide-pager small { display: block; margin-bottom: 5px; color: var(--muted); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }
.guide-pager strong { color: var(--text); font-size: 14px; font-weight: 600; }
.guide-footer { display: grid; grid-template-columns: 1fr auto auto; align-items: start; gap: 30px; padding: 35px 0 8px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.guide-footer > div:first-child > a { color: var(--text); font-size: 15px; font-weight: 700; text-decoration: none; }
.guide-footer p { margin: 3px 0 0; }
.guide-footer nav { display: flex; gap: 17px; }
.guide-footer nav a { color: var(--body); text-decoration: none; }
.guide-footer nav a:hover { color: var(--text); }
.guide-footer > div:nth-of-type(2) { display: flex; gap: 8px; }
.guide-social { display: grid; width: 29px; height: 29px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); transition: color .18s, border-color .18s, background .18s, transform .18s; }
.guide-social:hover { border-color: var(--accent-border); background: var(--accent-soft); color: var(--accent); transform: translateY(-1px); }
.guide-social svg { width: 13px; height: 13px; fill: currentColor; }
.guide-footer > small { grid-column: 1 / -1; color: var(--muted); }
.guide-back-top { position: fixed; z-index: 70; right: 22px; bottom: 20px; display: grid; width: 38px; height: 38px; place-items: center; padding: 0; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface); color: var(--text); opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .18s, transform .18s; box-shadow: var(--shadow); }
.guide-back-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.guide-back-top svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }

@media (max-width: 1080px) {
  .guide-topbar { grid-template-columns: auto minmax(200px, 1fr) auto; gap: 14px; padding: 0 18px; }
  .guide-mobile-menu { display: grid; }
  .guide-brand { display: none; }
  .guide-top-actions > a:not(.guide-portal-link) { display: none; }
  .guide-sidebar { transform: translateX(-100%); transition: transform .22s ease; }
  body.guide-nav-open { overflow: hidden; }
  body.guide-nav-open .guide-sidebar { transform: none; }
  .guide-nav-overlay { position: fixed; z-index: 75; inset: var(--header-height) 0 0; display: block; background: var(--overlay); opacity: 0; pointer-events: none; transition: opacity .22s; }
  body.guide-nav-open .guide-nav-overlay { opacity: 1; pointer-events: auto; }
  .guide-main { margin-left: 0; }
}

@media (max-width: 720px) {
  :root { --header-height: 62px; }
  .guide-topbar { grid-template-columns: auto 1fr auto; padding: 0 12px; }
  .guide-search kbd, .guide-top-actions .guide-portal-link { display: none; }
  .guide-container { padding: 42px 22px 24px; }
  .guide-page-head { padding-bottom: 38px; }
  html:not([data-guide-theme="dark"]) .guide-chapter.is-welcome .guide-page-head { padding: 32px 24px; border-radius: 13px; }
  [data-guide-theme="dark"] .guide-chapter.is-welcome .guide-page-head { padding: 32px 24px; border-radius: 13px; }
  .guide-page-head h1 { font-size: 34px; }
  .guide-page-head h2 { font-size: 34px; }
  .guide-lead { font-size: 17px; }
  .guide-outcomes { padding: 17px; }
  .guide-article { padding: 40px 0; }
  .guide-article h2 { font-size: 24px; }
  .guide-pager { grid-template-columns: 1fr; }
  .guide-pager > a.is-next { text-align: left; }
  .guide-footer { grid-template-columns: 1fr; }
  .guide-footer nav { flex-wrap: wrap; }
  .guide-footer > small { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
