 *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    :root {
      --navy: #020b1a; --navy-mid: #051228; --navy-card: #071730; --navy-border: #0d2545;
      --blue: #0ea5e9; --cyan: #06b6d4; --green: #10b981; --gold: #f59e0b;
      --muted: #94a3b8; --dim: #475569; --font: 'Montserrat', sans-serif;
      --mono: 'JetBrains Mono', 'Courier New', monospace;
      --sidebar-w: 280px;
      --dotnet: #7b68ee; --nestjs: #22c55e; --laravel: #ef4444;
      --golang: #06b6d4; --django: #f59e0b; --axum: #f97316;
    }
    html { scroll-behavior: smooth; }
    body { font-family: var(--font); background: #f8fafc; color: #1e293b; overflow-x: hidden; }

    /* HEADER */
    header { background: var(--navy); position: sticky; top: 0; z-index: 300; border-bottom: 1px solid var(--navy-border); height: 60px; display: flex; align-items: center; }
    .hi { max-width: 100%; width: 100%; padding: 0 1.5rem; display: flex; align-items: center; gap: 1.5rem; }
    .lm { display: flex; align-items: center; gap: .55rem; text-decoration: none; flex-shrink: 0; }
    .li { width: 30px; height: 30px; background: linear-gradient(135deg, var(--blue), var(--cyan)); border-radius: 7px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; color: #fff; }
    .lt { font-weight: 700; font-size: .95rem; color: #fff; } .lt span { color: var(--blue); }
    .header-divider { width: 1px; height: 24px; background: var(--navy-border); flex-shrink: 0; }
    .header-title { font-size: .82rem; font-weight: 600; color: rgba(255,255,255,.45); }
    .header-search { flex: 1; max-width: 380px; position: relative; }
    .header-search input { width: 100%; background: rgba(255,255,255,.06); border: 1px solid var(--navy-border); border-radius: 8px; padding: .45rem .85rem .45rem 2.25rem; font-family: var(--font); font-size: .8rem; color: #fff; outline: none; transition: all .2s; }
    .header-search input::placeholder { color: rgba(255,255,255,.25); }
    .header-search input:focus { background: rgba(255,255,255,.09); border-color: rgba(14,165,233,.4); }
    .hs-icon { position: absolute; left: .7rem; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,.3); font-size: .8rem; pointer-events: none; }
    .header-nav { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
    .btn-sm { display: inline-flex; align-items: center; gap: .3rem; padding: .38rem .85rem; border-radius: 7px; font-family: var(--font); font-size: .75rem; font-weight: 600; text-decoration: none; transition: all .2s; border: none; cursor: pointer; }
    .btn-ghost-sm { background: transparent; color: rgba(255,255,255,.45); border: 1px solid var(--navy-border); }
    .btn-ghost-sm:hover { color: #fff; border-color: #1e3a5f; }
    .btn-blue-sm { background: var(--blue); color: #fff; }
    .btn-blue-sm:hover { background: #38bdf8; }

    /* LAYOUT */
    .docs-layout { display: flex; min-height: calc(100vh - 60px); }

    /* LEFT SIDEBAR */
    .sidebar { width: var(--sidebar-w); flex-shrink: 0; background: #fff; border-right: 1px solid #e2e8f0; position: sticky; top: 60px; height: calc(100vh - 60px); overflow-y: auto; padding-bottom: 2rem; }
    .sidebar::-webkit-scrollbar { width: 4px; }
    .sidebar::-webkit-scrollbar-track { background: transparent; }
    .sidebar::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 2px; }

    /* Sidebar product/stack tree */
    .sb-section { padding: .85rem 0 .2rem; }
    .sb-section-header { padding: .3rem 1.25rem; font-size: .63rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: #94a3b8; }
    .sb-product { }
    .sb-product-btn { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .5rem 1.25rem; background: none; border: none; cursor: pointer; font-family: var(--font); font-size: .82rem; font-weight: 600; color: #374151; text-align: left; transition: all .15s; }
    .sb-product-btn:hover { background: #f8fafc; color: #0f172a; }
    .sb-product-btn.active { background: rgba(14,165,233,.07); color: #0369a1; }
    .sb-product-icon { font-size: .95rem; flex-shrink: 0; }
    .sb-product-name { flex: 1; }
    .sb-arrow { font-size: .65rem; color: #94a3b8; transition: transform .2s; flex-shrink: 0; }
    .sb-arrow.open { transform: rotate(90deg); }

    /* Stack submenu */
    .sb-stacks { display: none; }
    .sb-stacks.open { display: block; }
    .sb-stack-btn { display: flex; align-items: center; gap: .55rem; width: 100%; padding: .4rem 1.25rem .4rem 2.5rem; background: none; border: none; cursor: pointer; font-family: var(--font); font-size: .78rem; font-weight: 500; color: #64748b; text-align: left; transition: all .15s; border-left: 2px solid transparent; }
    .sb-stack-btn:hover { background: #f8fafc; color: #374151; }
    .sb-stack-btn.active { background: rgba(14,165,233,.05); color: #0369a1; border-left-color: var(--blue); }
    .sb-stack-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }

    /* Doc list submenu */
    .sb-docs { display: none; }
    .sb-docs.open { display: block; }
    .sb-doc-link { display: flex; align-items: center; gap: .45rem; width: 100%; padding: .32rem 1.25rem .32rem 3.5rem; background: none; border: none; cursor: pointer; font-family: var(--font); font-size: .75rem; font-weight: 400; color: #64748b; text-align: left; transition: all .15s; text-decoration: none; }
    .sb-doc-link:hover { color: #0f172a; }
    .sb-doc-link.active { color: var(--blue); font-weight: 600; }
    .sb-doc-type { font-size: .6rem; font-weight: 700; padding: .08rem .35rem; border-radius: 3px; flex-shrink: 0; }

    /* MAIN CONTENT AREA */
    .main { flex: 1; min-width: 0; display: flex; }
    .content-area { flex: 1; min-width: 0; padding: 2.5rem 2rem; max-width: 860px; }
    .right-toc { width: 220px; flex-shrink: 0; padding: 2.5rem 1.5rem; }

    /* CONTENT STATE: WELCOME */
    .welcome-state { }
    .ws-hero { background: var(--navy); border-radius: 16px; padding: 2.5rem; margin-bottom: 2rem; position: relative; overflow: hidden; }
    .ws-hero::before { content: ''; position: absolute; top: -60px; right: -60px; width: 300px; height: 300px; background: radial-gradient(ellipse, rgba(14,165,233,.08) 0%, transparent 65%); pointer-events: none; }
    .ws-hero h1 { font-size: 1.5rem; font-weight: 800; color: #fff; letter-spacing: -.5px; margin-bottom: .5rem; }
    .ws-hero p { font-size: .88rem; color: rgba(255,255,255,.4); line-height: 1.65; max-width: 520px; }
    .ws-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 2rem; }
    .ws-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 1.25rem; cursor: pointer; transition: all .2s; text-align: left; font-family: var(--font); }
    .ws-card:hover { border-color: #94a3b8; box-shadow: 0 4px 16px rgba(0,0,0,.06); transform: translateY(-1px); }
    .ws-card-icon { font-size: 1.4rem; margin-bottom: .65rem; display: block; }
    .ws-card-title { font-size: .88rem; font-weight: 700; color: #0f172a; margin-bottom: .3rem; }
    .ws-card-desc { font-size: .75rem; color: #64748b; line-height: 1.5; }
    .ws-products { display: grid; grid-template-columns: repeat(2, 1fr); gap: .65rem; }
    .ws-prod { display: flex; align-items: center; gap: .65rem; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: .75rem 1rem; cursor: pointer; transition: all .15s; font-family: var(--font); text-align: left; }
    .ws-prod:hover { border-color: #94a3b8; background: #f8fafc; }
    .ws-prod-icon { font-size: 1.1rem; flex-shrink: 0; }
    .ws-prod-name { font-size: .8rem; font-weight: 700; color: #0f172a; }
    .ws-prod-count { font-size: .65rem; color: #64748b; }

    /* CONTENT STATE: STACK DOCS */
    .doc-header { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid #e2e8f0; }
    .doc-breadcrumb { display: flex; align-items: center; gap: .4rem; font-size: .72rem; color: #64748b; margin-bottom: .85rem; flex-wrap: wrap; }
    .doc-breadcrumb a { color: var(--blue); text-decoration: none; cursor: pointer; }
    .doc-breadcrumb a:hover { text-decoration: underline; }
    .doc-bc-sep { color: #cbd5e1; }
    .doc-title-row { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: .65rem; flex-wrap: wrap; }
    .doc-title { font-size: 1.5rem; font-weight: 800; color: #0f172a; letter-spacing: -.5px; flex: 1; }
    .doc-stack-badge { display: inline-flex; align-items: center; gap: .4rem; font-size: .72rem; font-weight: 700; padding: .3rem .75rem; border-radius: 8px; white-space: nowrap; margin-top: .2rem; }
    .doc-meta { display: flex; align-items: center; gap: 1rem; font-size: .75rem; color: #94a3b8; flex-wrap: wrap; }
    .doc-meta-item { display: flex; align-items: center; gap: .3rem; }

    /* DOC CATEGORIES */
    .doc-category { margin-bottom: 2.5rem; }
    .doc-cat-title { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: #94a3b8; margin-bottom: .85rem; padding-bottom: .5rem; border-bottom: 1px solid #f1f5f9; }
    .doc-list { display: flex; flex-direction: column; gap: .5rem; }
    .doc-item { display: flex; align-items: center; gap: 1rem; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: .85rem 1.1rem; cursor: pointer; transition: all .15s; text-align: left; font-family: var(--font); text-decoration: none; color: inherit; }
    .doc-item:hover { border-color: #94a3b8; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
    .doc-item.active { border-color: var(--blue); background: rgba(14,165,233,.03); }
    .doc-item-icon { font-size: 1rem; flex-shrink: 0; width: 32px; height: 32px; background: #f8fafc; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
    .doc-item-body { flex: 1; min-width: 0; }
    .doc-item-title { font-size: .84rem; font-weight: 700; color: #0f172a; margin-bottom: .15rem; }
    .doc-item-desc { font-size: .73rem; color: #64748b; line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .doc-item-tags { display: flex; gap: .3rem; flex-shrink: 0; flex-wrap: wrap; }
    .doc-tag { font-size: .6rem; font-weight: 700; padding: .1rem .4rem; border-radius: 4px; }
    .tag-new { background: rgba(16,185,129,.1); color: #065f46; }
    .tag-updated { background: rgba(14,165,233,.1); color: #0369a1; }
    .tag-guide { background: #f1f5f9; color: #475569; }
    .tag-ref { background: rgba(245,158,11,.1); color: #92400e; }
    .tag-video { background: rgba(239,68,68,.1); color: #991b1b; }

    /* DOC READER */
    .doc-reader { }
    .dr-title { font-size: 1.5rem; font-weight: 800; color: #0f172a; letter-spacing: -.5px; margin-bottom: .65rem; line-height: 1.2; }
    .dr-meta { display: flex; align-items: center; gap: 1rem; font-size: .73rem; color: #94a3b8; margin-bottom: 1.75rem; padding-bottom: 1.25rem; border-bottom: 1px solid #e2e8f0; flex-wrap: wrap; }
    .dr-meta-tag { background: #f1f5f9; color: #475569; font-size: .65rem; font-weight: 700; padding: .12rem .45rem; border-radius: 4px; }
    .dr-body { font-size: .88rem; line-height: 1.8; color: #374151; }
    .dr-body h2 { font-size: 1.1rem; font-weight: 800; color: #0f172a; margin: 2rem 0 .75rem; letter-spacing: -.3px; }
    .dr-body h3 { font-size: .95rem; font-weight: 700; color: #0f172a; margin: 1.5rem 0 .6rem; }
    .dr-body p { margin-bottom: 1rem; }
    .dr-body ul, .dr-body ol { padding-left: 1.5rem; margin-bottom: 1rem; }
    .dr-body li { margin-bottom: .35rem; }
    .dr-body code { font-family: var(--mono); font-size: .82rem; background: #f1f5f9; padding: .1rem .4rem; border-radius: 4px; color: #0f172a; }
    .dr-body pre { background: #0f172a; border-radius: 10px; padding: 1.25rem; margin: 1.25rem 0; overflow-x: auto; }
    .dr-body pre code { background: none; padding: 0; color: #e2e8f0; font-size: .8rem; line-height: 1.7; }
    .dr-body .note { background: rgba(14,165,233,.06); border: 1px solid rgba(14,165,233,.18); border-left: 3px solid var(--blue); border-radius: 8px; padding: .85rem 1.1rem; margin: 1.25rem 0; font-size: .84rem; }
    .dr-body .note strong { color: #0369a1; }
    .dr-body .warn { background: rgba(245,158,11,.06); border: 1px solid rgba(245,158,11,.2); border-left: 3px solid var(--gold); border-radius: 8px; padding: .85rem 1.1rem; margin: 1.25rem 0; font-size: .84rem; }
    .dr-body table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: .82rem; }
    .dr-body th { background: #f8fafc; border: 1px solid #e2e8f0; padding: .6rem .85rem; font-weight: 700; text-align: left; color: #374151; }
    .dr-body td { border: 1px solid #e2e8f0; padding: .6rem .85rem; color: #374151; }
    .dr-body tr:nth-child(even) td { background: #fafbfc; }
    .syn { color: #7dd3fc; } .kw { color: #f0abfc; } .str { color: #86efac; } .cm { color: #334155; } .fn { color: #fbbf24; }

    /* RIGHT TOC */
    .toc-title { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: #94a3b8; margin-bottom: .75rem; }
    .toc-link { display: block; font-size: .75rem; color: #64748b; text-decoration: none; padding: .3rem 0 .3rem .75rem; border-left: 2px solid #e2e8f0; transition: all .15s; margin-bottom: .1rem; }
    .toc-link:hover { color: #0f172a; border-left-color: #94a3b8; }
    .toc-link.active { color: var(--blue); border-left-color: var(--blue); font-weight: 600; }
    .toc-link.l2 { padding-left: 1.5rem; font-size: .72rem; }

    /* MOBILE TOGGLE */
    .mob-toggle { display: none; }

    @media (max-width: 1100px) { .right-toc { display: none; } }
    @media (max-width: 768px) { .sidebar { display: none; position: fixed; left: 0; top: 60px; z-index: 200; width: var(--sidebar-w); box-shadow: 4px 0 20px rgba(0,0,0,.15); } .sidebar.mob-open { display: block; } .mob-toggle { display: flex; } .content-area { padding: 1.5rem 1.25rem; } .ws-grid, .ws-products { grid-template-columns: 1fr; } }