#mode-toggle {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 1rem 0 0.5rem;
    flex-wrap: wrap;
}

.mode-btn {
    padding: 6px 16px;
    border: 2px solid #dee2e6;
    border-radius: 20px;
    background: white;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: #6c757d;
    transition: all 0.2s;
}

.mode-btn:hover {
    border-color: #6153cc;
    color: #6153cc;
}

.mode-btn.active {
    background: #6153cc;
    border-color: #6153cc;
    color: white;
}

#equation-label {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 600;
    font-family: 'Georgia', serif;
    margin: 1.5rem 0 0.5rem;
    color: #495057;
}

#givens-display {
    text-align: center;
    margin: 1rem 0 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.given-item {
    display: inline-block;
    margin: 4px 10px;
    padding: 6px 14px;
    background: #f8f9fa;
    border-radius: 5px;
    font-family: 'Georgia', serif;
}

.given-item.unknown {
    background: #f0eeff;
    border: 2px dashed #6153cc;
    color: #6153cc;
    font-weight: bold;
}

#primary-controls {
    display: flex;
    justify-content: center;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

#solve-label {
    font-weight: 600;
    font-size: 1.1rem;
    color: #495057;
}

#answer-input {
    width: 100px;
    height: 44px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    border: 2px solid #dee2e6;
    border-radius: 5px;
}

#answer-input:focus {
    outline: none;
    border-color: #6153cc;
}

#answer-units {
    font-size: 1rem;
    color: #6c757d;
}

#answer-input::-webkit-outer-spin-button,
#answer-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
#answer-input {
    -moz-appearance: textfield;
}
