.doc-shell { max-width: 860px; margin: 0 auto; padding: 56px 24px 100px; }
.doc-content { font-size: 1.02rem; }
.doc-content h1 { font-size: clamp(2rem, 5vw, 2.8rem); letter-spacing: -0.03em; margin: 0 0 18px; font-weight: 800; }
.doc-content h2 { font-size: 1.6rem; letter-spacing: -0.02em; margin: 52px 0 16px; padding-top: 18px; border-top: 1px solid var(--border-vis); font-weight: 700; }
.doc-content h3 { font-size: 1.25rem; margin: 34px 0 12px; font-weight: 700; }
.doc-content h4 { font-size: 1.05rem; margin: 26px 0 10px; color: var(--text); }
.doc-content p, .doc-content li { color: #c5c5d6; }
.doc-content a { color: var(--accent); }
.doc-content a:hover { text-decoration: underline; }
.doc-content strong { color: var(--text); }
.doc-content code { background: var(--bg-soft); border: 1px solid var(--border-vis); border-radius: 6px; padding: 1px 6px; color: var(--accent); }
.doc-content pre { background: var(--bg-soft); border: 1px solid var(--border-vis); border-radius: var(--radius); padding: 18px 20px; overflow-x: auto; }
.doc-content pre code { background: none; border: none; padding: 0; color: #d6d6e6; font-size: 0.88rem; line-height: 1.6; }
.doc-content table { width: 100%; border-collapse: collapse; font-size: 0.93rem; margin: 18px 0; border: 1px solid var(--border-vis); border-radius: var(--radius); overflow: hidden; }
.doc-content th, .doc-content td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border-vis); vertical-align: top; }
.doc-content thead th { background: var(--bg-soft); color: var(--muted); }
.doc-content tbody tr:last-child td { border-bottom: none; }
.doc-content blockquote { border-left: 3px solid var(--brand); margin: 18px 0; padding: 4px 18px; color: var(--muted); background: rgba(99,102,241,0.06); border-radius: 0 8px 8px 0; }
.doc-content hr { border: none; border-top: 1px solid var(--border-vis); margin: 40px 0; }
.doc-content img { max-width: 100%; }
.doc-content h1 a, .doc-content h2 a, .doc-content h3 a { color: inherit; }
.doc-toc { margin-bottom: 30px; }
.doc-back { display: inline-block; margin-bottom: 28px; color: var(--muted); font-size: 0.9rem; }
.doc-back:hover { color: var(--text); }
.header-anchor { opacity: 0; margin-left: 8px; color: var(--brand) !important; text-decoration: none; font-weight: 400; }
h1:hover .header-anchor, h2:hover .header-anchor, h3:hover .header-anchor { opacity: 1; }
