.year-card label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-weight: 600;
}

input,
button {
    font: inherit;
    padding: 8px 12px;
    border-radius: 0.4rem;
    cursor: pointer;
}

.year-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.year-action-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

#submit {
    background: #2563eb;
    color: #fff;
    border: 1px solid #2563eb;
}

#submit:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.secondary-button,
#discard {
    background: #fff;
    color: #334155;
    border: 1px solid #cbd5e1;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.secondary-button:hover,
#discard:hover {
    background: #f8fafc;
    color: #0f172a;
    border-color: #94a3b8;
}

.secondary-button:active,
#discard:active {
    background: #e2e8f0;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.changes-indicator {
    min-height: 1.35rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
}

.changes-indicator.dirty {
    color: #b45309;
}

.changes-indicator.saved {
    color: #1a7f37;
}

.changes-indicator.loading {
    color: #2563eb;
}

.year-card {
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
    padding: 0.9rem;
    margin-bottom: 0.75rem;
    background: #fafafa;
}

.year-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.combined-toggle {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.combined-toggle input {
    margin: 0;
    padding: 0;
}

.year-card-header .remove-year {
    color: red;
}

.year-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.group-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, 100px);
    row-gap: 0.75rem;
    column-gap: 2rem;
    padding: 0.65rem;
    border: 1px solid #e8e8e8;
    border-radius: 0.45rem;
    background: #fff;
}

.group-row-title {
    grid-column: 1 / -1;
    font-weight: 700;
    color: #2f3b4a;
}

.group-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.group-field input {
    width: 100%;
}

.year-grid label {
    font-size: 0.95rem;
    font-weight: 500;
}

.year-list {
    display: none;
}

#add-year {
    display: none;
}

#submit,
#discard {
    display: none;
}

.status {
    margin-top: 0.5rem;
    font-weight: 600;
}

.status.success {
    color: #1a7f37;
}

.status.error {
    color: #b42318;
}