/* Hero */
  .doc-hero {
    background: linear-gradient(180deg, #FFF4EC 0%, #FFEAE0 100%);
    padding: 72px 0; border-bottom: 1px solid var(--line);
    position: relative; overflow: hidden;
  }
  .doc-hero::before {
    content: ""; position: absolute; width: 700px; height: 700px; border-radius: 50%;
    background: radial-gradient(circle, rgba(31,158,149,0.1), transparent 70%);
    top: -400px; left: -200px; pointer-events: none;
  }
  .doc-hero-inner { position: relative; z-index: 2; }
  .doc-hero .crumb {
    font-family: "JetBrains Mono", monospace; font-size: 12px; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--teal-600); margin-bottom: 18px;
  }
  .doc-hero h1 { font-size: 56px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin-bottom: 16px; }
  .doc-hero h1 em { font-style: normal; color: var(--orange-500); }
  .doc-hero .lede { font-family: "Inter Tight", sans-serif; font-size: 18px; color: var(--ink-2); line-height: 1.5; max-width: 640px; margin-bottom: 20px; }
  .doc-hero .meta {
    display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
    font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--ink-3); letter-spacing: 0.04em;
  }
  .doc-hero .meta .tag {
    padding: 4px 10px; border-radius: 99px;
    background: rgba(31,158,149,0.1); color: var(--teal-600);
    letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600;
  }

  /* Layout */
  html { scroll-behavior: smooth; scroll-padding-top: 100px; }
  .doc-wrap {
    display: grid; grid-template-columns: 260px 1fr; gap: 64px;
    padding: 72px 0 120px; align-items: start;
  }
  .toc {
    position: sticky; top: 88px; font-size: 13px;
    max-height: calc(100vh - 110px); overflow-y: auto; padding-right: 8px;
  }
  .toc-group { margin-bottom: 24px; }
  .toc-group-title {
    font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.16em;
    text-transform: uppercase; color: var(--ink-3); font-weight: 600;
    padding: 0 12px; margin-bottom: 6px;
  }
  .toc-group:first-child .toc-group-title { padding-top: 0; }
  .toc ul { list-style: none; }
  .toc li { margin-bottom: 1px; }
  .toc a {
    display: block; padding: 7px 12px; color: var(--ink-3);
    border-left: 2px solid transparent; font-size: 13px; line-height: 1.4;
    transition: all 0.15s; text-decoration: none;
  }
  .toc a:hover { color: var(--ink); border-left-color: var(--line); background: rgba(0,0,0,0.02); }
  .toc a.active { color: var(--teal-600); border-left-color: var(--teal-600); font-weight: 600; }

  /* Content */
  .content { max-width: 760px; }
  .docs-section { margin-bottom: 72px; }
  .docs-section:last-child { margin-bottom: 0; }

  .content h2 {
    font-size: 28px; font-weight: 700; letter-spacing: -0.025em;
    margin-bottom: 20px; padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
    display: flex; align-items: center; gap: 14px;
    scroll-margin-top: 100px;
  }
  .content h2 .section-tag {
    font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--teal-600); font-weight: 600;
    background: rgba(31,158,149,0.08); border: 1px solid rgba(31,158,149,0.2);
    padding: 4px 10px; border-radius: 99px; white-space: nowrap;
  }
  .content h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; margin: 32px 0 12px; color: var(--ink); }
  .content h4 { font-size: 15px; font-weight: 600; margin: 0 0 8px; color: var(--ink-2); }
  .content p { font-size: 15px; color: var(--ink-2); line-height: 1.7; margin-bottom: 14px; }
  .content ul, .content ol { margin: 0 0 20px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
  .content ol { counter-reset: ol; }
  .content ul li, .content ol li {
    font-size: 14px; color: var(--ink-2); line-height: 1.6;
    padding: 11px 16px 11px 44px; background: #fff; border: 1px solid var(--line); border-radius: 8px;
    position: relative;
  }
  .content ul li::before {
    content: "→"; font-family: "JetBrains Mono", monospace;
    font-size: 11px; color: var(--teal-600);
    position: absolute; left: 18px; top: 13px;
  }
  .content ol li { counter-increment: ol; }
  .content ol li::before {
    content: counter(ol, decimal-leading-zero);
    font-family: "JetBrains Mono", monospace; font-size: 11px; font-weight: 600;
    color: var(--orange-500);
    position: absolute; left: 16px; top: 13px;
  }
  .content a { color: var(--teal-600); font-weight: 500; }

  /* Inline screenshots */
  .content img {
    display: block; max-width: 100%; height: auto;
    margin: 24px auto; border: 1px solid var(--line); border-radius: 12px;
    box-shadow: 0 8px 24px -12px rgba(28,35,48,0.18);
  }

  /* Inline code */
  .content code {
    font-family: "JetBrains Mono", monospace; font-size: 12.5px;
    background: var(--off-white); color: var(--orange-500);
    padding: 2px 6px; border-radius: 5px; border: 1px solid var(--line);
    white-space: nowrap;
  }

  /* Code blocks */
  .content pre {
    background: var(--charcoal); color: rgba(255,255,255,0.85);
    border-radius: 14px; overflow: hidden; margin: 20px 0;
  }
  .pre-head {
    background: #0b0d11; border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 10px 18px; display: flex; align-items: center; gap: 10px;
    font-family: "JetBrains Mono", monospace; font-size: 11px; color: rgba(255,255,255,0.4);
    letter-spacing: 0.06em;
  }
  .pre-head .dots { display: flex; gap: 5px; }
  .pre-head .dots span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.12); }
  .content pre code {
    display: block; padding: 20px 24px; background: transparent; color: inherit;
    border: none; border-radius: 0; white-space: pre; font-size: 13px; line-height: 1.65;
  }

  /* Alerts */
  .docs-alert {
    border-radius: 12px; padding: 18px 20px; margin: 20px 0;
    display: flex; gap: 14px; align-items: flex-start;
  }
  .docs-alert .ic { flex: 0 0 auto; margin-top: 2px; }
  .docs-alert-body h4 { font-size: 14px; font-weight: 600; margin: 0 0 6px; }
  .docs-alert-body p { font-size: 14px; line-height: 1.6; margin: 0 0 8px; }
  .docs-alert-body p:last-child { margin-bottom: 0; }
  .docs-alert-body ul { margin: 6px 0 0; }
  .docs-alert-body ul li { background: transparent; border: none; padding: 3px 0; font-size: 13.5px; }
  .docs-alert-body ul li::before { content: "·"; color: inherit; opacity: 0.5; }
  .docs-alert.info {
    background: rgba(31,158,149,0.06); border: 1px solid rgba(31,158,149,0.2); color: var(--ink-2);
  }
  .docs-alert.info h4 { color: var(--teal-600); }
  .docs-alert.info .ic { color: var(--teal-600); }
  .docs-alert.warning {
    background: rgba(240,122,58,0.06); border: 1px solid rgba(240,122,58,0.2); color: var(--ink-2);
  }
  .docs-alert.warning h4 { color: var(--orange-500); }
  .docs-alert.warning .ic { color: var(--orange-500); }

  /* Step cards */
  .step-cards { display: flex; flex-direction: column; gap: 1px; margin: 20px 0; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
  .step-card {
    background: #fff; padding: 20px 24px;
    display: flex; gap: 24px; align-items: center;
  }
  .step-card .num {
    font-family: "JetBrains Mono", monospace; font-weight: 700; font-size: 20px;
    color: rgba(240,122,58,0.35); flex: 0 0 32px; text-align: center; line-height: 1;
  }
  .step-card h4 { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 4px; }
  .step-card p { font-size: 14px; color: var(--ink-2); line-height: 1.6; margin: 0; }

  /* Reference tables */
  .docs-table-wrap { overflow-x: auto; margin: 20px 0; border: 1px solid var(--line); border-radius: 14px; }
  .docs-table { width: 100%; border-collapse: collapse; font-size: 13.5px; background: #fff; }
  .docs-table th, .docs-table td {
    text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: top;
  }
  .docs-table thead th {
    font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--ink-2); background: var(--off-white);
  }
  .docs-table tbody tr:last-child td { border-bottom: none; }
  .docs-table td:first-child { white-space: nowrap; }
  .docs-table td p, .docs-table td { color: var(--ink-2); line-height: 1.55; }

  @media (max-width: 1024px) {
    .doc-wrap { grid-template-columns: 1fr; }
    .toc { position: static; max-height: none; border-bottom: 1px solid var(--line); padding-bottom: 32px; margin-bottom: 0; }
  }
  @media (max-width: 720px) {
    .doc-hero h1 { font-size: 40px; }
  }
