/* 05-control-panel.css: index.html@cd3fd3f lines 104-295 (control panel, section cards, input fields, curve hint, add-section button).
   06 T4a: role tokens (06 3.4, 3.5): the sidebar on --color-surface-1, the cards on --color-surface-2, inputs on
   --color-surface-1 with a red focus border; the cyan hover tints are gone (a tinted fill would drop red below 3:1).
   .section-row aligns its inputs at the end and field labels track at 0.06em, so a label that wraps never misaligns
   the two inputs of a row (06 3.1).
   Slice of the original <style>, rewritten to role tokens (css-slices.mjs --report-only lists the difference, 07 S7);
   link order = file number. Do not reorder rules across files. */
.control-panel {
    background: var(--color-surface-1);
    border-right: 1px solid var(--color-border-subtle);
    overflow-y: auto;
    padding: 16px;
}

.control-panel::-webkit-scrollbar {
    width: 6px;
}

.control-panel::-webkit-scrollbar-track {
    background: var(--color-surface-1);
}

.control-panel::-webkit-scrollbar-thumb {
    background: var(--color-border-strong);
    border-radius: 3px;
}

.wall-sections {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.wall-section {
    background: var(--color-surface-2);
    border: 1px solid var(--color-border-subtle);
    border-radius: 10px;
    overflow: hidden;
}

.wall-section.collapsed .section-content {
    display: none;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    cursor: pointer;
    background: var(--color-surface-2);
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.wall-section:not(.collapsed) .section-header {
    border-bottom-color: var(--color-border-subtle);
}

.section-header:hover {
    background: var(--color-surface-hover);
}

.section-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    box-shadow: inset 0 0 0 1px var(--color-swatch-ring);
}

.section-title {
    font-weight: 600;
    font-size: 14px;
}

.section-summary {
    font-size: 11px;
    color: var(--color-text-secondary);
    font-family: var(--font-mono);
}

.section-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-toggle {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    color: var(--color-text-secondary);
    transition: transform 0.2s ease;
}

.wall-section.collapsed .section-toggle {
    transform: rotate(-90deg);
}

.section-delete {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    color: var(--color-text-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.section-delete:hover {
    color: var(--color-danger);
    background: var(--color-danger-bg);
}

.section-content {
    padding: 14px;
}

.section-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: 10px;
    margin-bottom: 12px;
}

.section-row.single {
    grid-template-columns: 1fr;
}

.input-field {
    background: var(--color-surface-1);
    border: 1px solid var(--color-border-subtle);
    border-radius: 6px;
    padding: 10px;
    transition: border-color 0.2s ease;
}

.input-field:focus-within {
    border-color: var(--color-accent);
}

.input-field label {
    display: block;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-secondary);
    margin-bottom: 4px;
}

.input-field input {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--color-text-primary);
    font-family: var(--font-mono);
    font-size: 14px;
    outline: none;
}

.curve-hint {
    font-size: 10px;
    color: var(--color-text-secondary);
    font-style: italic;
    margin-top: 4px;
}

.add-section-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 2px dashed var(--color-border-strong);
    border-radius: 10px;
    color: var(--color-text-secondary);
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.add-section-btn:hover {
    border-color: var(--color-text-primary);
    color: var(--color-text-primary);
    background: var(--color-surface-2);
}
