    :root {
      --bg: #050814;
      --bg-alt: #0b1020;
      --card: #101528;
      --accent: #4cc2ff;
      --accent-soft: rgba(76, 194, 255, 0.12);
      --accent-strong: #2aa4e8;
      --border-subtle: rgba(255, 255, 255, 0.06);
      --text-main: #f7f8ff;
      --text-soft: #c2c6e0;
      --text-muted: #8b90b0;
      --danger: #ff5c7a;
      --shadow-soft: 0 22px 60px rgba(0, 0, 0, 0.55);
      --radius-lg: 18px;
      --radius-md: 12px;
      --radius-pill: 999px;
      --nav-h: 72px;
      --max-w: 1120px;
    }

    :root {
      --bg: #050814;
      --bg-alt: #0b1020;
      --card: #101528;
      --accent: #4cc2ff;
      --accent-soft: rgba(76, 194, 255, 0.12);
      --accent-strong: #2aa4e8;
      --border-subtle: rgba(255, 255, 255, 0.06);
      --text-main: #f7f8ff;
      --text-soft: #c2c6e0;
      --text-muted: #8b90b0;
      --danger: #ff5c7a;
      --shadow-soft: 0 22px 60px rgba(0, 0, 0, 0.55);
      --radius-lg: 18px;
      --radius-md: 12px;
      --radius-pill: 999px;
      --nav-h: 72px;
      --max-w: 1120px;
    }

    /* Light theme overrides */
    :root[data-theme="light"] {
      --bg: #f7f9fc;
      --bg-alt: #ffffff;
      --card: #ffffff;
      --accent: #0066ff;
      --accent-soft: rgba(0, 102, 255, 0.12);
      --accent-strong: #004bcc;
      --border-subtle: rgba(0, 0, 0, 0.08);
      --text-main: #0a0a0a;
      --text-soft: #333333;
      --text-muted: #666666;
      --shadow-soft: 0 22px 60px rgba(0, 0, 0, 0.12);
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html, body {
      height: 100%;
      scroll-behavior: smooth;
    }

    body {
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
        "Segoe UI", sans-serif;
      background:
        radial-gradient(circle at top, #151b3a 0, #050814 52%, #02030a 100%);
      color: var(--text-main);
      -webkit-font-smoothing: antialiased;
    }

    :root[data-theme="light"] body {
      background:
        radial-gradient(circle at top, #ffffff 0, #f2f4fb 40%, #e4e8f5 100%);
    }

    a {
      color: var(--accent);
      text-decoration: none;
    }

    a:hover {
      color: var(--accent-strong);
    }

    .page-shell {
      min-height: 100vh;
      display: flex;
      flex-direction: column;
    }

    /* Top nav */
    .nav {
      position: sticky;
      top: 0;
      z-index: 40;
      height: var(--nav-h);
      backdrop-filter: blur(18px);
      background: linear-gradient(
        to bottom,
        rgba(5, 8, 20, 0.96),
        rgba(5, 8, 20, 0.88),
        rgba(5, 8, 20, 0.0)
      );
      border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }

    :root[data-theme="light"] .nav {
      background: linear-gradient(
        to bottom,
        rgba(247, 249, 252, 0.96),
        rgba(247, 249, 252, 0.9),
        rgba(247, 249, 252, 0.0)
      );
      border-bottom-color: rgba(0, 0, 0, 0.04);
    }

    .nav-inner {
      max-width: var(--max-w);
      margin: 0 auto;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 20px;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .brand-mark {
      width: 32px;
      height: 32px;
      border-radius: 12px;
      background: radial-gradient(circle at 20% 0, #4cc2ff, #2a3cff 55%, #050814 100%);
      box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08),
        0 12px 30px rgba(0, 0, 0, 0.7);
      position: relative;
      overflow: hidden;
    }

    :root[data-theme="light"] .brand-mark {
      background: radial-gradient(circle at 20% 0, #0066ff, #00b7ff 55%, #ffffff 100%);
      box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.06),
        0 10px 24px rgba(0, 0, 0, 0.12);
    }

    .brand-mark::after {
      content: "";
      position: absolute;
      inset: 32% 18%;
      border-radius: 999px;
      border: 2px solid rgba(255, 255, 255, 0.8);
      border-top-color: transparent;
      border-left-color: transparent;
      transform: rotate(-35deg);
      opacity: 0.9;
    }

    .brand-text-main {
      font-weight: 600;
      letter-spacing: 0.03em;
      font-size: 0.95rem;
      text-transform: uppercase;
    }

    .brand-text-sub {
      font-size: 0.7rem;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.12em;
    }

    .nav-links {
      display: flex;
      gap: 10px;
      align-items: center;
      font-size: 0.8rem;
    }

    .nav-pill {
      padding: 6px 14px;
      border-radius: var(--radius-pill);
      border: 1px solid rgba(255, 255, 255, 0.08);
      color: var(--text-soft);
      background: radial-gradient(circle at top left, rgba(76, 194, 255, 0.12), rgba(5, 8, 20, 0.9));
      display: flex;
      align-items: center;
      gap: 6px;
      cursor: pointer;
      white-space: nowrap;
    }

    :root[data-theme="light"] .nav-pill {
      border-color: rgba(0, 0, 0, 0.06);
      background: radial-gradient(circle at top left, rgba(0, 102, 255, 0.08), #ffffff);
      color: var(--text-soft);
    }

    .nav-pill span.dot {
      width: 7px;
      height: 7px;
      border-radius: 999px;
      background: #3dffb5;
      box-shadow: 0 0 0 4px rgba(61, 255, 181, 0.18);
    }

    .nav-link {
      padding: 4px 10px;
      border-radius: 999px;
      color: var(--text-muted);
      border: 1px solid transparent;
    }

    .nav-link:hover {
      border-color: rgba(255, 255, 255, 0.12);
      color: var(--text-soft);
      background: rgba(255, 255, 255, 0.02);
    }

    :root[data-theme="light"] .nav-link:hover {
      border-color: rgba(0, 0, 0, 0.08);
      background: rgba(0, 0, 0, 0.02);
    }

    /* Layout */
    .main {
      flex: 1;
      padding: 24px 16px 40px;
    }

    .main-inner {
      max-width: var(--max-w);
      margin: 0 auto;
      display: grid;
      grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
      gap: 24px;
    }

    @media (max-width: 900px) {
      .main-inner {
        grid-template-columns: minmax(0, 1fr);
      }
    }

    /* Sidebar */
    .sidebar {
      position: sticky;
      top: calc(var(--nav-h) + 16px);
      align-self: flex-start;
      background: linear-gradient(145deg, rgba(16, 21, 40, 0.98), rgba(7, 11, 26, 0.98));
      border-radius: var(--radius-lg);
      border: 1px solid var(--border-subtle);
      box-shadow: var(--shadow-soft);
      padding: 18px 16px 16px;
    }

    :root[data-theme="light"] .sidebar {
      background: linear-gradient(145deg, #ffffff, #f3f5fb);
      border-color: rgba(0, 0, 0, 0.06);
    }

    @media (max-width: 900px) {
      .sidebar {
        position: static;
      }
    }

    .sidebar-header {
      display: flex;
      flex-direction: column;
      gap: 4px;
      margin-bottom: 14px;
    }

    .sidebar-title {
      font-size: 0.9rem;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--text-soft);
    }

    .sidebar-subtitle {
      font-size: 0.78rem;
      color: var(--text-muted);
    }

    .sidebar-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 4px 10px;
      border-radius: var(--radius-pill);
      background: rgba(76, 194, 255, 0.08);
      border: 1px solid rgba(76, 194, 255, 0.35);
      color: var(--accent);
      font-size: 0.7rem;
      margin-bottom: 10px;
    }

    :root[data-theme="light"] .sidebar-badge {
      background: rgba(0, 102, 255, 0.06);
      border-color: rgba(0, 102, 255, 0.3);
    }

    .sidebar-badge-dot {
      width: 6px;
      height: 6px;
      border-radius: 999px;
      background: #3dffb5;
    }

    .toc {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 4px;
      margin-top: 4px;
    }

    .toc-item a {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 7px 10px;
      border-radius: 10px;
      font-size: 0.8rem;
      color: var(--text-soft);
      border: 1px solid transparent;
      background: transparent;
    }

    .toc-item a span.label {
      max-width: 80%;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .toc-item a span.tag {
      font-size: 0.68rem;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }

    .toc-item a:hover {
      border-color: rgba(255, 255, 255, 0.12);
      background: rgba(255, 255, 255, 0.02);
    }

    :root[data-theme="light"] .toc-item a:hover {
      border-color: rgba(0, 0, 0, 0.08);
      background: rgba(0, 0, 0, 0.02);
    }

    .toc-item a.active {
      border-color: rgba(76, 194, 255, 0.7);
      background: radial-gradient(circle at top left, rgba(76, 194, 255, 0.18), rgba(5, 8, 20, 0.96));
      color: var(--text-main);
    }

    :root[data-theme="light"] .toc-item a.active {
      background: radial-gradient(circle at top left, rgba(0, 102, 255, 0.16), #ffffff);
      border-color: rgba(0, 102, 255, 0.7);
    }

    .sidebar-footer {
      margin-top: 14px;
      padding-top: 10px;
      border-top: 1px dashed rgba(255, 255, 255, 0.08);
      font-size: 0.72rem;
      color: var(--text-muted);
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    :root[data-theme="light"] .sidebar-footer {
      border-top-color: rgba(0, 0, 0, 0.06);
    }

    .sidebar-footer strong {
      color: var(--text-soft);
      font-weight: 500;
    }

    /* Content */
    .content {
      display: flex;
      flex-direction: column;
      gap: 18px;
    }

    .hero {
      background: radial-gradient(circle at top left, rgba(76, 194, 255, 0.16), rgba(5, 8, 20, 0.98));
      border-radius: var(--radius-lg);
      border: 1px solid rgba(255, 255, 255, 0.08);
      box-shadow: var(--shadow-soft);
      padding: 18px 18px 16px;
      position: relative;
      overflow: hidden;
    }

    :root[data-theme="light"] .hero {
      background: radial-gradient(circle at top left, rgba(0, 102, 255, 0.12), #ffffff);
      border-color: rgba(0, 0, 0, 0.06);
    }

    .hero::after {
      content: "";
      position: absolute;
      inset: -40%;
      background:
        radial-gradient(circle at 0 0, rgba(76, 194, 255, 0.18), transparent 55%),
        radial-gradient(circle at 100% 0, rgba(42, 164, 232, 0.16), transparent 55%);
      opacity: 0.7;
      pointer-events: none;
    }

    :root[data-theme="light"] .hero::after {
      background:
        radial-gradient(circle at 0 0, rgba(0, 102, 255, 0.16), transparent 55%),
        radial-gradient(circle at 100% 0, rgba(0, 183, 255, 0.16), transparent 55%);
    }

    .hero-inner {
      position: relative;
      z-index: 1;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .hero-topline {
      font-size: 0.78rem;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: var(--accent);
    }

    .hero-title {
      font-size: 1.4rem;
      font-weight: 600;
      letter-spacing: 0.02em;
    }

    .hero-sub {
      font-size: 0.86rem;
      color: var(--text-soft);
      max-width: 640px;
    }

    .hero-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 4px;
    }

    .hero-chip {
      font-size: 0.72rem;
      padding: 4px 10px;
      border-radius: var(--radius-pill);
      border: 1px solid rgba(255, 255, 255, 0.12);
      background: rgba(5, 8, 20, 0.7);
      color: var(--text-muted);
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    :root[data-theme="light"] .hero-chip {
      border-color: rgba(0, 0, 0, 0.08);
      background: rgba(255, 255, 255, 0.9);
    }

    .hero-chip strong {
      font-weight: 500;
      color: var(--text-soft);
    }

    .hero-chip-dot {
      width: 6px;
      height: 6px;
      border-radius: 999px;
      background: var(--accent);
    }

    /* Platform list */
    .platform-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 8px;
      margin-top: 6px;
    }

    .platform-pill {
      font-size: 0.75rem;
      padding: 4px 10px;
      border-radius: var(--radius-pill);
      border: 1px solid rgba(255, 255, 255, 0.12);
      color: var(--text-soft);
      background: rgba(5, 8, 20, 0.7);
      display: inline-flex;
      align-items: center;
      justify-content: space-between;
      gap: 6px;
    }

    :root[data-theme="light"] .platform-pill {
      border-color: rgba(0, 0, 0, 0.08);
      background: rgba(255, 255, 255, 0.9);
    }

    .platform-pill span.label {
      font-weight: 500;
    }

    .platform-pill span.tag {
      font-size: 0.68rem;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--text-muted);
    }

    /* Document cards */
    .doc {
      background: linear-gradient(145deg, rgba(16, 21, 40, 0.98), rgba(7, 11, 26, 0.98));
      border-radius: var(--radius-lg);
      border: 1px solid var(--border-subtle);
      padding: 16px 16px 14px;
      box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
    }

    :root[data-theme="light"] .doc {
      background: linear-gradient(145deg, #ffffff, #f3f5fb);
      border-color: rgba(0, 0, 0, 0.06);
      box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
    }

    .doc-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 10px;
      margin-bottom: 10px;
    }

    .doc-title-block {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .doc-title {
      font-size: 1rem;
      font-weight: 600;
      letter-spacing: 0.03em;
      text-transform: uppercase;
    }

    .doc-subtitle {
      font-size: 0.78rem;
      color: var(--text-muted);
    }

    .doc-tag {
      font-size: 0.7rem;
      padding: 4px 9px;
      border-radius: var(--radius-pill);
      border: 1px solid rgba(255, 255, 255, 0.12);
      color: var(--text-soft);
      background: rgba(255, 255, 255, 0.02);
      text-transform: uppercase;
      letter-spacing: 0.12em;
      white-space: nowrap;
    }

    :root[data-theme="light"] .doc-tag {
      border-color: rgba(0, 0, 0, 0.08);
      background: rgba(0, 0, 0, 0.02);
    }

    .doc-body {
      font-size: 0.82rem;
      color: var(--text-soft);
      line-height: 1.55;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .doc-body h3 {
      font-size: 0.9rem;
      margin-top: 8px;
      margin-bottom: 4px;
      font-weight: 600;
      color: var(--text-main);
    }

    .doc-body h4 {
      font-size: 0.84rem;
      margin-top: 6px;
      margin-bottom: 2px;
      font-weight: 600;
      color: var(--text-soft);
    }

    .doc-body p {
      margin-bottom: 2px;
    }

    .doc-body ul {
      margin: 4px 0 4px 16px;
      padding-left: 4px;
    }

    .doc-body li {
      margin-bottom: 2px;
    }

    .doc-footer {
      margin-top: 10px;
      padding-top: 8px;
      border-top: 1px dashed rgba(255, 255, 255, 0.08);
      font-size: 0.72rem;
      color: var(--text-muted);
      display: flex;
      justify-content: space-between;
      gap: 8px;
      flex-wrap: wrap;
    }

    :root[data-theme="light"] .doc-footer {
      border-top-color: rgba(0, 0, 0, 0.06);
    }

    .doc-footer span.label {
      opacity: 0.9;
    }

    .doc-footer span.meta {
      opacity: 0.8;
    }

    .doc-footer strong {
      font-weight: 500;
      color: var(--text-soft);
    }

    /* Footer */
    .page-footer {
      border-top: 1px solid rgba(255, 255, 255, 0.06);
      padding: 14px 16px 18px;
      margin-top: 10px;
      background: radial-gradient(circle at top, rgba(76, 194, 255, 0.08), rgba(5, 8, 20, 0.98));
    }

    :root[data-theme="light"] .page-footer {
      border-top-color: rgba(0, 0, 0, 0.06);
      background: radial-gradient(circle at top, rgba(0, 102, 255, 0.06), #f7f9fc);
    }

    .page-footer-inner {
      max-width: var(--max-w);
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 10px;
      font-size: 0.76rem;
      color: var(--text-muted);
      flex-wrap: wrap;
    }

    .page-footer-inner span strong {
      color: var(--text-soft);
      font-weight: 500;
    }

    .page-footer-links {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
    }

    .page-footer-links a {
      color: var(--text-muted);
    }

    .page-footer-links a:hover {
      color: var(--accent);
    }

    /* Floating theme toggle */
    .theme-toggle {
      position: fixed;
      top: 18px;
      right: 18px;
      z-index: 999;
      width: 46px;
      height: 46px;
      border-radius: 50%;
      background: var(--card);
      border: 1px solid var(--border-subtle);
      box-shadow: var(--shadow-soft);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all .25s ease;
    }

    .theme-toggle:hover {
      transform: scale(1.06);
      box-shadow: 0 0 18px var(--accent-soft), var(--shadow-soft);
    }

    .theme-toggle-icon {
      font-size: 1.2rem;
      transition: opacity .25s ease;
    }

    .theme-toggle-icon.sun {
      display: none;
    }

    :root[data-theme="light"] .theme-toggle-icon.sun {
      display: block;
    }

    :root[data-theme="light"] .theme-toggle-icon.moon {
      display: none;
    }
  </style>
    /* Light theme overrides */
    :root[data-theme="light"] {
      --bg: #f7f9fc;
      --bg-alt: #ffffff;
      --card: #ffffff;
      --accent: #0066ff;
      --accent-soft: rgba(0, 102, 255, 0.12);
      --accent-strong: #004bcc;
      --border-subtle: rgba(0, 0, 0, 0.08);
      --text-main: #0a0a0a;
      --text-soft: #333333;
      --text-muted: #666666;
      --shadow-soft: 0 22px 60px rgba(0, 0, 0, 0.12);
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html, body {
      height: 100%;
      scroll-behavior: smooth;
    }

    body {
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
        "Segoe UI", sans-serif;
      background:
        radial-gradient(circle at top, #151b3a 0, #050814 52%, #02030a 100%);
      color: var(--text-main);
      -webkit-font-smoothing: antialiased;
    }

    :root[data-theme="light"] body {
      background:
        radial-gradient(circle at top, #ffffff 0, #f2f4fb 40%, #e4e8f5 100%);
    }

    a {
      color: var(--accent);
      text-decoration: none;
    }

    a:hover {
      color: var(--accent-strong);
    }

    .page-shell {
      min-height: 100vh;
      display: flex;
      flex-direction: column;
    }

    /* Top nav */
    .nav {
      position: sticky;
      top: 0;
      z-index: 40;
      height: var(--nav-h);
      backdrop-filter: blur(18px);
      background: linear-gradient(
        to bottom,
        rgba(5, 8, 20, 0.96),
        rgba(5, 8, 20, 0.88),
        rgba(5, 8, 20, 0.0)
      );
      border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }

    :root[data-theme="light"] .nav {
      background: linear-gradient(
        to bottom,
        rgba(247, 249, 252, 0.96),
        rgba(247, 249, 252, 0.9),
        rgba(247, 249, 252, 0.0)
      );
      border-bottom-color: rgba(0, 0, 0, 0.04);
    }

    .nav-inner {
      max-width: var(--max-w);
      margin: 0 auto;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 20px;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .brand-mark {
      width: 32px;
      height: 32px;
      border-radius: 12px;
      background: radial-gradient(circle at 20% 0, #4cc2ff, #2a3cff 55%, #050814 100%);
      box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08),
        0 12px 30px rgba(0, 0, 0, 0.7);
      position: relative;
      overflow: hidden;
    }

    :root[data-theme="light"] .brand-mark {
      background: radial-gradient(circle at 20% 0, #0066ff, #00b7ff 55%, #ffffff 100%);
      box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.06),
        0 10px 24px rgba(0, 0, 0, 0.12);
    }

    .brand-mark::after {
      content: "";
      position: absolute;
      inset: 32% 18%;
      border-radius: 999px;
      border: 2px solid rgba(255, 255, 255, 0.8);
      border-top-color: transparent;
      border-left-color: transparent;
      transform: rotate(-35deg);
      opacity: 0.9;
    }

    .brand-text-main {
      font-weight: 600;
      letter-spacing: 0.03em;
      font-size: 0.95rem;
      text-transform: uppercase;
    }

    .brand-text-sub {
      font-size: 0.7rem;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.12em;
    }

    .nav-links {
      display: flex;
      gap: 10px;
      align-items: center;
      font-size: 0.8rem;
    }

    .nav-pill {
      padding: 6px 14px;
      border-radius: var(--radius-pill);
      border: 1px solid rgba(255, 255, 255, 0.08);
      color: var(--text-soft);
      background: radial-gradient(circle at top left, rgba(76, 194, 255, 0.12), rgba(5, 8, 20, 0.9));
      display: flex;
      align-items: center;
      gap: 6px;
      cursor: pointer;
      white-space: nowrap;
    }

    :root[data-theme="light"] .nav-pill {
      border-color: rgba(0, 0, 0, 0.06);
      background: radial-gradient(circle at top left, rgba(0, 102, 255, 0.08), #ffffff);
      color: var(--text-soft);
    }

    .nav-pill span.dot {
      width: 7px;
      height: 7px;
      border-radius: 999px;
      background: #3dffb5;
      box-shadow: 0 0 0 4px rgba(61, 255, 181, 0.18);
    }

    .nav-link {
      padding: 4px 10px;
      border-radius: 999px;
      color: var(--text-muted);
      border: 1px solid transparent;
    }

    .nav-link:hover {
      border-color: rgba(255, 255, 255, 0.12);
      color: var(--text-soft);
      background: rgba(255, 255, 255, 0.02);
    }

    :root[data-theme="light"] .nav-link:hover {
      border-color: rgba(0, 0, 0, 0.08);
      background: rgba(0, 0, 0, 0.02);
    }

    /* Layout */
    .main {
      flex: 1;
      padding: 24px 16px 40px;
    }

    .main-inner {
      max-width: var(--max-w);
      margin: 0 auto;
      display: grid;
      grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
      gap: 24px;
    }

    @media (max-width: 900px) {
      .main-inner {
        grid-template-columns: minmax(0, 1fr);
      }
    }

    /* Sidebar */
    .sidebar {
      position: sticky;
      top: calc(var(--nav-h) + 16px);
      align-self: flex-start;
      background: linear-gradient(145deg, rgba(16, 21, 40, 0.98), rgba(7, 11, 26, 0.98));
      border-radius: var(--radius-lg);
      border: 1px solid var(--border-subtle);
      box-shadow: var(--shadow-soft);
      padding: 18px 16px 16px;
    }

    :root[data-theme="light"] .sidebar {
      background: linear-gradient(145deg, #ffffff, #f3f5fb);
      border-color: rgba(0, 0, 0, 0.06);
    }

    @media (max-width: 900px) {
      .sidebar {
        position: static;
      }
    }

    .sidebar-header {
      display: flex;
      flex-direction: column;
      gap: 4px;
      margin-bottom: 14px;
    }

    .sidebar-title {
      font-size: 0.9rem;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--text-soft);
    }

    .sidebar-subtitle {
      font-size: 0.78rem;
      color: var(--text-muted);
    }

    .sidebar-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 4px 10px;
      border-radius: var(--radius-pill);
      background: rgba(76, 194, 255, 0.08);
      border: 1px solid rgba(76, 194, 255, 0.35);
      color: var(--accent);
      font-size: 0.7rem;
      margin-bottom: 10px;
    }

    :root[data-theme="light"] .sidebar-badge {
      background: rgba(0, 102, 255, 0.06);
      border-color: rgba(0, 102, 255, 0.3);
    }

    .sidebar-badge-dot {
      width: 6px;
      height: 6px;
      border-radius: 999px;
      background: #3dffb5;
    }

    .toc {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 4px;
      margin-top: 4px;
    }

    .toc-item a {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 7px 10px;
      border-radius: 10px;
      font-size: 0.8rem;
      color: var(--text-soft);
      border: 1px solid transparent;
      background: transparent;
    }

    .toc-item a span.label {
      max-width: 80%;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .toc-item a span.tag {
      font-size: 0.68rem;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }

    .toc-item a:hover {
      border-color: rgba(255, 255, 255, 0.12);
      background: rgba(255, 255, 255, 0.02);
    }

    :root[data-theme="light"] .toc-item a:hover {
      border-color: rgba(0, 0, 0, 0.08);
      background: rgba(0, 0, 0, 0.02);
    }

    .toc-item a.active {
      border-color: rgba(76, 194, 255, 0.7);
      background: radial-gradient(circle at top left, rgba(76, 194, 255, 0.18), rgba(5, 8, 20, 0.96));
      color: var(--text-main);
    }

    :root[data-theme="light"] .toc-item a.active {
      background: radial-gradient(circle at top left, rgba(0, 102, 255, 0.16), #ffffff);
      border-color: rgba(0, 102, 255, 0.7);
    }

    .sidebar-footer {
      margin-top: 14px;
      padding-top: 10px;
      border-top: 1px dashed rgba(255, 255, 255, 0.08);
      font-size: 0.72rem;
      color: var(--text-muted);
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    :root[data-theme="light"] .sidebar-footer {
      border-top-color: rgba(0, 0, 0, 0.06);
    }

    .sidebar-footer strong {
      color: var(--text-soft);
      font-weight: 500;
    }

    /* Content */
    .content {
      display: flex;
      flex-direction: column;
      gap: 18px;
    }

    .hero {
      background: radial-gradient(circle at top left, rgba(76, 194, 255, 0.16), rgba(5, 8, 20, 0.98));
      border-radius: var(--radius-lg);
      border: 1px solid rgba(255, 255, 255, 0.08);
      box-shadow: var(--shadow-soft);
      padding: 18px 18px 16px;
      position: relative;
      overflow: hidden;
    }

    :root[data-theme="light"] .hero {
      background: radial-gradient(circle at top left, rgba(0, 102, 255, 0.12), #ffffff);
      border-color: rgba(0, 0, 0, 0.06);
    }

    .hero::after {
      content: "";
      position: absolute;
      inset: -40%;
      background:
        radial-gradient(circle at 0 0, rgba(76, 194, 255, 0.18), transparent 55%),
        radial-gradient(circle at 100% 0, rgba(42, 164, 232, 0.16), transparent 55%);
      opacity: 0.7;
      pointer-events: none;
    }

    :root[data-theme="light"] .hero::after {
      background:
        radial-gradient(circle at 0 0, rgba(0, 102, 255, 0.16), transparent 55%),
        radial-gradient(circle at 100% 0, rgba(0, 183, 255, 0.16), transparent 55%);
    }

    .hero-inner {
      position: relative;
      z-index: 1;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .hero-topline {
      font-size: 0.78rem;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: var(--accent);
    }

    .hero-title {
      font-size: 1.4rem;
      font-weight: 600;
      letter-spacing: 0.02em;
    }

    .hero-sub {
      font-size: 0.86rem;
      color: var(--text-soft);
      max-width: 640px;
    }

    .hero-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 4px;
    }

    .hero-chip {
      font-size: 0.72rem;
      padding: 4px 10px;
      border-radius: var(--radius-pill);
      border: 1px solid rgba(255, 255, 255, 0.12);
      background: rgba(5, 8, 20, 0.7);
      color: var(--text-muted);
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    :root[data-theme="light"] .hero-chip {
      border-color: rgba(0, 0, 0, 0.08);
      background: rgba(255, 255, 255, 0.9);
    }

    .hero-chip strong {
      font-weight: 500;
      color: var(--text-soft);
    }

    .hero-chip-dot {
      width: 6px;
      height: 6px;
      border-radius: 999px;
      background: var(--accent);
    }

    /* Platform list */
    .platform-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 8px;
      margin-top: 6px;
    }

    .platform-pill {
      font-size: 0.75rem;
      padding: 4px 10px;
      border-radius: var(--radius-pill);
      border: 1px solid rgba(255, 255, 255, 0.12);
      color: var(--text-soft);
      background: rgba(5, 8, 20, 0.7);
      display: inline-flex;
      align-items: center;
      justify-content: space-between;
      gap: 6px;
    }

    :root[data-theme="light"] .platform-pill {
      border-color: rgba(0, 0, 0, 0.08);
      background: rgba(255, 255, 255, 0.9);
    }

    .platform-pill span.label {
      font-weight: 500;
    }

    .platform-pill span.tag {
      font-size: 0.68rem;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--text-muted);
    }

    /* Document cards */
    .doc {
      background: linear-gradient(145deg, rgba(16, 21, 40, 0.98), rgba(7, 11, 26, 0.98));
      border-radius: var(--radius-lg);
      border: 1px solid var(--border-subtle);
      padding: 16px 16px 14px;
      box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
    }

    :root[data-theme="light"] .doc {
      background: linear-gradient(145deg, #ffffff, #f3f5fb);
      border-color: rgba(0, 0, 0, 0.06);
      box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
    }

    .doc-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 10px;
      margin-bottom: 10px;
    }

    .doc-title-block {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .doc-title {
      font-size: 1rem;
      font-weight: 600;
      letter-spacing: 0.03em;
      text-transform: uppercase;
    }

    .doc-subtitle {
      font-size: 0.78rem;
      color: var(--text-muted);
    }

    .doc-tag {
      font-size: 0.7rem;
      padding: 4px 9px;
      border-radius: var(--radius-pill);
      border: 1px solid rgba(255, 255, 255, 0.12);
      color: var(--text-soft);
      background: rgba(255, 255, 255, 0.02);
      text-transform: uppercase;
      letter-spacing: 0.12em;
      white-space: nowrap;
    }

    :root[data-theme="light"] .doc-tag {
      border-color: rgba(0, 0, 0, 0.08);
      background: rgba(0, 0, 0, 0.02);
    }

    .doc-body {
      font-size: 0.82rem;
      color: var(--text-soft);
      line-height: 1.55;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .doc-body h3 {
      font-size: 0.9rem;
      margin-top: 8px;
      margin-bottom: 4px;
      font-weight: 600;
      color: var(--text-main);
    }

    .doc-body h4 {
      font-size: 0.84rem;
      margin-top: 6px;
      margin-bottom: 2px;
      font-weight: 600;
      color: var(--text-soft);
    }

    .doc-body p {
      margin-bottom: 2px;
    }

    .doc-body ul {
      margin: 4px 0 4px 16px;
      padding-left: 4px;
    }

    .doc-body li {
      margin-bottom: 2px;
    }

    .doc-footer {
      margin-top: 10px;
      padding-top: 8px;
      border-top: 1px dashed rgba(255, 255, 255, 0.08);
      font-size: 0.72rem;
      color: var(--text-muted);
      display: flex;
      justify-content: space-between;
      gap: 8px;
      flex-wrap: wrap;
    }

    :root[data-theme="light"] .doc-footer {
      border-top-color: rgba(0, 0, 0, 0.06);
    }

    .doc-footer span.label {
      opacity: 0.9;
    }

    .doc-footer span.meta {
      opacity: 0.8;
    }

    .doc-footer strong {
      font-weight: 500;
      color: var(--text-soft);
    }

    /* Footer */
    .page-footer {
      border-top: 1px solid rgba(255, 255, 255, 0.06);
      padding: 14px 16px 18px;
      margin-top: 10px;
      background: radial-gradient(circle at top, rgba(76, 194, 255, 0.08), rgba(5, 8, 20, 0.98));
    }

    :root[data-theme="light"] .page-footer {
      border-top-color: rgba(0, 0, 0, 0.06);
      background: radial-gradient(circle at top, rgba(0, 102, 255, 0.06), #f7f9fc);
    }

    .page-footer-inner {
      max-width: var(--max-w);
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 10px;
      font-size: 0.76rem;
      color: var(--text-muted);
      flex-wrap: wrap;
    }

    .page-footer-inner span strong {
      color: var(--text-soft);
      font-weight: 500;
    }

    .page-footer-links {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
    }

    .page-footer-links a {
      color: var(--text-muted);
    }

    .page-footer-links a:hover {
      color: var(--accent);
    }

    /* Floating theme toggle */
    .theme-toggle {
      position: fixed;
      top: 18px;
      right: 18px;
      z-index: 999;
      width: 46px;
      height: 46px;
      border-radius: 50%;
      background: var(--card);
      border: 1px solid var(--border-subtle);
      box-shadow: var(--shadow-soft);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all .25s ease;
    }

    .theme-toggle:hover {
      transform: scale(1.06);
      box-shadow: 0 0 18px var(--accent-soft), var(--shadow-soft);
    }

    .theme-toggle-icon {
      font-size: 1.2rem;
      transition: opacity .25s ease;
    }

    .theme-toggle-icon.sun {
      display: none;
    }

    :root[data-theme="light"] .theme-toggle-icon.sun {
      display: block;
    }

    :root[data-theme="light"] .theme-toggle-icon.moon {
      display: none;
    }
