:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #eef3f8;
  --text: #183652;
  --muted: #607288;
  --line: #dce5ef;
  --primary: #0ba5e7;
  --primary-dark: #0054b8;
  --primary-soft: #e5f5fd;
  --accent: #ffbd45;
  --navy: #0f2d4d;
  --danger: #b8443c;
  --warning: #8b5a00;
  --shadow: 0 20px 60px rgba(15, 45, 77, 0.1);
  --topbar: 72px;
  --sidebar: 292px;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #071d35;
  --surface: #0d2947;
  --surface-soft: #123654;
  --text: #f1f6fb;
  --muted: #afbdcd;
  --line: #294967;
  --primary: #14adeb;
  --primary-dark: #68cef6;
  --primary-soft: #103f62;
  --navy: #f7f9fc;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
a { color: inherit; }
code {
  padding: .15rem .4rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--primary-dark);
  font-size: .9em;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--surface);
  transform: translateY(-150%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.topbar {
  position: fixed;
  z-index: 80;
  inset: 0 0 auto 0;
  height: var(--topbar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(18px);
}
.brand, .topbar-actions { display: flex; align-items: center; }
.brand { gap: 14px; }
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: block;
  flex: 0 0 auto;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.brand-copy { display: grid; line-height: 1; }
.brand-copy strong { color: var(--navy); font-size: 16px; letter-spacing: .1em; }
.brand-copy small { margin-top: 5px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .22em; }
.version-pill {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.topbar-actions { gap: 12px; }
.search-trigger {
  min-width: 280px;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--muted);
  cursor: pointer;
  text-align: left;
}
.search-trigger span:nth-child(2) { flex: 1; }
kbd {
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
}
.site-link {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.site-link:hover { color: var(--primary); }
.icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.icon-button:hover { border-color: var(--primary); color: var(--primary); }
.mobile-only { display: none; }

.app-shell { min-height: 100vh; padding-top: var(--topbar); }
.sidebar {
  position: fixed;
  z-index: 60;
  inset: var(--topbar) auto 0 0;
  width: var(--sidebar);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 28px 22px 22px;
  border-right: 1px solid var(--line);
  background: var(--surface);
}
.sidebar-intro { padding: 0 10px 22px; border-bottom: 1px solid var(--line); }
.eyebrow, .nav-label, .hero-kicker {
  color: var(--primary);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.sidebar-intro p { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.docs-nav { padding: 8px 0 28px; }
.nav-group { margin-top: 20px; }
.nav-label { margin: 0 10px 8px; color: var(--muted); font-size: 10px; }
.docs-nav a {
  position: relative;
  display: block;
  margin: 2px 0;
  padding: 8px 12px 8px 30px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  transition: .18s ease;
}
.docs-nav a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 13px;
  width: 5px;
  height: 5px;
  border: 1px solid currentColor;
  border-radius: 50%;
  transform: translateY(-50%);
}
.docs-nav a:hover { background: var(--surface-soft); color: var(--text); }
.docs-nav a.is-active { background: var(--primary-soft); color: var(--primary-dark); }
.docs-nav a.is-active::before { border-color: var(--primary); background: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 14%, transparent); }
.sidebar-help {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}
.help-dot { width: 8px; height: 8px; flex: 0 0 auto; margin-top: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px rgba(11, 165, 231, .14); }
.sidebar-help strong { font-size: 12px; }
.sidebar-help p { margin: 2px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.sidebar-backdrop { display: none; }

.main {
  position: relative;
  width: calc(100% - var(--sidebar));
  min-height: calc(100vh - var(--topbar));
  margin-left: var(--sidebar);
  padding: 52px max(44px, calc((100vw - var(--sidebar) - 940px) / 2)) 32px;
}
.reading-progress { position: fixed; z-index: 75; top: calc(var(--topbar) - 1px); left: var(--sidebar); right: 0; height: 2px; background: transparent; }
.reading-progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width .2s ease; }
.doc-page { display: none; width: min(100%, 940px); margin: 0 auto; animation: pageIn .28s ease; }
.doc-page.is-active { display: block; }
@keyframes pageIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.breadcrumb { display: flex; align-items: center; gap: 9px; margin-bottom: 30px; color: var(--muted); font-size: 12px; }
.breadcrumb i { opacity: .45; font-style: normal; }
.breadcrumb strong { color: var(--text); }
.doc-hero { max-width: 790px; margin-bottom: 42px; }
.doc-hero h1 { margin: 10px 0 14px; color: var(--navy); font-size: clamp(36px, 5vw, 56px); line-height: 1.06; letter-spacing: -.04em; }
.doc-hero p { margin: 0; color: var(--muted); font-size: 19px; line-height: 1.7; }
.doc-section { margin: 48px 0; }
.doc-section h2, .split-cards h2 { margin: 0 0 12px; color: var(--navy); font-size: 27px; letter-spacing: -.025em; }
.doc-section > p { color: var(--muted); }

.quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 30px 0 48px; }
.quick-card {
  position: relative;
  display: grid;
  gap: 3px;
  min-height: 130px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 8px 30px rgba(15, 45, 77, .05);
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.quick-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); box-shadow: var(--shadow); }
.quick-card span { position: absolute; top: 18px; right: 18px; color: var(--primary); font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.quick-card strong { align-self: end; color: var(--navy); font-size: 17px; }
.quick-card small { color: var(--muted); font-size: 12px; }
.checklist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 18px; margin-top: 20px; }
.checklist label { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--muted); font-size: 13px; }
.checklist input { accent-color: var(--primary); }

.steps { list-style: none; margin: 34px 0 48px; padding: 0; counter-reset: steps; }
.steps > li { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding-bottom: 30px; }
.steps > li:not(:last-child)::after { content: ""; position: absolute; top: 44px; bottom: 0; left: 21px; width: 1px; background: var(--line); }
.steps > li > span {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--primary) 35%, var(--line));
  border-radius: 13px;
  background: var(--surface);
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
}
.steps h3 { margin: 1px 0 5px; color: var(--navy); font-size: 18px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }
.compact-steps { margin: 22px 0 36px; padding-left: 0; list-style: none; counter-reset: compact; }
.compact-steps li { position: relative; margin: 0; padding: 13px 12px 13px 48px; border-bottom: 1px solid var(--line); color: var(--muted); }
.compact-steps li::before { counter-increment: compact; content: counter(compact); position: absolute; left: 8px; top: 12px; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 8px; background: var(--primary-soft); color: var(--primary-dark); font-size: 11px; font-weight: 900; }

.callout { position: relative; margin: 32px 0; padding: 19px 22px 19px 54px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.callout::before { position: absolute; left: 20px; top: 19px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; font-size: 12px; font-weight: 900; }
.callout strong { display: block; margin-bottom: 3px; color: var(--navy); font-size: 14px; }
.callout p { margin: 0; color: var(--muted); font-size: 13px; }
.callout.info { border-left: 3px solid var(--primary); }
.callout.info::before { content: "i"; background: var(--primary-soft); color: var(--primary-dark); }
.callout.warning { border-left: 3px solid var(--accent); }
.callout.warning::before { content: "!"; background: #fff4d8; color: var(--warning); }
.callout.danger { border-left: 3px solid #cc5b51; }
.callout.danger::before { content: "!"; background: #fbe8e6; color: var(--danger); }
.callout.tip { border-left: 3px solid var(--primary); }
.callout.tip::before { content: "✓"; background: var(--primary-soft); color: var(--primary-dark); }

.media-placeholder { margin: 42px 0; }
.placeholder-frame {
  min-height: 390px;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 36px;
  border: 1.5px dashed color-mix(in srgb, var(--primary) 38%, var(--line));
  border-radius: 20px;
  background:
    linear-gradient(135deg, transparent 49.6%, color-mix(in srgb, var(--line) 55%, transparent) 50%, transparent 50.4%),
    linear-gradient(45deg, transparent 49.6%, color-mix(in srgb, var(--line) 55%, transparent) 50%, transparent 50.4%),
    var(--surface-soft);
  background-size: 80px 80px;
  color: var(--muted);
  text-align: center;
}
.placeholder-icon { width: 56px; height: 56px; display: grid; place-items: center; margin-bottom: 14px; border-radius: 18px; background: var(--surface); color: var(--primary); box-shadow: 0 10px 30px rgba(15, 45, 77, .1); font-size: 26px; }
.placeholder-frame strong { color: var(--navy); font-size: 16px; }
.placeholder-frame small { margin-top: 4px; font-size: 12px; }
.media-placeholder figcaption { margin-top: 10px; color: var(--muted); font-size: 12px; text-align: center; }
.doc-media { margin: 42px 0; }
.doc-media img { width: 100%; display: block; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.doc-media video { width: 100%; display: block; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); background: var(--navy); }
.doc-media figcaption { margin-top: 10px; color: var(--muted); font-size: 12px; text-align: center; }
.welcome-video { margin-top: 30px; margin-bottom: 30px; }

.feature-list { display: grid; gap: 10px; }
.feature-list > div { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.feature-list > div > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--primary-soft); color: var(--primary-dark); font-size: 11px; font-weight: 900; }
.feature-list strong { color: var(--navy); font-size: 14px; }
.feature-list p { margin: 1px 0 0; color: var(--muted); font-size: 13px; }
.split-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 36px 0; }
.split-cards section { position: relative; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.card-number { display: inline-block; margin-bottom: 26px; color: var(--primary); font-size: 11px; font-weight: 900; letter-spacing: .15em; }
.split-cards p, .split-cards li { color: var(--muted); font-size: 14px; }
.split-cards ul { padding-left: 18px; }

.table-wrap { overflow-x: auto; margin: 32px 0; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th, td { padding: 15px 17px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--surface-soft); color: var(--navy); font-size: 12px; }
td { color: var(--muted); font-size: 13px; }
tbody tr:last-child td { border-bottom: 0; }
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 36px 0; }
.video-placeholder {
  min-height: 220px;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--primary) 13%, transparent), transparent 45%), var(--navy);
  color: var(--surface);
  cursor: pointer;
  text-align: center;
  transition: transform .2s ease;
}
[data-theme="dark"] .video-placeholder { color: #0f2d4d; }
.video-placeholder:hover { transform: translateY(-3px); }
.play-button { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 18px; padding-left: 3px; border-radius: 50%; background: var(--accent); color: #fff; box-shadow: 0 12px 32px rgba(237, 138, 53, .3); }
.video-placeholder strong { font-size: 15px; }
.video-placeholder small { margin-top: 3px; opacity: .68; font-size: 11px; }
.faq-list { display: grid; gap: 10px; margin: 32px 0 48px; }
.faq-list details { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.faq-list summary { padding: 17px 20px; color: var(--navy); font-size: 14px; font-weight: 800; cursor: pointer; }
.faq-list p { margin: 0; padding: 0 20px 18px; color: var(--muted); font-size: 13px; }
.support-card { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 32px; border-radius: 20px; background: var(--navy); color: var(--surface); }
[data-theme="dark"] .support-card { color: #0f2d4d; }
.support-card h2 { margin: 6px 0; font-size: 23px; }
.support-card p { margin: 0; opacity: .72; font-size: 13px; }
.support-card a { flex: 0 0 auto; padding: 11px 17px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 800; text-decoration: none; }

.page-navigation { width: min(100%, 940px); display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 70px auto 0; }
.page-nav-link { min-height: 88px; display: flex; flex-direction: column; justify-content: center; padding: 15px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-decoration: none; }
.page-nav-link:last-child { text-align: right; }
.page-nav-link span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.page-nav-link strong { color: var(--navy); font-size: 14px; }
.page-nav-link:hover { border-color: var(--primary); }
.docs-footer { width: min(100%, 940px); display: flex; justify-content: space-between; gap: 20px; margin: 40px auto 0; padding: 24px 0 6px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.docs-footer p { margin: 0; }

.search-modal { position: fixed; z-index: 150; inset: 0; padding: min(14vh, 110px) 20px 20px; background: rgba(7, 29, 53, .62); backdrop-filter: blur(8px); }
.search-modal[hidden] { display: none; }
.search-panel { width: min(680px, 100%); margin: 0 auto; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 30px 100px rgba(0, 0, 0, .28); }
.search-head { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 8px; padding: 13px 14px 13px 18px; border-bottom: 1px solid var(--line); color: var(--muted); }
.search-head input { width: 100%; padding: 7px 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 15px; }
.search-head button { padding: 5px 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-soft); color: var(--muted); font-size: 10px; cursor: pointer; }
.search-results { max-height: 410px; overflow-y: auto; padding: 8px; }
.search-result {
  width: 100%;
  display: grid;
  gap: 2px;
  padding: 12px 13px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}
.search-result:hover, .search-result.is-selected { background: var(--primary-soft); }
.search-result strong { color: var(--navy); font-size: 13px; }
.search-result small { color: var(--muted); font-size: 11px; }
.search-empty { padding: 34px 20px; color: var(--muted); font-size: 13px; text-align: center; }
.search-hint { margin: 0; padding: 9px 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; text-align: center; }
.toast { position: fixed; z-index: 180; right: 22px; bottom: 22px; max-width: 340px; padding: 13px 16px; border-radius: 11px; background: var(--navy); color: var(--surface); font-size: 12px; font-weight: 700; box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); pointer-events: none; transition: .25s ease; }
[data-theme="dark"] .toast { color: #0f2d4d; }
.toast.is-visible { opacity: 1; transform: none; }
.hamburger, .hamburger::before, .hamburger::after { width: 18px; height: 2px; display: block; border-radius: 2px; background: currentColor; }
.hamburger { position: relative; }
.hamburger::before, .hamburger::after { content: ""; position: absolute; left: 0; }
.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }

@media (max-width: 1000px) {
  :root { --sidebar: 270px; }
  .main { padding-left: 34px; padding-right: 34px; }
  .search-trigger { min-width: 230px; }
  .site-link { display: none; }
}

@media (max-width: 780px) {
  .mobile-only { display: grid; }
  .topbar { padding: 0 16px; }
  .version-pill, .search-trigger span:nth-child(2), .search-trigger kbd { display: none; }
  .search-trigger { min-width: 42px; width: 42px; padding: 0; display: grid; place-items: center; }
  .brand-copy small { display: none; }
  .sidebar { transform: translateX(-102%); transition: transform .25s ease; box-shadow: var(--shadow); }
  body.sidebar-open .sidebar { transform: translateX(0); }
  .sidebar-backdrop { position: fixed; z-index: 50; inset: var(--topbar) 0 0; background: rgba(7, 29, 53, .48); }
  body.sidebar-open .sidebar-backdrop { display: block; }
  .main { width: 100%; margin-left: 0; padding: 34px 20px 24px; }
  .reading-progress { left: 0; }
  .doc-hero { margin-bottom: 34px; }
  .doc-hero h1 { font-size: 38px; }
  .doc-hero p { font-size: 17px; }
  .quick-grid, .split-cards, .video-grid { grid-template-columns: 1fr; }
  .placeholder-frame { min-height: 280px; }
}

@media (max-width: 520px) {
  .brand-mark { width: 34px; height: 34px; }
  .brand-copy strong { font-size: 14px; }
  .topbar-actions { gap: 7px; }
  .breadcrumb { margin-bottom: 24px; }
  .doc-hero h1 { font-size: 33px; }
  .doc-hero p { font-size: 16px; }
  .quick-grid, .checklist { grid-template-columns: 1fr; }
  .steps > li { grid-template-columns: 38px 1fr; gap: 13px; }
  .steps > li > span { width: 38px; height: 38px; }
  .steps > li:not(:last-child)::after { top: 38px; left: 18px; }
  .callout { padding-left: 48px; }
  .callout::before { left: 16px; }
  .support-card { display: grid; }
  .page-navigation { grid-template-columns: 1fr; }
  .page-nav-link:last-child { text-align: left; }
  .docs-footer { display: grid; }
}

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

@media print {
  .topbar, .sidebar, .reading-progress, .page-navigation, .search-modal, .toast { display: none !important; }
  .app-shell { padding: 0; }
  .main { width: 100%; margin: 0; padding: 0; }
  .doc-page { display: block !important; page-break-before: always; }
  .doc-page:first-child { page-break-before: auto; }
  .media-placeholder { break-inside: avoid; }
}
