.module {
    margin-bottom: 28px;
    padding: 22px 24px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 248, 246, 0.98) 100%);
    box-shadow: var(--shadow-card);
}

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 8px 0 14px;
    border-bottom: 1px solid var(--border-soft);
    margin-bottom: 18px;
}

.module-header h2 {
    color: var(--text-primary);
    font-size: 19px;
    letter-spacing: 0.01em;
    margin: 0;
}

.toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: 12px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    transition: transform 0.3s ease;
}

.module-content {
    transition: max-height 0.3s ease;
    overflow: visible;
    max-height: none;
}

.module-content.collapsed {
    max-height: 0;
    margin-bottom: 0;
    padding-bottom: 0;
    overflow: hidden;
}

.panel {
    background: var(--bg-muted);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    padding: 16px;
}

.panel-title {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--border-soft);
}

.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.form-row label {
    width: 150px;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-row .input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-row .unit {
    margin-left: 10px;
    font-weight: 600;
    color: var(--text-muted);
}

.flex-container {
    display: flex;
    gap: 20px;
}

.flex-item {
    flex: 1;
}

@media (max-width: 768px) {
    .flex-container {
        flex-direction: column;
    }

    .module {
        padding: 18px;
        border-radius: 18px;
    }
}
