:root {
  --ink: #172226;
  --muted: #65726f;
  --line: #dfe6de;
  --panel: #ffffff;
  --soft: #f6f4ef;
  --green: #159947;
  --teal: #0f8b8d;
  --amber: #b97922;
  --coral: #d6573d;
  --shadow: 0 18px 55px rgba(27, 44, 37, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; }
code {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 2px 6px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.docs-navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 70px;
  padding: 12px min(32px, 5vw);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(18px);
}
.docs-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 850;
}
.docs-brand img { width: 34px; height: 34px; }
.docs-navbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.docs-search input {
  width: min(340px, 42vw);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 15px;
  color: var(--ink);
  background: #fff;
}
.docs-menu-button,
.button,
.pager-card {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  padding: 10px 14px;
  text-decoration: none;
  font-weight: 800;
}
.button.primary {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}
.docs-menu-button { display: none; }
.docs-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 38px;
  width: min(1440px, calc(100vw - 36px));
  margin: 0 auto;
  padding: 34px 0 72px;
}
.docs-sidebar {
  align-self: start;
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 112px);
  overflow: auto;
}
.docs-sidebar-inner {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.88);
  padding: 20px;
  box-shadow: var(--shadow);
}
.docs-sidebar-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.docs-sidebar-header strong {
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.docs-sidebar-close {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  padding: 8px 12px;
  font-weight: 850;
}
.docs-nav-group { margin-bottom: 20px; }
.docs-nav-group:last-child { margin-bottom: 0; }
.docs-nav-group h2 {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.docs-nav-group a {
  display: block;
  border-radius: 10px;
  padding: 8px 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}
.docs-nav-group a:hover,
.docs-nav-group a.active {
  background: #e8f6ee;
  color: var(--ink);
}
.docs-main { min-width: 0; }
.docs-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
}
.docs-breadcrumbs a { color: var(--teal); text-decoration: none; }
.docs-article {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  padding: clamp(24px, 4vw, 46px);
  box-shadow: var(--shadow);
}
.docs-hero {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.docs-hero-large {
  background: #172226;
  color: #fff;
  border-radius: 22px;
  padding: clamp(26px, 5vw, 56px);
  border: 0;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.docs-hero-large .eyebrow { color: #8fd7d4; }
.docs-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1;
}
.docs-hero p {
  max-width: 850px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}
.docs-hero-large p { color: #c5d4d0; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.page-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfcf9;
}
.page-toc strong {
  width: 100%;
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--teal);
  text-transform: uppercase;
}
.page-toc a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}
.docs-section {
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.docs-section:last-child { border-bottom: 0; padding-bottom: 0; }
.docs-section h2,
.workflow-card h2,
.trouble-card h2,
.glossary-card h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.12;
}
.docs-section p,
.workflow-card p,
.trouble-card p,
.glossary-card p,
.faq-item p {
  color: var(--muted);
  line-height: 1.75;
}
.check-list,
.mistake-list,
.step-list {
  display: grid;
  gap: 10px;
  padding-left: 0;
  list-style: none;
}
.check-list li,
.mistake-list li,
.step-list li {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcf9;
  padding: 13px 15px;
  color: var(--muted);
}
.step-list {
  counter-reset: step;
}
.step-list li {
  counter-increment: step;
  position: relative;
  padding-left: 54px;
}
.step-list li:before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 12px;
  width: 27px;
  height: 27px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}
.screenshot-grid,
.feature-grid,
.setup-card-grid,
.workflow-grid,
.glossary-grid,
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.screenshot-frame,
.screenshot-placeholder,
.feature-card,
.setup-card,
.workflow-card,
.trouble-card,
.glossary-card,
.faq-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 12px 34px rgba(31, 48, 42, .05);
}
.screenshot-frame img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.screenshot-frame figcaption {
  margin-top: 10px;
  color: var(--muted);
}
.screenshot-placeholder {
  border-style: dashed;
  border-color: #cba66c;
  background: #fffaf2;
}
.screenshot-placeholder h4 {
  margin: 0 0 10px;
  color: var(--amber);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.warning-text { color: var(--coral) !important; font-weight: 750; }
.info-box {
  border-left: 5px solid var(--teal);
  border-radius: 14px;
  background: #f7fbfb;
  padding: 16px 18px;
  color: var(--muted);
}
.info-box.warning { border-left-color: var(--amber); background: #fffaf2; }
.info-box.success { border-left-color: var(--green); background: #f1fbf5; }
.related-grid a {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcf9;
  padding: 14px;
  text-decoration: none;
  font-weight: 800;
  color: var(--teal);
}
.feature-card h3,
.setup-card h3,
.workflow-card h3 {
  margin: 0 0 10px;
}
.setup-card {
  display: block;
  min-height: 210px;
  text-decoration: none;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.setup-card:hover {
  border-color: var(--teal);
  box-shadow: 0 18px 45px rgba(15, 139, 141, .12);
  transform: translateY(-2px);
}
.setup-card span {
  display: inline-flex;
  margin-bottom: 14px;
  border: 1px solid #b8dfd9;
  border-radius: 999px;
  background: #eefaf8;
  color: var(--teal);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.setup-card p {
  color: var(--muted);
  line-height: 1.65;
}
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.docs-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}
.docs-table th,
.docs-table td {
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
}
.docs-table th {
  background: #f3faf6;
  color: var(--ink);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.docs-table td {
  color: var(--muted);
  line-height: 1.55;
}
.docs-table tr:last-child td { border-bottom: 0; }
.feature-card li { margin: 8px 0; color: var(--muted); }
.feature-card a { color: var(--teal); text-decoration: none; font-weight: 750; }
.trouble-list,
.faq-list {
  display: grid;
  gap: 16px;
}
.faq-item summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 850;
}
.docs-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 20px;
}
.pager-card {
  display: block;
  border-radius: 18px;
}
.pager-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .15em;
}
.pager-card strong { display: block; margin-top: 4px; }
.pager-card-next { text-align: right; }
.docs-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1440px, calc(100vw - 36px));
  margin: 0 auto 38px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.docs-footer strong,
.docs-footer span { display: block; }
.docs-footer a { color: var(--teal); font-weight: 800; }
@media (max-width: 980px) {
  body.docs-menu-open { overflow: hidden; }
  .docs-menu-button { display: inline-flex; }
  .docs-shell { grid-template-columns: 1fr; }
  .docs-sidebar {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 60;
    max-height: none;
    overflow: hidden;
    padding: 86px 14px 18px;
    background: rgba(23, 34, 38, .48);
  }
  .docs-sidebar.open {
    display: flex;
    align-items: flex-start;
    justify-content: center;
  }
  .docs-sidebar-inner {
    width: min(440px, 100%);
    max-height: calc(100vh - 106px);
    overflow: auto;
    border-radius: 20px;
    background: #fff;
    padding: 18px;
  }
  .docs-sidebar-header { display: flex; }
  .screenshot-grid,
  .feature-grid,
  .setup-card-grid,
  .workflow-grid,
  .glossary-grid,
  .related-grid,
  .docs-pager { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .docs-navbar {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    min-height: 118px;
  }
  .docs-navbar-actions { width: 100%; gap: 8px; }
  .docs-search { flex: 1; min-width: 0; }
  .docs-search input { width: 100%; }
  .docs-menu-button {
    flex: 0 0 auto;
    justify-content: center;
    min-width: 76px;
  }
  .docs-shell {
    width: min(100vw - 24px, 1440px);
    padding-top: 22px;
  }
  .docs-sidebar { padding: 14px; }
  .docs-sidebar-inner {
    max-height: calc(100vh - 28px);
  }
  .docs-article { padding: 20px; }
  .docs-brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
@media print {
  .docs-navbar,
  .docs-sidebar,
  .docs-footer,
  .docs-pager,
  .page-toc { display: none !important; }
  body { background: #fff; }
  .docs-shell { display: block; width: 100%; padding: 0; }
  .docs-article { border: 0; box-shadow: none; }
}
