.docs-page { background: radial-gradient(circle at 60% 0,rgba(48,123,83,.17),transparent 32rem),var(--bg); }
.docs-header .brand b { padding: 4px 7px; color: var(--green); border: 1px solid rgba(94,232,154,.22); border-radius: 6px; font: 750 .5rem/1 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing: .12em; }
.docs-header nav .docs-active { color: var(--text); }
.docs-shell { display: grid; grid-template-columns: 220px minmax(0,820px); gap: clamp(48px,7vw,100px); width: min(100% - 48px,1240px); margin: 0 auto; padding: 70px 0 120px; }
.docs-sidebar { position: sticky; top: 28px; align-self: start; display: grid; gap: 3px; max-height: calc(100vh - 56px); overflow-y: auto; padding-right: 20px; }
.docs-sidebar p { margin: 25px 0 8px; color: #66757f; font: 760 .58rem/1 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing: .13em; }
.docs-sidebar p:first-child { margin-top: 0; }
.docs-sidebar a { padding: 8px 10px; color: #8d9ba5; text-decoration: none; border-left: 1px solid #26323c; font-size: .76rem; }
.docs-sidebar a:hover { color: var(--text); border-color: var(--green); background: rgba(94,232,154,.04); }
.docs-content { min-width: 0; }
.docs-hero { padding: 16px 0 74px; border-bottom: 1px solid rgba(255,255,255,.09); }
.docs-hero h1 { max-width: 820px; font-size: clamp(3.2rem,6.4vw,5.65rem); }
.docs-hero>p:not(.eyebrow) { max-width: 720px; margin: 28px 0 0; color: #a4b0b9; font-size: 1.06rem; line-height: 1.75; }
.docs-path { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 32px; color: #87959f; font: 680 .66rem/1.4 ui-monospace,SFMono-Regular,Consolas,monospace; }
.docs-path span { padding: 9px 11px; border: 1px solid #283540; border-radius: 8px; background: rgba(14,20,29,.8); }
.docs-path i { color: var(--green); font-style: normal; }
.docs-section { scroll-margin-top: 24px; padding: 78px 0; border-bottom: 1px solid rgba(255,255,255,.09); }
.docs-kicker { display: block; margin-bottom: 16px; color: var(--green); font: 760 .61rem/1 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing: .13em; }
.docs-section h2 { max-width: 700px; margin: 0; font-size: clamp(2rem,4vw,3.35rem); line-height: 1.05; letter-spacing: -.047em; }
.docs-section h3 { margin: 11px 0 8px; font-size: .98rem; }
.docs-section>p { max-width: 750px; margin: 20px 0 0; color: #98a6b0; line-height: 1.78; }
.docs-section code,.prompt-example code { color: #bdcbd2; font: .88em/1.5 ui-monospace,SFMono-Regular,Consolas,monospace; }
.docs-code { overflow: hidden; margin-top: 26px; border: 1px solid #2a3742; border-radius: 14px; background: #0b1118; }
.docs-code>div { display: flex; align-items: center; justify-content: space-between; min-height: 43px; padding: 0 16px; border-bottom: 1px solid #25313b; color: #6f7e89; font: 720 .58rem/1 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing: .09em; }
.docs-code button { padding: 6px 9px; color: #d9e3e7; border: 1px solid #2b3945; border-radius: 7px; background: #141d27; cursor: pointer; font-size: .62rem; }
.docs-code pre { overflow-x: auto; margin: 0; padding: 21px 20px; color: #d7e1e4; font: .74rem/1.8 ui-monospace,SFMono-Regular,Consolas,monospace; }
.docs-code pre code { color: inherit; font: inherit; }
.docs-code i { color: var(--green); font-style: normal; }
.install-result,.handoff-grid,.api-grid,.rule-grid { display: grid; gap: 12px; margin-top: 22px; }
.install-result { grid-template-columns: repeat(3,1fr); }
.install-result article,.handoff-grid article,.api-grid article,.rule-grid article { padding: 20px; border: 1px solid #26333e; border-radius: 13px; background: linear-gradient(145deg,rgba(18,26,36,.86),rgba(10,15,22,.9)); }
.install-result b,.install-result code { display: block; }
.install-result b { font-size: .82rem; }
.install-result code { overflow: hidden; margin-top: 9px; color: var(--green); text-overflow: ellipsis; white-space: nowrap; font-size: .62rem; }
.install-result p,.handoff-grid p,.api-grid p,.rule-grid p { margin: 10px 0 0; color: #8796a0; font-size: .76rem; line-height: 1.65; }
.docs-note { margin-top: 20px; padding: 18px 20px; border: 1px solid rgba(94,232,154,.2); border-radius: 12px; background: rgba(94,232,154,.045); }
.docs-note strong { color: #dce6e2; font-size: .8rem; }
.docs-note p { margin: 7px 0 0; color: #8f9da7; font-size: .75rem; line-height: 1.65; }
.docs-section table { width: 100%; margin-top: 25px; border-collapse: collapse; font-size: .77rem; }
.docs-section th,.docs-section td { padding: 14px 16px; text-align: left; border: 1px solid #27343f; }
.docs-section th { color: #82919b; background: #101720; font: 720 .58rem/1 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing: .08em; }
.docs-section td { color: #aebac1; }
.handoff-grid { grid-template-columns: repeat(2,1fr); }
.handoff-grid span { color: var(--green); font: 760 .58rem/1 ui-monospace,SFMono-Regular,Consolas,monospace; }
.prompt-example { margin-top: 18px; padding: 20px; border-left: 2px solid var(--green); background: #0e151d; }
.prompt-example span { color: #6f7e88; font: 750 .56rem/1 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing: .1em; }
.prompt-example p { margin: 11px 0 0; color: #c8d2d7; line-height: 1.7; }
.api-grid { grid-template-columns: repeat(3,1fr); }
.api-grid b,.rule-grid b { font-size: .8rem; }
.docs-links { display: grid; gap: 8px; margin-top: 22px; }
.docs-links a { padding: 14px 16px; color: #b9c5ca; text-decoration: none; border: 1px solid #27343f; border-radius: 10px; background: #0d141c; font-size: .75rem; }
.docs-links a:hover { color: var(--green); border-color: rgba(94,232,154,.3); }
.network-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.network-chips span { padding: 10px 12px; color: #aab7be; border: 1px solid #27343e; border-radius: 8px; background: #101720; font-size: .71rem; }
.network-chips b { margin-left: 8px; color: var(--green); font: 680 .62rem/1 ui-monospace,SFMono-Regular,Consolas,monospace; }
.rule-grid { grid-template-columns: repeat(3,1fr); }
.docs-list { display: grid; gap: 11px; margin: 25px 0 0; padding: 0; list-style: none; }
.docs-list li { position: relative; padding: 14px 16px 14px 42px; color: #a2b0b8; border: 1px solid #26333e; border-radius: 10px; background: rgba(14,20,29,.75); line-height: 1.65; }
.docs-list li::before { content: "✓"; position: absolute; left: 16px; color: var(--green); }
.docs-section details { border-bottom: 1px solid #26323c; }
.docs-section details:first-of-type { margin-top: 24px; border-top: 1px solid #26323c; }
.docs-section summary { padding: 18px 4px; cursor: pointer; font-size: .86rem; font-weight: 700; }
.docs-section details p { margin: -3px 0 18px; color: #8998a2; font-size: .78rem; line-height: 1.7; }

@media (max-width: 900px) {
  .docs-shell { grid-template-columns: 1fr; }
  .docs-sidebar { position: static; display: flex; gap: 7px; max-height: none; overflow-x: auto; padding: 0 0 15px; border-bottom: 1px solid rgba(255,255,255,.09); }
  .docs-sidebar p { display: none; }
  .docs-sidebar a { flex: 0 0 auto; padding: 9px 11px; border: 1px solid #26323c; border-radius: 8px; }
}
@media (max-width: 620px) {
  .docs-header .brand b { display: none; }
  .docs-shell { width: min(100% - 32px,1240px); gap: 30px; padding-top: 40px; }
  .docs-hero h1 { font-size: clamp(2.8rem,14vw,4rem); }
  .docs-hero { padding-bottom: 56px; }
  .docs-section { padding: 60px 0; }
  .install-result,.handoff-grid,.api-grid,.rule-grid { grid-template-columns: 1fr; }
  .docs-section table { display: block; overflow-x: auto; }
}
