.settings-list { padding: 15px; display: flex; flex-direction: column; gap: 15px; }
.setting-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; background: var(--border-lighter); border: 1px solid var(--border-light); border-radius: 8px; transition: background 0.2s; }
.setting-item:hover { background: var(--border-light); }
.setting-item.disabled { opacity: 0.4; pointer-events: none; filter: grayscale(100%); transition: opacity 0.3s ease; }
.setting-label { display: flex; flex-direction: column; gap: 2px; }
.setting-title { color: var(--text-pure); font-size: 0.9rem; font-weight: 600; }
.setting-desc { color: var(--text-dim); font-size: 0.75rem; }

.toggle-switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: var(--border-color); transition: .3s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: .3s; border-radius: 50%; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
input:checked + .slider { background-color: var(--primary); }
input:checked + .slider:before { transform: translateX(20px); }

.engine-stats-container {
    margin: 15px;
    margin-top: auto;
    padding: 12px;
    background: var(--bg-header-tabs);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--border-lighter);
    padding: 6px;
    border-radius: 6px;
}

.stat-label {
    font-size: 0.65rem;
    color: var(--text-dim);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.stat-value {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-pure);
    font-weight: 600;
    margin-top: 2px;
}

.current-move {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-dim);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-top: 5px;
    border-top: 1px solid var(--border-light);
}

.thinking-bar {
    width: 100%;
    height: 2px;
    background: var(--border-light);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.thinking-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 30%;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    animation: thinking 1.5s infinite ease-in-out;
}

@keyframes thinking {
    0% { left: -30%; }
    100% { left: 100%; }
}

#tab-analysis {
    height: 100%;
    display: none;
    flex-direction: column;
}

#tab-analysis.active {
    display: flex;
}

#tab-analysis .settings-list {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 0;
}