        @font-face {
            font-family: 'Satoshi';
            src: url('/fonts/Satoshi-Variable.woff2') format('woff2'),
                 url('/fonts/Satoshi-Variable.woff') format('woff');
            font-weight: 300 900;
            font-style: normal;
            font-display: swap;
        }

        :root {
            /* Light mode (default) */
            --bg-primary: #ffffff;
            --bg-secondary: #f8fafc;
            --bg-tertiary: #f1f5f9;
            --bg-elevated: #e2e8f0;
            --border: #e2e8f0;
            --border-subtle: #f1f5f9;
            --text-primary: #0f172a;
            --text-secondary: #475569;
            --text-muted: #94a3b8;
            --accent: #0ea5e9;
            --accent-dim: rgba(14, 165, 233, 0.1);
            --success: #22c55e;
            --success-dim: rgba(34, 197, 94, 0.1);
            --warning: #f59e0b;
            --warning-dim: rgba(245, 158, 11, 0.1);
            --error: #ef4444;
            --error-dim: rgba(239, 68, 68, 0.1);
            --method-get: #0ea5e9;
            --method-post: #22c55e;
            --method-put: #f59e0b;
            --method-delete: #ef4444;
            --method-patch: #8b5cf6;
            --logo-color: #1262c9;
            --grid-color: rgba(14, 165, 233, 0.03);
            --glow-color: rgba(14, 165, 233, 0.05);
            --console-btn-shadow: rgba(14, 165, 233, 0.3);
        }

        [data-theme="dark"] {
            --bg-primary: #0a0a0b;
            --bg-secondary: #111113;
            --bg-tertiary: #18181b;
            --bg-elevated: #1f1f23;
            --border: #27272a;
            --border-subtle: #1e1e21;
            --text-primary: #fafafa;
            --text-secondary: #a1a1aa;
            --text-muted: #71717a;
            --accent: #22d3ee;
            --accent-dim: rgba(34, 211, 238, 0.1);
            --success: #4ade80;
            --success-dim: rgba(74, 222, 128, 0.1);
            --warning: #fbbf24;
            --warning-dim: rgba(251, 191, 36, 0.1);
            --error: #f87171;
            --error-dim: rgba(248, 113, 113, 0.1);
            --method-get: #22d3ee;
            --method-post: #4ade80;
            --method-put: #fbbf24;
            --method-delete: #f87171;
            --method-patch: #a78bfa;
            --logo-color: #22d3ee;
            --grid-color: rgba(34, 211, 238, 0.02);
            --glow-color: rgba(34, 211, 238, 0.08);
            --console-btn-shadow: rgba(34, 211, 238, 0.4);
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }

        body {
            font-family: 'Satoshi', -apple-system, sans-serif;
            background: var(--bg-primary);
            color: var(--text-primary);
            line-height: 1.6;
            overflow-x: hidden;
        }

        .bg-grid {
            position: fixed;
            inset: 0;
            background-image:
                linear-gradient(var(--grid-color) 1px, transparent 1px),
                linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
            background-size: 60px 60px;
            pointer-events: none;
            z-index: 0;
        }

        .bg-glow {
            position: fixed;
            top: -300px;
            right: -200px;
            width: 800px;
            height: 800px;
            background: radial-gradient(circle, var(--glow-color) 0%, transparent 70%);
            pointer-events: none;
            z-index: 0;
        }

        .app {
            display: grid;
            grid-template-columns: 280px 1fr 400px;
            min-height: 100vh;
            position: relative;
            z-index: 1;
        }

        /* Sidebar */
        .sidebar {
            background: var(--bg-secondary);
            border-right: 1px solid var(--border-subtle);
            padding: 24px 0;
            position: sticky;
            top: 0;
            height: 100vh;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
        }

        .sidebar::-webkit-scrollbar { width: 6px; }
        .sidebar::-webkit-scrollbar-track { background: transparent; }
        .sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

        .logo {
            padding: 0 24px 24px;
            border-bottom: 1px solid var(--border-subtle);
            margin-bottom: 24px;
        }

        .logo h1 {
            font-size: 1.25rem;
            font-weight: 600;
            letter-spacing: -0.02em;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .logo-svg {
            width: 28px;
            height: 28px;
            fill: var(--logo-color);
        }

        .logo-text {
            font-family: 'Satoshi', -apple-system, sans-serif;
        }

        .nav-section { padding: 0 12px; margin-bottom: 8px; }

        .nav-section-title {
            font-size: 13px;
            font-weight: 600;
            text-transform: capitalize;
            letter-spacing: 0.01em;
            color: var(--text-primary);
            padding: 10px 12px;
            margin-bottom: 0;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-radius: 6px;
            transition: all 0.15s ease;
            user-select: none;
        }

        .nav-section-title:hover {
            background: var(--bg-tertiary);
        }

        .nav-section-title .chevron {
            transition: transform 0.2s ease;
            opacity: 0.4;
        }

        .nav-section-title:hover .chevron {
            opacity: 0.7;
        }

        .nav-section.expanded .nav-section-title .chevron {
            transform: rotate(90deg);
        }

        .nav-section-items {
            display: grid;
            grid-template-rows: 0fr;
            transition: grid-template-rows 0.25s ease-out;
        }

        .nav-section-items > .nav-items-inner {
            overflow: hidden;
            padding-top: 4px;
        }

        .nav-section.expanded .nav-section-items {
            grid-template-rows: 1fr;
        }

        .nav-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 12px;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.15s ease;
            font-size: 14px;
            color: var(--text-secondary);
            text-decoration: none;
        }

        .nav-item:hover { background: var(--bg-tertiary); color: var(--text-primary); }
        .nav-item.active { background: var(--accent-dim); color: var(--accent); }

        .nav-item .method {
            font-size: 10px;
            font-weight: 600;
            font-family: 'JetBrains Mono', monospace;
            padding: 2px 6px;
            border-radius: 4px;
            min-width: 42px;
            text-align: center;
        }

        .method-get { background: rgba(34, 211, 238, 0.15); color: var(--method-get); }
        .method-post { background: rgba(74, 222, 128, 0.15); color: var(--method-post); }
        .method-put { background: rgba(251, 191, 36, 0.15); color: var(--method-put); }
        .method-delete { background: rgba(248, 113, 113, 0.15); color: var(--method-delete); }
        .method-patch { background: rgba(167, 139, 250, 0.15); color: var(--method-patch); }

        .sidebar-footer {
            margin-top: auto;
            padding: 24px;
            border-top: 1px solid var(--border-subtle);
        }

        .swagger-download {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 13px;
            color: var(--text-secondary);
            text-decoration: none;
            padding: 10px 12px;
            border-radius: 8px;
            background: var(--bg-tertiary);
            border: 1px solid var(--border);
            transition: all 0.2s ease;
        }

        .swagger-download:hover {
            background: var(--bg-elevated);
            color: var(--text-primary);
            border-color: var(--accent);
        }

        .swagger-download svg {
            flex-shrink: 0;
        }

        .openapi-download-btn {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            font-size: 15px;
            font-weight: 500;
            color: var(--bg-primary);
            text-decoration: none;
            padding: 14px 24px;
            border-radius: 10px;
            background: var(--accent);
            border: none;
            transition: all 0.2s ease;
            cursor: pointer;
        }

        .openapi-download-btn:hover {
            filter: brightness(1.1);
            transform: translateY(-1px);
        }

        .openapi-uses {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 16px;
        }

        .openapi-use-card {
            background: var(--bg-tertiary);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 20px;
        }

        .openapi-use-card h4 {
            font-size: 15px;
            font-weight: 600;
            margin-bottom: 8px;
            color: var(--text-primary);
        }

        .openapi-use-card p {
            font-size: 13px;
            color: var(--text-secondary);
            line-height: 1.5;
        }

        .openapi-use-icon {
            width: 40px;
            height: 40px;
            background: var(--accent-dim);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 12px;
            color: var(--accent);
        }

        .api-status {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 13px;
            color: var(--text-secondary);
        }

        .status-dot {
            width: 8px;
            height: 8px;
            background: var(--success);
            border-radius: 50%;
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4); }
            50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
        }

        /* Main Content */
        .main {
            padding: 48px;
            overflow-y: auto;
            max-height: 100vh;
        }

        .main::-webkit-scrollbar { width: 8px; }
        .main::-webkit-scrollbar-track { background: transparent; }
        .main::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

        .endpoint-header { margin-bottom: 40px; animation: fadeIn 0.4s ease; }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .endpoint-path {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 16px;
        }

        .endpoint-path .method {
            font-size: 12px;
            font-weight: 600;
            font-family: 'JetBrains Mono', monospace;
            padding: 6px 12px;
            border-radius: 6px;
        }

        .endpoint-path code {
            font-family: 'JetBrains Mono', monospace;
            font-size: 16px;
            color: var(--text-primary);
            background: var(--bg-tertiary);
            padding: 8px 16px;
            border-radius: 8px;
            border: 1px solid var(--border);
        }

        .endpoint-title {
            font-size: 32px;
            font-weight: 700;
            letter-spacing: -0.03em;
            margin-bottom: 12px;
        }

        .endpoint-description {
            font-size: 16px;
            color: var(--text-secondary);
            line-height: 1.7;
        }

        .section { margin-bottom: 48px; animation: fadeIn 0.4s ease; }

        .section-title {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .section-title::before {
            content: '';
            width: 4px;
            height: 20px;
            background: linear-gradient(180deg, var(--accent) 0%, var(--method-patch) 100%);
            border-radius: 2px;
        }

        /* Schema */
        .schema-container {
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            border-radius: 12px;
            overflow: hidden;
        }

        .schema-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 16px 20px;
            background: var(--bg-tertiary);
            border-bottom: 1px solid var(--border);
        }

        .schema-title {
            font-family: 'JetBrains Mono', monospace;
            font-size: 14px;
            font-weight: 500;
        }


        .schema-content { padding: 8px 0; }

        .schema-node[data-expandable] {
            margin-bottom: 4px;
        }

        .schema-row {
            display: grid;
            grid-template-columns: minmax(180px, 280px) 1fr;
            gap: 24px;
            padding: 10px 20px;
            align-items: start;
            transition: background 0.15s ease;
        }

        .schema-row:hover { background: var(--bg-tertiary); }

        .schema-row.depth-0 { padding-left: 20px; }
        .schema-row.depth-1 { padding-left: 20px; }
        .schema-row.depth-2 { padding-left: 20px; }
        .schema-row.depth-3 { padding-left: 20px; }
        .schema-row.depth-4 { padding-left: 20px; }

        .field-key-col {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .field-key {
            display: flex;
            align-items: center;
            gap: 8px;
            font-family: 'JetBrains Mono', monospace;
            font-size: 13px;
        }

        .field-name { color: var(--text-primary); }

        .field-required {
            font-size: 9px;
            font-weight: 600;
            padding: 2px 6px;
            background: var(--error-dim);
            color: var(--error);
            border-radius: 4px;
            text-transform: uppercase;
        }

        .field-optional {
            font-size: 9px;
            font-weight: 600;
            padding: 2px 6px;
            background: var(--bg-elevated);
            color: var(--text-muted);
            border-radius: 4px;
            text-transform: uppercase;
        }

        .field-type {
            font-family: 'JetBrains Mono', monospace;
            font-size: 12px;
        }

        .type-base { color: var(--warning); }
        .type-object { color: var(--method-patch); }
        .type-array { color: var(--accent); }
        .type-enum { color: var(--success); }
        .type-union { color: #f472b6; }

        .type-link {
            color: inherit;
            text-decoration: none;
            border-bottom: 1px dashed currentColor;
            cursor: pointer;
            transition: opacity 0.15s ease;
        }
        .type-link:hover {
            opacity: 0.8;
        }

        .field-info { display: flex; flex-direction: column; gap: 6px; }
        .field-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

        .field-example {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-family: 'JetBrains Mono', monospace;
            font-size: 11px;
            color: var(--text-muted);
            background: var(--bg-elevated);
            padding: 4px 10px;
            border-radius: 4px;
            width: fit-content;
        }

        .field-example-label { color: var(--text-muted); opacity: 0.7; }

        .field-constraints { display: flex; gap: 8px; flex-wrap: wrap; }

        .constraint {
            font-size: 10px;
            font-weight: 500;
            padding: 3px 8px;
            background: var(--bg-elevated);
            border: 1px solid var(--border);
            border-radius: 4px;
            color: var(--text-muted);
        }

        .enum-values { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }

        .enum-value {
            font-family: 'JetBrains Mono', monospace;
            font-size: 11px;
            padding: 3px 8px;
            background: var(--success-dim);
            color: var(--success);
            border-radius: 4px;
        }

        .expand-toggle {
            width: 18px;
            height: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--bg-elevated);
            border: 1px solid var(--border);
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.15s ease;
            flex-shrink: 0;
        }

        .expand-toggle:hover { background: var(--accent-dim); border-color: var(--accent); }

        .expand-toggle svg {
            width: 10px;
            height: 10px;
            color: var(--text-muted);
            transition: transform 0.2s ease;
        }

        .expand-toggle.expanded svg { transform: rotate(90deg); }

        .schema-children {
            overflow: hidden;
            transition: max-height 0.3s ease;
            margin-left: 20px;
            padding-left: 16px;
            border-left: 2px solid var(--border);
            margin-top: 4px;
            margin-bottom: 8px;
        }

        .schema-children.collapsed { max-height: 0 !important; margin: 0; }

        /* Params Table */
        .params-table {
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            border-radius: 12px;
            overflow: hidden;
        }

        .param-row {
            display: grid;
            grid-template-columns: 180px 100px 1fr;
            padding: 16px 20px;
            border-bottom: 1px solid var(--border-subtle);
            transition: background 0.15s ease;
        }

        .params-table.two-col .param-row {
            grid-template-columns: 200px 1fr;
        }

        .param-row:last-child { border-bottom: none; }
        .param-row:hover { background: var(--bg-tertiary); }

        .param-name {
            font-family: 'JetBrains Mono', monospace;
            font-size: 14px;
            font-weight: 500;
            color: var(--accent);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .param-type {
            font-family: 'JetBrains Mono', monospace;
            font-size: 13px;
            color: var(--method-patch);
        }

        .param-desc { font-size: 14px; color: var(--text-secondary); }
        .text-muted { color: var(--text-muted); }

        /* Code Block */
        .code-block {
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            border-radius: 12px;
            overflow: hidden;
        }

        .code-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 16px;
            background: var(--bg-tertiary);
            border-bottom: 1px solid var(--border);
        }

        .code-lang {
            font-family: 'JetBrains Mono', monospace;
            font-size: 12px;
            color: var(--text-muted);
        }

        .copy-btn {
            display: flex;
            align-items: center;
            gap: 4px;
            padding: 4px 8px;
            font-size: 11px;
            font-weight: 500;
            color: var(--text-secondary);
            background: var(--bg-elevated);
            border: 1px solid var(--border);
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.15s ease;
        }

        .copy-btn:hover { background: var(--accent-dim); color: var(--accent); border-color: var(--accent); }

        .code-content {
            padding: 20px;
            font-family: 'JetBrains Mono', monospace;
            font-size: 13px;
            line-height: 1.7;
            overflow-x: auto;
        }

        /* Code Tabs */
        .code-tabs {
            border: 1px solid var(--border);
            border-radius: 12px;
            overflow: hidden;
        }

        .code-tab-buttons {
            display: flex;
            align-items: center;
            background: var(--bg-tertiary);
            border-bottom: 1px solid var(--border);
            padding: 0 12px;
            gap: 4px;
        }

        .code-tab-btn {
            padding: 12px 16px;
            font-size: 13px;
            font-weight: 500;
            color: var(--text-muted);
            background: transparent;
            border: none;
            border-bottom: 2px solid transparent;
            cursor: pointer;
            transition: all 0.15s ease;
            margin-bottom: -1px;
        }

        .code-tab-btn:hover {
            color: var(--text-secondary);
        }

        .code-tab-btn.active {
            color: var(--accent);
            border-bottom-color: var(--accent);
        }

        .code-tab-content {
            display: none;
        }

        .code-tab-content.active {
            display: block;
        }

        .code-tab-content .code-block {
            border: none;
            border-radius: 0;
        }

        .code-content .key { color: var(--accent); }
        .code-content .string { color: var(--success); }
        .code-content .number { color: var(--warning); }
        .code-content .boolean { color: var(--method-patch); }
        .code-content .null { color: var(--text-muted); }

        /* Console */
        .console {
            background: var(--bg-secondary);
            border-left: 1px solid var(--border-subtle);
            position: sticky;
            top: 0;
            height: 100vh;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .console-header { padding: 24px; border-bottom: 1px solid var(--border-subtle); }

        .console-title {
            font-size: 14px;
            font-weight: 600;
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .console-title svg { color: var(--accent); }

        .base-url {
            display: flex;
            align-items: center;
            background: var(--bg-tertiary);
            border: 1px solid var(--border);
            border-radius: 8px;
            overflow: hidden;
        }

        .base-url-input {
            width: 100%;
            padding: 10px 12px;
            font-family: 'JetBrains Mono', monospace;
            font-size: 12px;
            color: var(--text-primary);
            background: var(--bg-tertiary);
            border: 1px solid var(--border);
            border-radius: 8px;
            outline: none;
            transition: all 0.15s ease;
        }

        .base-url-input:focus {
            border-color: var(--accent);
            box-shadow: 0 0 0 3px var(--accent-dim);
        }

        .console-body { flex: 1; overflow-y: auto; padding: 24px; }
        .console-section { margin-bottom: 24px; }

        .console-section-title {
            font-size: 11px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--text-muted);
            margin-bottom: 12px;
        }

        .console-divider {
            height: 1px;
            background: var(--border);
            margin: 8px -24px 24px -24px;
        }

        .clear-auth-btn {
            padding: 4px 10px;
            font-size: 11px;
            font-weight: 500;
            color: var(--text-muted);
            background: transparent;
            border: 1px solid var(--border);
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.15s ease;
            text-transform: none;
            letter-spacing: normal;
        }

        .clear-auth-btn:hover {
            color: var(--error);
            border-color: var(--error);
            background: var(--error-dim);
        }

        .param-input-group { margin-bottom: 12px; }

        .param-input-label {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 13px;
            margin-bottom: 6px;
            color: var(--text-secondary);
        }

        .param-input {
            width: 100%;
            padding: 10px 12px;
            font-family: 'JetBrains Mono', monospace;
            font-size: 13px;
            color: var(--text-primary);
            background: var(--bg-tertiary);
            border: 1px solid var(--border);
            border-radius: 8px;
            outline: none;
            transition: all 0.15s ease;
        }

        .param-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
        .param-input::placeholder { color: var(--text-muted); }

        .request-body-input {
            min-height: 150px;
            resize: vertical;
            font-family: 'JetBrains Mono', monospace;
            font-size: 12px;
            line-height: 1.5;
        }

        .auth-toggle {
            display: flex;
            gap: 4px;
            background: var(--bg-tertiary);
            border-radius: 8px;
            padding: 4px;
        }

        .auth-option {
            flex: 1;
            padding: 8px;
            text-align: center;
            font-size: 12px;
            font-weight: 500;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.15s ease;
            color: var(--text-muted);
            background: transparent;
            border: none;
        }

        .auth-option.active { background: var(--bg-elevated); color: var(--text-primary); }

        .console-footer { padding: 24px; border-top: 1px solid var(--border-subtle); }

        .console-toggle {
            position: fixed;
            right: 24px;
            top: 24px;
            z-index: 100;
            padding: 12px 20px;
            border-radius: 10px;
            background: linear-gradient(135deg, var(--accent) 0%, #0891b2 100%);
            border: none;
            color: #ffffff;
            cursor: pointer;
            display: none;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: all 0.2s ease;
            box-shadow: 0 4px 20px var(--console-btn-shadow);
            font-size: 14px;
            font-weight: 600;
        }

        .console-toggle:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 30px var(--console-btn-shadow);
        }

        .console-toggle.console-hidden {
            display: flex;
        }

        .hide-console-btn {
            padding: 6px 12px;
            font-size: 12px;
            font-weight: 500;
            color: var(--text-secondary);
            background: var(--bg-elevated);
            border: 1px solid var(--border);
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.15s ease;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .hide-console-btn:hover {
            color: var(--text-primary);
            border-color: var(--text-muted);
        }

        .console.hidden {
            display: none;
        }

        .app.console-collapsed {
            grid-template-columns: 280px 1fr;
        }

        .send-btn {
            width: 100%;
            padding: 14px;
            font-size: 14px;
            font-weight: 600;
            color: var(--bg-primary);
            background: linear-gradient(135deg, var(--accent) 0%, #06b6d4 100%);
            border: none;
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .send-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(34, 211, 238, 0.3); }
        .send-btn:active { transform: translateY(0); }

        .response-panel {
            background: var(--bg-tertiary);
            border: 1px solid var(--border);
            border-radius: 10px;
            margin-top: 16px;
            overflow: hidden;
        }

        .response-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 16px;
            border-bottom: 1px solid var(--border);
        }

        .status-code {
            padding: 4px 8px;
            border-radius: 4px;
            font-family: 'JetBrains Mono', monospace;
            font-size: 12px;
        }

        .status-code.success { background: var(--success-dim); color: var(--success); }
        .status-code.error { background: var(--error-dim); color: var(--error); }

        .response-time { font-size: 12px; color: var(--text-muted); }

        .response-body {
            padding: 16px;
            font-family: 'JetBrains Mono', monospace;
            font-size: 12px;
            line-height: 1.6;
            max-height: 300px;
            overflow-y: auto;
            white-space: pre-wrap;
            word-break: break-all;
        }

        .empty-response { padding: 40px 20px; text-align: center; color: var(--text-muted); }
        .empty-response svg { margin-bottom: 12px; opacity: 0.5; }

        .console-body::-webkit-scrollbar, .response-body::-webkit-scrollbar { width: 6px; }
        .console-body::-webkit-scrollbar-track, .response-body::-webkit-scrollbar-track { background: transparent; }
        .console-body::-webkit-scrollbar-thumb, .response-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

        .loading-dots { display: inline-flex; gap: 4px; }
        .loading-dots span {
            width: 6px;
            height: 6px;
            background: currentColor;
            border-radius: 50%;
            animation: bounce 1.4s infinite;
        }
        .loading-dots span:nth-child(1) { animation-delay: 0s; }
        .loading-dots span:nth-child(2) { animation-delay: 0.2s; }
        .loading-dots span:nth-child(3) { animation-delay: 0.4s; }

        @keyframes bounce {
            0%, 80%, 100% { transform: translateY(0); }
            40% { transform: translateY(-8px); }
        }

        @keyframes highlight {
            0% { background: var(--accent-dim); }
            100% { background: transparent; }
        }

        /* Hide mobile elements on desktop by default */
        .mobile-header {
            display: none;
        }

        .sidebar-overlay {
            display: none;
        }

        /* Mobile Responsive */
        @media (max-width: 1200px) {
            .app {
                grid-template-columns: 240px 1fr 360px;
            }
        }

        @media (max-width: 1024px) {
            .app {
                grid-template-columns: 1fr;
            }

            .app.console-collapsed {
                grid-template-columns: 1fr;
            }

            .sidebar {
                position: fixed;
                left: -280px;
                width: 280px;
                z-index: 200;
                transition: left 0.3s ease;
            }

            .sidebar.open {
                left: 0;
            }

            .sidebar-overlay {
                display: none;
                position: fixed;
                inset: 0;
                background: rgba(0,0,0,0.5);
                z-index: 199;
            }

            .sidebar-overlay.open {
                display: block;
            }

            .console {
                position: fixed;
                right: -400px;
                width: 400px;
                max-width: 100vw;
                z-index: 200;
                transition: right 0.3s ease;
            }

            .console.open {
                right: 0;
            }

            .console.hidden {
                right: -400px;
            }

            .main {
                padding: 0 24px 24px 24px;
                max-height: none;
            }

            .mobile-header {
                display: flex;
                position: sticky;
                top: 0;
                z-index: 100;
                background: var(--bg-secondary);
                border-bottom: 1px solid var(--border);
                padding: 16px 24px;
                margin: 0 -24px 24px -24px;
                align-items: center;
                justify-content: space-between;
            }

            .mobile-menu-btn {
                width: 40px;
                height: 40px;
                border-radius: 8px;
                background: var(--bg-tertiary);
                border: 1px solid var(--border);
                color: var(--text-secondary);
                cursor: pointer;
                display: flex;
                align-items: center;
                justify-content: center;
            }

            .mobile-menu-btn:hover {
                background: var(--accent-dim);
                border-color: var(--accent);
                color: var(--accent);
            }

            .mobile-title {
                font-size: 16px;
                font-weight: 600;
            }

            .console-toggle {
                position: fixed;
                right: 16px;
                bottom: 16px;
                top: auto;
                padding: 10px 16px;
                font-size: 13px;
            }

            .console-toggle.console-hidden {
                display: flex;
            }

            .endpoint-path {
                flex-wrap: wrap;
            }

            .endpoint-path code {
                font-size: 14px;
                word-break: break-all;
            }

            .endpoint-title {
                font-size: 24px;
            }

            .schema-row {
                grid-template-columns: 1fr;
                gap: 12px;
            }

            .field-key-col {
                gap: 4px;
            }

            .field-info {
                padding-left: 0;
            }

            .param-row {
                grid-template-columns: 1fr;
                gap: 8px;
            }

            .param-type {
                padding-left: 0;
            }

            .param-desc {
                padding-left: 0;
            }
        }

        @media (max-width: 600px) {
            .main {
                padding: 0 16px 16px 16px;
            }

            .mobile-header {
                padding: 12px 16px;
                margin: 0 -16px 16px -16px;
            }

            .endpoint-title {
                font-size: 20px;
            }

            .section-title {
                font-size: 16px;
            }

            .console {
                width: 100vw;
                right: -100vw;
            }

            .console.open {
                right: 0;
            }

            .console.hidden {
                right: -100vw;
            }

            .code-content {
                font-size: 11px;
                padding: 12px;
            }
        }

        /* Callout boxes for notes/warnings/tips */
        .callout {
            display: flex;
            gap: 12px;
            padding: 16px;
            border-radius: 8px;
            margin: 16px 0;
            border-left: 4px solid;
        }

        .callout-warning {
            background: var(--warning-dim);
            border-color: var(--warning);
        }

        .callout-warning .callout-icon {
            color: var(--warning);
        }

        .callout-tip {
            background: var(--success-dim);
            border-color: var(--success);
        }

        .callout-tip .callout-icon {
            color: var(--success);
        }

        .callout-info {
            background: var(--accent-dim);
            border-color: var(--accent);
        }

        .callout-info .callout-icon {
            color: var(--accent);
        }

        .callout-icon {
            flex-shrink: 0;
            display: flex;
            align-items: flex-start;
            padding-top: 2px;
        }

        .callout-content {
            font-size: 14px;
            color: var(--text-secondary);
            line-height: 1.6;
        }

        .callout-content p {
            margin: 0;
        }

        .callout-content p + p {
            margin-top: 8px;
        }

        /* Rich examples */
        .examples-container {
            display: flex;
            flex-direction: column;
            gap: 24px;
        }

        .example-card {
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 20px;
        }

        .example-title {
            font-size: 16px;
            font-weight: 600;
            color: var(--text-primary);
            margin: 0 0 12px 0;
        }

        .example-description {
            font-size: 14px;
            color: var(--text-secondary);
            margin-bottom: 16px;
            line-height: 1.6;
        }

        .example-description p {
            margin: 0;
        }

        .example-description p + p {
            margin-top: 8px;
        }

        .example-code-pair {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
        }

        @media (max-width: 900px) {
            .example-code-pair {
                grid-template-columns: 1fr;
            }
        }

        /* Markdown content styling */
        .markdown-content {
            font-size: 14px;
            color: var(--text-secondary);
            line-height: 1.7;
        }

        .markdown-content p {
            margin: 0 0 12px 0;
        }

        .markdown-content p:last-child {
            margin-bottom: 0;
        }

        .markdown-content ul,
        .markdown-content ol {
            margin: 0 0 12px 0;
            padding-left: 20px;
        }

        .markdown-content li {
            margin-bottom: 4px;
        }

        .markdown-content code {
            font-family: 'JetBrains Mono', monospace;
            font-size: 13px;
            background: var(--bg-elevated);
            padding: 2px 6px;
            border-radius: 4px;
            color: var(--text-primary);
        }

        .markdown-content pre {
            margin: 12px 0;
        }

        .markdown-content pre code {
            display: block;
            padding: 12px 16px;
            overflow-x: auto;
        }

        .markdown-content a {
            color: var(--accent);
            text-decoration: none;
        }

        .markdown-content a:hover {
            text-decoration: underline;
        }

        .markdown-content strong {
            color: var(--text-primary);
            font-weight: 600;
        }

        .markdown-content table {
            width: 100%;
            border-collapse: collapse;
            margin: 16px 0;
            font-size: 13px;
        }

        .markdown-content th,
        .markdown-content td {
            padding: 10px 12px;
            text-align: left;
            border-bottom: 1px solid var(--border);
        }

        .markdown-content th {
            font-weight: 600;
            color: var(--text-primary);
            background: var(--bg-tertiary);
        }

        .markdown-content td {
            color: var(--text-secondary);
        }

        .markdown-content td code {
            font-size: 12px;
        }

        /* Deeper type expansion levels */
        .schema-row.depth-3 {
            opacity: 0.95;
        }

        .schema-row.depth-4 {
            opacity: 0.9;
        }

        /* Link-only types (at max expansion depth) */
        .schema-node.link-only .field-type a {
            color: var(--primary);
            text-decoration: none;
            border-bottom: 1px dotted var(--primary);
            transition: all 0.15s ease;
        }

        .schema-node.link-only .field-type a:hover {
            border-bottom-style: solid;
        }

        .schema-node.link-only .field-description::after {
            content: " (click type to view)";
            color: var(--text-muted);
            font-style: italic;
            font-size: 11px;
        }

        /* Permission badges */
        .permission-bar {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
            margin-top: 12px;
            padding: 8px 12px;
            background: rgba(245, 158, 11, 0.08);
            border: 1px solid rgba(245, 158, 11, 0.2);
            border-radius: 8px;
        }

        .permission-lock-icon {
            color: var(--warning);
            flex-shrink: 0;
        }

        .permission-label {
            font-size: 12px;
            font-weight: 600;
            color: var(--warning);
            white-space: nowrap;
        }

        .permission-pill {
            font-family: 'JetBrains Mono', monospace;
            font-size: 12px;
            font-weight: 500;
            color: var(--warning);
            background: rgba(245, 158, 11, 0.12);
            border: 1px solid rgba(245, 158, 11, 0.25);
            border-radius: 4px;
            padding: 2px 8px;
            white-space: nowrap;
        }
