:root {
    --bg: #0b0f19;
    --panel: #111827;
    --accent: #3b82f6;
    --text: #e5e7eb;
    --muted: #9ca3af;
    --border: #1f2937;
    --code-bg: #0a0e1a;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 24px;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji';
    background: linear-gradient(180deg, #0b0f19 0%, #0a0e18 100%);
    color: var(--text);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

h1 {
    font-size: 28px;
    line-height: 1.2;
    margin: 0 0 6px 0;
    letter-spacing: .2px;
}

.subtitle {
    color: var(--muted);
    margin-bottom: 22px;
}

.toolbar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.chip {
    background: #0f172a;
    border: 1px solid var(--border);
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 12px;
}

.search {
    display: flex;
    gap: 8px;
    align-items: center;
    background: #0f172a;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 10px;
    flex: 1;
}

    .search input {
        background: transparent;
        border: none;
        color: var(--text);
        outline: none;
        width: 100%;
        font-size: 14px;
    }

.accordion {
    margin-top: 12px;
}

details.qa {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    margin: 10px 0;
    padding: 14px 16px;
    box-shadow: 0 1px 0 rgba(255,255,255,.02), 0 8px 28px rgba(0,0,0,.25);
}

details[open].qa {
    border-color: #2b3548;
}

summary {
    cursor: pointer;
    list-style: none;
    outline: none;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

    summary::-webkit-details-marker {
        display: none;
    }

.qid {
    background: #0b1223;
    color: #a5b4fc;
    border: 1px solid #1f2a44;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 999px;
    margin-top: 2px;
    flex-shrink: 0;
}

.qtext {
    font-weight: 600;
}

.answer {
    margin-top: 10px;
    color: var(--text);
}

.muted {
    color: var(--muted);
    font-size: 13px;
}

.code-window {
    margin-top: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--code-bg);
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
    background: #0b1222;
    color: var(--muted);
    font-size: 12px;
}

.code-dots {
    display: flex;
    gap: 6px;
}

    .code-dots span {
        width: 10px;
        height: 10px;
        border-radius: 999px;
        display: inline-block;
        opacity: .8;
    }

        .code-dots span:nth-child(1) {
            background: #f43f5e;
        }

        .code-dots span:nth-child(2) {
            background: #f59e0b;
        }

        .code-dots span:nth-child(3) {
            background: #10b981;
        }

.copy-btn {
    background: #0f172a;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 8px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 12px;
}

    .copy-btn:hover {
        background: #1f2937;
    }

    .copy-btn.copied {
        background: #10b981;
        border-color: #10b981;
    }

pre {
    margin: 0;
    padding: 12px 14px;
    overflow: auto;
    font-size: 13px;
    line-height: 1.6;
    color: #e2e8f0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    white-space: pre;
}

.badge {
    background: #0f172a;
    color: #93c5fd;
    border: 1px solid #1f2937;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 11px;
}

.section {
    margin: 24px 0 14px;
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .12em;
}

.sticky-top {
    position: relative;
    top: 0;
    backdrop-filter: blur(8px);
    background: rgba(11,15,25,.6);
    padding: 12px 0;
    z-index: 10;
}
