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

body {
    background-color: #14141e;
    color: #d0d0d0;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    font-size: 10pt;
    padding: 10px;
    
}

.container {
    max-width: 1900px;
    margin: 0 auto;
}

.neck-container {
    background: #14141e;
    border-radius: 8px;
    padding: 5px;
    margin-bottom: 5px;
    display: block;
    overflow: hidden;
    width: 100%;
}

#neckCanvas {
    background: #14141e;
    border-radius: 8px;
    display: block;
}

/* Легенда */
.legend-container {
    background: #14141e;
    padding: 8px 15px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    min-height: 40px;
}

.legend-title {
    color: #c8c8c8;
    font-weight: bold;
    font-size: 10pt;
    margin-right: 5px;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.legend-color {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid #666;
    flex-shrink: 0;
}

.legend-label {
    color: #d0d0d0;
    font-size: 9pt;
    white-space: nowrap;
}

/* Контролы */
.controls {
    background: #1a1a2a;
    border-radius: 8px;
    padding: 8px 12px;
    margin-top: 5px;
}

.controls-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 6px;
}

.controls-row:last-child {
    margin-bottom: 0;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 5px;
}

.control-group label {
    color: #d0d0d0;
    font-weight: bold;
    font-size: 10pt;
    white-space: nowrap;
}

select, input[type="number"] {
    background-color: #1e1e2e;
    color: #d0d0d0;
    border: 1px solid #2a2a3e;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 10pt;
    cursor: pointer;
}

select:hover {
    background-color: #2a2a3e;
    border-color: #3a3a5e;
}

select:focus {
    outline: none;
    border-color: #4a8ab5;
}

select option {
    background-color: #1e1e2e;
    color: #d0d0d0;
}

input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #4a8ab5;
}

select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}