* { box-sizing: border-box; }

a {
    color: var(--accent);
    text-decoration: none;
}
a:hover { text-decoration: underline; }

p, li {
    line-height: 1.55;
}

code, pre, kbd {
    font-family: var(--mono);
}

button,
.btn {
    font-family: inherit;
    color: var(--text);
    background: linear-gradient(180deg, rgba(122, 162, 255, 0.22), rgba(122, 162, 255, 0.10));
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn {
    width: 100%;
}

button:hover,
.btn:hover { border-color: rgba(122, 162, 255, 0.55); }

button:active,
.btn:active { transform: translateY(1px); }

input, select, textarea {
    font-family: inherit;
    color: var(--text);
}

input[type="number"], input[type="text"], select, textarea {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px 10px;
    outline: none;
}

input[type="number"]:focus, input[type="text"]:focus, select:focus, textarea:focus {
    border-color: rgba(122, 162, 255, 0.55);
}

input[type="range"] {
    accent-color: var(--accent);
}

.katex {
    color: var(--text);
}

*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    border: 2px solid rgba(0, 0, 0, 0);
    background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.18); }
*::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.15); }

.js-plotly-plot .plotly .bg {
    fill: rgba(0, 0, 0, 0) !important;
}

.js-plotly-plot .plotly .main-svg {
    background: transparent !important;
}

.js-plotly-plot .plotly text {
    fill: var(--text) !important;
}

.js-plotly-plot .plotly .gridlayer path {
    stroke: rgba(255, 255, 255, 0.08) !important;
}
