
  /* ===== Docs Hub Index (/docs & /en/docs) ===== */
  .docs-hero {
    padding: 56px 0 38px;
    background: linear-gradient(180deg, rgba(238, 108, 56, 0.07) 0%, transparent 100%);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  }
  .docs-hero-inner { max-width: 820px; }
  .docs-hero-title {
    font-size: clamp(2rem, 3.8vw, 2.8rem);
    font-weight: 800;
    color: var(--text-primary, #0f172a);
    line-height: 1.22;
    letter-spacing: -0.025em;
    margin: 12px 0 14px;
  }
  .docs-hero-desc { font-size: 1.06rem; color: #475569; line-height: 1.75; margin: 0 0 24px; }
  .docs-search-wrap { position: relative; max-width: 620px; display: flex; align-items: center; }
  .docs-search-icon {
    position: absolute;
    left: 16px;
    color: #94a3b8;
    font-size: 0.96rem;
    pointer-events: none;
    display: inline-flex;
  }
  .docs-search-input {
    width: 100%;
    padding: 13px 82px 13px 44px;
    border-radius: 14px;
    border: 1.5px solid rgba(15, 23, 42, 0.12);
    background: #ffffff;
    font-size: 0.96rem;
    color: #0f172a;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
  }
  .docs-search-input:focus {
    outline: none;
    border-color: var(--accent, #ee6c38);
    box-shadow: 0 0 0 4px rgba(238, 108, 56, 0.12);
  }
  .docs-search-kbd {
    position: absolute;
    right: 12px;
    padding: 3px 8px;
    border-radius: 6px;
    background: #f1f5f9;
    border: 1px solid rgba(15, 23, 42, 0.1);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.74rem;
    font-weight: 700;
    color: #64748b;
    pointer-events: none;
  }
  .docs-search-clear {
    position: absolute;
    right: 12px;
    display: none;
    padding: 4px 10px;
    border-radius: 7px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: #f8fafc;
    color: #475569;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
  }
  .docs-search-clear.visible { display: inline-flex; align-items: center; }
  .docs-search-status { margin-top: 10px; font-size: 0.86rem; color: #64748b; min-height: 20px; }
  .docs-shelf-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
  .docs-shelf-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 15px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.1);
    color: #334155;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.16s ease;
  }
  .docs-shelf-pill:hover {
    border-color: var(--accent, #ee6c38);
    color: var(--accent, #ee6c38);
    background: #fff7ed;
  }
  .docs-index-main { padding: 40px 0 84px; }
  .docs-section-block { margin-bottom: 46px; }
  .docs-section-block[hidden] { display: none; }
  .docs-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
  }
  .docs-section-eyebrow {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent, #ee6c38);
    margin-bottom: 4px;
  }
  .docs-section-title { font-size: 1.48rem; font-weight: 800; color: #0f172a; margin: 0; }
  .docs-section-sub { margin: 6px 0 0; color: #64748b; font-size: 0.94rem; max-width: 680px; }
  .docs-section-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--accent, #ee6c38);
    text-decoration: none;
  }
  .docs-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .docs-card-grid.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .docs-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  }
  .docs-card[hidden] { display: none; }
  .docs-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
    border-color: rgba(238, 108, 56, 0.35);
  }
  .docs-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
  .docs-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: #fff7ed;
    color: var(--accent, #ee6c38);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
  }
  .docs-card-icon.academic { background: #eff6ff; color: #2563eb; }
  .docs-card-icon.legal { background: #f1f5f9; color: #334155; }
  .docs-card-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 999px;
    padding: 3px 9px;
  }
  .docs-card h3 { margin: 0 0 8px; font-size: 1.08rem; font-weight: 800; color: #0f172a; line-height: 1.4; }
  .docs-card p { margin: 0 0 16px; font-size: 0.91rem; color: #475569; line-height: 1.65; flex: 1; }
  .docs-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--accent, #ee6c38);
  }
  .docs-search-empty {
    background: #ffffff;
    border: 1px dashed rgba(15, 23, 42, 0.16);
    border-radius: 18px;
    padding: 38px 24px;
    text-align: center;
    color: #475569;
  }
  .docs-search-empty[hidden] { display: none; }
  .docs-support-strip {
    margin-top: 12px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    padding: 22px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
  }
  .docs-support-strip h3 { margin: 0 0 4px; font-size: 1.08rem; color: #0f172a; }
  .docs-support-strip p { margin: 0; font-size: 0.92rem; color: #64748b; }

  /* ===== Two-Column Docs Reading Shell ===== */
  main { width: 100%; min-width: 0; overflow-x: clip; }
  .docs-shell-wrap { padding: 28px 0 80px; width: 100%; min-width: 0; }
  .docs-mobile-nav-bar { display: none; margin-bottom: 16px; }
  .docs-mobile-drawer-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 16px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    color: #0f172a;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
  }
  .docs-shell { display: grid; grid-template-columns: 268px minmax(0, 1fr); gap: 36px; align-items: start; }
  .docs-sidebar {
    position: sticky;
    top: 88px;
    max-height: calc(100vh - 108px);
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    padding: 18px 14px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
  }
  .docs-sidebar-top-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    color: #0f172a;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    background: #f8fafc;
    margin-bottom: 14px;
  }
  .docs-sidebar-top-link:hover { color: var(--accent, #ee6c38); background: #fff7ed; }
  .docs-sidebar-group + .docs-sidebar-group { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(15, 23, 42, 0.06); }
  .docs-sidebar-heading {
    padding: 0 10px 6px;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
  }
  .docs-sidebar-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
  .docs-sidebar-link {
    display: block;
    padding: 7px 10px;
    border-radius: 9px;
    font-size: 0.87rem;
    font-weight: 500;
    color: #334155;
    text-decoration: none;
    line-height: 1.4;
    transition: background 0.14s ease, color 0.14s ease;
  }
  .docs-sidebar-link:hover { background: #fff7ed; color: var(--accent, #ee6c38); }
  .docs-sidebar-link.active { background: rgba(238, 108, 56, 0.12); color: var(--accent, #ee6c38); font-weight: 700; }
  .docs-content-col { width: 100%; min-width: 0; max-width: 880px; }
  .tech-article-shell, .tech-section-card, .ai-sandbox-card, .sandbox-trace > div { min-width: 0; }
  .docs-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: #64748b; margin-bottom: 16px; flex-wrap: wrap; }
  .docs-breadcrumb a { color: #64748b; text-decoration: none; }
  .docs-breadcrumb a:hover { color: var(--accent, #ee6c38); }
  .docs-doc-header { padding-bottom: 24px; margin-bottom: 28px; border-bottom: 1px solid rgba(15, 23, 42, 0.08); }
  .docs-doc-title {
    font-size: clamp(1.85rem, 3.2vw, 2.45rem);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.24;
    letter-spacing: -0.02em;
    margin: 10px 0 12px;
  }
  .docs-doc-desc { font-size: 1.03rem; color: #475569; line-height: 1.72; margin: 0; }
  .docs-prev-next {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
  }
  .docs-pn-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.09);
    border-radius: 14px;
    padding: 15px 18px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
  }
  .docs-pn-card:hover { border-color: var(--accent, #ee6c38); box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06); }
  .docs-pn-card.next { text-align: right; }
  .docs-pn-label { font-size: 0.78rem; font-weight: 700; color: #64748b; }
  .docs-pn-title { font-size: 0.94rem; font-weight: 700; color: #0f172a; }

  /* ===== User Manual & Academic Extensions ===== */
  .manual-toc { background: #ffffff; border: 1px solid rgba(15, 23, 42, 0.08); border-radius: 16px; padding: 16px 20px; margin-bottom: 24px; }
  .manual-toc-title {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    margin-bottom: 10px;
  }
  .manual-toc-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
  .manual-toc-links a { font-size: 0.88rem; font-weight: 600; color: #334155; text-decoration: none; }
  .manual-toc-links a:hover { color: var(--accent, #ee6c38); }
  .manual-callout { margin: 16px 0; padding: 14px 18px; border-radius: 12px; border-left: 4px solid #3b82f6; background: #eff6ff; color: #1e3a8a; }
  .manual-callout.tip { border-left-color: #10b981; background: #ecfdf5; color: #065f46; }
  .manual-callout.warning { border-left-color: #f59e0b; background: #fffbeb; color: #92400e; }
  .manual-callout-title { font-size: 0.92rem; font-weight: 800; margin-bottom: 4px; }
  .manual-callout p { margin: 0; font-size: 0.92rem; line-height: 1.65; color: inherit; }
  .manual-kbd {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 6px;
    border: 1px solid rgba(15, 23, 42, 0.16);
    background: #f8fafc;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.12);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.82rem;
    font-weight: 700;
    color: #0f172a;
  }
  .manual-figure { margin: 18px 0 4px; background: #faf8f5; border: 1px solid rgba(15, 23, 42, 0.08); border-radius: 16px; overflow: hidden; }
  .manual-figure img { display: block; width: 100%; max-height: 440px; object-fit: contain; background: #faf8f5; }
  .manual-figure figcaption { padding: 10px 16px; font-size: 0.84rem; color: #64748b; background: #ffffff; border-top: 1px solid rgba(15, 23, 42, 0.06); }
  .manual-related-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
  .tech-formula-box {
    margin: 16px 0;
    padding: 16px 18px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.1);
    overflow-x: auto;
  }
  .tech-formula-box pre {
    margin: 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #0f172a;
  }
  .tech-references { background: #ffffff; border: 1px solid rgba(15, 23, 42, 0.08); border-radius: 18px; padding: 24px 28px; margin-bottom: 24px; }
  .tech-references h2 { margin: 0 0 12px; font-size: 1.15rem; color: #0f172a; }
  .tech-references ul {
    margin: 0;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.92rem;
    color: #334155;
    line-height: 1.65;
  }
  @media (max-width: 1024px) {
    .docs-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .docs-shell { grid-template-columns: 1fr; gap: 18px; }
    .docs-mobile-nav-bar { display: block; }
    .docs-sidebar { display: none; position: static; max-height: none; }
    .docs-sidebar.open { display: block; }
  }
  @media (max-width: 720px) {
    .docs-card-grid, .docs-card-grid.two-col, .docs-prev-next { grid-template-columns: 1fr; }
    .docs-pn-card.next { text-align: left; }
    .docs-hero { padding: 36px 0 26px; }
    .docs-index-main { padding: 28px 0 60px; }
  }
