:root {
    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
    --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    min-height: 100vh;
    margin: 0;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.app-shell {
    position: relative;
    z-index: 1;
}

code,
.token-textarea,
#log-container,
.metric-value,
.mini-stat-value,
.pool-count,
#api-key-once-value,
[data-api-key-value] {
    font-family: var(--font-mono) !important;
}

.api-guide-card,
.api-guide-card-grid,
.api-guide-row,
.api-guide-endpoints {
    min-width: 0;
}

.api-guide-row code,
.api-guide-endpoints code {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}
